{"openapi":"3.0.3","info":{"title":"Sabiwave Public API","description":"For a business's own website and integrations. Authenticate with the business's API keys.","version":"1.0.0"},"servers":[{"url":"/api/v1/public"}],"components":{"securitySchemes":{"secretKey":{"type":"http","scheme":"bearer","description":"A secret key (sk_live_… or sk_test_…). For server-to-server calls only."},"publicKey":{"type":"apiKey","in":"header","name":"X-Sabiwave-Public-Key","description":"A publishable key (pk_live_… or pk_test_…). Safe in a browser; read-only."}},"schemas":{"SuccessResponse":{"type":"object","properties":{"success":{"type":"boolean","example":true},"message":{"type":"string"},"data":{"type":"object"}}},"ErrorResponse":{"type":"object","properties":{"success":{"type":"boolean","example":false},"message":{"type":"string","example":"email must be a valid email"},"error":{"type":"object","properties":{"name":{"type":"string","example":"ValidationError"},"code":{"type":"string","example":"VALIDATION_ERROR"},"statusCode":{"type":"integer","example":422},"details":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","example":"email"},"message":{"type":"string","example":"email must be a valid email"},"in":{"type":"string","example":"body"}}}},"retryAfter":{"type":"integer","description":"Seconds to wait, on a 429 or 503."}}},"requestId":{"type":"string","description":"The same value as the X-Request-Id header. Quote it when asking for help."}}}},"responses":{"Unauthorized":{"description":"You are not signed in, or your session has expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"Forbidden":{"description":"You do not have permission to do this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"NotFound":{"description":"We could not find that.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"ValidationError":{"description":"Some fields are not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"TooManyRequests":{"description":"Too many requests. Wait and try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"security":[{"secretKey":[]},{"publicKey":[]}],"paths":{"/ping":{"get":{"tags":["Meta"],"summary":"Check a key","description":"Which business the key belongs to, its mode (test or live), its type (secret or publishable) and the scopes it holds: the first call of any integration.","responses":{"200":{"description":"The key's business and mode.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"business":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"currency":{"type":"string"}}},"mode":{"type":"string"},"keyType":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}}}}}},"example":{"success":true,"data":{"business":{"id":"01a22958-fb49-77e1-a59f-6addc8322bf0","name":"Accra Craft House","currency":"GHS"},"mode":"live","keyType":"secret","scopes":["catalog:read","promotions:read"]}}}}},"401":{"description":"MISSING_API_KEY, INVALID_API_KEY, API_KEY_REVOKED or API_KEY_EXPIRED."}}}},"/catalog/products":{"get":{"tags":["Catalog"],"summary":"Products on the website","description":"Only products the business shows on its website, active, by `cursor` (from `nextCursor`; one this API didn't give out is 422). Prices in the business's currency, major units. `description` is the website description, null until written. Stock is `inStock` and `stockLevel` (in_stock, low_stock, out_of_stock), never a count, at the store website orders sell from (the first open one): low at the reorder point, 5 where none is set. Scope `catalog:read`.","responses":{"200":{"description":"The products and `nextCursor`.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"products":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"},"description":{"nullable":true},"price":{"type":"number"},"category":{"nullable":true},"images":{"type":"array","items":{}},"inStock":{"type":"boolean"},"stockLevel":{"type":"string"},"variants":{"type":"array","items":{}},"seo":{"type":"object","properties":{"title":{"nullable":true},"description":{"nullable":true}}}}}},"nextCursor":{"nullable":true}}}}},"example":{"success":true,"data":{"products":[{"id":"01a22958-fc89-71eb-88eb-9a30b6e040d7","name":"Chocolate Box","slug":"chocolate-box","description":null,"price":1075,"category":null,"images":[],"inStock":true,"stockLevel":"in_stock","variants":[],"seo":{"title":null,"description":null}}],"nextCursor":null}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"422":{"$ref":"#/components/responses/ValidationError"}},"parameters":[{"in":"query","name":"cursor","schema":{"type":"string","maxLength":40}},{"in":"query","name":"limit","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"in":"query","name":"categoryId","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"search","schema":{"type":"string","maxLength":100}},{"in":"query","name":"minPrice","schema":{"type":"number","minimum":0,"maximum":10000000000}},{"in":"query","name":"maxPrice","schema":{"type":"number","minimum":0,"maximum":10000000000}}]}},"/catalog/products/{idOrSlug}":{"get":{"tags":["Catalog"],"summary":"A product on the website","description":"By id or slug, with its variants and images. A product not shown on the website is 404. Scope `catalog:read`.","responses":{"200":{"description":"The product.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"product":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"},"description":{"nullable":true},"price":{"type":"number"},"category":{"nullable":true},"images":{"type":"array","items":{}},"inStock":{"type":"boolean"},"stockLevel":{"type":"string"},"variants":{"type":"array","items":{}},"seo":{"type":"object","properties":{"title":{"nullable":true},"description":{"nullable":true}}}}}}}}},"example":{"success":true,"data":{"product":{"id":"01a22958-fc89-71eb-88eb-9a30b6e040d7","name":"Chocolate Box","slug":"chocolate-box","description":null,"price":1075,"category":null,"images":[],"inStock":true,"stockLevel":"in_stock","variants":[],"seo":{"title":null,"description":null}}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"description":"PRODUCT_NOT_FOUND."},"422":{"$ref":"#/components/responses/ValidationError"}},"parameters":[{"in":"path","name":"idOrSlug","required":true,"schema":{"type":"string","maxLength":220}}]}},"/catalog/categories":{"get":{"tags":["Catalog"],"summary":"Categories on the website","description":"Active categories with at least one product on the website. Scope `catalog:read`.","responses":{"200":{"description":"The categories.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"categories":{"type":"array","items":{}}}}}},"example":{"success":true,"data":{"categories":[]}}}}},"401":{"$ref":"#/components/responses/Unauthorized"}}}},"/inventory":{"get":{"tags":["Inventory"],"summary":"Exact stock","description":"Up to 50 products' quantities, and their variants', at the store website orders sell from (`store`, the first open one; null when none is open). A combo counts the sets its components make; a service is `null`, never counted. Secret key with `inventory:read` only: a count is competitive information.","responses":{"200":{"description":"The levels.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"store":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}}},"levels":{"type":"array","items":{"type":"object","properties":{"productId":{"type":"string","format":"uuid"},"quantity":{"type":"number"},"variants":{"type":"array","items":{}}}}}}}}},"example":{"success":true,"data":{"store":{"id":"01a22958-fb5e-7492-ba72-198aa6e69e93","name":"Main store"},"levels":[{"productId":"01a22958-fc89-71eb-88eb-9a30b6e040d7","quantity":34,"variants":[]}]}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"422":{"$ref":"#/components/responses/ValidationError"}},"parameters":[{"in":"query","name":"productIds","required":true,"schema":{"type":"string","pattern":"^[0-9a-f-]{36}(,[0-9a-f-]{36}){0,49}$"}}]}},"/customers":{"post":{"tags":["Customers"],"summary":"Add or find a customer","description":"By phone first, then email, through the same matcher a sale uses: an existing customer is returned (200), a new one is made (201). With a test key, a dry run: 200 with `test: true`, the customer as they would be (a new one without `id`), nothing saved. Scope `customers:write`.","responses":{"200":{"description":"The customer they already were, `created: false`; or a test key's dry run, `test: true`."},"201":{"description":"A new customer, `created: true`."},"401":{"$ref":"#/components/responses/Unauthorized"},"422":{"$ref":"#/components/responses/ValidationError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"phone":{"type":"string","maxLength":30},"email":{"type":"string","format":"email","maxLength":254},"address":{"type":"string","maxLength":500}},"required":["name"],"description":"Give at least one of `phone`, `email`."}}}}}},"/customers/{id}":{"get":{"tags":["Customers"],"summary":"A customer","description":"Scope `customers:read`.","responses":{"200":{"description":"The customer.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"customer":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"phone":{"type":"string"},"email":{"nullable":true},"address":{"nullable":true},"createdAt":{"type":"string","format":"date-time"}}}}}}},"example":{"success":true,"data":{"customer":{"id":"01a22959-0221-71e6-b729-87965658f63e","name":"Esi Website","phone":"+233245556666","email":null,"address":null,"createdAt":"2026-11-29T22:07:08.833Z"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"description":"CUSTOMER_NOT_FOUND."},"422":{"$ref":"#/components/responses/ValidationError"}},"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}}]}},"/orders":{"post":{"tags":["Orders"],"summary":"Place an order","description":"Items by product and quantity: every price comes from the business, never from you. With a live key it answers 202 and the order is made in the background, the same way as a sale at the POS (stock taken under one guard): poll `/orders/{id}/status`, or wait for the `order.created` webhook. With a test key it answers 200 with what the order would come to, and makes nothing. `paymentStatus: paid` says you collected it, with `paymentReference`. Send an `Idempotency-Key`. Scope `orders:write`; 60 a minute per key.","responses":{"200":{"description":"A test key's dry run: the order as it would be, `test: true`."},"202":{"description":"The order's id, queued.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"status":{"type":"string"}}}}},"example":{"success":true,"message":"Order received: poll its status, or wait for the order.created webhook.","data":{"id":"01a22959-020d-788d-973e-d2ef8f102112","status":"queued"}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"409":{"description":"INSUFFICIENT_STOCK, STORE_CLOSED or NO_OPEN_STORE."},"422":{"$ref":"#/components/responses/ValidationError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"customer":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":150},"phone":{"type":"string","maxLength":30},"email":{"type":"string","format":"email","maxLength":254},"address":{"type":"string","maxLength":500}},"required":["name"],"description":"Give at least one of `phone`, `email`."},"items":{"type":"array","items":{"type":"object","properties":{"productId":{"type":"string","format":"uuid"},"variantId":{"type":"string","format":"uuid"},"quantity":{"type":"number","minimum":0,"exclusiveMinimum":true,"maximum":100000}},"required":["productId","quantity"]},"minItems":1,"maxItems":100},"deliveryMethod":{"type":"string","enum":["delivery","pickup"]},"delivery":{"type":"object","properties":{"address":{"type":"string","maxLength":500},"recipientName":{"type":"string","maxLength":150},"recipientPhone":{"type":"string","maxLength":20},"note":{"type":"string","maxLength":500}}},"promoCode":{"type":"string","maxLength":40},"deliveryFee":{"type":"number","minimum":0,"maximum":10000000000},"paymentStatus":{"type":"string","enum":["pending","paid"],"default":"pending"},"paymentMethod":{"type":"string","enum":["bank_transfer","card","mobile_money","other"]},"paymentReference":{"type":"string","maxLength":100},"notes":{"type":"string","maxLength":1000}},"required":["customer","items"]}}}}},"get":{"tags":["Orders"],"summary":"Website orders","description":"The business's orders from its website, newest first, by `cursor` and status. Scope `orders:read`.","responses":{"200":{"description":"The orders and `nextCursor`.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"orders":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"orderNumber":{"type":"string"},"status":{"type":"string"},"paymentStatus":{"type":"string"},"channel":{"type":"string"},"customer":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"phone":{"type":"string"},"email":{"nullable":true}}},"items":{"type":"array","items":{"type":"object","properties":{"productId":{"type":"string","format":"uuid"},"name":{"type":"string"},"variant":{"nullable":true},"quantity":{"type":"number"},"unitPrice":{"type":"number"},"discount":{"type":"number"},"total":{"type":"number"}}}},"subtotal":{"type":"number"},"discount":{"type":"number"},"deliveryFee":{"type":"number"},"tax":{"type":"number"},"total":{"type":"number"},"amountPaid":{"type":"number"},"promotions":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string"},"name":{"type":"string"},"amount":{"type":"number"}}}},"deliveryAddress":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}}}},"nextCursor":{"nullable":true}}}}},"example":{"success":true,"data":{"orders":[{"id":"01a22959-020d-788d-973e-d2ef8f102112","orderNumber":"ACH-20261129-0004","status":"pending","paymentStatus":"paid","channel":"website","customer":{"id":"01a22959-0221-71e6-b729-87965658f63e","name":"Esi Website","phone":"+233245556666","email":null},"items":[{"productId":"01a22958-fc89-71eb-88eb-9a30b6e040d7","name":"Chocolate Box","variant":null,"quantity":1,"unitPrice":1075,"discount":500,"total":575}],"subtotal":1075,"discount":500,"deliveryFee":0,"tax":40.12,"total":575,"amountPaid":575,"promotions":[{"kind":"automatic","name":"Adinkra Week","amount":500}],"deliveryAddress":"Osu, Accra","createdAt":"2026-11-29T22:07:08.844Z"}],"nextCursor":null}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"422":{"$ref":"#/components/responses/ValidationError"}},"parameters":[{"in":"query","name":"cursor","schema":{"type":"string","maxLength":40}},{"in":"query","name":"limit","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"in":"query","name":"status","schema":{"type":"string","enum":["pending","confirmed","preparing","ready","shipped","in_transit","delivered","returned","cancelled"]}}]}},"/orders/{id}":{"get":{"tags":["Orders"],"summary":"A website order","description":"Scope `orders:read`.","responses":{"200":{"description":"The order.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"order":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"orderNumber":{"type":"string"},"status":{"type":"string"},"paymentStatus":{"type":"string"},"channel":{"type":"string"},"customer":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"phone":{"type":"string"},"email":{"nullable":true}}},"items":{"type":"array","items":{"type":"object","properties":{"productId":{"type":"string","format":"uuid"},"name":{"type":"string"},"variant":{"nullable":true},"quantity":{"type":"number"},"unitPrice":{"type":"number"},"discount":{"type":"number"},"total":{"type":"number"}}}},"subtotal":{"type":"number"},"discount":{"type":"number"},"deliveryFee":{"type":"number"},"tax":{"type":"number"},"total":{"type":"number"},"amountPaid":{"type":"number"},"promotions":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string"},"name":{"type":"string"},"amount":{"type":"number"}}}},"deliveryAddress":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}}}}}}},"example":{"success":true,"data":{"order":{"id":"01a22959-020d-788d-973e-d2ef8f102112","orderNumber":"ACH-20261129-0004","status":"pending","paymentStatus":"paid","channel":"website","customer":{"id":"01a22959-0221-71e6-b729-87965658f63e","name":"Esi Website","phone":"+233245556666","email":null},"items":[{"productId":"01a22958-fc89-71eb-88eb-9a30b6e040d7","name":"Chocolate Box","variant":null,"quantity":1,"unitPrice":1075,"discount":500,"total":575}],"subtotal":1075,"discount":500,"deliveryFee":0,"tax":40.12,"total":575,"amountPaid":575,"promotions":[{"kind":"automatic","name":"Adinkra Week","amount":500}],"deliveryAddress":"Osu, Accra","createdAt":"2026-11-29T22:07:08.844Z"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"description":"ORDER_NOT_FOUND."},"422":{"$ref":"#/components/responses/ValidationError"}},"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}}]}},"/orders/{id}/status":{"get":{"tags":["Orders"],"summary":"Where a placed order stands","description":"`queued`, `processing`, `completed` (with the order) or `failed` (with the refusal, such as INSUFFICIENT_STOCK). Scope `orders:read` or `orders:write`.","responses":{"200":{"description":"The status.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"status":{"type":"string"},"order":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"orderNumber":{"type":"string"},"status":{"type":"string"},"paymentStatus":{"type":"string"},"channel":{"type":"string"},"customer":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"phone":{"type":"string"},"email":{"nullable":true}}},"items":{"type":"array","items":{"type":"object","properties":{"productId":{"type":"string","format":"uuid"},"name":{"type":"string"},"variant":{"nullable":true},"quantity":{"type":"number"},"unitPrice":{"type":"number"},"discount":{"type":"number"},"total":{"type":"number"}}}},"subtotal":{"type":"number"},"discount":{"type":"number"},"deliveryFee":{"type":"number"},"tax":{"type":"number"},"total":{"type":"number"},"amountPaid":{"type":"number"},"promotions":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string"},"name":{"type":"string"},"amount":{"type":"number"}}}},"deliveryAddress":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}}}}}}},"example":{"success":true,"data":{"status":"completed","order":{"id":"01a22959-020d-788d-973e-d2ef8f102112","orderNumber":"ACH-20261129-0004","status":"pending","paymentStatus":"paid","channel":"website","customer":{"id":"01a22959-0221-71e6-b729-87965658f63e","name":"Esi Website","phone":"+233245556666","email":null},"items":[{"productId":"01a22958-fc89-71eb-88eb-9a30b6e040d7","name":"Chocolate Box","variant":null,"quantity":1,"unitPrice":1075,"discount":500,"total":575}],"subtotal":1075,"discount":500,"deliveryFee":0,"tax":40.12,"total":575,"amountPaid":575,"promotions":[{"kind":"automatic","name":"Adinkra Week","amount":500}],"deliveryAddress":"Osu, Accra","createdAt":"2026-11-29T22:07:08.844Z"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/ValidationError"}},"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}}]}},"/orders/{id}/cancel":{"post":{"tags":["Orders"],"summary":"Cancel a website order","description":"With a reason; its stock goes back. One with money taken is cancelled from the dashboard (409 ORDER_PAID). With a test key, a dry run: the order as it would be, `test: true`, nothing changed. Scope `orders:write`.","responses":{"200":{"description":"Cancelled; or a test key's dry run, `test: true`."},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"description":"ORDER_PAID or ORDER_NOT_CANCELLABLE."},"422":{"$ref":"#/components/responses/ValidationError"}},"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","minLength":3,"maxLength":300}},"required":["reason"]}}}}}},"/promotions/validate":{"post":{"tags":["Promotions"],"summary":"Check a promo code against a basket","description":"What `code` and the business's automatic discounts take off these items, priced from the catalogue as checkout prices them. Stateless: nothing is reserved; the order redeems it. A refused code says why, as a stable `reason` (PROMO_EXPIRED, PROMO_NOT_STARTED, PROMO_MIN_SPEND, PROMO_EXHAUSTED, PROMO_NOT_STACKABLE, PROMO_WRONG_CHANNEL, PROMO_NOT_APPLICABLE, PROMO_NOT_FOUND, PROMO_ALREADY_USED, PROMO_FIRST_ORDER_ONLY) and a `message` to show. Per-customer limits are checked at checkout, or now when a secret key names `customerId`. Scope `promotions:read`, so a publishable key can call it from the browser.","responses":{"200":{"description":"`valid` (null when no code was sent), the code's `discountAmount`, the `automatic` discounts and `totalDiscount`."},"401":{"$ref":"#/components/responses/Unauthorized"},"422":{"$ref":"#/components/responses/ValidationError"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","maxLength":40},"items":{"type":"array","items":{"type":"object","properties":{"productId":{"type":"string","format":"uuid"},"variantId":{"type":"string","format":"uuid"},"quantity":{"type":"number","minimum":0,"exclusiveMinimum":true,"maximum":100000}},"required":["productId","quantity"]},"minItems":1,"maxItems":100},"customerId":{"type":"string","format":"uuid"}},"required":["items"]}}}}}},"/customers/{id}/orders":{"get":{"tags":["Customers"],"summary":"A customer's orders","description":"Newest first, by `cursor`. Scope `customers:read`.","responses":{"200":{"description":"The orders and `nextCursor`.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"orders":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"orderNumber":{"type":"string"},"status":{"type":"string"},"channel":{"type":"string"},"total":{"type":"number"},"amountPaid":{"type":"number"},"createdAt":{"type":"string","format":"date-time"}}}},"nextCursor":{"nullable":true}}}}},"example":{"success":true,"data":{"orders":[{"id":"01a22959-020d-788d-973e-d2ef8f102112","orderNumber":"ACH-20261129-0004","status":"pending","channel":"website","total":575,"amountPaid":575,"createdAt":"2026-11-29T22:07:08.844Z"}],"nextCursor":null}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/ValidationError"}},"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}},{"in":"query","name":"cursor","schema":{"type":"string","maxLength":40}},{"in":"query","name":"limit","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}]}}},"tags":[]}