Use /orders
endpoint to create an order.
Orders 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
and fetch in /payment-methods
.
AUTHORIZATION
Authorization with JWT is required.
Warning!
Customer country and currency or customerIP are required for correct price calculation because tax rate depends on the country. If none of these params are given, the price will be calculated for request IP address. If all of them are given, the given country is the most important.
Please note that when using Cleeng Merchant, customerIP should be available for the purpose of proper tax calculation in the US and Canada. It is recommended that customerIP is passed in the register, login and create order methods.
Free Purchases
Please note that when a free trial period or 100% coupon is used for a given offer, the price is not taxable. Therefore, the price to be displayed is excluding tax.
After the free trial period ends or a 100% coupon is redeemed, the price for the following periods will include tax (if applicable).