Orders

Sell one-time purchase products with inventory management and order fulfillment.

Overview

Orders represent one-time purchases of e-commerce products. Unlike subscriptions, orders are single transactions that can include multiple items (SKUs). Orders track payment status, fulfillment, and shipping information.


How It Works

  1. Customer places order - Cart items are converted to an order with payment
  2. Order is paid - Payment is processed and order status updates
  3. Fulfillment - Physical products are shipped, digital products are delivered
  4. Completion - Order is marked as fulfilled or returned

Example: A customer purchases a book and a branded mug. The system creates an order with two line items, processes payment, and marks the order for fulfillment by your warehouse team.


API Endpoints

MethodEndpointDescription
GET/api/v1/core/ordersList all orders
POST/api/v1/core/ordersCreate an order
GET/api/v1/core/orders/{id}Get an order
PUT/api/v1/core/orders/{id}Update an order

Order Statuses

StatusDescription
paidPayment received, ready for fulfillment
canceledOrder has been canceled
fulfilledAll items have been shipped/delivered
returnedOrder has been returned

Order Object

AttributeTypeDescription
idintegerUnique identifier for the order
user_idintegerID of the customer (expandable)
address_idintegerID of the shipping address (expandable)
amountintegerTotal amount in cents
currencystringThree-letter ISO currency code
statusstringOrder status (see statuses above)
itemsarrayArray of order items (expandable)
metadataobjectKey-value pairs for storing additional data
created_attimestampUnix timestamp of creation

Related Endpoints