ChargebeeAPI

One time purchase

Idempotency Supported
Try in API Explorer

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

Sample Request

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[0..n]
Parameters for product
pass parameters as product[<param name>]
customer[0..n]
Parameters for customer
pass parameters as customer[<param name>]

Returns

non_subscriptionNon subscription object
Resource object representing non_subscription