cimplify

Orders

List, retrieve, and cancel orders. Orders are created through the checkout flow.

GET/api/v1/orders

List Orders

Returns orders for the authenticated customer.

Example Request

curl
curl https://storefront.cimplify.io/api/v1/orders \
  -H "X-API-Key: pk_test_your_api_key"

Example Response

JSON
{
  "success": true,
  "data": [
    {
      "id": "ord_abc123",
      "order_number": "ORD-1234",
      "status": "confirmed",
      "order_type": "delivery",
      "items": [
        {
          "product_id": "prod_abc123",
          "product_name": "Espresso",
          "variant_name": "Double",
          "quantity": 2,
          "unit_price": "6.00",
          "total": "12.00"
        }
      ],
      "subtotal": "25.00",
      "tax_amount": "2.22",
      "total_price": "27.22",
      "currency": "USD",
      "customer_name": "Jane Smith",
      "created_at": "2025-01-15T10:30:00Z"
    }
  ],
  "meta": {
    "pagination": {
      "total_count": 5,
      "page_size": 20,
      "current_page": 1
    }
  }
}
GET/api/v1/orders/{id}

Get Order

Example Request

curl
curl https://storefront.cimplify.io/api/v1/orders/ord_abc123 \
  -H "X-API-Key: pk_test_your_api_key"
POST/api/v1/orders/{id}/cancel

Cancel Order

Example Request

curl
curl -X POST https://storefront.cimplify.io/api/v1/orders/ord_abc123/cancel \
  -H "X-API-Key: pk_test_your_api_key"

Order Statuses

StatusDescription
pendingOrder received, awaiting confirmation
confirmedOrder confirmed by business
preparingOrder is being prepared
readyReady for pickup or delivery
completedOrder fulfilled
cancelledOrder cancelled

Order Object

FieldTypeDescription
idstringUnique order identifier
order_numberstringHuman-readable order number
statusstringCurrent order status
order_typestringdelivery, pickup, or dine_in
itemsarrayLine items
subtotalstringSubtotal before tax
tax_amountstringTax amount
total_pricestringFinal total
currencystringISO 4217 currency code
customer_namestringCustomer name
created_atstringISO 8601 timestamp