Create Order

This API endpoint is used to create orders.

📘

X-APP-X

It is a header parameter to know from what medium the order was created for example, web, ios app, android app, etc.

Using Ordering SDK


const response = await ordering.orders().save(data);

❗️

Common issue when creating orders via API

In the response, the customer_id will always come null if there isn't an Authorization Bearer Token sent in the header.

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