Register Apple SK2 purchase

Use this endpoint to register a purchase made via Apple StoreKit2 to initiate an asynchronous synchronization process. This process involves verifying the purchase with Apple and updating the user's entitlement status in Cleeng's system.

Due to the time required for Apple's verification, this operation is asynchronous. Upon successful registration, the API will return a 202 Accepted status with a unique synchronizationId in the response body.

The cleengCustomerId is used to identify the user in Cleeng's system and associate the purchase with their account.

Important: Only one synchronization process can be active for a given transactionId at a time. If a new request is made for the same transactionId while a previous synchronization is still in progress, a 409 Conflict error will be returned.

Please note that this endpoint can be authorized with a publisher (X-Publisher-Token) or JWT (Bearer) token. Depending on how you integrate with Cleeng (directly or through middleware), use either a JWT or X-Publisher-Token header authorization.

Please use JWT (Bearer) token to try out the endpoint in the API console in this documentation.

Errors

HTTP Status CodeError CodeMessage
400REQ0001Invalid body
400REQ0004Invalid headers
409SK2C0101The resource is temporarily locked due to a concurrent request.
422SK2C0100Unable to find customer
500SK2C0004StoreKit2 integration not activated
500SXXXX (X - number)Internal Server Error

Language
Credentials
Header
Click Try It! to start a request and see the response here!