An order is a collection of items, along with customer and shipping information, that has been finalized with a payment or attempted payment. The Order object contains a record of the purchase agreement between a shopper and a merchant.
Orders can contain both digital or physical products. Digital items are delivered via email and do not require a shipping address, whereas physical items require a shipping address and a delivery method.
BigCommerce offers two possible workflows for creating orders via the API: the Server-to-Server Checkout API or the Orders API.
An order can be created by sending a POST request to:
https://api.bigcommerce.com/stores/{{store_hash}}/v2/orders
customer_id in the create order requestThe response will have abbreviated order contents with sub-resources available to get the full order information.
The order is automatically set to a status of 1 or Pending.
The response also returns an id which is the order id.
See Orders Overview for more information on Order Statuses
To retrieve details of a specific order, send a GET request to /orders/{order_id}.
Update an order with a PUT request to /orders/{order_id}
See Resources or the Update an Order section in the Developer Documentation for further reference on what can be updated on an order.
To archive (delete) a specific order, send a DELETE request to /orders/{order_id}.
ALL orders can be deleted with a DELETE request to /orders