Create order

Use /orders endpoint to create an order.

Orders are used to handle customers' payments of previously defined offers. Orders expire after 15 minutes 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 with JWTJWT - JWT (JSON Web Token) - open standard (RFC 7519) that defines a compact and self-contained way for securely transmitting information between parties as a JSON object. This information can be verified and trusted because it is digitally signed. In Cleeng, JWT payload contains: customerId, publisherId, expiration date. JWT is valid for 15 minutes and after that time a refresh token mechanism can be used. is required.



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 customerIP 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.

Click Try It! to start a request and see the response here!