Create an order

To create an order, you use orders resource. Order resources are used to handle customers' payments of previously defined offers. Orders expire after 24 hours unless the payment is captured. Payment method is required in order entity for payment but can be added in update order.

You should add paymentOperation and subscriptionId parameters for recurring orders.

Log in to see full request history
timestatususer agent
Retrieving recent requests…
LoadingLoading…

🚧

Providing both totalPrice and methodFee causes price calculation be based on those 2 parameters and ignore the offer price. This is useful when payment has already been made by an external service and the order (and subsequent payment) need to have the same price values as in the external service.

Body Params
int32

provided by Cleeng

int32
required

the identifier of Cleeng customer

string
required

the identifier for Cleeng offer

string
required

customer currency (e.g. USD)

string
required

2-letter country code. It is the country code of the country where purchase is made.

string

coupon code

string

tax rate in float (e.g. '0.23')

billingAddress
object
string

IP address of customer current location. Required conditionally when currency or country not supplied

string

operation type, e.g. recurring-payment (required on pair with subscriptionId)

string

the identifier of Cleeng subscription, e.g. 123123123 (required on pair with paymentOperation)

string

total price of the order (required on pair with methodFee)

string

payment method fee (required on pair with totalPrice)

boolean

Whether an order refers to gift purchase

deliveryDetails
object
Headers
string
Defaults to application/json
string
required
Response

Language
Credentials
Click Try It! to start a request and see the response here! Or choose an example:
application/json