Samsung TV

Use this endpoint to notify Cleeng about Samsung TV in-app payment and to validate the purchase. <br> <br>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 <glossary:JWT> or X-Publisher-Token header authorization. <br> <br> <span style="color:blue">Please use JWT (Bearer) token to try out the endpoint in the API console in this documentation.</span>

post/purchase-validation

Request

  • Base URL
    https://inapp.api.sandbox.cleeng.com/samsung-tv
  • URL
    https://inapp.api.sandbox.cleeng.com/samsung-tv/purchase-validation
  • Auth
    API key in header Authorization

Headers

JWT or X-Publisher-Tokenstring required

Use either a <glossary:JWT> or X-Publisher-Token header authorization, depending on how you integrate with Cleeng (directly or through middleware). <span style="color:blue">Please use JWT (Bearer) token to try out the endpoint in the API console in this documentation.</span>

Correlation-idstring

Internal identification number of the process. If not provided, it will be generated and returned in a response body. Format: uuid.

Request body

cleengCustomerIdinteger required

Customer identifier at Cleeng.

samsungInvoiceIdstring required

Invoice identifier - invoiceId field from Samsung purchase process. It is used as basis for purchase validation in Cleeng.

samsungCustomIdstring required

The identification number of a customer from Samsung system.

countryCodestring required

Country code retrieved from TV.

ipAddressstring

Customer's IP address. Accepted: IPv4, IPv6.

Response

202

messagestring

Example response

{
  "message": "Receipt accepted for processing",
  "data": {
    "correlationId": "a12345bc-6789-1de2-3f45-6g7891hi234j"
  }
}

Changes

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