---
title: "Roku"
method: POST
path: "/roku/payment"
---

# Roku

`POST /roku/payment`

Use this endpoint to notify Cleeng about the successful Roku in-app payment (Initial Purchase) and create a subscription in Cleeng. <br><br> The relevant endpoints are: <br>- Production URL: https://api.cleeng.com/roku/payment <br>- Sandbox URL: https://api.sandbox.cleeng.com/roku/payment <br><br> **Note:** <br> For integrations utilizing <<glossary:JWT>> authorization please use the MediaStore SDK API [Roku Payment](https://developers.cleeng.com/reference/roku-payment-ms) endpoint.

## Headers

- `Content-Type` string
- `X-Publisher-Token` string

## Request body

- object
  - `customerEmail` string, required — Customer's email
  - `offerId` string, required — An identifier of a Cleeng offer (e.g. E123123123_US)
  - `order` object, required
    - `purchaseId` string, required — It contains the unique transaction ID of the transaction; channels often use this value to entitle users to purchased subscriptions, etc. in their backend systems
  - `ipAddress` string — Customer's IP address (an optional parameter). Accepted: IPv4, IPv6.

## Response `200`

200

- object
  - `message` string

## Other responses

- `400` — 400
- `401` — 401
- `422` — 422
- `500` — 500

---

[API](https://skmtc.net/cleeng/apis/mediastore-api.md) · [All operations](https://skmtc.net/cleeng/apis/mediastore-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cleeng/mediastore-api/versions/00cbfe7998a4/schema)
