Introducing the Better Auth Chargebee plugin: Use it to handle subscriptions, billing, and auth seamlessly.Try now
ChargebeechargebeeAPI

One time purchase

Idempotency Supported

This API is used to sync consumable, non-consumable, and non-renewing product payments in Chargebee.

URL Format

POST https://[site].chargebee.com/api/v2/non_subscriptions/{non-subscription-app-id}/one_time_purchase

Input Parameters

receipt
required, string, max chars=65k

Google Play Store: The purchase token taken from the Android device after successful creation of the in-app purchase.

Apple App Store: The Base64 encoded App Store in-app purchase receipt taken from the Apple device after successful creation of the in-app purchase.

product
Parameters for product
pass parameters as product[<param name>]
customer
Parameters for customer
pass parameters as customer[<param name>]

Returns

Non subscription object
Resource object representing non_subscription