---
title: "Amazon FireTV"
method: POST
path: "/amazon/payment"
---

# Amazon FireTV

`POST /amazon/payment`

## Request

- Base URL: `https://api.cleeng.com`
- URL: `https://api.cleeng.com/amazon/payment`
- Auth: API key in header `X-Publisher-Token`

Use this endpoint to notify Cleeng about the successful Amazon FireTV in-app payment (Initial Purchase) and create a subscription in Cleeng. <br><br> The relevant endpoints are: <br>- Production URL: https://api.cleeng.com/amazon/payment <br>- Sandbox URL: https://api.sandbox.cleeng.com/amazon/payment <br><br> **Note:** <br> For integrations utilizing <<glossary:JWT>> authorization please use the MediaStore SDK API [Amazon FireTV Payment](ref:amazon-firetv-payment) endpoint.

## Headers

- `Content-Type` string
- `X-Publisher-Token` string

## Request body

- object
  - `customerEmail` string, required: Customer's email
  - `offerId` string, required: An identifier of a Cleeng offer (eg E123123123_US)
  - `receipt` object, required
    - `receiptId` string, required: A receipt ID of the purchase returned by Amazon
    - `userId` string, required: A user ID of the purchase returned by Amazon
  - `ipAddress` string: Customer's IP address (an optional parameter). Accepted: IPv4, IPv6.

## Response `200`

200

- object
  - `message` string

## Other responses

- `400`: 400
- `401`: 401
- `422`: 422
- `500`: 500

---

[API](https://skmtc.dev/cleeng/apis/in-app.md) - [All operations](https://skmtc.dev/cleeng/apis/in-app/llms.txt) - [OpenAPI document](https://skmtc.dev/cleeng/apis/in-app/revisions/e6c1093c5e49?raw)
