Apple iOS and tvOS [Deprecated]

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 endpoint.

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

Headers

Content-Typestring
X-Publisher-Tokenstring

Request body

customerEmailstring required

Customer's email

offerIdstring required

An identifier of a Cleeng offer (e.g. E123123123_US )

appType'ios' | 'tvos'

An Apple device, either ios or tvos. If not passed, ios is used.

ipAddressstring

Customer's IP address (an optional parameter).

couponCodestring

A coupon code modifies the reported amount (an optional parameter, used in introductory offers)

Response

200

messagestring

Example response

{
  "message": "OK"
}

Changes

No recorded changes to this operation across all 1 revision of this API.