---
title: "Android [Deprecated]"
method: POST
path: "/android/payment"
---

# Android \[Deprecated\]

`POST /android/payment`

## Request

- Base URL: `https://api.cleeng.com`
- URL: `https://api.cleeng.com/android/payment`
- Auth: API key in header `X-Publisher-Token`

**This endpoint is deprecated.** <br /><br /> Use this endpoint to notify Cleeng about the successful Android in-app payment (Initial Purchase) and create a subscription in Cleeng. <br><br> The relevant endpoints are: <br> - Production URL: https://api.cleeng.com/android/payment <br>- Sandbox URL: https://api.sandbox.cleeng.com/android/payment <br><br> **Note:** <br> For integrations utilizing <<glossary:JWT>> authorization please use the MediaStore SDK API [Android Payment](ref:android-payment) 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)
  - `receipt` object, required
    - `productId` string, required: Your Google Play product ID
    - `purchaseToken` string, required: Purchase Token from Google Play response after a successful purchase
    - `packageName` string, required: Your Google Play package name
    - `orderId` string: Order ID from Purchase object from Google Play response after a successful purchase (an optional parameter; if omitted, it is fetched from a receipt)
  - `ipAddress` string: Customer's IP address (an optional parameter). Accepted: IPv4, IPv6.
  - `couponCode` string: A coupon code modifies the reported amount (an optional parameter, used in introductory offers)

## Response `200`

200

- object
  - `message` string

## Other responses

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

---

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