Use this endpoint to retrieve the status and result of a purchase synchronization or transfer process initiated by the /purchases or /purchases/transfers endpoint. This endpoint provides a concise response with the essential status information, including status, accessGranted, offerId, and result.
The status field indicates the current stage of the synchronization process:
- processing: The synchronization is in progress.
- retrying: The synchronization encountered an error and is being retried. This status may appear multiple times.
- finalized: The synchronization process has completed.
The result field provides more detailed information about the outcome of the synchronization and is only available when status is finalized. The accessGranted field indicates whether the user is entitled to the offer. The offerId field provides the ID of the offer. You can see some possible scenarios and the corresponding response fields in the polling section of the integration tutorial.
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.
Response description
Response | Type | Description |
|---|---|---|
| string | One of:
|
| boolean | The field is available only when the synchronization status is |
| string | The offer id associated with the purchase. The offer id will be available only if user is entitled to this specific offer. |
| string | (correlationId) <= 256 characters |
| string | (synchronizationResult)
|
Errors
| HTTP Status Code | Error Code | Message |
|---|---|---|
| 400 | REQ0003 | Invalid path parameters |
| 400 | REQ0004 | Invalid headers |
| 404 | REQ0100 | Entity not found |
| 500 | SXXXX (X - number) | Internal Server Error |
