---
title: "Apple iOS and tvOS [Deprecated]"
method: POST
path: "/apple/payment"
---

# Apple iOS and tvOS \[Deprecated\]

`POST /apple/payment`

## Request

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

**This endpoint is deprecated.** <br /><br /> Use this endpoint to notify Cleeng about the successful iOS/tvOS in-app payment (Initial Purchase) and create a subscription in Cleeng. <br><br> The relevant endpoints are: <br> - Production: https://api.cleeng.com/apple/payment <br> - Sandbox: https://api.sandbox.cleeng.com/apple/payment <br><br>**Note:** <br> For integrations utilizing <<glossary:JWT>> authorization please use the MediaStore SDK API [Apple iOS and tvOS Payment](ref:apple-ios-and-tvos-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 (e.g. E123123123_US )
  - `receipt` object, required
    - `transactionId` string, required: Last used transaction identifier returned from the iTunes store. Warning: This is not the initial transactionId.
    - `receiptData` string, required: Complete receipt data returned from the iTunes store (the Base64-encoded receipt data).
  - `appType` 'ios' | 'tvos': An Apple device, either `ios` or `tvos`. If not passed, `ios` is used.
  - `ipAddress` string: Customer's IP address (an optional parameter).
  - `couponCode` string: A coupon code modifies the reported amount (an optional parameter, used in introductory offers)

## 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)
