API Reference

Add one-time charges

A one-time charge is a special subscription item that applies one time and saves the history of a one-time charge and is not saved in subscription items

Here are the enums that are contained in the answer:

namevalue
discounts[type]FixedAmount, Percentage

Error codes:

NotFoundA subscription with such an Id cannot be found
ItemPricesNotFoundA Price for one-time charge not found
Path Params
string
required
Defaults to your-site-name-1

Name of your project

string
required

Subscription id

Body Params
string

Id of the item price

int32

The freeQuantity of the plan-item as specified for the item price

int32

The quantity of the item purchased

int32

The total amount for the item in cents

string

The total amount for the item in cents

discount
array of objects

Discounts for one time charge

discount
Responses

Language
Credentials
:
Choose an example:
application/json