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

# Apple iOS and tvOS Payment \[Deprecated\]

`POST /apple/payment`

## Request

- Base URL: `https://mediastoreapi-sandbox.cleeng.com`
- URL: `https://mediastoreapi-sandbox.cleeng.com/apple/payment`
- Auth: API key in header `Authorization`

**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. **Note:** This endpoint uses <<glossary:JWT>> for [authorization](https://developers.cleeng.com/reference/getting-started#authorization).

## 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
  - `appType` 'ios' | 'tvos', required: An Apple device, either iOS or tvOS
  - `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
  - `responseData` object
    - `message` string
  - `errors` unknown[]
    - unknown

## Other responses

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

## Changes

- **2026-11-03** `b4b65aa4f14c`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/cleeng/apis/mediastore-api/changes/apple/payment/post.md)

---

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