---
title: "Samsung TV"
method: POST
path: "/purchase-validation"
---

# Samsung TV

`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`

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>

## Headers

- `JWT or X-Publisher-Token` string, required
- `Correlation-id` string

## Request body

- object
  - `cleengCustomerId` integer, required: Customer identifier at Cleeng.
  - `samsungInvoiceId` string, required: Invoice identifier - `invoiceId` field from Samsung purchase process. It is used as basis for purchase validation in Cleeng.
  - `samsungCustomId` string, required: The identification number of a customer from Samsung system.
  - `countryCode` string, required: Country code retrieved from TV.
  - `ipAddress` string: Customer's IP address. Accepted: IPv4, IPv6.

## Response `202`

202

- object
  - `message` string
  - `data` object
    - `correlationId` string

## Other responses

- `400`: 400
- `422`: 422
- `500`: 500

---

[API](https://skmtc.dev/cleeng/apis/in-app-payments-new.md) - [All operations](https://skmtc.dev/cleeng/apis/in-app-payments-new/llms.txt) - [OpenAPI document](https://skmtc.dev/cleeng/apis/in-app-payments-new/revisions/0a15a6f57c71?raw)
