{"openapi":"3.1.0","info":{"title":"Cartirra API","description":"The Cartirra API lets your server open checkouts, follow orders and payments, refund, and read your balance.\n\n- **Authentication:** `Authorization: Bearer sk_test_…` or `sk_live_…`. Test and live data never mix; the key decides.\n- **snake_case:** every field, query parameter and value is snake_case, and error codes are lower snake_case (`bill_not_open`). Your `metadata` comes back exactly as you sent it.\n- **Errors:** always `{ \"error\": { \"code\", \"message\", \"details?\", \"request_id\" } }`.\n- **Money:** decimal strings, `{ \"amount\": \"10500.00\", \"currency\": \"NGN\" }`.\n- **Lists:** newest first, `limit` (1–100) and `cursor` (the previous page's `next_cursor`).\n- **Retries:** send an `Idempotency-Key` on creates; replays return the first response.","version":"1.0.0","contact":{"name":"Cartirra developers","url":"https://cartirra.com","email":"developers@cartirra.com"}},"servers":[{"url":"https://api.cartirra.com","description":"Cartirra API (test and live; your key decides)"}],"tags":[{"name":"Checkout sessions","description":"Open a checkout for a cart; the shopper pays in Cartirra Popup on your page or through Cartirra Redirect."},{"name":"Payment links","description":"Carts you share as a link (WhatsApp, Instagram, SMS): no code needed."},{"name":"Tables","description":"Pay at table: your tables and the QR code printed on each."},{"name":"Bills","description":"Pay at table: bills guests pay from the table QR (all at once or split), the live board, refunds and the day’s reconciliation."},{"name":"Orders","description":"Orders placed through checkout: read them and move them through fulfilment, and answer problems shoppers report."},{"name":"Warranties","description":"Warranties on what you sold: sent on checkout lines or added afterwards. Shoppers keep them in their Cartirra account."},{"name":"Payments","description":"The payment behind an order (bank transfer or card)."},{"name":"Refunds","description":"Return money to the shopper, in full or in part."},{"name":"Receipts","description":"Receipts and credit notes issued for orders."},{"name":"Customers","description":"Shoppers who shared their details with your business."},{"name":"Promotions","description":"Discount codes and automatic promotions."},{"name":"Gift cards","description":"Issue and list gift cards."},{"name":"Reviews","description":"Ratings shoppers left on completed orders."},{"name":"Balance","description":"Your Cartirra balance and its movements."},{"name":"Payouts","description":"Money sent from your balance to your bank account."},{"name":"Stores","description":"Your business's stores."},{"name":"Events","description":"Everything Cartirra sent (or would send) to your webhook endpoint."},{"name":"Account","description":"The business and mode your key belongs to."},{"name":"Webhooks","description":"Events Cartirra sends to your endpoint."}],"paths":{"/v1/me/context":{"get":{"operationId":"getContext","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestContextResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"Retrieve key context","tags":["Account"],"description":"Current actor, business, mode, permissions, and the plan (features, limits, usage) for every role.","x-permissions":[]}},"/v1/stores":{"get":{"operationId":"listStores","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/StoreResponse"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"List stores","tags":["Stores"],"x-permissions":["stores:read"],"description":"Stores (headquarters first).","parameters":[{"name":"status","required":false,"in":"query","schema":{"type":"string","enum":["active","deactivated"]}},{"name":"q","required":false,"in":"query","schema":{"type":"string"}}]}},"/v1/stores/{store_id}":{"get":{"operationId":"getStore","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"Retrieve a store","tags":["Stores"],"x-permissions":["stores:read"],"parameters":[{"name":"store_id","required":true,"in":"path","schema":{"type":"string"}}]}},"/v1/events":{"get":{"operationId":"listEvents","responses":{"200":{"description":"One page, newest first. Pass `next_cursor` as `cursor` for the next page; null on the last page.","content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor","total"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/EventResponse"}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page"},"total":{"type":"integer","minimum":0,"description":"Rows matching the filters across every page"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"List events","tags":["Events"],"x-permissions":["developers:read"],"description":"List events, newest first.","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":100,"default":25,"type":"integer"}},{"name":"cursor","required":false,"in":"query","description":"next_cursor from the previous page","schema":{"format":"uuid","type":"string"}},{"name":"type","required":false,"in":"query","schema":{"type":"string","enum":["order.created","order.updated","payment.succeeded","payment.failed","payment.expired","refund.succeeded","refund.failed","payout.paid","payout.failed","webhook.test","customer.created","customer.updated","customer.consent_revoked","bill.opened","bill.updated","bill.payment_received","bill.closed","bill.voided","order.issue_reported","order.issue_updated","warranty.created","warranty.updated","warranty.voided","order.accepted","order.rejected","loyalty.reward_redeemed","loyalty.tier_changed"]}},{"name":"status","required":false,"in":"query","description":"The latest delivery's status","schema":{"type":"string","enum":["pending","delivered","retrying","failed"]}},{"name":"q","required":false,"in":"query","description":"Event type fragment, an evt_… id, or the HTTP status your endpoint answered (\"500\")","schema":{"type":"string"}},{"name":"from","required":false,"in":"query","description":"Created at or after","schema":{"format":"date-time","type":"string"}},{"name":"to","required":false,"in":"query","description":"Created before","schema":{"format":"date-time","type":"string"}}]}},"/v1/events/{id}":{"get":{"operationId":"getEvent","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventDetailResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"Retrieve an event","tags":["Events"],"x-permissions":["developers:read"],"description":"Retrieve an event and its webhook deliveries.","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}]}},"/v1/orders/{id}/related":{"get":{"operationId":"getOrderRelated","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderRelatedResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"Retrieve order extras","tags":["Orders"],"x-permissions":["orders:read"],"description":"Promotions used, loyalty points redeemed and earned, and the review for an order.","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}]}},"/v1/customers/{id}/activity":{"get":{"operationId":"listCustomerActivity","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerActivityResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"List customer activity","tags":["Customers"],"x-permissions":["customers:read"],"description":"The customer's activity log: orders, promotions, points, store credit, reviews.","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"before","required":false,"in":"query","description":"Entries before this time (paging)","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"maximum":100,"default":25,"type":"number"}}]}},"/v1/customers/{id}/addresses":{"get":{"operationId":"listCustomerAddresses","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CustomerAddressResponse"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"List customer addresses","tags":["Customers"],"x-permissions":["customers:read"],"description":"Delivery addresses used in this customer's orders with the business.","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}]}},"/v1/customers":{"get":{"operationId":"listCustomers","responses":{"200":{"description":"One page, newest first. Pass `next_cursor` as `cursor` for the next page; null on the last page.","content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor","total"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CustomerResponse"}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page"},"total":{"type":"integer","minimum":0,"description":"Rows matching the filters across every page"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"List customers","tags":["Customers"],"x-permissions":["customers:read"],"description":"List customers who shared their details with you, newest first.","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":100,"default":25,"type":"integer"}},{"name":"cursor","required":false,"in":"query","description":"next_cursor from the previous page","schema":{"format":"uuid","type":"string"}},{"name":"q","required":false,"in":"query","description":"Name, email or phone","schema":{"type":"string"}},{"name":"status","required":false,"in":"query","schema":{"type":"string","enum":["active","blocked"]}},{"name":"from","required":false,"in":"query","description":"Became a customer at or after","schema":{"format":"date-time","type":"string"}},{"name":"to","required":false,"in":"query","description":"Became a customer before","schema":{"format":"date-time","type":"string"}}]}},"/v1/customers/{id}":{"get":{"operationId":"getCustomer","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"Retrieve a customer","tags":["Customers"],"x-permissions":["customers:read"],"parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}]}},"/v1/orders":{"get":{"operationId":"listOrders","responses":{"200":{"description":"One page, newest first. Pass `next_cursor` as `cursor` for the next page; null on the last page.","content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor","total"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/OrderResponse"}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page"},"total":{"type":"integer","minimum":0,"description":"Rows matching the filters across every page"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"List orders","tags":["Orders"],"x-permissions":["orders:read"],"description":"List orders, newest first, with the total matching the filters.","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":100,"default":25,"type":"integer"}},{"name":"cursor","required":false,"in":"query","description":"next_cursor from the previous page","schema":{"format":"uuid","type":"string"}},{"name":"status","required":false,"in":"query","schema":{"type":"string","enum":["pending","processing","out_for_delivery","ready_for_pickup","completed","cancelled"]}},{"name":"payment_status","required":false,"in":"query","schema":{"type":"string","enum":["pending","paid","failed","partially_refunded","refunded"]}},{"name":"acceptance","required":false,"in":"query","description":"Orders the store accepts before preparing them","schema":{"type":"string","enum":["awaiting","accepted","rejected"]}},{"name":"store_id","required":false,"in":"query","schema":{"format":"uuid","type":"string"}},{"name":"customer_id","required":false,"in":"query","schema":{"format":"uuid","type":"string"}},{"name":"q","required":false,"in":"query","description":"Order reference","schema":{"type":"string"}},{"name":"fulfilment_type","required":false,"in":"query","schema":{"type":"string","enum":["delivery","pickup","dine_in","courier"]}},{"name":"payment_method","required":false,"in":"query","schema":{"type":"string","enum":["bank_transfer","card","wallet","pay_on_delivery","pay_for_me","cartirra_app"]}},{"name":"from","required":false,"in":"query","description":"Placed at or after","schema":{"format":"date-time","type":"string"}},{"name":"to","required":false,"in":"query","description":"Placed before","schema":{"format":"date-time","type":"string"}}]}},"/v1/orders/{id}":{"get":{"operationId":"getOrder","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"Retrieve an order","tags":["Orders"],"x-permissions":["orders:read"],"parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}]}},"/v1/orders/{id}/activity":{"get":{"operationId":"listOrderActivity","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OrderHistoryResponse"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"List order activity","tags":["Orders"],"x-permissions":["orders:read"],"description":"An order's activity log, oldest first.","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}]}},"/v1/orders/{id}/status":{"post":{"operationId":"updateOrderStatus","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusDto"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"Update order status","tags":["Orders"],"x-permissions":["orders:update_status"],"description":"Move a paid order along: out for delivery, ready for pickup, completed.","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}]}},"/v1/orders/{id}/accept":{"post":{"operationId":"acceptOrder","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"Accept an order","tags":["Orders"],"x-permissions":["orders:accept"],"description":"Accept an order waiting for the store; it can then move along.","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}]}},"/v1/orders/{id}/delivery-address":{"put":{"operationId":"updateOrderDeliveryAddress","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderAddressDto"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"Update delivery address","tags":["Orders"],"x-permissions":["orders:update"],"description":"Correct a delivery order's address (the delivery fee is not re-quoted).","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}]}},"/v1/orders/{id}/cancel":{"post":{"operationId":"cancelOrder","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelDto"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"Cancel an order","tags":["Orders"],"x-permissions":["orders:cancel"],"description":"Cancel an unpaid order.","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}]}},"/v1/order-issues":{"get":{"operationId":"listOrderIssues","responses":{"200":{"description":"One page, newest first. Pass `next_cursor` as `cursor` for the next page; null on the last page.","content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor","total"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/OrderIssueResponse"}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page"},"total":{"type":"integer","minimum":0,"description":"Rows matching the filters across every page"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"List problem reports","tags":["Orders"],"x-permissions":["order_issues:read"],"description":"Problem reports, newest first.","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":100,"default":25,"type":"integer"}},{"name":"cursor","required":false,"in":"query","description":"next_cursor from the previous page","schema":{"format":"uuid","type":"string"}},{"name":"status","required":false,"in":"query","schema":{"type":"string","enum":["open","in_review","resolved","rejected","withdrawn"]}},{"name":"order_id","required":false,"in":"query","schema":{"example":"ord_0193a1b2c3d47e8f9a0b1c2d3e4f5a6b","type":"string"}},{"name":"store_id","required":false,"in":"query","schema":{"format":"uuid","type":"string"}}]}},"/v1/order-issues/{id}":{"get":{"operationId":"getOrderIssue","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderIssueResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"tags":["Orders"],"x-permissions":["order_issues:read"],"summary":"Retrieve a problem report","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}]},"patch":{"operationId":"updateOrderIssue","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateOrderIssueDto"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderIssueResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"Update a problem report","tags":["Orders"],"x-permissions":["order_issues:write"],"description":"Move a problem report along: in review, resolved or rejected (the shopper is emailed).","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}]}},"/v1/payments/{id}":{"get":{"operationId":"getPayment","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"Retrieve a payment","tags":["Payments"],"x-permissions":["orders:read"],"parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}]}},"/v1/orders/{id}/refunds":{"get":{"operationId":"listRefunds","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundListResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"List refunds","tags":["Refunds"],"x-permissions":["orders:read"],"description":"An order's refunds and what can still be refunded.","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}]},"post":{"operationId":"createRefund","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRefundDto"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"Create a refund","tags":["Refunds"],"x-permissions":["orders:refund"],"description":"Refund all or part of a paid order. A full refund cancels it. This cannot be undone.","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Unique per request; replays return the first response","required":true,"schema":{"type":"string"}}],"x-idempotent":"required"}},"/v1/checkout-sessions":{"post":{"operationId":"createCheckoutSession","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCheckoutSessionDto"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatedSessionResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"Create a checkout session","tags":["Checkout sessions"],"x-permissions":["checkout_sessions:create"],"description":"Open a checkout session for a cart; hand its client secret to the widget.","parameters":[{"name":"Idempotency-Key","in":"header","description":"Unique per request; replays return the first response","required":false,"schema":{"type":"string"}}],"x-idempotent":"optional"}},"/v1/checkout-sessions/{id}":{"get":{"operationId":"getCheckoutSession","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutSessionResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"Retrieve a checkout session","tags":["Checkout sessions"],"x-permissions":["checkout_sessions:read"],"parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}]}},"/v1/checkout-sessions/{id}/expire":{"post":{"operationId":"expireCheckoutSession","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutSessionResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"Expire a checkout session","tags":["Checkout sessions"],"x-permissions":["checkout_sessions:create"],"description":"Expire an open checkout session (the cart changed or was abandoned).","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}]}},"/v1/payment-links":{"post":{"operationId":"createPaymentLink","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePaymentLinkDto"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentLinkResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"Create a payment link","tags":["Payment links"],"x-permissions":["payment_links:manage"],"description":"Make a payment link for a cart."},"get":{"operationId":"listPaymentLinks","responses":{"200":{"description":"One page, newest first. Pass `next_cursor` as `cursor` for the next page; null on the last page.","content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PaymentLinkResponse"}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"List payment links","tags":["Payment links"],"x-permissions":["payment_links:read"],"description":"List payment links, newest first.","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":100,"default":25,"type":"integer"}},{"name":"cursor","required":false,"in":"query","description":"next_cursor from the previous page","schema":{"format":"uuid","type":"string"}},{"name":"status","required":false,"in":"query","schema":{"type":"string","enum":["active","inactive"]}},{"name":"q","required":false,"in":"query","description":"Title fragment","schema":{"type":"string"}}]}},"/v1/payment-links/{id}":{"get":{"operationId":"getPaymentLink","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentLinkResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"tags":["Payment links"],"x-permissions":["payment_links:read"],"summary":"Retrieve a payment link","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}]},"patch":{"operationId":"updatePaymentLink","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePaymentLinkDto"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentLinkResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"Update a payment link","tags":["Payment links"],"x-permissions":["payment_links:manage"],"description":"Rename, turn off or on, or change the limit or expiry (the cart is fixed: make a new link for another).","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}]}},"/v1/orders/{id}/pay-on-delivery/collected":{"post":{"operationId":"markPayOnDeliveryCollected","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"Mark pay on delivery collected","tags":["Orders"],"x-permissions":["orders:update_status"],"description":"The shopper paid at hand-over: the order is paid and the receipt is sent (card-rate platform fee).","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}]}},"/v1/orders/{id}/pay-on-delivery/not-paid":{"post":{"operationId":"markPayOnDeliveryNotPaid","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"Mark pay on delivery not paid","tags":["Orders"],"x-permissions":["orders:cancel"],"description":"The shopper didn't pay: the order is cancelled; after two, they aren't offered pay on delivery again.","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}]}},"/v1/orders/{id}/reject":{"post":{"operationId":"rejectOrder","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RejectOrderDto"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"Reject an order","tags":["Orders"],"x-permissions":["orders:reject"],"description":"Reject an order waiting for the store: a paid one is refunded in full, then it is cancelled and the customer told.","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Unique per request; replays return the first response","required":true,"schema":{"type":"string"}}],"x-idempotent":"required"}},"/v1/pay-at-table/stores":{"get":{"operationId":"listPayAtTableStores","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayAtTableStoresResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"List Pay at table stores","tags":["Tables"],"x-permissions":["tables:read"],"description":"Stores and whether Pay at table is on at each (the add-on is per store)."}},"/v1/stores/{store_id}/pay-at-table":{"put":{"operationId":"setStorePayAtTable","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayAtTableStoreDto"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayAtTableStoreResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"Turn Pay at table on or off at a store","tags":["Tables"],"x-permissions":["tables:manage"],"description":"Turn Pay at table on or off at a store; open bills there can still be paid and closed.","parameters":[{"name":"store_id","required":true,"in":"path","schema":{"type":"string"}}]}},"/v1/stores/{store_id}/tables":{"post":{"operationId":"createTables","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTablesDto"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TableResponse"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"Add tables","tags":["Tables"],"x-features":["pay_at_table"],"x-permissions":["tables:manage"],"description":"Add tables to a store; each gets its own QR link.","parameters":[{"name":"store_id","required":true,"in":"path","schema":{"type":"string"}}]},"get":{"operationId":"listTables","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TableResponse"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"tags":["Tables"],"x-permissions":["tables:read"],"summary":"List tables","parameters":[{"name":"store_id","required":true,"in":"path","schema":{"type":"string"}},{"name":"include_inactive","required":false,"in":"query","description":"Include retired tables","schema":{"type":"string"}}]}},"/v1/tables/{id}":{"patch":{"operationId":"updateTable","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTableDto"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TableResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"Update a table","tags":["Tables"],"x-features":["pay_at_table"],"x-permissions":["tables:manage"],"description":"Rename a table, or retire it.","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}]}},"/v1/tables/{id}/rotate-qr":{"post":{"operationId":"rotateTableQr","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TableResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"Replace a table’s QR link","tags":["Tables"],"x-features":["pay_at_table"],"x-permissions":["tables:manage"],"description":"A new QR link for the table (a lost or copied print); the old one stops working.","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}]}},"/v1/bills":{"post":{"operationId":"openBill","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenBillDto"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"Open a bill","tags":["Bills"],"x-features":["pay_at_table"],"x-permissions":["bills:open"],"description":"Open a bill for a table with the items total (the venue’s service charges and VAT are added)."},"get":{"operationId":"listBills","responses":{"200":{"description":"One page, newest first. Pass `next_cursor` as `cursor` for the next page; null on the last page.","content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/BillResponse"}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"List bills","tags":["Bills"],"x-permissions":["bills:read"],"description":"List bills, newest first.","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":100,"default":25,"type":"integer"}},{"name":"cursor","required":false,"in":"query","description":"next_cursor from the previous page","schema":{"format":"uuid","type":"string"}},{"name":"store_id","required":false,"in":"query","schema":{"format":"uuid","type":"string"}},{"name":"status","required":false,"in":"query","schema":{"type":"string","enum":["open","part_paid","closed","void","open_or_part_paid"]}},{"name":"table_id","required":false,"in":"query","schema":{"example":"tbl_0193…","type":"string"}}]}},"/v1/bills/board":{"get":{"operationId":"getBillBoard","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BoardRowResponse"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"Retrieve the table board","tags":["Bills"],"x-permissions":["bills:read"],"description":"The store’s tables with their open bills: free, open, part paid, or paying.","parameters":[{"name":"store_id","required":true,"in":"query","schema":{"format":"uuid","type":"string"}}]}},"/v1/bills/payments":{"get":{"operationId":"lookupBillPayments","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BillPaymentHitResponse"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"Find a table payment","tags":["Bills"],"x-permissions":["bills:read"],"description":"Find a table payment by reference, transfer account number, or amount on a day (never trust a guest’s screen).","parameters":[{"name":"q","required":false,"in":"query","description":"SHR-/BILL- reference, or the transfer account number","schema":{"type":"string"}},{"name":"amount","required":false,"in":"query","description":"Amount received or due","schema":{"example":"12500","type":"string"}},{"name":"date","required":false,"in":"query","description":"Day (Lagos time)","schema":{"example":"2026-10-26","type":"string"}},{"name":"store_id","required":false,"in":"query","schema":{"format":"uuid","type":"string"}}]}},"/v1/bills/reconciliation":{"get":{"operationId":"getBillReconciliation","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReconciliationResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"Retrieve the day’s reconciliation","tags":["Bills"],"x-permissions":["bills:reports"],"description":"The day’s table money: bills, paid through Cartirra by method, outside Cartirra, tips per waiter, fees and refunds.","parameters":[{"name":"date","required":false,"in":"query","description":"Day (Lagos time); default today","schema":{"example":"2026-10-26","type":"string"}},{"name":"store_id","required":false,"in":"query","schema":{"format":"uuid","type":"string"}}]}},"/v1/bills/refunds":{"get":{"operationId":"listBillRefunds","responses":{"200":{"description":"One page, newest first. Pass `next_cursor` as `cursor` for the next page; null on the last page.","content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/BillRefundResponse"}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"List the refund queue","tags":["Bills"],"x-permissions":["bills:manage"],"description":"The refund queue: overpayments guests didn’t tip, and money a bill no longer needed.","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":100,"default":25,"type":"integer"}},{"name":"cursor","required":false,"in":"query","description":"next_cursor from the previous page","schema":{"format":"uuid","type":"string"}},{"name":"status","required":false,"in":"query","schema":{"type":"string","enum":["pending","refunding","refunded","dismissed"]}}]}},"/v1/bills/refunds/{id}/refund":{"post":{"operationId":"refundBillRefund","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillRefundResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"Send a queued refund","tags":["Bills"],"x-permissions":["bills:manage"],"description":"Send the money back the way it came.","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Unique per request; replays return the first response","required":false,"schema":{"type":"string"}}],"x-idempotent":"optional"}},"/v1/bills/refunds/{id}/dismiss":{"post":{"operationId":"dismissBillRefund","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DismissDto"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillRefundResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"Dismiss a queued refund","tags":["Bills"],"x-permissions":["bills:manage"],"description":"Settled another way (cash back, credit): close it with a note.","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}]}},"/v1/bills/{id}":{"get":{"operationId":"getBill","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillDetailResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"tags":["Bills"],"x-permissions":["bills:read"],"summary":"Retrieve a bill","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}]},"patch":{"operationId":"updateBill","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditBillDto"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"Update a bill","tags":["Bills"],"x-permissions":["bills:open"],"description":"Change the items total, note or equal split (after payments: managers only, with a reason).","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}]}},"/v1/bills/{id}/outside":{"post":{"operationId":"recordBillOutsidePayment","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutsideDto"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"Record a payment outside Cartirra","tags":["Bills"],"x-permissions":["bills:manage"],"description":"Record money paid outside Cartirra (cash, POS terminal).","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}]}},"/v1/bills/{id}/close":{"post":{"operationId":"closeBill","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloseDto"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"Close a bill","tags":["Bills"],"x-permissions":["bills:manage"],"description":"Close the bill; a remainder is recorded as paid outside Cartirra.","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}]}},"/v1/bills/{id}/void":{"post":{"operationId":"voidBill","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoidDto"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"Void a bill","tags":["Bills"],"x-permissions":["bills:manage"],"description":"Void the bill; anything paid through Cartirra goes to the refund queue.","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}]}},"/v1/orders/{id}/receipt":{"get":{"operationId":"getOrderReceipt","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReceiptResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"Retrieve a receipt","tags":["Receipts"],"x-permissions":["orders:read"],"description":"The order's receipt (issued when it was paid).","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}]}},"/v1/orders/{id}/credit-notes":{"get":{"operationId":"listOrderCreditNotes","responses":{"200":{"description":"Each note also carries the refund and order snapshot","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CreditNoteResponse"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"List credit notes","tags":["Receipts"],"x-permissions":["orders:read"],"description":"The order's credit notes, one per refund.","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}]}},"/v1/balance":{"get":{"operationId":"getBalance","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BalanceResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"Retrieve balance","tags":["Balance"],"x-permissions":["balance:read"],"description":"Your pending and available balance."}},"/v1/balance/transactions":{"get":{"operationId":"listBalanceTransactions","responses":{"200":{"description":"One page, newest first. Pass `next_cursor` as `cursor` for the next page; null on the last page.","content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor","total"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/TransactionResponse"}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page"},"total":{"type":"integer","minimum":0,"description":"Rows matching the filters across every page"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"List balance transactions","tags":["Balance"],"x-permissions":["balance:read"],"description":"Order payments (bank transfer), withdrawals, refunds and deposits, newest first.","parameters":[{"name":"type","required":false,"in":"query","schema":{"type":"string","enum":["order_payment","withdrawal","refund","deposit","billing"]}},{"name":"status","required":false,"in":"query","schema":{"type":"string","enum":["pending","successful","failed","expired"]}},{"name":"q","required":false,"in":"query","description":"Reference, order reference or description","schema":{"type":"string"}},{"name":"from","required":false,"in":"query","description":"Created at or after","schema":{"format":"date-time","type":"string"}},{"name":"to","required":false,"in":"query","description":"Created before","schema":{"format":"date-time","type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"maximum":100,"default":25,"type":"number"}},{"name":"cursor","required":false,"in":"query","description":"next_cursor from the previous page","schema":{"type":"string"}}]}},"/v1/balance/transactions/{id}":{"get":{"operationId":"getBalanceTransaction","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionDetailResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"Retrieve a balance transaction","tags":["Balance"],"x-permissions":["balance:read"],"description":"One movement with its fees, provider, settlement date and activity.","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}]}},"/v1/balance/deposits/{id}":{"get":{"operationId":"getDeposit","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DepositResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"Retrieve a deposit","tags":["Balance"],"x-permissions":["balance:read"],"parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}]}},"/v1/payouts":{"get":{"operationId":"listPayouts","responses":{"200":{"description":"One page, newest first. Pass `next_cursor` as `cursor` for the next page; null on the last page.","content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor","total"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PayoutResponse"}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page"},"total":{"type":"integer","minimum":0,"description":"Rows matching the filters across every page"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"List payouts","tags":["Payouts"],"x-permissions":["settlements:read"],"description":"List payouts (withdrawals and auto-settlements), newest first.","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":100,"default":25,"type":"integer"}},{"name":"cursor","required":false,"in":"query","description":"next_cursor from the previous page","schema":{"format":"uuid","type":"string"}},{"name":"status","required":false,"in":"query","schema":{"type":"string","enum":["pending","processing","paid","failed"]}},{"name":"from","required":false,"in":"query","description":"Created at or after","schema":{"format":"date-time","type":"string"}},{"name":"to","required":false,"in":"query","description":"Created before","schema":{"format":"date-time","type":"string"}}]}},"/v1/payouts/{id}":{"get":{"operationId":"getPayout","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayoutResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"Retrieve a payout","tags":["Payouts"],"x-permissions":["settlements:read"],"parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}]}},"/v1/promotions":{"get":{"operationId":"listPromotions","responses":{"200":{"description":"One page, newest first. Pass `next_cursor` as `cursor` for the next page; null on the last page.","content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor","total"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PromotionResponse"}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page"},"total":{"type":"integer","minimum":0,"description":"Rows matching the filters across every page"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"List promotions","tags":["Promotions"],"x-permissions":["promotions:read"],"description":"List promotions, newest first, with the total matching the filters.","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":100,"default":25,"type":"integer"}},{"name":"cursor","required":false,"in":"query","description":"next_cursor from the previous page","schema":{"format":"uuid","type":"string"}},{"name":"type","required":false,"in":"query","schema":{"type":"string","enum":["percentage","fixed_amount","free_shipping","fixed_shipping","first_purchase","cart_threshold"]}},{"name":"status","required":false,"in":"query","schema":{"type":"string","enum":["draft","scheduled","active","paused","ended","expired"]}},{"name":"store_id","required":false,"in":"query","schema":{"type":"string"}},{"name":"q","required":false,"in":"query","schema":{"type":"string"}}]},"post":{"operationId":"createPromotion","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromotionDto"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromotionResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"Create a promotion","tags":["Promotions"],"x-permissions":["promotions:manage"],"description":"Create a draft.","parameters":[{"name":"Idempotency-Key","in":"header","description":"Unique per request; replays return the first response","required":false,"schema":{"type":"string"}}],"x-idempotent":"optional"}},"/v1/promotions/{id}":{"get":{"operationId":"getPromotion","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromotionResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"Retrieve a promotion","tags":["Promotions"],"x-permissions":["promotions:read"],"parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}]},"patch":{"operationId":"updatePromotion","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePromotionDto"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromotionResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"Update a promotion","tags":["Promotions"],"x-permissions":["promotions:manage"],"parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}]}},"/v1/gift-cards":{"post":{"operationId":"createGiftCard","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GiftCardDto"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuedGiftCardResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"Issue a gift card","tags":["Gift cards"],"x-features":["gift_cards"],"x-permissions":["loyalty:manage"],"description":"Issue a gift card; the code is shown only now.","parameters":[{"name":"Idempotency-Key","in":"header","description":"Unique per request; replays return the first response","required":false,"schema":{"type":"string"}}],"x-idempotent":"optional"},"get":{"operationId":"listGiftCards","responses":{"200":{"description":"One page, newest first. Pass `next_cursor` as `cursor` for the next page; null on the last page.","content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor","total"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/GiftCardResponse"}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page"},"total":{"type":"integer","minimum":0,"description":"Rows matching the filters across every page"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"List gift cards","tags":["Gift cards"],"x-permissions":["loyalty:read"],"description":"List gift cards, newest first.","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":100,"default":25,"type":"integer"}},{"name":"cursor","required":false,"in":"query","description":"next_cursor from the previous page","schema":{"format":"uuid","type":"string"}}]}},"/v1/reviews":{"get":{"operationId":"listReviews","responses":{"200":{"description":"One page, newest first. Pass `next_cursor` as `cursor` for the next page; null on the last page.","content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor","total"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ReviewResponse"}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page"},"total":{"type":"integer","minimum":0,"description":"Rows matching the filters across every page"},"summary":{"$ref":"#/components/schemas/ReviewSummaryResponse"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"List reviews","tags":["Reviews"],"x-permissions":["reviews:read"],"description":"List reviews with a rating summary and the total matching the filters, newest first.","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":100,"default":25,"type":"integer"}},{"name":"cursor","required":false,"in":"query","description":"next_cursor from the previous page","schema":{"format":"uuid","type":"string"}},{"name":"rating","required":false,"in":"query","description":"rating=4&rating=5","schema":{"type":"array","items":{"type":"number"}}},{"name":"from","required":false,"in":"query","schema":{"type":"string"}},{"name":"to","required":false,"in":"query","schema":{"type":"string"}},{"name":"q","required":false,"in":"query","description":"Review text or customer name","schema":{"type":"string"}},{"name":"customer_id","required":false,"in":"query","schema":{"format":"uuid","type":"string"}},{"name":"order_id","required":false,"in":"query","schema":{"example":"ord_0193…","type":"string"}}]}},"/v1/warranties":{"get":{"operationId":"listWarranties","responses":{"200":{"description":"One page, newest first. Pass `next_cursor` as `cursor` for the next page; null on the last page.","content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor","total"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WarrantyResponse"}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page"},"total":{"type":"integer","minimum":0,"description":"Rows matching the filters across every page"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"List warranties","tags":["Warranties"],"x-permissions":["warranties:read"],"description":"Warranties, newest first.","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":100,"default":25,"type":"integer"}},{"name":"cursor","required":false,"in":"query","description":"next_cursor from the previous page","schema":{"format":"uuid","type":"string"}},{"name":"state","required":false,"in":"query","description":"active: still covering (ending soon included)","schema":{"type":"string","enum":["active","ending_soon","expired","voided"]}},{"name":"order_id","required":false,"in":"query","schema":{"example":"ord_0193…","type":"string"}},{"name":"customer_id","required":false,"in":"query","schema":{"format":"uuid","type":"string"}},{"name":"store_id","required":false,"in":"query","schema":{"format":"uuid","type":"string"}},{"name":"q","required":false,"in":"query","description":"Item name, serial number or reference","schema":{"type":"string"}}]}},"/v1/warranties/{id}":{"get":{"operationId":"getWarranty","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WarrantyResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"tags":["Warranties"],"x-permissions":["warranties:read"],"summary":"Retrieve a warranty","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}]},"patch":{"operationId":"updateWarranty","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWarrantyDto"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WarrantyResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"Update a warranty","tags":["Warranties"],"x-features":["warranties"],"x-permissions":["warranties:write"],"description":"Correct a warranty: serial number, dates, terms, who covers it.","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}]}},"/v1/warranties/{id}/void":{"post":{"operationId":"voidWarranty","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoidWarrantyDto"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WarrantyResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"Void a warranty","tags":["Warranties"],"x-permissions":["warranties:write"],"description":"Void a warranty (a return, a mistake): it stays on record, no longer covering.","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}]}},"/v1/orders/{id}/warranties":{"get":{"operationId":"listOrderWarranties","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WarrantyResponse"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"tags":["Warranties"],"x-permissions":["warranties:read"],"summary":"List an order's warranties","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}]},"post":{"operationId":"createWarranty","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWarrantyDto"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WarrantyResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKey":[]}],"summary":"Add a warranty to an order","tags":["Warranties"],"x-features":["warranties"],"x-permissions":["warranties:write"],"description":"Add a warranty to a paid order: for one of its lines, or an item by name.","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}]}}},"webhooks":{"order.created":{"post":{"summary":"order.created","description":"An order was placed at checkout (payment may still be pending).\n\nSigned with `Cartirra-Signature`; may be delivered more than once (process `id` idempotently).","operationId":"webhook_order_created","tags":["Webhooks"],"parameters":[{"name":"Cartirra-Signature","in":"header","required":true,"schema":{"type":"string"},"example":"t=1792855903,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd"},{"name":"Cartirra-Event-Type","in":"header","required":true,"schema":{"type":"string","const":"order.created"}},{"name":"Cartirra-Event-Id","in":"header","required":true,"schema":{"type":"string"}},{"name":"Cartirra-Delivery-Id","in":"header","required":true,"schema":{"type":"string"},"description":"Differs per attempt and manual retry; the event id does not"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","object","type","livemode","created","data"],"properties":{"id":{"type":"string","description":"Unique per event; use it to ignore repeats","example":"evt_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b"},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"order.created"},"livemode":{"type":"boolean"},"created":{"type":"string","format":"date-time"},"data":{"type":"object","required":["object"],"properties":{"object":{"$ref":"#/components/schemas/WebhookOrder"}}}}}}}},"responses":{"2XX":{"description":"Any 2xx acknowledges the event. Anything else, or no answer in 10 s, is retried up to 8 times with exponential backoff from 10 s (about 21 minutes in all)."}}}},"order.updated":{"post":{"summary":"order.updated","description":"An order's payment, status, store or delivery address changed.\n\nSigned with `Cartirra-Signature`; may be delivered more than once (process `id` idempotently).","operationId":"webhook_order_updated","tags":["Webhooks"],"parameters":[{"name":"Cartirra-Signature","in":"header","required":true,"schema":{"type":"string"},"example":"t=1792855903,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd"},{"name":"Cartirra-Event-Type","in":"header","required":true,"schema":{"type":"string","const":"order.updated"}},{"name":"Cartirra-Event-Id","in":"header","required":true,"schema":{"type":"string"}},{"name":"Cartirra-Delivery-Id","in":"header","required":true,"schema":{"type":"string"},"description":"Differs per attempt and manual retry; the event id does not"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","object","type","livemode","created","data"],"properties":{"id":{"type":"string","description":"Unique per event; use it to ignore repeats","example":"evt_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b"},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"order.updated"},"livemode":{"type":"boolean"},"created":{"type":"string","format":"date-time"},"data":{"type":"object","required":["object"],"properties":{"object":{"$ref":"#/components/schemas/WebhookOrder"}}}}}}}},"responses":{"2XX":{"description":"Any 2xx acknowledges the event. Anything else, or no answer in 10 s, is retried up to 8 times with exponential backoff from 10 s (about 21 minutes in all)."}}}},"payment.succeeded":{"post":{"summary":"payment.succeeded","description":"The payment for an order arrived.\n\nSigned with `Cartirra-Signature`; may be delivered more than once (process `id` idempotently).","operationId":"webhook_payment_succeeded","tags":["Webhooks"],"parameters":[{"name":"Cartirra-Signature","in":"header","required":true,"schema":{"type":"string"},"example":"t=1792855903,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd"},{"name":"Cartirra-Event-Type","in":"header","required":true,"schema":{"type":"string","const":"payment.succeeded"}},{"name":"Cartirra-Event-Id","in":"header","required":true,"schema":{"type":"string"}},{"name":"Cartirra-Delivery-Id","in":"header","required":true,"schema":{"type":"string"},"description":"Differs per attempt and manual retry; the event id does not"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","object","type","livemode","created","data"],"properties":{"id":{"type":"string","description":"Unique per event; use it to ignore repeats","example":"evt_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b"},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"payment.succeeded"},"livemode":{"type":"boolean"},"created":{"type":"string","format":"date-time"},"data":{"type":"object","required":["object"],"properties":{"object":{"$ref":"#/components/schemas/WebhookPayment"}}}}}}}},"responses":{"2XX":{"description":"Any 2xx acknowledges the event. Anything else, or no answer in 10 s, is retried up to 8 times with exponential backoff from 10 s (about 21 minutes in all)."}}}},"payment.failed":{"post":{"summary":"payment.failed","description":"A card payment was declined or failed.\n\nSigned with `Cartirra-Signature`; may be delivered more than once (process `id` idempotently).","operationId":"webhook_payment_failed","tags":["Webhooks"],"parameters":[{"name":"Cartirra-Signature","in":"header","required":true,"schema":{"type":"string"},"example":"t=1792855903,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd"},{"name":"Cartirra-Event-Type","in":"header","required":true,"schema":{"type":"string","const":"payment.failed"}},{"name":"Cartirra-Event-Id","in":"header","required":true,"schema":{"type":"string"}},{"name":"Cartirra-Delivery-Id","in":"header","required":true,"schema":{"type":"string"},"description":"Differs per attempt and manual retry; the event id does not"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","object","type","livemode","created","data"],"properties":{"id":{"type":"string","description":"Unique per event; use it to ignore repeats","example":"evt_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b"},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"payment.failed"},"livemode":{"type":"boolean"},"created":{"type":"string","format":"date-time"},"data":{"type":"object","required":["object"],"properties":{"object":{"$ref":"#/components/schemas/WebhookPayment"}}}}}}}},"responses":{"2XX":{"description":"Any 2xx acknowledges the event. Anything else, or no answer in 10 s, is retried up to 8 times with exponential backoff from 10 s (about 21 minutes in all)."}}}},"payment.expired":{"post":{"summary":"payment.expired","description":"The transfer account expired before the money arrived.\n\nSigned with `Cartirra-Signature`; may be delivered more than once (process `id` idempotently).","operationId":"webhook_payment_expired","tags":["Webhooks"],"parameters":[{"name":"Cartirra-Signature","in":"header","required":true,"schema":{"type":"string"},"example":"t=1792855903,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd"},{"name":"Cartirra-Event-Type","in":"header","required":true,"schema":{"type":"string","const":"payment.expired"}},{"name":"Cartirra-Event-Id","in":"header","required":true,"schema":{"type":"string"}},{"name":"Cartirra-Delivery-Id","in":"header","required":true,"schema":{"type":"string"},"description":"Differs per attempt and manual retry; the event id does not"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","object","type","livemode","created","data"],"properties":{"id":{"type":"string","description":"Unique per event; use it to ignore repeats","example":"evt_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b"},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"payment.expired"},"livemode":{"type":"boolean"},"created":{"type":"string","format":"date-time"},"data":{"type":"object","required":["object"],"properties":{"object":{"$ref":"#/components/schemas/WebhookPayment"}}}}}}}},"responses":{"2XX":{"description":"Any 2xx acknowledges the event. Anything else, or no answer in 10 s, is retried up to 8 times with exponential backoff from 10 s (about 21 minutes in all)."}}}},"refund.succeeded":{"post":{"summary":"refund.succeeded","description":"A refund reached the shopper.\n\nSigned with `Cartirra-Signature`; may be delivered more than once (process `id` idempotently).","operationId":"webhook_refund_succeeded","tags":["Webhooks"],"parameters":[{"name":"Cartirra-Signature","in":"header","required":true,"schema":{"type":"string"},"example":"t=1792855903,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd"},{"name":"Cartirra-Event-Type","in":"header","required":true,"schema":{"type":"string","const":"refund.succeeded"}},{"name":"Cartirra-Event-Id","in":"header","required":true,"schema":{"type":"string"}},{"name":"Cartirra-Delivery-Id","in":"header","required":true,"schema":{"type":"string"},"description":"Differs per attempt and manual retry; the event id does not"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","object","type","livemode","created","data"],"properties":{"id":{"type":"string","description":"Unique per event; use it to ignore repeats","example":"evt_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b"},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"refund.succeeded"},"livemode":{"type":"boolean"},"created":{"type":"string","format":"date-time"},"data":{"type":"object","required":["object"],"properties":{"object":{"$ref":"#/components/schemas/WebhookRefund"}}}}}}}},"responses":{"2XX":{"description":"Any 2xx acknowledges the event. Anything else, or no answer in 10 s, is retried up to 8 times with exponential backoff from 10 s (about 21 minutes in all)."}}}},"refund.failed":{"post":{"summary":"refund.failed","description":"A refund failed; the money is back in your balance.\n\nSigned with `Cartirra-Signature`; may be delivered more than once (process `id` idempotently).","operationId":"webhook_refund_failed","tags":["Webhooks"],"parameters":[{"name":"Cartirra-Signature","in":"header","required":true,"schema":{"type":"string"},"example":"t=1792855903,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd"},{"name":"Cartirra-Event-Type","in":"header","required":true,"schema":{"type":"string","const":"refund.failed"}},{"name":"Cartirra-Event-Id","in":"header","required":true,"schema":{"type":"string"}},{"name":"Cartirra-Delivery-Id","in":"header","required":true,"schema":{"type":"string"},"description":"Differs per attempt and manual retry; the event id does not"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","object","type","livemode","created","data"],"properties":{"id":{"type":"string","description":"Unique per event; use it to ignore repeats","example":"evt_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b"},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"refund.failed"},"livemode":{"type":"boolean"},"created":{"type":"string","format":"date-time"},"data":{"type":"object","required":["object"],"properties":{"object":{"$ref":"#/components/schemas/WebhookRefund"}}}}}}}},"responses":{"2XX":{"description":"Any 2xx acknowledges the event. Anything else, or no answer in 10 s, is retried up to 8 times with exponential backoff from 10 s (about 21 minutes in all)."}}}},"payout.paid":{"post":{"summary":"payout.paid","description":"A payout reached your bank account.\n\nSigned with `Cartirra-Signature`; may be delivered more than once (process `id` idempotently).","operationId":"webhook_payout_paid","tags":["Webhooks"],"parameters":[{"name":"Cartirra-Signature","in":"header","required":true,"schema":{"type":"string"},"example":"t=1792855903,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd"},{"name":"Cartirra-Event-Type","in":"header","required":true,"schema":{"type":"string","const":"payout.paid"}},{"name":"Cartirra-Event-Id","in":"header","required":true,"schema":{"type":"string"}},{"name":"Cartirra-Delivery-Id","in":"header","required":true,"schema":{"type":"string"},"description":"Differs per attempt and manual retry; the event id does not"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","object","type","livemode","created","data"],"properties":{"id":{"type":"string","description":"Unique per event; use it to ignore repeats","example":"evt_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b"},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"payout.paid"},"livemode":{"type":"boolean"},"created":{"type":"string","format":"date-time"},"data":{"type":"object","required":["object"],"properties":{"object":{"$ref":"#/components/schemas/WebhookPayout"}}}}}}}},"responses":{"2XX":{"description":"Any 2xx acknowledges the event. Anything else, or no answer in 10 s, is retried up to 8 times with exponential backoff from 10 s (about 21 minutes in all)."}}}},"payout.failed":{"post":{"summary":"payout.failed","description":"A payout failed; the money is back in your balance.\n\nSigned with `Cartirra-Signature`; may be delivered more than once (process `id` idempotently).","operationId":"webhook_payout_failed","tags":["Webhooks"],"parameters":[{"name":"Cartirra-Signature","in":"header","required":true,"schema":{"type":"string"},"example":"t=1792855903,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd"},{"name":"Cartirra-Event-Type","in":"header","required":true,"schema":{"type":"string","const":"payout.failed"}},{"name":"Cartirra-Event-Id","in":"header","required":true,"schema":{"type":"string"}},{"name":"Cartirra-Delivery-Id","in":"header","required":true,"schema":{"type":"string"},"description":"Differs per attempt and manual retry; the event id does not"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","object","type","livemode","created","data"],"properties":{"id":{"type":"string","description":"Unique per event; use it to ignore repeats","example":"evt_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b"},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"payout.failed"},"livemode":{"type":"boolean"},"created":{"type":"string","format":"date-time"},"data":{"type":"object","required":["object"],"properties":{"object":{"$ref":"#/components/schemas/WebhookPayout"}}}}}}}},"responses":{"2XX":{"description":"Any 2xx acknowledges the event. Anything else, or no answer in 10 s, is retried up to 8 times with exponential backoff from 10 s (about 21 minutes in all)."}}}},"webhook.test":{"post":{"summary":"webhook.test","description":"Sent when you test the endpoint from the dashboard.\n\nSigned with `Cartirra-Signature`; may be delivered more than once (process `id` idempotently).","operationId":"webhook_webhook_test","tags":["Webhooks"],"parameters":[{"name":"Cartirra-Signature","in":"header","required":true,"schema":{"type":"string"},"example":"t=1792855903,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd"},{"name":"Cartirra-Event-Type","in":"header","required":true,"schema":{"type":"string","const":"webhook.test"}},{"name":"Cartirra-Event-Id","in":"header","required":true,"schema":{"type":"string"}},{"name":"Cartirra-Delivery-Id","in":"header","required":true,"schema":{"type":"string"},"description":"Differs per attempt and manual retry; the event id does not"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","object","type","livemode","created","data"],"properties":{"id":{"type":"string","description":"Unique per event; use it to ignore repeats","example":"evt_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b"},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"webhook.test"},"livemode":{"type":"boolean"},"created":{"type":"string","format":"date-time"},"data":{"type":"object","required":["object"],"properties":{"object":{"$ref":"#/components/schemas/WebhookTest"}}}}}}}},"responses":{"2XX":{"description":"Any 2xx acknowledges the event. Anything else, or no answer in 10 s, is retried up to 8 times with exponential backoff from 10 s (about 21 minutes in all)."}}}},"customer.created":{"post":{"summary":"customer.created","description":"A shopper agreed to share their details with you, or a guest placed their first order. Sent before any order, so it also covers shoppers who leave checkout without paying.\n\nSigned with `Cartirra-Signature`; may be delivered more than once (process `id` idempotently).","operationId":"webhook_customer_created","tags":["Webhooks"],"parameters":[{"name":"Cartirra-Signature","in":"header","required":true,"schema":{"type":"string"},"example":"t=1792855903,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd"},{"name":"Cartirra-Event-Type","in":"header","required":true,"schema":{"type":"string","const":"customer.created"}},{"name":"Cartirra-Event-Id","in":"header","required":true,"schema":{"type":"string"}},{"name":"Cartirra-Delivery-Id","in":"header","required":true,"schema":{"type":"string"},"description":"Differs per attempt and manual retry; the event id does not"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","object","type","livemode","created","data"],"properties":{"id":{"type":"string","description":"Unique per event; use it to ignore repeats","example":"evt_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b"},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"customer.created"},"livemode":{"type":"boolean"},"created":{"type":"string","format":"date-time"},"data":{"type":"object","required":["object"],"properties":{"object":{"$ref":"#/components/schemas/WebhookCustomer"}}}}}}}},"responses":{"2XX":{"description":"Any 2xx acknowledges the event. Anything else, or no answer in 10 s, is retried up to 8 times with exponential backoff from 10 s (about 21 minutes in all)."}}}},"customer.updated":{"post":{"summary":"customer.updated","description":"A shopper's shared name, email or phone changed (for example, they consented again with different scopes).\n\nSigned with `Cartirra-Signature`; may be delivered more than once (process `id` idempotently).","operationId":"webhook_customer_updated","tags":["Webhooks"],"parameters":[{"name":"Cartirra-Signature","in":"header","required":true,"schema":{"type":"string"},"example":"t=1792855903,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd"},{"name":"Cartirra-Event-Type","in":"header","required":true,"schema":{"type":"string","const":"customer.updated"}},{"name":"Cartirra-Event-Id","in":"header","required":true,"schema":{"type":"string"}},{"name":"Cartirra-Delivery-Id","in":"header","required":true,"schema":{"type":"string"},"description":"Differs per attempt and manual retry; the event id does not"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","object","type","livemode","created","data"],"properties":{"id":{"type":"string","description":"Unique per event; use it to ignore repeats","example":"evt_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b"},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"customer.updated"},"livemode":{"type":"boolean"},"created":{"type":"string","format":"date-time"},"data":{"type":"object","required":["object"],"properties":{"object":{"$ref":"#/components/schemas/WebhookCustomer"}}}}}}}},"responses":{"2XX":{"description":"Any 2xx acknowledges the event. Anything else, or no answer in 10 s, is retried up to 8 times with exponential backoff from 10 s (about 21 minutes in all)."}}}},"bill.opened":{"post":{"summary":"bill.opened","description":"A waiter (or your API) opened a bill for a table.\n\nSigned with `Cartirra-Signature`; may be delivered more than once (process `id` idempotently).","operationId":"webhook_bill_opened","tags":["Webhooks"],"parameters":[{"name":"Cartirra-Signature","in":"header","required":true,"schema":{"type":"string"},"example":"t=1792855903,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd"},{"name":"Cartirra-Event-Type","in":"header","required":true,"schema":{"type":"string","const":"bill.opened"}},{"name":"Cartirra-Event-Id","in":"header","required":true,"schema":{"type":"string"}},{"name":"Cartirra-Delivery-Id","in":"header","required":true,"schema":{"type":"string"},"description":"Differs per attempt and manual retry; the event id does not"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","object","type","livemode","created","data"],"properties":{"id":{"type":"string","description":"Unique per event; use it to ignore repeats","example":"evt_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b"},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"bill.opened"},"livemode":{"type":"boolean"},"created":{"type":"string","format":"date-time"},"data":{"type":"object","required":["object"],"properties":{"object":{"$ref":"#/components/schemas/WebhookBill"}}}}}}}},"responses":{"2XX":{"description":"Any 2xx acknowledges the event. Anything else, or no answer in 10 s, is retried up to 8 times with exponential backoff from 10 s (about 21 minutes in all)."}}}},"bill.updated":{"post":{"summary":"bill.updated","description":"A bill’s items, total, split or note changed, or a payment outside Cartirra was recorded.\n\nSigned with `Cartirra-Signature`; may be delivered more than once (process `id` idempotently).","operationId":"webhook_bill_updated","tags":["Webhooks"],"parameters":[{"name":"Cartirra-Signature","in":"header","required":true,"schema":{"type":"string"},"example":"t=1792855903,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd"},{"name":"Cartirra-Event-Type","in":"header","required":true,"schema":{"type":"string","const":"bill.updated"}},{"name":"Cartirra-Event-Id","in":"header","required":true,"schema":{"type":"string"}},{"name":"Cartirra-Delivery-Id","in":"header","required":true,"schema":{"type":"string"},"description":"Differs per attempt and manual retry; the event id does not"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","object","type","livemode","created","data"],"properties":{"id":{"type":"string","description":"Unique per event; use it to ignore repeats","example":"evt_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b"},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"bill.updated"},"livemode":{"type":"boolean"},"created":{"type":"string","format":"date-time"},"data":{"type":"object","required":["object"],"properties":{"object":{"$ref":"#/components/schemas/WebhookBill"}}}}}}}},"responses":{"2XX":{"description":"Any 2xx acknowledges the event. Anything else, or no answer in 10 s, is retried up to 8 times with exponential backoff from 10 s (about 21 minutes in all)."}}}},"bill.payment_received":{"post":{"summary":"bill.payment_received","description":"A guest’s payment toward a bill arrived (all of it, or their part of a split).\n\nSigned with `Cartirra-Signature`; may be delivered more than once (process `id` idempotently).","operationId":"webhook_bill_payment_received","tags":["Webhooks"],"parameters":[{"name":"Cartirra-Signature","in":"header","required":true,"schema":{"type":"string"},"example":"t=1792855903,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd"},{"name":"Cartirra-Event-Type","in":"header","required":true,"schema":{"type":"string","const":"bill.payment_received"}},{"name":"Cartirra-Event-Id","in":"header","required":true,"schema":{"type":"string"}},{"name":"Cartirra-Delivery-Id","in":"header","required":true,"schema":{"type":"string"},"description":"Differs per attempt and manual retry; the event id does not"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","object","type","livemode","created","data"],"properties":{"id":{"type":"string","description":"Unique per event; use it to ignore repeats","example":"evt_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b"},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"bill.payment_received"},"livemode":{"type":"boolean"},"created":{"type":"string","format":"date-time"},"data":{"type":"object","required":["object"],"properties":{"object":{"$ref":"#/components/schemas/WebhookBillPayment"}}}}}}}},"responses":{"2XX":{"description":"Any 2xx acknowledges the event. Anything else, or no answer in 10 s, is retried up to 8 times with exponential backoff from 10 s (about 21 minutes in all)."}}}},"bill.closed":{"post":{"summary":"bill.closed","description":"A bill was fully paid, or a manager closed it.\n\nSigned with `Cartirra-Signature`; may be delivered more than once (process `id` idempotently).","operationId":"webhook_bill_closed","tags":["Webhooks"],"parameters":[{"name":"Cartirra-Signature","in":"header","required":true,"schema":{"type":"string"},"example":"t=1792855903,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd"},{"name":"Cartirra-Event-Type","in":"header","required":true,"schema":{"type":"string","const":"bill.closed"}},{"name":"Cartirra-Event-Id","in":"header","required":true,"schema":{"type":"string"}},{"name":"Cartirra-Delivery-Id","in":"header","required":true,"schema":{"type":"string"},"description":"Differs per attempt and manual retry; the event id does not"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","object","type","livemode","created","data"],"properties":{"id":{"type":"string","description":"Unique per event; use it to ignore repeats","example":"evt_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b"},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"bill.closed"},"livemode":{"type":"boolean"},"created":{"type":"string","format":"date-time"},"data":{"type":"object","required":["object"],"properties":{"object":{"$ref":"#/components/schemas/WebhookBill"}}}}}}}},"responses":{"2XX":{"description":"Any 2xx acknowledges the event. Anything else, or no answer in 10 s, is retried up to 8 times with exponential backoff from 10 s (about 21 minutes in all)."}}}},"bill.voided":{"post":{"summary":"bill.voided","description":"A manager voided a bill; anything paid through Cartirra goes to the refund queue.\n\nSigned with `Cartirra-Signature`; may be delivered more than once (process `id` idempotently).","operationId":"webhook_bill_voided","tags":["Webhooks"],"parameters":[{"name":"Cartirra-Signature","in":"header","required":true,"schema":{"type":"string"},"example":"t=1792855903,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd"},{"name":"Cartirra-Event-Type","in":"header","required":true,"schema":{"type":"string","const":"bill.voided"}},{"name":"Cartirra-Event-Id","in":"header","required":true,"schema":{"type":"string"}},{"name":"Cartirra-Delivery-Id","in":"header","required":true,"schema":{"type":"string"},"description":"Differs per attempt and manual retry; the event id does not"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","object","type","livemode","created","data"],"properties":{"id":{"type":"string","description":"Unique per event; use it to ignore repeats","example":"evt_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b"},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"bill.voided"},"livemode":{"type":"boolean"},"created":{"type":"string","format":"date-time"},"data":{"type":"object","required":["object"],"properties":{"object":{"$ref":"#/components/schemas/WebhookBill"}}}}}}}},"responses":{"2XX":{"description":"Any 2xx acknowledges the event. Anything else, or no answer in 10 s, is retried up to 8 times with exponential backoff from 10 s (about 21 minutes in all)."}}}},"customer.consent_revoked":{"post":{"summary":"customer.consent_revoked","description":"A shopper stopped sharing their details with you. Email and phone are removed from the customer; delete any copies you keep.\n\nSigned with `Cartirra-Signature`; may be delivered more than once (process `id` idempotently).","operationId":"webhook_customer_consent_revoked","tags":["Webhooks"],"parameters":[{"name":"Cartirra-Signature","in":"header","required":true,"schema":{"type":"string"},"example":"t=1792855903,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd"},{"name":"Cartirra-Event-Type","in":"header","required":true,"schema":{"type":"string","const":"customer.consent_revoked"}},{"name":"Cartirra-Event-Id","in":"header","required":true,"schema":{"type":"string"}},{"name":"Cartirra-Delivery-Id","in":"header","required":true,"schema":{"type":"string"},"description":"Differs per attempt and manual retry; the event id does not"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","object","type","livemode","created","data"],"properties":{"id":{"type":"string","description":"Unique per event; use it to ignore repeats","example":"evt_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b"},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"customer.consent_revoked"},"livemode":{"type":"boolean"},"created":{"type":"string","format":"date-time"},"data":{"type":"object","required":["object"],"properties":{"object":{"$ref":"#/components/schemas/WebhookCustomer"}}}}}}}},"responses":{"2XX":{"description":"Any 2xx acknowledges the event. Anything else, or no answer in 10 s, is retried up to 8 times with exponential backoff from 10 s (about 21 minutes in all)."}}}},"order.issue_reported":{"post":{"summary":"order.issue_reported","description":"A shopper reported a problem with an order (missing or wrong items, damage, lateness…). You decide: move it along with PATCH /v1/order-issues/{id}; refund through the order’s refunds.\n\nSigned with `Cartirra-Signature`; may be delivered more than once (process `id` idempotently).","operationId":"webhook_order_issue_reported","tags":["Webhooks"],"parameters":[{"name":"Cartirra-Signature","in":"header","required":true,"schema":{"type":"string"},"example":"t=1792855903,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd"},{"name":"Cartirra-Event-Type","in":"header","required":true,"schema":{"type":"string","const":"order.issue_reported"}},{"name":"Cartirra-Event-Id","in":"header","required":true,"schema":{"type":"string"}},{"name":"Cartirra-Delivery-Id","in":"header","required":true,"schema":{"type":"string"},"description":"Differs per attempt and manual retry; the event id does not"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","object","type","livemode","created","data"],"properties":{"id":{"type":"string","description":"Unique per event; use it to ignore repeats","example":"evt_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b"},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"order.issue_reported"},"livemode":{"type":"boolean"},"created":{"type":"string","format":"date-time"},"data":{"type":"object","required":["object"],"properties":{"object":{"$ref":"#/components/schemas/WebhookOrderIssue"}}}}}}}},"responses":{"2XX":{"description":"Any 2xx acknowledges the event. Anything else, or no answer in 10 s, is retried up to 8 times with exponential backoff from 10 s (about 21 minutes in all)."}}}},"order.issue_updated":{"post":{"summary":"order.issue_updated","description":"A problem report moved on: you reviewed, resolved or rejected it, the shopper withdrew it, or a refund was linked to it.\n\nSigned with `Cartirra-Signature`; may be delivered more than once (process `id` idempotently).","operationId":"webhook_order_issue_updated","tags":["Webhooks"],"parameters":[{"name":"Cartirra-Signature","in":"header","required":true,"schema":{"type":"string"},"example":"t=1792855903,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd"},{"name":"Cartirra-Event-Type","in":"header","required":true,"schema":{"type":"string","const":"order.issue_updated"}},{"name":"Cartirra-Event-Id","in":"header","required":true,"schema":{"type":"string"}},{"name":"Cartirra-Delivery-Id","in":"header","required":true,"schema":{"type":"string"},"description":"Differs per attempt and manual retry; the event id does not"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","object","type","livemode","created","data"],"properties":{"id":{"type":"string","description":"Unique per event; use it to ignore repeats","example":"evt_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b"},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"order.issue_updated"},"livemode":{"type":"boolean"},"created":{"type":"string","format":"date-time"},"data":{"type":"object","required":["object"],"properties":{"object":{"$ref":"#/components/schemas/WebhookOrderIssue"}}}}}}}},"responses":{"2XX":{"description":"Any 2xx acknowledges the event. Anything else, or no answer in 10 s, is retried up to 8 times with exponential backoff from 10 s (about 21 minutes in all)."}}}},"warranty.created":{"post":{"summary":"warranty.created","description":"A warranty was created: from a checkout line when the order was paid, or added afterwards.\n\nSigned with `Cartirra-Signature`; may be delivered more than once (process `id` idempotently).","operationId":"webhook_warranty_created","tags":["Webhooks"],"parameters":[{"name":"Cartirra-Signature","in":"header","required":true,"schema":{"type":"string"},"example":"t=1792855903,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd"},{"name":"Cartirra-Event-Type","in":"header","required":true,"schema":{"type":"string","const":"warranty.created"}},{"name":"Cartirra-Event-Id","in":"header","required":true,"schema":{"type":"string"}},{"name":"Cartirra-Delivery-Id","in":"header","required":true,"schema":{"type":"string"},"description":"Differs per attempt and manual retry; the event id does not"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","object","type","livemode","created","data"],"properties":{"id":{"type":"string","description":"Unique per event; use it to ignore repeats","example":"evt_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b"},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"warranty.created"},"livemode":{"type":"boolean"},"created":{"type":"string","format":"date-time"},"data":{"type":"object","required":["object"],"properties":{"object":{"$ref":"#/components/schemas/WebhookWarranty"}}}}}}}},"responses":{"2XX":{"description":"Any 2xx acknowledges the event. Anything else, or no answer in 10 s, is retried up to 8 times with exponential backoff from 10 s (about 21 minutes in all)."}}}},"warranty.updated":{"post":{"summary":"warranty.updated","description":"A warranty’s details changed (serial number, dates, terms).\n\nSigned with `Cartirra-Signature`; may be delivered more than once (process `id` idempotently).","operationId":"webhook_warranty_updated","tags":["Webhooks"],"parameters":[{"name":"Cartirra-Signature","in":"header","required":true,"schema":{"type":"string"},"example":"t=1792855903,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd"},{"name":"Cartirra-Event-Type","in":"header","required":true,"schema":{"type":"string","const":"warranty.updated"}},{"name":"Cartirra-Event-Id","in":"header","required":true,"schema":{"type":"string"}},{"name":"Cartirra-Delivery-Id","in":"header","required":true,"schema":{"type":"string"},"description":"Differs per attempt and manual retry; the event id does not"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","object","type","livemode","created","data"],"properties":{"id":{"type":"string","description":"Unique per event; use it to ignore repeats","example":"evt_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b"},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"warranty.updated"},"livemode":{"type":"boolean"},"created":{"type":"string","format":"date-time"},"data":{"type":"object","required":["object"],"properties":{"object":{"$ref":"#/components/schemas/WebhookWarranty"}}}}}}}},"responses":{"2XX":{"description":"Any 2xx acknowledges the event. Anything else, or no answer in 10 s, is retried up to 8 times with exponential backoff from 10 s (about 21 minutes in all)."}}}},"warranty.voided":{"post":{"summary":"warranty.voided","description":"A warranty was voided (a return, a mistake).\n\nSigned with `Cartirra-Signature`; may be delivered more than once (process `id` idempotently).","operationId":"webhook_warranty_voided","tags":["Webhooks"],"parameters":[{"name":"Cartirra-Signature","in":"header","required":true,"schema":{"type":"string"},"example":"t=1792855903,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd"},{"name":"Cartirra-Event-Type","in":"header","required":true,"schema":{"type":"string","const":"warranty.voided"}},{"name":"Cartirra-Event-Id","in":"header","required":true,"schema":{"type":"string"}},{"name":"Cartirra-Delivery-Id","in":"header","required":true,"schema":{"type":"string"},"description":"Differs per attempt and manual retry; the event id does not"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","object","type","livemode","created","data"],"properties":{"id":{"type":"string","description":"Unique per event; use it to ignore repeats","example":"evt_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b"},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"warranty.voided"},"livemode":{"type":"boolean"},"created":{"type":"string","format":"date-time"},"data":{"type":"object","required":["object"],"properties":{"object":{"$ref":"#/components/schemas/WebhookWarranty"}}}}}}}},"responses":{"2XX":{"description":"Any 2xx acknowledges the event. Anything else, or no answer in 10 s, is retried up to 8 times with exponential backoff from 10 s (about 21 minutes in all)."}}}},"order.accepted":{"post":{"summary":"order.accepted","description":"A store that accepts orders before preparing them accepted this one; it can move along now.\n\nSigned with `Cartirra-Signature`; may be delivered more than once (process `id` idempotently).","operationId":"webhook_order_accepted","tags":["Webhooks"],"parameters":[{"name":"Cartirra-Signature","in":"header","required":true,"schema":{"type":"string"},"example":"t=1792855903,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd"},{"name":"Cartirra-Event-Type","in":"header","required":true,"schema":{"type":"string","const":"order.accepted"}},{"name":"Cartirra-Event-Id","in":"header","required":true,"schema":{"type":"string"}},{"name":"Cartirra-Delivery-Id","in":"header","required":true,"schema":{"type":"string"},"description":"Differs per attempt and manual retry; the event id does not"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","object","type","livemode","created","data"],"properties":{"id":{"type":"string","description":"Unique per event; use it to ignore repeats","example":"evt_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b"},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"order.accepted"},"livemode":{"type":"boolean"},"created":{"type":"string","format":"date-time"},"data":{"type":"object","required":["object"],"properties":{"object":{"$ref":"#/components/schemas/WebhookOrder"}}}}}}}},"responses":{"2XX":{"description":"Any 2xx acknowledges the event. Anything else, or no answer in 10 s, is retried up to 8 times with exponential backoff from 10 s (about 21 minutes in all)."}}}},"order.rejected":{"post":{"summary":"order.rejected","description":"A store turned the order down: it is cancelled, and a paid one is refunded in full (refund.succeeded follows).\n\nSigned with `Cartirra-Signature`; may be delivered more than once (process `id` idempotently).","operationId":"webhook_order_rejected","tags":["Webhooks"],"parameters":[{"name":"Cartirra-Signature","in":"header","required":true,"schema":{"type":"string"},"example":"t=1792855903,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd"},{"name":"Cartirra-Event-Type","in":"header","required":true,"schema":{"type":"string","const":"order.rejected"}},{"name":"Cartirra-Event-Id","in":"header","required":true,"schema":{"type":"string"}},{"name":"Cartirra-Delivery-Id","in":"header","required":true,"schema":{"type":"string"},"description":"Differs per attempt and manual retry; the event id does not"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","object","type","livemode","created","data"],"properties":{"id":{"type":"string","description":"Unique per event; use it to ignore repeats","example":"evt_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b"},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"order.rejected"},"livemode":{"type":"boolean"},"created":{"type":"string","format":"date-time"},"data":{"type":"object","required":["object"],"properties":{"object":{"$ref":"#/components/schemas/WebhookOrder"}}}}}}}},"responses":{"2XX":{"description":"Any 2xx acknowledges the event. Anything else, or no answer in 10 s, is retried up to 8 times with exponential backoff from 10 s (about 21 minutes in all)."}}}},"loyalty.tier_changed":{"post":{"summary":"loyalty.tier_changed","description":"A loyalty member moved to another tier: up as soon as their 12-month spend reached it, down 30 days after it fell below.\n\nSigned with `Cartirra-Signature`; may be delivered more than once (process `id` idempotently).","operationId":"webhook_loyalty_tier_changed","tags":["Webhooks"],"parameters":[{"name":"Cartirra-Signature","in":"header","required":true,"schema":{"type":"string"},"example":"t=1792855903,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd"},{"name":"Cartirra-Event-Type","in":"header","required":true,"schema":{"type":"string","const":"loyalty.tier_changed"}},{"name":"Cartirra-Event-Id","in":"header","required":true,"schema":{"type":"string"}},{"name":"Cartirra-Delivery-Id","in":"header","required":true,"schema":{"type":"string"},"description":"Differs per attempt and manual retry; the event id does not"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","object","type","livemode","created","data"],"properties":{"id":{"type":"string","description":"Unique per event; use it to ignore repeats","example":"evt_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b"},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"loyalty.tier_changed"},"livemode":{"type":"boolean"},"created":{"type":"string","format":"date-time"},"data":{"type":"object","required":["object"],"properties":{"object":{"$ref":"#/components/schemas/WebhookTierChange"}}}}}}}},"responses":{"2XX":{"description":"Any 2xx acknowledges the event. Anything else, or no answer in 10 s, is retried up to 8 times with exponential backoff from 10 s (about 21 minutes in all)."}}}},"loyalty.reward_redeemed":{"post":{"summary":"loyalty.reward_redeemed","description":"A customer used a loyalty reward on a paid order. Gift cards and store credit are issued by Cartirra; a custom reward is yours to give with the order.\n\nSigned with `Cartirra-Signature`; may be delivered more than once (process `id` idempotently).","operationId":"webhook_loyalty_reward_redeemed","tags":["Webhooks"],"parameters":[{"name":"Cartirra-Signature","in":"header","required":true,"schema":{"type":"string"},"example":"t=1792855903,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd"},{"name":"Cartirra-Event-Type","in":"header","required":true,"schema":{"type":"string","const":"loyalty.reward_redeemed"}},{"name":"Cartirra-Event-Id","in":"header","required":true,"schema":{"type":"string"}},{"name":"Cartirra-Delivery-Id","in":"header","required":true,"schema":{"type":"string"},"description":"Differs per attempt and manual retry; the event id does not"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","object","type","livemode","created","data"],"properties":{"id":{"type":"string","description":"Unique per event; use it to ignore repeats","example":"evt_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b"},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"loyalty.reward_redeemed"},"livemode":{"type":"boolean"},"created":{"type":"string","format":"date-time"},"data":{"type":"object","required":["object"],"properties":{"object":{"$ref":"#/components/schemas/WebhookRewardUse"}}}}}}}},"responses":{"2XX":{"description":"Any 2xx acknowledges the event. Anything else, or no answer in 10 s, is retried up to 8 times with exponential backoff from 10 s (about 21 minutes in all)."}}}}},"components":{"schemas":{"ActorRefDto":{"type":"object","properties":{"type":{"type":"string","example":"user"},"id":{"type":["string","null"]}},"required":["type"]},"AddressDto":{"type":"object","properties":{"line":{"type":["string","null"],"example":"123 Acme Road"},"city":{"type":["string","null"],"example":"Ikeja"},"state":{"type":["string","null"],"example":"Lagos"},"country":{"type":["string","null"],"example":"NG"},"latitude":{"type":["number","null"],"example":6.5244},"longitude":{"type":["number","null"],"example":3.3792}}},"BalanceResponse":{"type":"object","properties":{"pending":{"description":"Bank transfers received today, after the 1.5% fee","allOf":[{"$ref":"#/components/schemas/MoneyResponse"}]},"available":{"description":"Settled at Lagos midnight; withdrawable","allOf":[{"$ref":"#/components/schemas/MoneyResponse"}]}},"required":["pending","available"]},"BillDetailResponse":{"type":"object","properties":{"id":{"type":"string","example":"bill_0193…"},"reference":{"type":"string","example":"BILL-20261026-004"},"status":{"type":"string","enum":["open","part_paid","closed","void"]},"close_reason":{"type":["string","null"],"enum":["paid","outside","manager",null]},"table_id":{"type":"string","example":"tbl_0193…"},"store_id":{"type":"string","format":"uuid"},"waiter_user_id":{"type":["string","null"],"format":"uuid","description":"The team member who opened it (null when opened with an API key)"},"items":{"description":"What was ordered; null when the bill was opened with just a total","type":["array","null"],"items":{"$ref":"#/components/schemas/BillItemResponse"}},"items_total":{"description":"The items’ total, before service charges and VAT","allOf":[{"$ref":"#/components/schemas/MoneyResponse"}]},"price":{"type":"object","additionalProperties":true,"description":"Price lines: items, service charges, VAT, total"},"total":{"$ref":"#/components/schemas/MoneyResponse"},"paid":{"description":"Paid through Cartirra","allOf":[{"$ref":"#/components/schemas/MoneyResponse"}]},"paid_outside":{"description":"Recorded as paid outside Cartirra (cash, POS)","allOf":[{"$ref":"#/components/schemas/MoneyResponse"}]},"tips":{"description":"Tips on top of the bill","allOf":[{"$ref":"#/components/schemas/MoneyResponse"}]},"balance":{"$ref":"#/components/schemas/MoneyResponse"},"split_parts":{"type":["number","null"]},"note":{"type":["string","null"]},"opened_at":{"type":"string"},"closed_at":{"type":["string","null"]},"void_reason":{"type":["string","null"]},"table":{"$ref":"#/components/schemas/TableResponse"},"payments":{"type":"array","items":{"$ref":"#/components/schemas/BillPaymentResponse"}},"outside_payments":{"type":"array","items":{"type":"object"}},"refunds":{"type":"array","items":{"$ref":"#/components/schemas/BillRefundResponse"}},"history":{"type":"array","items":{"type":"object"}}},"required":["id","reference","status","table_id","store_id","items_total","price","total","paid","paid_outside","tips","balance","opened_at","table","payments","outside_payments","refunds","history"]},"BillItemDto":{"type":"object","properties":{"name":{"type":"string","example":"Jollof rice and chicken"},"quantity":{"type":"number","example":2},"unit_price":{"description":"Price of one","allOf":[{"$ref":"#/components/schemas/MoneyDto"}]},"note":{"type":["string","null"],"example":"No pepper"}},"required":["name","quantity","unit_price"]},"BillItemResponse":{"type":"object","properties":{"name":{"type":"string","example":"Jollof rice and chicken"},"quantity":{"type":"number","example":2},"unit_price":{"$ref":"#/components/schemas/MoneyResponse"},"amount":{"description":"quantity × unit_price","allOf":[{"$ref":"#/components/schemas/MoneyResponse"}]},"note":{"type":["string","null"]}},"required":["name","quantity","unit_price","amount"]},"BillPaymentHitResponse":{"type":"object","properties":{"order_id":{"type":"string","example":"ord_0193…"},"reference":{"type":"string","example":"SHR-20261026-011"},"bill_id":{"type":"string","example":"bill_0193…"},"bill_reference":{"type":"string","example":"BILL-20261026-004"},"table":{"type":"string","example":"Table 12"},"method":{"type":"string","enum":["bank_transfer","card","wallet"]},"status":{"type":"string","enum":["pending","paid","partially_paid","lapsed","failed"]},"payment_status":{"type":"string","description":"The provider-confirmed state of the transaction"},"amount":{"$ref":"#/components/schemas/MoneyResponse"},"tip":{"$ref":"#/components/schemas/MoneyResponse"},"received":{"description":"What actually arrived","allOf":[{"$ref":"#/components/schemas/MoneyResponse"}]},"account_number":{"type":["string","null"]},"paid_at":{"type":["string","null"]},"created_at":{"type":"string"}},"required":["order_id","reference","bill_id","bill_reference","table","method","status","payment_status","amount","tip","received","created_at"]},"BillPaymentResponse":{"type":"object","properties":{"order_id":{"type":"string","example":"ord_0193…","description":"The payment’s order (kind bill_share)"},"method":{"type":"string","enum":["bank_transfer","card","wallet"]},"status":{"type":"string","enum":["pending","paid","partially_paid","lapsed","failed"]},"split":{"type":["object","null"],"additionalProperties":true,"description":"null: the whole balance; or { type: equal, parts } / { type: custom, amount }"},"amount":{"description":"Toward the bill","allOf":[{"$ref":"#/components/schemas/MoneyResponse"}]},"tip":{"$ref":"#/components/schemas/MoneyResponse"},"credited":{"description":"Credited to the bill","allOf":[{"$ref":"#/components/schemas/MoneyResponse"}]},"tip_received":{"$ref":"#/components/schemas/MoneyResponse"},"overpayment":{"description":"Sent above the payment and tip","allOf":[{"$ref":"#/components/schemas/MoneyResponse"}]},"overpayment_decision":{"type":["string","null"],"enum":["tip","refund",null]},"created_at":{"type":"string"}},"required":["order_id","method","status","amount","tip","credited","tip_received","overpayment","created_at"]},"BillRefundResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"bill_id":{"type":"string","example":"bill_0193…"},"order_id":{"type":"string","example":"ord_0193…"},"amount":{"$ref":"#/components/schemas/MoneyResponse"},"reason":{"type":"string","enum":["overpayment","bill_already_paid","bill_closed"]},"status":{"type":"string","enum":["pending","refunding","refunded","dismissed"]},"refund_id":{"type":["string","null"],"example":"rf_0193…"},"note":{"type":["string","null"]},"created_at":{"type":"string"}},"required":["id","bill_id","order_id","amount","reason","status","created_at"]},"BillResponse":{"type":"object","properties":{"id":{"type":"string","example":"bill_0193…"},"reference":{"type":"string","example":"BILL-20261026-004"},"status":{"type":"string","enum":["open","part_paid","closed","void"]},"close_reason":{"type":["string","null"],"enum":["paid","outside","manager",null]},"table_id":{"type":"string","example":"tbl_0193…"},"store_id":{"type":"string","format":"uuid"},"waiter_user_id":{"type":["string","null"],"format":"uuid","description":"The team member who opened it (null when opened with an API key)"},"items":{"description":"What was ordered; null when the bill was opened with just a total","type":["array","null"],"items":{"$ref":"#/components/schemas/BillItemResponse"}},"items_total":{"description":"The items’ total, before service charges and VAT","allOf":[{"$ref":"#/components/schemas/MoneyResponse"}]},"price":{"type":"object","additionalProperties":true,"description":"Price lines: items, service charges, VAT, total"},"total":{"$ref":"#/components/schemas/MoneyResponse"},"paid":{"description":"Paid through Cartirra","allOf":[{"$ref":"#/components/schemas/MoneyResponse"}]},"paid_outside":{"description":"Recorded as paid outside Cartirra (cash, POS)","allOf":[{"$ref":"#/components/schemas/MoneyResponse"}]},"tips":{"description":"Tips on top of the bill","allOf":[{"$ref":"#/components/schemas/MoneyResponse"}]},"balance":{"$ref":"#/components/schemas/MoneyResponse"},"split_parts":{"type":["number","null"]},"note":{"type":["string","null"]},"opened_at":{"type":"string"},"closed_at":{"type":["string","null"]},"void_reason":{"type":["string","null"]}},"required":["id","reference","status","table_id","store_id","items_total","price","total","paid","paid_outside","tips","balance","opened_at"]},"BoardBillResponse":{"type":"object","properties":{"id":{"type":"string","example":"bill_0193…"},"reference":{"type":"string","example":"BILL-20261026-004"},"status":{"type":"string","enum":["open","part_paid","closed","void"]},"close_reason":{"type":["string","null"],"enum":["paid","outside","manager",null]},"table_id":{"type":"string","example":"tbl_0193…"},"store_id":{"type":"string","format":"uuid"},"waiter_user_id":{"type":["string","null"],"format":"uuid","description":"The team member who opened it (null when opened with an API key)"},"items":{"description":"What was ordered; null when the bill was opened with just a total","type":["array","null"],"items":{"$ref":"#/components/schemas/BillItemResponse"}},"items_total":{"description":"The items’ total, before service charges and VAT","allOf":[{"$ref":"#/components/schemas/MoneyResponse"}]},"price":{"type":"object","additionalProperties":true,"description":"Price lines: items, service charges, VAT, total"},"total":{"$ref":"#/components/schemas/MoneyResponse"},"paid":{"description":"Paid through Cartirra","allOf":[{"$ref":"#/components/schemas/MoneyResponse"}]},"paid_outside":{"description":"Recorded as paid outside Cartirra (cash, POS)","allOf":[{"$ref":"#/components/schemas/MoneyResponse"}]},"tips":{"description":"Tips on top of the bill","allOf":[{"$ref":"#/components/schemas/MoneyResponse"}]},"balance":{"$ref":"#/components/schemas/MoneyResponse"},"split_parts":{"type":["number","null"]},"note":{"type":["string","null"]},"opened_at":{"type":"string"},"closed_at":{"type":["string","null"]},"void_reason":{"type":["string","null"]},"paying":{"description":"Being paid right now (held for guests mid-payment)","allOf":[{"$ref":"#/components/schemas/MoneyResponse"}]}},"required":["id","reference","status","table_id","store_id","items_total","price","total","paid","paid_outside","tips","balance","opened_at","paying"]},"BoardRowResponse":{"type":"object","properties":{"table":{"$ref":"#/components/schemas/TableResponse"},"status":{"type":"string","enum":["free","open","part_paid","paying"]},"bills":{"type":"array","items":{"$ref":"#/components/schemas/BoardBillResponse"}}},"required":["table","status","bills"]},"CancelDto":{"type":"object","properties":{"reason":{"type":"string","example":"customer_request"}},"required":["reason"]},"CardActionResponse":{"type":"object","properties":{"authorization_url":{"type":["string","null"],"description":"Open this to complete the card payment (provider's page)"},"provider":{"type":"string"},"status":{"type":"string","enum":["pending","succeeded","failed","unknown"]},"failure_code":{"type":["string","null"],"description":"e.g. card_declined, with the bank name when known"},"bank_name":{"type":["string","null"]}},"required":["provider","status"]},"CheckoutSessionResponse":{"type":"object","properties":{"id":{"type":"string","example":"cs_0193…"},"status":{"type":"string","enum":["open","awaiting_payment","completed","expired","cancelled"]},"currency":{"type":"string","example":"NGN"},"lines":{"type":"array","items":{"type":"object"},"description":"name, quantity, unit_price, sku, image_url, description and modifiers (name, quantity, price, group, sku); locked: true on lines the shopper can't change"},"changes":{"type":"array","items":{"type":"object"},"description":"\"What changed\": price, quantity or removed lines, and modifier_price or modifier_removed, from the merchant's cart check"},"fulfilment":{"type":["object","null"],"additionalProperties":true},"contact":{"type":"string","enum":["shopper","guest","none"]},"note":{"type":["string","null"]},"adjustments":{"type":"object","additionalProperties":true},"price":{"type":["object","null"],"additionalProperties":true,"description":"Price breakdown: lines, items_subtotal, total"},"order_id":{"type":["string","null"],"example":"ord_0193…"},"store_id":{"type":["string","null"]},"metadata":{"type":"object","additionalProperties":{"type":"string"}},"success_url":{"type":["string","null"]},"expires_at":{"type":"string"},"created_at":{"type":"string"}},"required":["id","status","currency","lines","changes","contact","adjustments","metadata","expires_at","created_at"]},"CloseDto":{"type":"object","properties":{"method":{"type":"string","enum":["cash","pos","transfer","other"],"description":"How the remainder (if any) was paid"},"force":{"type":"boolean","description":"Close even while guests are paying (money that arrives after is queued for refund)"},"note":{"type":"string"}}},"ContextPlanLimitsDto":{"type":"object","properties":{"stores":{"type":["number","null"],"description":"null = unlimited"},"team_members":{"type":["number","null"]},"delivery_areas_per_store":{"type":["number","null"]},"marketing_emails_per_month":{"type":["number","null"]},"marketing_sms_per_month":{"type":["number","null"]},"pay_at_table_stores":{"type":["number","null"],"description":"Stores with the Pay at table add-on"}}},"ContextPlanRefDto":{"type":"object","properties":{"code":{"type":"string","example":"growth","description":"Stable plan code: free (sold as Starter), growth, scale (Pro), enterprise"},"name":{"type":"string","example":"Cartirra Growth"}},"required":["code","name"]},"ContextPlanUsageDto":{"type":"object","properties":{"stores":{"type":"number","description":"Active stores"},"team_members":{"type":"number","description":"Active members taking a seat (waiters are free)"},"pay_at_table_stores":{"type":"number","description":"Stores with Pay at table switched on"}},"required":["stores","team_members","pay_at_table_stores"]},"ContextTenantDto":{"type":"object","properties":{"id":{"type":"string"},"live_enabled":{"type":"boolean"}},"required":["id","live_enabled"]},"CreateCheckoutSessionDto":{"type":"object","properties":{"lines":{"type":"array","items":{"$ref":"#/components/schemas/LineDto"}},"customer":{"description":"Prefills the widget; not shared without consent","allOf":[{"$ref":"#/components/schemas/CustomerHintDto"}]},"metadata":{"type":"object","additionalProperties":{"type":"string"},"example":{"cartId":"c_123"},"description":"Your own key-value pairs, returned on the order"},"success_url":{"type":["string","null"],"example":"https://shop.example.com/thanks"},"store_id":{"type":["string","null"],"format":"uuid","description":"Fix the store. Otherwise the shopper picks one for pickup, dine-in or courier, and delivery comes from the cheapest open store that reaches the address"},"attribution":{"description":"Where the shopper came from, for your ad platforms' conversion events (the widget adds what it finds on your page)","allOf":[{"$ref":"#/components/schemas/SessionAttributionDto"}]}},"required":["lines"]},"CreatedSessionResponse":{"type":"object","properties":{"id":{"type":"string","example":"cs_0193…"},"status":{"type":"string","enum":["open","awaiting_payment","completed","expired","cancelled"]},"currency":{"type":"string","example":"NGN"},"lines":{"type":"array","items":{"type":"object"},"description":"name, quantity, unit_price, sku, image_url, description and modifiers (name, quantity, price, group, sku); locked: true on lines the shopper can't change"},"changes":{"type":"array","items":{"type":"object"},"description":"\"What changed\": price, quantity or removed lines, and modifier_price or modifier_removed, from the merchant's cart check"},"fulfilment":{"type":["object","null"],"additionalProperties":true},"contact":{"type":"string","enum":["shopper","guest","none"]},"note":{"type":["string","null"]},"adjustments":{"type":"object","additionalProperties":true},"price":{"type":["object","null"],"additionalProperties":true,"description":"Price breakdown: lines, items_subtotal, total"},"order_id":{"type":["string","null"],"example":"ord_0193…"},"store_id":{"type":["string","null"]},"metadata":{"type":"object","additionalProperties":{"type":"string"}},"success_url":{"type":["string","null"]},"expires_at":{"type":"string"},"created_at":{"type":"string"},"client_secret":{"type":"string","description":"Give to the widget; never log it"}},"required":["id","status","currency","lines","changes","contact","adjustments","metadata","expires_at","created_at","client_secret"]},"CreatePaymentLinkDto":{"type":"object","properties":{"title":{"type":"string","example":"Office party order","description":"Shown to you in the dashboard; the shopper sees the items"},"lines":{"description":"The cart, as in a checkout session (modifiers and images included)","type":"array","items":{"$ref":"#/components/schemas/LineDto"}},"success_url":{"type":["string","null"],"example":"https://shop.example.com/thanks"},"store_id":{"type":["string","null"],"format":"uuid","description":"Fix the store. Otherwise the shopper picks one for pickup, dine-in or courier, and delivery comes from the cheapest open store that reaches the address"},"max_uses":{"type":["number","null"],"example":1,"description":"Paid orders it takes, then it stops; omit for no limit (1 for a one-off)"},"expires_at":{"type":["string","null"],"format":"date-time"}},"required":["title","lines"]},"CreateRefundDto":{"type":"object","properties":{"amount":{"description":"Leave out to refund everything still refundable","allOf":[{"$ref":"#/components/schemas/MoneyDto"}]},"reason":{"type":"string","example":"Customer returned the item"}},"required":["reason"]},"CreateTablesDto":{"type":"object","properties":{"names":{"example":["Table 1","Table 2","Patio 1"],"description":"Up to 100 at a time","type":"array","items":{"type":"string"}}},"required":["names"]},"CreateWarrantyDto":{"type":"object","properties":{"serial_number":{"type":["string","null"],"example":"R58W30ABCDE"},"starts_on":{"type":"string","example":"2026-10-27","description":"First covered day; defaults to the day the order was paid"},"ends_on":{"type":"string","example":"2027-10-26","description":"Last covered day; or give months or days"},"terms":{"type":["string","null"]},"covered_by":{"type":"string","enum":["merchant","manufacturer"]},"provider":{"type":["string","null"],"example":"Samsung Nigeria"},"line_index":{"type":"number","example":0,"description":"The order line it covers (its name is used unless item_name is given)"},"item_name":{"type":"string","example":"Samsung Galaxy A15","description":"Required without line_index"},"months":{"type":"number","example":12},"days":{"type":"number","example":90}}},"CreditNoteResponse":{"type":"object","properties":{"number":{"type":"string","example":"CN-2026-000001"},"issued_at":{"type":"string"}},"required":["number","issued_at"]},"CustomerActivityEntryResponse":{"type":"object","properties":{"at":{"type":"string"},"kind":{"type":"string","enum":["order_placed","order_completed","order_cancelled","promotion_used","points_earned","points_redeemed","store_credit","review"]},"text":{"type":"string","example":"Placed order ORD-7KQ3M9XA"},"order_id":{"type":["string","null"]}},"required":["at","kind","text","order_id"]},"CustomerActivityResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CustomerActivityEntryResponse"}},"next_before":{"type":["string","null"],"description":"Pass as `before` for older entries"}},"required":["data","next_before"]},"CustomerAddressResponse":{"type":"object","properties":{"line":{"type":"string"},"area":{"type":["string","null"]},"city":{"type":"string"},"state":{"type":"string"},"country":{"type":"string","example":"NG"},"last_used_at":{"type":"string"},"orders":{"type":"number","description":"Orders delivered to this address"}},"required":["line","area","city","state","country","last_used_at","orders"]},"CustomerHintDto":{"type":"object","properties":{"name":{"type":["string","null"]},"email":{"type":["string","null"]},"phone":{"type":["string","null"]}}},"CustomerResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"first_name":{"type":"string"},"last_name":{"type":"string"},"email":{"type":["string","null"]},"phone":{"type":["string","null"]},"type":{"type":"string","enum":["shopper","guest"]},"status":{"type":"string","enum":["active","blocked"]},"blocked_reason":{"type":["string","null"]},"orders_count":{"type":"number"},"total_spent":{"$ref":"#/components/schemas/MoneyResponse"},"average_order_value":{"$ref":"#/components/schemas/MoneyResponse"},"last_order_at":{"type":["string","null"],"format":"date-time"},"customer_since":{"type":"string"}},"required":["id","first_name","last_name","type","status","orders_count","total_spent","average_order_value","customer_since"]},"DeliveryAttemptResponse":{"type":"object","properties":{"attempted_at":{"type":"string"},"duration_ms":{"type":"number"},"status_code":{"type":["number","null"]},"response_excerpt":{"type":["string","null"],"description":"First characters of your response"},"error":{"type":["string","null"]},"success":{"type":"boolean"},"manual":{"type":"boolean","description":"Sent by a manual retry"}},"required":["attempted_at","duration_ms","status_code","response_excerpt","error","success","manual"]},"DepositAccountResponse":{"type":"object","properties":{"account_number":{"type":"string"},"account_name":{"type":"string"},"bank_name":{"type":"string"}},"required":["account_number","account_name","bank_name"]},"DepositResponse":{"type":"object","properties":{"id":{"type":"string","example":"dep_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b"},"reference":{"type":"string","example":"WAL-20261024-001"},"method":{"type":"string","enum":["bank_transfer","card"]},"status":{"type":"string","enum":["pending","succeeded","failed","expired"]},"amount":{"$ref":"#/components/schemas/MoneyResponse"},"simulated":{"type":"boolean","description":"Test mode, bank transfer: the transfer to the test account can be simulated (POST …/simulate)"},"account":{"description":"Bank transfer: where to send the money","oneOf":[{"allOf":[{"$ref":"#/components/schemas/DepositAccountResponse"}]},{"type":"null"}]},"authorization_url":{"type":["string","null"],"description":"Card: Paystack's payment page"},"expires_at":{"type":["string","null"],"format":"date-time"},"completed_at":{"type":["string","null"],"format":"date-time"},"created_at":{"type":"string"}},"required":["id","reference","method","status","amount","simulated","account","authorization_url","expires_at","completed_at","created_at"]},"DismissDto":{"type":"object","properties":{"note":{"type":"string","description":"How it was settled"}},"required":["note"]},"EditBillDto":{"type":"object","properties":{"items":{"description":"Replace the items (and so the total)","type":"array","items":{"$ref":"#/components/schemas/BillItemDto"}},"items_total":{"description":"Or set just the total (the item lines are dropped)","allOf":[{"$ref":"#/components/schemas/MoneyDto"}]},"note":{"type":["string","null"]},"split_parts":{"type":["number","null"]},"reason":{"type":"string","description":"Required when a manager changes the total after payments"}}},"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","enum":["validation_failed","not_found","conflict","concurrency_conflict","rate_limited","internal","invalid_amount","currency_mismatch","unsupported_currency","unauthenticated","credential_not_accepted","invalid_public_key","permission_denied","tenant_required","tenant_access_denied","merchant_suspended","invalid_mode","mode_mismatch","live_mode_not_enabled","store_not_assigned","mfa_required","feature_not_available","plan_limit_reached","idempotency_key_required","idempotency_key_reused","idempotency_request_in_progress","ledger_account_not_found","ledger_account_code_taken","ledger_account_inactive","ledger_unbalanced","ledger_insufficient_balance","ledger_idempotency_conflict","ledger_transaction_not_found","ledger_already_reversed","email_taken","phone_taken","email_not_verified","invalid_credentials","account_locked","invalid_code","code_expired","too_many_attempts","password_incorrect","password_reused","refresh_token_invalid","mfa_already_enabled","mfa_not_enabled","verification_required","business_name_locked","deletion_blocked","headquarters_protected","store_inactive","invitation_invalid","invitation_email_mismatch","already_member","role_not_assignable","role_system_protected","cannot_remove_self","compliance_locked","compliance_incomplete","file_too_large","unsupported_file_type","file_not_usable","store_closed","fulfilment_not_available","payment_method_not_available","wallet_insufficient_balance","wallet_not_available","checkout_session_expired","checkout_session_completed","checkout_incomplete","consent_required","provider_key_invalid","provider_not_connected","provider_unavailable","payment_already_succeeded","payment_expired","order_not_cancellable","order_issue_not_allowed","order_issue_already_open","order_issue_closed","warranty_not_allowed","warranty_voided","marketing_consent_required","marketing_setup_required","marketing_limit_reached","order_not_editable","order_awaiting_acceptance","order_not_awaiting_acceptance","slot_full","invalid_status_transition","webhook_signature_invalid","webhook_url_invalid","test_mode_only","embed_origin_not_allowed","bank_account_required","bank_account_cooling_down","bank_account_not_resolved","insufficient_balance","refund_not_allowed","payout_refused","customer_blocked","checkout_changed","minimum_order_not_met","payment_link_inactive","payment_link_expired","payment_link_used_up","checkout_already_paid","pay_on_delivery_not_available","pay_request_closed","bill_not_open","bill_nothing_to_pay","bill_balance_changed","bill_edit_not_allowed","bill_has_pending_payments","table_name_taken","pay_at_table_not_enabled","shopper_social_email_unverified","shopper_identity_linked_elsewhere","shopper_last_sign_in_method","shopper_wallet_not_empty","gift_card_linked_elsewhere","pay_request_claimed","app_handoff_closed","app_handoff_claimed","pay_on_delivery_not_payable","sign_in_provider_unavailable","undeliverable_address","promotion_not_eligible","role_in_use","last_owner","bank_name_mismatch"],"description":"Stable, machine-readable; switch on this, not on the message"},"message":{"type":"string","description":"Human-readable, may change","example":"The request is not valid"},"details":{"type":"object","additionalProperties":true,"description":"Extra context. Validation errors list `fields: [{ field, problems: [] }]`.","example":{"fields":[{"field":"lines[0].quantity","problems":["quantity must not be greater than 999"]}]}},"request_id":{"type":"string","description":"Quote it when contacting support","example":"01a16e8a-0c57-7682-99ff-a0f5e9abb52e"}}}}},"EventDeliveryResponse":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"status":{"type":"string","enum":["pending","delivered","retrying","failed"]},"attempts":{"type":"number"},"last_status_code":{"type":["number","null"]},"delivered_at":{"type":["string","null"],"format":"date-time"},"history":{"type":"array","items":{"$ref":"#/components/schemas/DeliveryAttemptResponse"}}},"required":["id","url","status","attempts","last_status_code","delivered_at","history"]},"EventDetailResponse":{"type":"object","properties":{"id":{"type":"string","example":"evt_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b"},"type":{"type":"string","enum":["order.created","order.updated","payment.succeeded","payment.failed","payment.expired","refund.succeeded","refund.failed","payout.paid","payout.failed","webhook.test","customer.created","customer.updated","customer.consent_revoked","bill.opened","bill.updated","bill.payment_received","bill.closed","bill.voided","order.issue_reported","order.issue_updated","warranty.created","warranty.updated","warranty.voided","order.accepted","order.rejected","loyalty.reward_redeemed","loyalty.tier_changed"]},"status":{"type":["string","null"],"enum":["pending","delivered","retrying","failed",null],"description":"The latest delivery's status; null when no endpoint was set"},"http_status":{"type":["number","null"],"example":200,"description":"What your endpoint answered on the latest delivery's last attempt; null before any answer"},"duration_ms":{"type":["number","null"],"example":182,"description":"How long that attempt took, in milliseconds"},"order_id":{"type":["string","null"],"example":"ord_0193…","description":"The order the event is about (order, payment and refund events)"},"created_at":{"type":"string"},"payload":{"type":"object","additionalProperties":true,"description":"The exact body delivered to your webhook endpoint: `{ id, object, type, livemode, created, data: { object } }`"},"deliveries":{"type":"array","items":{"$ref":"#/components/schemas/EventDeliveryResponse"}}},"required":["id","type","status","http_status","duration_ms","order_id","created_at","payload","deliveries"]},"EventResponse":{"type":"object","properties":{"id":{"type":"string","example":"evt_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b"},"type":{"type":"string","enum":["order.created","order.updated","payment.succeeded","payment.failed","payment.expired","refund.succeeded","refund.failed","payout.paid","payout.failed","webhook.test","customer.created","customer.updated","customer.consent_revoked","bill.opened","bill.updated","bill.payment_received","bill.closed","bill.voided","order.issue_reported","order.issue_updated","warranty.created","warranty.updated","warranty.voided","order.accepted","order.rejected","loyalty.reward_redeemed","loyalty.tier_changed"]},"status":{"type":["string","null"],"enum":["pending","delivered","retrying","failed",null],"description":"The latest delivery's status; null when no endpoint was set"},"http_status":{"type":["number","null"],"example":200,"description":"What your endpoint answered on the latest delivery's last attempt; null before any answer"},"duration_ms":{"type":["number","null"],"example":182,"description":"How long that attempt took, in milliseconds"},"order_id":{"type":["string","null"],"example":"ord_0193…","description":"The order the event is about (order, payment and refund events)"},"created_at":{"type":"string"},"payload":{"type":"object","additionalProperties":true,"description":"The exact body delivered to your webhook endpoint: `{ id, object, type, livemode, created, data: { object } }`"}},"required":["id","type","status","http_status","duration_ms","order_id","created_at","payload"]},"GiftCardDto":{"type":"object","properties":{"amount":{"$ref":"#/components/schemas/MoneyDto"},"expires_at":{"type":["string","null"],"format":"date-time"},"recipient":{"$ref":"#/components/schemas/GiftCardRecipientDto"}},"required":["amount"]},"GiftCardRecipientDto":{"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string"}}},"GiftCardRecipientResponse":{"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string"}}},"GiftCardResponse":{"type":"object","properties":{"id":{"type":"string"},"last4":{"type":"string","example":"JK23"},"initial_amount":{"$ref":"#/components/schemas/MoneyResponse"},"balance":{"$ref":"#/components/schemas/MoneyResponse"},"status":{"type":"string","enum":["active","disabled"]},"expires_at":{"type":["string","null"],"format":"date-time"},"recipient":{"oneOf":[{"allOf":[{"$ref":"#/components/schemas/GiftCardRecipientResponse"}]},{"type":"null"}]},"created_at":{"type":"string"}},"required":["id","last4","initial_amount","balance","status","expires_at","created_at"]},"IssuedGiftCardResponse":{"type":"object","properties":{"id":{"type":"string"},"last4":{"type":"string","example":"JK23"},"initial_amount":{"$ref":"#/components/schemas/MoneyResponse"},"balance":{"$ref":"#/components/schemas/MoneyResponse"},"status":{"type":"string","enum":["active","disabled"]},"expires_at":{"type":["string","null"],"format":"date-time"},"recipient":{"oneOf":[{"allOf":[{"$ref":"#/components/schemas/GiftCardRecipientResponse"}]},{"type":"null"}]},"created_at":{"type":"string"},"code":{"type":"string","example":"GC-ABCD-EFGH-JK23","description":"Shown only now; Cartirra keeps a hash"}},"required":["id","last4","initial_amount","balance","status","expires_at","created_at","code"]},"IssueOrderRef":{"type":"object","properties":{"id":{"type":"string","example":"ord_0193a1b2c3d47e8f9a0b1c2d3e4f5a6b"},"reference":{"type":"string","example":"ORD-X3RK9D5P"}},"required":["id","reference"]},"LineDto":{"type":"object","properties":{"name":{"type":"string","example":"Wireless headphones"},"quantity":{"type":"number","example":2},"unit_price":{"$ref":"#/components/schemas/MoneyDto"},"sku":{"type":["string","null"]},"image_url":{"type":["string","null"]},"description":{"type":["string","null"]},"modifiers":{"description":"The shopper's choices on each item (a size or colour, add-ons, \"gift wrap\" or \"no pepper\"). One item costs unit_price + each modifier's price × its quantity; the line costs that × quantity. Up to 30.","example":[{"group":"Colour","name":"Black"},{"group":"Extras","name":"Spare ear tips","quantity":2,"price":{"amount":"1000.00","currency":"NGN"}},{"name":"Gift wrap","price":{"amount":"500.00","currency":"NGN"}}],"type":"array","items":{"$ref":"#/components/schemas/ModifierDto"}},"warranty":{"description":"A warranty that comes with the item (Growth and above): the shopper gets it in their Cartirra account when the order is paid, starting that day","oneOf":[{"allOf":[{"$ref":"#/components/schemas/LineWarrantyDto"}]},{"type":"null"}]},"locked":{"type":"boolean","description":"The shopper can't change this line's quantity or remove it in the checkout. Lock the lines a deal depends on (the item a bundle price or gift comes with); the store's edit_quantities setting turns editing off for every line"}},"required":["name","quantity","unit_price"]},"LineWarrantyDto":{"type":"object","properties":{"months":{"type":["number","null"],"example":12,"description":"How long it lasts: months or days, one of them"},"days":{"type":["number","null"],"example":null},"terms":{"type":["string","null"],"example":"Covers faults from manufacture. Not water or screen damage."},"covered_by":{"type":"string","enum":["merchant","manufacturer"],"default":"merchant","description":"Who honours it"},"provider":{"type":["string","null"],"example":"Samsung Nigeria","description":"The manufacturer's name, for a manufacturer's warranty"}}},"ModifierDto":{"type":"object","properties":{"name":{"type":"string","example":"Spare ear tips"},"quantity":{"type":"number","example":2,"default":1,"description":"How many on each item of the line: 2 = two on every one"},"price":{"description":"Price of one, added to the item price; omit for a free choice","allOf":[{"$ref":"#/components/schemas/MoneyDto"}]},"group":{"type":["string","null"],"example":"Colour","description":"The option group it belongs to (\"Size\", \"Colour\", \"Extras\"), shown with it"},"sku":{"type":["string","null"]}},"required":["name"]},"Money":{"type":"object","required":["amount","currency"],"properties":{"amount":{"type":"string","description":"Decimal string, never a float","example":"10500.00"},"currency":{"type":"string","description":"ISO 4217","example":"NGN"}}},"MoneyDto":{"type":"object","properties":{"amount":{"type":"string","example":"13800.00","description":"Decimal string; never a number"},"currency":{"type":"string","example":"NGN"}},"required":["amount","currency"]},"MoneyResponse":{"type":"object","properties":{"amount":{"type":"string","example":"13800.00"},"currency":{"type":"string","example":"NGN"}},"required":["amount","currency"]},"OpenBillDto":{"type":"object","properties":{"table_id":{"type":"string","example":"tbl_0193…"},"items":{"description":"What was ordered, so guests see what they had; they add up to the items total. Send these or items_total","type":"array","items":{"$ref":"#/components/schemas/BillItemDto"}},"items_total":{"description":"Or just the items total. Either way, the venue’s service charges and VAT are added","allOf":[{"$ref":"#/components/schemas/MoneyDto"}]},"note":{"type":["string","null"]},"split_parts":{"type":["number","null"],"description":"Suggest an equal split (2–30 people); guests can still pay the whole bill"}},"required":["table_id"]},"OrderAddressDto":{"type":"object","properties":{"line":{"type":"string","example":"12 Admiralty Way"},"area":{"type":["string","null"],"example":"Lekki Phase 1"},"city":{"type":"string","example":"Lagos"},"state":{"type":"string","example":"Lagos"},"country":{"type":"string","example":"NG"},"latitude":{"type":["number","null"]},"longitude":{"type":["number","null"]},"notes":{"type":["string","null"]}},"required":["line","city","state","country"]},"OrderAppliedDeductionResponse":{"type":"object","properties":{"kind":{"type":"string","enum":["reward","loyalty","store_credit","gift_card"]},"amount_minor":{"type":"string","example":"50000","description":"Minor units, as a string"},"points":{"type":"integer","description":"Loyalty or a reward: points redeemed"},"gift_card_id":{"type":"string","format":"uuid","description":"Gift card: which card"},"reward_id":{"type":"string","format":"uuid","description":"Reward: which reward"},"grant_id":{"type":"string","format":"uuid","description":"Reward: the grant used, when it was given rather than bought"}},"required":["kind","amount_minor"]},"OrderAppliedPromotionResponse":{"type":"object","properties":{"promotion_id":{"type":"string","format":"uuid"},"amount_minor":{"type":"string","example":"50000","description":"Minor units, as a string"},"target":{"type":"string","enum":["items","delivery"]}},"required":["promotion_id","amount_minor","target"]},"OrderContactResponse":{"type":"object","properties":{"name":{"type":"string","example":"Ada Obi"},"email":{"type":["string","null"]},"phone":{"type":["string","null"],"example":"+2348012345678"}},"required":["name"]},"OrderCourierFulfilmentResponse":{"type":"object","properties":{"store_id":{"type":"string","format":"uuid"},"store_name":{"type":["string","null"],"example":"Lekki branch"},"scheduled_for":{"type":["string","null"],"format":"date-time","description":"Scheduled for this time (CHK-07); null or absent = as soon as possible"},"recipient":{"description":"Checkout orders: who receives it (null = the shopper)","oneOf":[{"allOf":[{"$ref":"#/components/schemas/OrderRecipientResponse"}]},{"type":"null"}]},"type":{"type":"string","enum":["courier"]},"store_address":{"type":["string","null"]},"ready_in_minutes":{"type":"integer"},"courier_name":{"type":"string"},"courier_phone":{"type":"string"}},"required":["store_id","type","ready_in_minutes","courier_name","courier_phone"]},"OrderDeliveryAddressResponse":{"type":"object","properties":{"address_id":{"type":["string","null"],"format":"uuid","description":"The shopper's saved address; null once the business corrects it"},"line":{"type":"string","example":"12 Admiralty Way"},"area":{"type":["string","null"],"example":"Lekki Phase 1"},"city":{"type":"string","example":"Lagos"},"state":{"type":"string","example":"Lagos"},"country":{"type":"string","example":"NG"},"latitude":{"type":["number","null"]},"longitude":{"type":["number","null"]},"notes":{"type":["string","null"]}},"required":["line","city","state","country"]},"OrderDeliveryFulfilmentResponse":{"type":"object","properties":{"store_id":{"type":"string","format":"uuid"},"store_name":{"type":["string","null"],"example":"Lekki branch"},"scheduled_for":{"type":["string","null"],"format":"date-time","description":"Scheduled for this time (CHK-07); null or absent = as soon as possible"},"recipient":{"description":"Checkout orders: who receives it (null = the shopper)","oneOf":[{"allOf":[{"$ref":"#/components/schemas/OrderRecipientResponse"}]},{"type":"null"}]},"type":{"type":"string","enum":["delivery"]},"address":{"$ref":"#/components/schemas/OrderDeliveryAddressResponse"},"fee":{"description":"The fee quoted at checkout; kept when the address is corrected or the store changes","allOf":[{"$ref":"#/components/schemas/MoneyResponse"}]},"min_eta_minutes":{"type":"integer"},"max_eta_minutes":{"type":"integer"},"zone":{"type":["string","null"],"description":"The delivery area it fell in"},"distance_km":{"type":["number","null"]},"min_order":{"description":"The smallest items subtotal for this delivery (ADR 0027); null = none","oneOf":[{"allOf":[{"$ref":"#/components/schemas/MoneyResponse"}]},{"type":"null"}]}},"required":["store_id","type","address","fee","min_eta_minutes","max_eta_minutes"]},"OrderDineInFulfilmentResponse":{"type":"object","properties":{"store_id":{"type":"string","format":"uuid"},"store_name":{"type":["string","null"],"example":"Lekki branch"},"scheduled_for":{"type":["string","null"],"format":"date-time","description":"Scheduled for this time (CHK-07); null or absent = as soon as possible"},"recipient":{"description":"Checkout orders: who receives it (null = the shopper)","oneOf":[{"allOf":[{"$ref":"#/components/schemas/OrderRecipientResponse"}]},{"type":"null"}]},"type":{"type":"string","enum":["dine_in"]},"table_number":{"type":["string","null"]},"table_id":{"type":"string","format":"uuid","description":"Bill shares (Pay at table): the table"},"bill_id":{"type":"string","example":"bill_0193…","description":"Bill shares: the bill paid toward"},"bill_reference":{"type":"string","description":"Bill shares: the bill reference"}},"required":["store_id","type"]},"OrderHistoryResponse":{"type":"object","properties":{"side":{"type":"string","enum":["customer","merchant","system"]},"event":{"type":"string","example":"status:completed"},"actor_type":{"type":"string","example":"user"},"details":{"type":"object","additionalProperties":true},"occurred_at":{"type":"string"}},"required":["side","event","actor_type","details","occurred_at"]},"OrderIssueResponse":{"type":"object","properties":{"id":{"type":"string","example":"iss_0193a1b2c3d47e8f9a0b1c2d3e4f5a6b"},"reference":{"type":"string","example":"ISS-20261027-001"},"order":{"$ref":"#/components/schemas/IssueOrderRef"},"store_id":{"type":"string","format":"uuid"},"categories":{"type":"array","items":{"type":"string","enum":["missing_item","wrong_item","damaged","quality","late","not_received","overcharged","other"]}},"description":{"type":"string"},"requested_resolution":{"type":["string","null"],"enum":["refund","replacement","store_credit","other",null]},"status":{"type":"string","enum":["open","in_review","resolved","rejected","withdrawn"]},"resolution_note":{"type":["string","null"],"description":"The store's note to the shopper"},"refund_id":{"type":["string","null"],"example":"rf_0193…","description":"A refund made while the report was open"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"closed_at":{"type":["string","null"]}},"required":["id","reference","order","store_id","categories","description","status","created_at","updated_at"]},"OrderLineModifierResponse":{"type":"object","properties":{"name":{"type":"string","example":"Extra chicken"},"quantity":{"type":"integer","example":1},"price":{"description":"Per portion; 0 for free choices","allOf":[{"$ref":"#/components/schemas/MoneyResponse"}]},"group":{"type":["string","null"],"example":"Protein","description":"The option group"},"sku":{"type":["string","null"]}},"required":["name","quantity","price"]},"OrderLineResponse":{"type":"object","properties":{"name":{"type":"string","example":"Jollof rice"},"quantity":{"type":"integer","example":2},"unit_price":{"description":"The item alone, before its modifiers","allOf":[{"$ref":"#/components/schemas/MoneyResponse"}]},"sku":{"type":["string","null"]},"image_url":{"type":["string","null"]},"description":{"type":["string","null"]},"modifiers":{"description":"Choices on each item; absent on orders from before modifiers","type":"array","items":{"$ref":"#/components/schemas/OrderLineModifierResponse"}},"warranty":{"description":"Absent when the item has no warranty","allOf":[{"$ref":"#/components/schemas/OrderLineWarrantyResponse"}]}},"required":["name","quantity","unit_price"]},"OrderLineWarrantyResponse":{"type":"object","properties":{"months":{"type":["integer","null"]},"days":{"type":["integer","null"]},"terms":{"type":["string","null"]},"covered_by":{"type":"string","enum":["merchant","manufacturer"]},"provider":{"type":["string","null"],"example":"Samsung Nigeria","description":"Who honours a manufacturer's warranty"}},"required":["covered_by"]},"OrderPickupFulfilmentResponse":{"type":"object","properties":{"store_id":{"type":"string","format":"uuid"},"store_name":{"type":["string","null"],"example":"Lekki branch"},"scheduled_for":{"type":["string","null"],"format":"date-time","description":"Scheduled for this time (CHK-07); null or absent = as soon as possible"},"recipient":{"description":"Checkout orders: who receives it (null = the shopper)","oneOf":[{"allOf":[{"$ref":"#/components/schemas/OrderRecipientResponse"}]},{"type":"null"}]},"type":{"type":"string","enum":["pickup"]},"store_address":{"type":["string","null"]},"ready_in_minutes":{"type":"integer"}},"required":["store_id","type","ready_in_minutes"]},"OrderPointsResponse":{"type":"object","properties":{"redeemed":{"type":"number"},"earned":{"type":"number","description":"Earned when the order completes"}},"required":["redeemed","earned"]},"OrderPriceAppliedResponse":{"type":"object","properties":{"customer_id":{"type":["string","null"],"format":"uuid"},"promotions":{"type":"array","items":{"$ref":"#/components/schemas/OrderAppliedPromotionResponse"}},"deductions":{"type":"array","items":{"$ref":"#/components/schemas/OrderAppliedDeductionResponse"}}},"required":["promotions","deductions"]},"OrderPriceLineResponse":{"type":"object","properties":{"kind":{"type":"string","enum":["items","discount","service_charge","tax","delivery","delivery_discount","reward","loyalty","store_credit","gift_card","tip","overpayment"],"description":"Discounts, delivery discounts, loyalty, store credit and gift cards are negative; overpayment: sent above a bill share (ADR 0029)"},"label":{"type":"string","example":"VAT"},"amount":{"$ref":"#/components/schemas/MoneyResponse"},"bps":{"type":"integer","example":750,"description":"Percentage lines: basis points (750 = 7.5%)"},"promotion_id":{"type":"string","format":"uuid","description":"Promotion lines: which promotion"}},"required":["kind","label","amount"]},"OrderPriceResponse":{"type":"object","properties":{"lines":{"description":"Items, discounts, service charges, taxes, delivery, loyalty, store credit, gift card, tip, in that order","type":"array","items":{"$ref":"#/components/schemas/OrderPriceLineResponse"}},"items_subtotal":{"$ref":"#/components/schemas/MoneyResponse"},"total":{"$ref":"#/components/schemas/MoneyResponse"},"applied":{"description":"Checkout orders: the promotions and deductions applied","allOf":[{"$ref":"#/components/schemas/OrderPriceAppliedResponse"}]}},"required":["lines","items_subtotal","total"]},"OrderPromotionResponse":{"type":"object","properties":{"promotion_id":{"type":"string"},"name":{"type":"string"},"type":{"type":"string","example":"percentage"},"code":{"type":["string","null"]},"percent":{"type":["number","null"]},"discount":{"$ref":"#/components/schemas/MoneyResponse"},"status":{"type":"string","enum":["reserved","confirmed","released"]}},"required":["promotion_id","name","type","code","percent","discount","status"]},"OrderRecipientResponse":{"type":"object","properties":{"type":{"type":"string","enum":["self","someone_else","gift"]},"name":{"type":["string","null"]},"phone":{"type":["string","null"]},"email":{"type":["string","null"],"description":"Where the recipient's order updates can go"},"gift_message":{"type":["string","null"]}},"required":["type"]},"OrderRelatedResponse":{"type":"object","properties":{"promotions":{"type":"array","items":{"$ref":"#/components/schemas/OrderPromotionResponse"}},"points":{"$ref":"#/components/schemas/OrderPointsResponse"},"review":{"oneOf":[{"allOf":[{"$ref":"#/components/schemas/OrderReviewResponse"}]},{"type":"null"}]}},"required":["promotions","points","review"]},"OrderResponse":{"type":"object","properties":{"id":{"type":"string","example":"ord_0193…"},"reference":{"type":"string","example":"ORD-7KQ3M9XA"},"kind":{"type":"string","enum":["order","bill_share"],"description":"bill_share: a payment toward a table bill (Pay at table), numbered SHR-…"},"bill_id":{"type":["string","null"],"example":"bill_0193…","description":"The table bill a bill_share pays toward"},"status":{"type":"string","enum":["pending","processing","out_for_delivery","ready_for_pickup","completed","cancelled"]},"payment_status":{"type":"string","enum":["pending","paid","failed","partially_refunded","refunded"]},"payment_method":{"type":"string","enum":["bank_transfer","card","wallet","pay_on_delivery","pay_for_me","cartirra_app"]},"fulfilment_type":{"type":"string","enum":["delivery","pickup","dine_in","courier"]},"fulfilment":{"oneOf":[{"$ref":"#/components/schemas/OrderDeliveryFulfilmentResponse"},{"$ref":"#/components/schemas/OrderPickupFulfilmentResponse"},{"$ref":"#/components/schemas/OrderDineInFulfilmentResponse"},{"$ref":"#/components/schemas/OrderCourierFulfilmentResponse"}],"description":"By fulfilment_type"},"store_id":{"type":"string"},"customer_id":{"type":["string","null"]},"contact":{"$ref":"#/components/schemas/OrderContactResponse"},"lines":{"type":"array","items":{"$ref":"#/components/schemas/OrderLineResponse"}},"price":{"description":"Price breakdown snapshot","allOf":[{"$ref":"#/components/schemas/OrderPriceResponse"}]},"note":{"type":["string","null"]},"placed_at":{"type":"string"},"paid_at":{"type":["string","null"],"format":"date-time"},"completed_at":{"type":["string","null"],"format":"date-time"},"cancelled_at":{"type":["string","null"],"format":"date-time"},"cancel_reason":{"type":["string","null"]},"acceptance":{"type":["string","null"],"enum":["awaiting","accepted","rejected",null],"description":"Set when the store accepts orders before preparing them (null otherwise); a rejected order is cancelled"},"accepted_at":{"type":["string","null"],"format":"date-time"}},"required":["id","reference","kind","status","payment_status","payment_method","fulfilment_type","fulfilment","store_id","contact","lines","price","placed_at"]},"OrderReviewResponse":{"type":"object","properties":{"id":{"type":"string"},"rating":{"type":"number","minimum":1,"maximum":5},"comment":{"type":["string","null"]},"created_at":{"type":"string"}},"required":["id","rating","comment","created_at"]},"OutsideDto":{"type":"object","properties":{"amount":{"$ref":"#/components/schemas/MoneyDto"},"method":{"type":"string","enum":["cash","pos","transfer","other"]},"note":{"type":"string"}},"required":["amount","method"]},"PayAtTableStoreDto":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Turn Pay at table on or off at the store (on needs a free place on the per-store add-on)"}},"required":["enabled"]},"PayAtTableStoreResponse":{"type":"object","properties":{"store_id":{"type":"string","format":"uuid"},"name":{"type":"string","example":"Lekki"},"enabled":{"type":"boolean","description":"Pay at table is turned on here"},"active":{"type":"boolean","description":"On and within the add-on’s quantity: tables and new bills work here"},"enabled_at":{"type":["string","null"]}},"required":["store_id","name","enabled","active","enabled_at"]},"PayAtTableStoresResponse":{"type":"object","properties":{"limit":{"type":["number","null"],"description":"Stores the add-on covers (its quantity); null = every store (Enterprise)"},"enabled":{"type":"number","description":"Stores it’s turned on at"},"stores":{"type":"array","items":{"$ref":"#/components/schemas/PayAtTableStoreResponse"}}},"required":["limit","enabled","stores"]},"PaymentLinkResponse":{"type":"object","properties":{"id":{"type":"string","example":"plink_0193…"},"url":{"type":"string","example":"https://checkout.cartirra.com/l/Xb3…","description":"Share this: WhatsApp, Instagram, SMS, email"},"title":{"type":"string"},"status":{"type":"string","enum":["active","inactive"]},"lines":{"type":"array","items":{"type":"object"}},"items_total":{"description":"The items total (delivery, fees and taxes are added at checkout)","allOf":[{"$ref":"#/components/schemas/MoneyResponse"}]},"success_url":{"type":["string","null"]},"store_id":{"type":["string","null"]},"max_uses":{"type":["number","null"]},"uses":{"type":"number","description":"Orders paid through it"},"expires_at":{"type":["string","null"]},"created_at":{"type":"string"}},"required":["id","url","title","status","lines","items_total","uses","created_at"]},"PaymentResponse":{"type":"object","properties":{"id":{"type":"string","example":"pay_0193…"},"order_id":{"type":"string","example":"ord_0193…"},"method":{"type":"string","enum":["bank_transfer","card","wallet","pay_on_delivery","pay_for_me","cartirra_app"]},"status":{"type":"string","enum":["requires_action","processing","succeeded","failed","expired","unknown","cancelled"]},"amount":{"$ref":"#/components/schemas/MoneyResponse"},"amount_received":{"$ref":"#/components/schemas/MoneyResponse"},"succeeded_at":{"type":["string","null"],"format":"date-time"},"provider":{"type":["string","null"],"example":"paystack","description":"Who took the money: the card provider, pletopay for bank transfers, wallet for the Cartirra wallet"},"reference":{"type":["string","null"],"example":"cpa-0193…","description":"The payment's reference at the provider: the card transaction's reference (as the provider's dashboard shows it), or the transfer's at Pletopay"},"bank_transfer":{"oneOf":[{"allOf":[{"$ref":"#/components/schemas/TransferDetailsResponse"}]},{"type":"null"}]},"card":{"oneOf":[{"allOf":[{"$ref":"#/components/schemas/CardActionResponse"}]},{"type":"null"}]}},"required":["id","order_id","method","status","amount","amount_received"]},"PayoutResponse":{"type":"object","properties":{"id":{"type":"string","example":"po_0193…"},"reference":{"type":"string","example":"WAL-20261024-001"},"status":{"type":"string","enum":["pending","processing","paid","failed"]},"amount":{"$ref":"#/components/schemas/MoneyResponse"},"fee":{"description":"Transfer fee (₦15 + VAT)","allOf":[{"$ref":"#/components/schemas/MoneyResponse"}]},"bank_name":{"type":"string"},"account_number_last4":{"type":"string"},"account_name":{"type":"string"},"trigger":{"type":"string","enum":["manual","auto"]},"failure_reason":{"type":["string","null"]},"created_at":{"type":"string"},"completed_at":{"type":["string","null"],"format":"date-time"}},"required":["id","reference","status","amount","fee","bank_name","account_number_last4","account_name","trigger","created_at"]},"PersonRefResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string","example":"Ada Obi"}},"required":["id","name"]},"PromotionCustomerRefResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string","example":"Ada Obi"},"email":{"type":["string","null"]}},"required":["id","name"]},"PromotionDto":{"type":"object","properties":{"name":{"type":"string","example":"10% off orders"},"type":{"type":"string","enum":["percentage","fixed_amount","free_shipping","fixed_shipping","first_purchase","cart_threshold"]},"percent":{"type":["number","null"],"example":10,"description":"Percent off (percentage, and first purchase / cart threshold when percent)"},"amount":{"description":"Amount off, or the delivery price for fixed shipping","allOf":[{"$ref":"#/components/schemas/MoneyDto"}]},"max_discount":{"oneOf":[{"allOf":[{"$ref":"#/components/schemas/MoneyDto"}]},{"type":"null"}]},"activation":{"type":"string","enum":["automatic","code"]},"code":{"type":["string","null"],"example":"SAVE10"},"min_order_value":{"oneOf":[{"allOf":[{"$ref":"#/components/schemas/MoneyDto"}]},{"type":"null"}]},"max_order_value":{"oneOf":[{"allOf":[{"$ref":"#/components/schemas/MoneyDto"}]},{"type":"null"}]},"customer_restriction":{"type":"string","enum":["all","new","returning","specific"]},"store_ids":{"description":"Empty = every store","type":"array","items":{"type":"string"}},"customer_ids":{"description":"With customer_restriction \"specific\": the customers it is for (at most 500)","type":"array","items":{"type":"string"}},"total_limit":{"type":["number","null"]},"per_customer_limit":{"type":["number","null"]},"stackable":{"type":"boolean","description":"Automatic only: may combine with a code and other stackable promotions"},"starts_at":{"type":["string","null"],"format":"date-time"},"ends_at":{"type":["string","null"],"format":"date-time"}},"required":["name","type","activation"]},"PromotionResponse":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"type":{"type":"string","enum":["percentage","fixed_amount","free_shipping","fixed_shipping","first_purchase","cart_threshold"]},"percent":{"type":["number","null"],"description":"Percentage promotions"},"amount":{"description":"Fixed-amount promotions","oneOf":[{"allOf":[{"$ref":"#/components/schemas/MoneyResponse"}]},{"type":"null"}]},"max_discount":{"oneOf":[{"allOf":[{"$ref":"#/components/schemas/MoneyResponse"}]},{"type":"null"}]},"activation":{"type":"string","enum":["automatic","code"]},"code":{"type":["string","null"]},"min_order_value":{"oneOf":[{"allOf":[{"$ref":"#/components/schemas/MoneyResponse"}]},{"type":"null"}]},"max_order_value":{"oneOf":[{"allOf":[{"$ref":"#/components/schemas/MoneyResponse"}]},{"type":"null"}]},"customer_restriction":{"type":"string","enum":["all","new","returning","specific"]},"store_ids":{"description":"Empty = every store","type":"array","items":{"type":"string"}},"customers":{"description":"With customer_restriction \"specific\": the customers it is for","type":"array","items":{"$ref":"#/components/schemas/PromotionCustomerRefResponse"}},"total_limit":{"type":["number","null"]},"per_customer_limit":{"type":["number","null"]},"stackable":{"type":"boolean"},"starts_at":{"type":["string","null"],"format":"date-time"},"ends_at":{"type":["string","null"],"format":"date-time"},"status":{"type":"string","enum":["draft","scheduled","active","paused","ended","expired"]},"redemption_count":{"type":"integer","minimum":0,"description":"Confirmed redemptions in this mode (shown against total_limit, e.g. \"12/100\")"},"created_by":{"description":"The member who created it; null when an API key or Cartirra did","oneOf":[{"allOf":[{"$ref":"#/components/schemas/PersonRefResponse"}]},{"type":"null"}]},"created_at":{"type":"string"}},"required":["id","name","type","percent","amount","max_discount","activation","code","min_order_value","max_order_value","customer_restriction","store_ids","customers","total_limit","per_customer_limit","stackable","starts_at","ends_at","status","redemption_count","created_by","created_at"]},"ReceiptResponse":{"type":"object","properties":{"number":{"type":"string","example":"RC-2026-000001"},"issued_at":{"type":"string"},"business":{"type":"object","additionalProperties":true},"store":{"type":"object","additionalProperties":true},"order":{"type":"object","additionalProperties":true,"description":"Reference, fulfilment and dates"},"lines":{"type":"array","items":{"type":"object"}},"price":{"type":"object","additionalProperties":true,"description":"The price breakdown the customer paid"},"payment":{"type":"object","additionalProperties":true},"customer":{"type":"object","additionalProperties":true}},"required":["number","issued_at","business","store","order","lines","price","payment","customer"]},"ReconciliationResponse":{"type":"object","properties":{"day":{"type":"string","example":"2026-10-26"},"store_id":{"type":["string","null"],"format":"uuid"},"bills":{"type":"object","additionalProperties":true,"description":"opened, closed, voided, still_open, billed, open_balance"},"via_cartirra":{"type":"array","items":{"type":"object"},"description":"Per method: payments, received, toward_bills, tips, cartirra_fees"},"outside_cartirra":{"type":"array","items":{"type":"object"},"description":"Per method: count, amount"},"tips_by_waiter":{"type":"array","items":{"type":"object"}},"refunds":{"type":"object","additionalProperties":true},"totals":{"type":"object","additionalProperties":true}},"required":["day","bills","via_cartirra","outside_cartirra","tips_by_waiter","refunds","totals"]},"RefundListResponse":{"type":"object","properties":{"refundable":{"description":"What can still be refunded; null when nothing can","oneOf":[{"allOf":[{"$ref":"#/components/schemas/MoneyResponse"}]},{"type":"null"}]},"data":{"type":"array","items":{"$ref":"#/components/schemas/RefundResponse"}}},"required":["refundable","data"]},"RefundResponse":{"type":"object","properties":{"id":{"type":"string","example":"rf_0193…"},"reference":{"type":"string","example":"RFD-20261024-001"},"status":{"type":"string","enum":["pending","processing","succeeded","failed"]},"method":{"type":"string","enum":["bank_transfer","card"]},"amount":{"$ref":"#/components/schemas/MoneyResponse"},"fee":{"description":"Transfer fee charged to your balance (bank transfers)","allOf":[{"$ref":"#/components/schemas/MoneyResponse"}]},"reason":{"type":"string"},"failure_reason":{"type":["string","null"]},"created_at":{"type":"string"},"completed_at":{"type":["string","null"],"format":"date-time"}},"required":["id","reference","status","method","amount","fee","reason","created_at"]},"RejectOrderDto":{"type":"object","properties":{"reason":{"type":"string","enum":["out_of_stock","too_busy","closed","cannot_deliver","other"],"description":"Shown to the customer in words"},"note":{"type":["string","null"],"description":"A note the customer reads in the email; needed with \"other\""}},"required":["reason"]},"RequestContextResponse":{"type":"object","properties":{"actor":{"$ref":"#/components/schemas/ActorRefDto"},"surface":{"type":"string","enum":["dashboard","server","widget"]},"tenant":{"oneOf":[{"allOf":[{"$ref":"#/components/schemas/ContextTenantDto"}]},{"type":"null"}]},"mode":{"type":["string","null"],"enum":["test","live",null]},"store_scope":{"type":["string","null"],"description":"Store the caller is limited to; null = all stores"},"role":{"type":["string","null"]},"permissions":{"description":"`*` for super admins","type":"array","items":{"type":"string"}},"plan":{"description":"The business's plan; null without a business or on the widget","oneOf":[{"allOf":[{"$ref":"#/components/schemas/ContextPlanRefDto"}]},{"type":"null"}]},"features":{"description":"Features the plan and add-ons include (e.g. data_exports, warranties); empty without a plan","type":"array","items":{"type":"string"}},"limits":{"oneOf":[{"allOf":[{"$ref":"#/components/schemas/ContextPlanLimitsDto"}]},{"type":"null"}]},"usage":{"oneOf":[{"allOf":[{"$ref":"#/components/schemas/ContextPlanUsageDto"}]},{"type":"null"}]}},"required":["actor","surface","permissions","features"]},"ReviewReplyResponse":{"type":"object","properties":{"text":{"type":"string"},"replied_at":{"type":"string","format":"date-time"},"updated_at":{"type":["string","null"],"format":"date-time","description":"Last edited"}},"required":["text","replied_at"]},"ReviewResponse":{"type":"object","properties":{"id":{"type":"string"},"order_id":{"type":"string","example":"ord_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b"},"order_reference":{"type":["string","null"],"example":"ORD-7KQ3M9XA"},"store_id":{"type":"string"},"customer_id":{"type":["string","null"]},"customer_name":{"type":["string","null"]},"rating":{"type":"number","minimum":1,"maximum":5},"comment":{"type":["string","null"]},"created_at":{"type":"string"},"reply":{"description":"The business's public reply; the shopper sees it in the app","oneOf":[{"allOf":[{"$ref":"#/components/schemas/ReviewReplyResponse"}]},{"type":"null"}]}},"required":["id","order_id","order_reference","store_id","customer_id","customer_name","rating","comment","created_at"]},"ReviewSummaryResponse":{"type":"object","properties":{"count":{"type":"number"},"average":{"type":["number","null"],"example":4.6},"by_rating":{"type":"object","additionalProperties":{"type":"number"},"example":{"1":0,"2":0,"3":1,"4":2,"5":7}}},"required":["count","average","by_rating"]},"SessionAttributionDto":{"type":"object","properties":{"fbp":{"type":"string","example":"fb.1.1730000000000.123456789","description":"Meta's `_fbp` cookie"},"fbc":{"type":"string","description":"Meta's `_fbc` cookie"},"fbclid":{"type":"string","description":"`fbclid` from the landing URL"},"ga_client_id":{"type":"string","example":"GA1.1.123456789.1730000000","description":"Google Analytics `_ga` cookie, or its client id"},"gclid":{"type":"string","description":"`gclid` from the landing URL"},"ttp":{"type":"string","description":"TikTok's `_ttp` cookie"},"ttclid":{"type":"string","description":"`ttclid` from the landing URL"},"utm_source":{"type":"string"},"utm_medium":{"type":"string"},"utm_campaign":{"type":"string"},"utm_term":{"type":"string"},"utm_content":{"type":"string"},"landing_url":{"type":"string","description":"The page the checkout opened on"},"ip":{"type":"string","description":"The shopper's IP address"},"user_agent":{"type":"string","description":"The shopper's browser user agent"}}},"StatusDto":{"type":"object","properties":{"status":{"type":"string","enum":["out_for_delivery","ready_for_pickup","completed"]}},"required":["status"]},"StoreContactDto":{"type":"object","properties":{"phone":{"type":["string","null"],"example":"+2348012345678"},"email":{"type":["string","null"],"example":"lekki@mamaput.ng"},"whatsapp":{"type":["string","null"],"example":"+2348012345678","description":"WhatsApp number"}}},"StoreResponse":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"is_headquarters":{"type":"boolean"},"status":{"type":"string","enum":["active","deactivated"]},"timezone":{"type":"string"},"address":{"$ref":"#/components/schemas/AddressDto"},"contact":{"$ref":"#/components/schemas/StoreContactDto"},"requires_acceptance":{"type":"boolean","description":"Paid orders wait for the store to accept or reject them"},"deactivation_reason":{"type":["string","null"]},"deactivation_note":{"type":["string","null"]},"created_at":{"type":"string"}},"required":["id","name","is_headquarters","status","timezone","address","contact","requires_acceptance","created_at"]},"TableResponse":{"type":"object","properties":{"id":{"type":"string","example":"tbl_0193…"},"name":{"type":"string","example":"Table 12"},"store_id":{"type":"string","format":"uuid"},"active":{"type":"boolean"},"qr_url":{"type":"string","example":"https://checkout.cartirra.com/q/Xb3…","description":"Print this as the table’s QR code"},"created_at":{"type":"string"}},"required":["id","name","store_id","active","qr_url","created_at"]},"TransactionActivityResponse":{"type":"object","properties":{"at":{"type":"string"},"text":{"type":"string"}},"required":["at","text"]},"TransactionBankResponse":{"type":"object","properties":{"bank_name":{"type":"string"},"account_name":{"type":"string"},"account_number":{"type":"string","example":"••••• 6789"}},"required":["bank_name","account_name","account_number"]},"TransactionDetailResponse":{"type":"object","properties":{"id":{"type":"string","example":"pay_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b","description":"pay_ (order payment), po_ (withdrawal), rf_ (refund) or dep_ (deposit)"},"type":{"type":"string","enum":["order_payment","withdrawal","refund","deposit","billing"]},"reference":{"type":"string","example":"WAL-20261024-001","description":"WAL- for withdrawals and deposits, RFD- for refunds, the order's ORD- for payments"},"order_reference":{"type":["string","null"]},"order_id":{"type":["string","null"]},"description":{"type":"string","example":"Order payment"},"status":{"type":"string","enum":["pending","successful","failed","expired"],"description":"Order payments stay pending until they settle at Lagos midnight"},"direction":{"type":"string","enum":["credit","debit"]},"amount":{"description":"What moved in the balance: credits net of fees, debits including them","allOf":[{"$ref":"#/components/schemas/MoneyResponse"}]},"created_at":{"type":"string"},"gross_amount":{"$ref":"#/components/schemas/MoneyResponse"},"fee":{"$ref":"#/components/schemas/MoneyResponse"},"provider":{"type":["string","null"]},"method":{"type":"string","example":"bank_transfer"},"settlement_date":{"type":["string","null"],"description":"Order payments: when the money becomes available"},"completed_at":{"type":["string","null"],"format":"date-time"},"failure_reason":{"type":["string","null"]},"bank":{"description":"Withdrawals","oneOf":[{"allOf":[{"$ref":"#/components/schemas/TransactionBankResponse"}]},{"type":"null"}]},"activity":{"description":"Newest first","type":"array","items":{"$ref":"#/components/schemas/TransactionActivityResponse"}}},"required":["id","type","reference","order_reference","order_id","description","status","direction","amount","created_at","gross_amount","fee","provider","method","settlement_date","completed_at","failure_reason","bank","activity"]},"TransactionResponse":{"type":"object","properties":{"id":{"type":"string","example":"pay_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b","description":"pay_ (order payment), po_ (withdrawal), rf_ (refund) or dep_ (deposit)"},"type":{"type":"string","enum":["order_payment","withdrawal","refund","deposit","billing"]},"reference":{"type":"string","example":"WAL-20261024-001","description":"WAL- for withdrawals and deposits, RFD- for refunds, the order's ORD- for payments"},"order_reference":{"type":["string","null"]},"order_id":{"type":["string","null"]},"description":{"type":"string","example":"Order payment"},"status":{"type":"string","enum":["pending","successful","failed","expired"],"description":"Order payments stay pending until they settle at Lagos midnight"},"direction":{"type":"string","enum":["credit","debit"]},"amount":{"description":"What moved in the balance: credits net of fees, debits including them","allOf":[{"$ref":"#/components/schemas/MoneyResponse"}]},"created_at":{"type":"string"}},"required":["id","type","reference","order_reference","order_id","description","status","direction","amount","created_at"]},"TransferDetailsResponse":{"type":"object","properties":{"account_number":{"type":"string","example":"9000002140"},"account_name":{"type":"string"},"bank_name":{"type":"string"},"bank_code":{"type":["string","null"]},"amount":{"description":"Transfer exactly this amount; other amounts are refused","allOf":[{"$ref":"#/components/schemas/MoneyResponse"}]},"expires_at":{"type":"string"},"active":{"type":"boolean","description":"False once expired: ask for new details"}},"required":["account_number","account_name","bank_name","amount","expires_at","active"]},"UpdateOrderIssueDto":{"type":"object","properties":{"status":{"type":"string","enum":["in_review","resolved","rejected"],"description":"in_review, then resolved or rejected (closed reports stay closed)"},"resolution_note":{"type":["string","null"],"description":"Shown to the shopper; required to reject"}},"required":["status"]},"UpdatePaymentLinkDto":{"type":"object","properties":{"title":{"type":"string"},"status":{"type":"string","enum":["active","inactive"],"description":"Turn the link off (shoppers see it's no longer active) or back on"},"success_url":{"type":["string","null"]},"max_uses":{"type":["number","null"]},"expires_at":{"type":["string","null"],"format":"date-time"}}},"UpdatePromotionDto":{"type":"object","properties":{"name":{"type":"string"},"percent":{"type":["number","null"]},"amount":{"$ref":"#/components/schemas/MoneyDto"},"max_discount":{"$ref":"#/components/schemas/MoneyDto"},"code":{"type":["string","null"]},"min_order_value":{"$ref":"#/components/schemas/MoneyDto"},"max_order_value":{"$ref":"#/components/schemas/MoneyDto"},"customer_restriction":{"type":"string","enum":["all","new","returning","specific"]},"store_ids":{"type":"array","items":{"type":"string"}},"customer_ids":{"type":"array","items":{"type":"string"}},"total_limit":{"type":["number","null"]},"per_customer_limit":{"type":["number","null"]},"stackable":{"type":"boolean"},"starts_at":{"type":["string","null"],"format":"date-time"},"ends_at":{"type":["string","null"],"format":"date-time"}}},"UpdateTableDto":{"type":"object","properties":{"name":{"type":"string"},"active":{"type":"boolean","description":"false retires the table (its QR stops working)"}}},"UpdateWarrantyDto":{"type":"object","properties":{"serial_number":{"type":["string","null"],"example":"R58W30ABCDE"},"starts_on":{"type":"string","example":"2026-10-27","description":"First covered day; defaults to the day the order was paid"},"ends_on":{"type":"string","example":"2027-10-26","description":"Last covered day; or give months or days"},"terms":{"type":["string","null"]},"covered_by":{"type":"string","enum":["merchant","manufacturer"]},"provider":{"type":["string","null"],"example":"Samsung Nigeria"},"item_name":{"type":"string"}}},"VoidDto":{"type":"object","properties":{"reason":{"type":"string"}},"required":["reason"]},"VoidWarrantyDto":{"type":"object","properties":{"reason":{"type":"string","example":"Item returned for a refund"}},"required":["reason"]},"WarrantyOrderRef":{"type":"object","properties":{"id":{"type":"string","example":"ord_0193…"},"reference":{"type":"string","example":"ORD-X3RK9D5P"}},"required":["id","reference"]},"WarrantyResponse":{"type":"object","properties":{"id":{"type":"string","example":"wty_0193a1b2c3d47e8f9a0b1c2d3e4f5a6b"},"reference":{"type":"string","example":"WRN-20261027-001"},"order":{"$ref":"#/components/schemas/WarrantyOrderRef"},"store_id":{"type":"string","format":"uuid"},"customer_id":{"type":["string","null"],"format":"uuid"},"line_index":{"type":["number","null"],"description":"The order line it covers"},"item_name":{"type":"string","example":"Samsung Galaxy A15"},"serial_number":{"type":["string","null"],"example":"R58W30ABCDE"},"starts_on":{"type":"string","example":"2026-10-27","description":"First covered day (Lagos)"},"ends_on":{"type":"string","example":"2027-10-26","description":"Last covered day (Lagos)"},"terms":{"type":["string","null"]},"covered_by":{"type":"string","enum":["merchant","manufacturer"]},"provider":{"type":["string","null"],"example":"Samsung Nigeria"},"source":{"type":"string","enum":["checkout","merchant"],"description":"From the checkout line, or added afterwards"},"state":{"type":"string","enum":["active","ending_soon","expired","voided"],"description":"ending_soon: 30 days or less left"},"void_reason":{"type":["string","null"]},"created_at":{"type":"string"},"updated_at":{"type":"string"}},"required":["id","reference","order","store_id","item_name","starts_on","ends_on","covered_by","source","state","created_at","updated_at"]},"WebhookBill":{"type":"object","required":["id","reference","status","table","store_id","total","paid","paid_outside","tips","balance","opened_at"],"properties":{"id":{"type":"string","example":"bill_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b"},"reference":{"type":"string","example":"BILL-20261026-004"},"status":{"type":"string","enum":["open","part_paid","closed","void"]},"table":{"type":"object","properties":{"id":{"type":"string","example":"tbl_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b"},"name":{"type":"string","example":"Table 12"}}},"store_id":{"type":"string","format":"uuid"},"items":{"type":["array","null"],"description":"What was ordered; null when the bill was opened with just a total","items":{"type":"object","required":["name","quantity","unit_price","amount"],"properties":{"name":{"type":"string","example":"Jollof rice and chicken"},"quantity":{"type":"integer","example":2},"unit_price":{"$ref":"#/components/schemas/Money"},"amount":{"$ref":"#/components/schemas/Money"},"note":{"oneOf":[{"type":"string","example":"No pepper"},{"type":"null"}]}}}},"items_total":{"$ref":"#/components/schemas/Money","description":"Before service charges and VAT"},"total":{"$ref":"#/components/schemas/Money"},"paid":{"$ref":"#/components/schemas/Money","description":"Paid through Cartirra"},"paid_outside":{"$ref":"#/components/schemas/Money","description":"Recorded as paid outside Cartirra (cash, POS)"},"tips":{"$ref":"#/components/schemas/Money"},"balance":{"$ref":"#/components/schemas/Money"},"opened_at":{"type":"string","format":"date-time"},"closed_at":{"oneOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"close_reason":{"type":["string","null"],"enum":["paid","outside","manager",null]}}},"WebhookBillPayment":{"type":"object","required":["id","reference","bill_id","method","amount","tip","paid_at","bill"],"properties":{"id":{"type":"string","description":"The payment’s order (kind bill_share)","example":"ord_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b"},"reference":{"type":"string","example":"SHR-20261026-011"},"bill_id":{"type":"string","example":"bill_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b"},"method":{"type":"string","enum":["bank_transfer","card","wallet"]},"amount":{"$ref":"#/components/schemas/Money","description":"Credited to the bill"},"tip":{"$ref":"#/components/schemas/Money"},"split":{"type":["object","null"],"additionalProperties":true,"description":"null: the whole balance; or the split the guest chose"},"paid_at":{"type":"string","format":"date-time"},"bill":{"$ref":"#/components/schemas/WebhookBill"}}},"WebhookCustomer":{"type":"object","required":["id","type","first_name","last_name","email","phone","status","orders_count","total_spent","last_order_at","customer_since"],"properties":{"id":{"type":"string","format":"uuid","description":"Matches `customer_id` on orders"},"type":{"type":"string","enum":["shopper","guest"],"description":"A Cartirra shopper who consented, or a guest who ordered"},"first_name":{"type":"string","example":"Ada"},"last_name":{"type":"string","example":"Obi"},"email":{"type":["string","null"],"description":"Null when the shopper did not share it (or stopped sharing)"},"phone":{"type":["string","null"],"description":"E.164; null when the shopper did not share it (or stopped sharing)"},"status":{"type":"string","enum":["active","blocked"]},"orders_count":{"type":"integer","minimum":0},"total_spent":{"$ref":"#/components/schemas/Money"},"last_order_at":{"oneOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"customer_since":{"type":"string","format":"date-time"}}},"WebhookOrder":{"type":"object","required":["id","reference","status","payment_status","payment_method","fulfilment_type","store_id","total","placed_at"],"properties":{"id":{"type":"string","example":"ord_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b"},"reference":{"type":"string","example":"ORD-7KQ3M9XA"},"status":{"type":"string","enum":["pending","processing","out_for_delivery","ready_for_pickup","completed","cancelled"]},"payment_status":{"type":"string","enum":["pending","paid","failed","partially_refunded","refunded"]},"payment_method":{"type":"string","enum":["bank_transfer","card"]},"fulfilment_type":{"type":"string","enum":["delivery","pickup","dine_in","courier"]},"store_id":{"type":"string","format":"uuid"},"customer_id":{"type":["string","null"],"format":"uuid"},"total":{"$ref":"#/components/schemas/Money"},"contact":{"type":"object","additionalProperties":true,"description":"Name, email and phone the shopper shared"},"placed_at":{"type":"string","format":"date-time"},"paid_at":{"oneOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"acceptance":{"type":["string","null"],"enum":["awaiting","accepted","rejected",null],"description":"Set when the store accepts orders before preparing them; null otherwise"}}},"WebhookOrderIssue":{"type":"object","required":["id","object","reference","order","store_id","categories","description","requested_resolution","status","resolution_note","refund_id","created_at","updated_at","closed_at"],"properties":{"id":{"type":"string","example":"iss_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b"},"object":{"type":"string","const":"order_issue"},"reference":{"type":"string","example":"ISS-20261027-001"},"order":{"type":"object","properties":{"id":{"type":"string","example":"ord_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b"},"reference":{"type":"string","example":"ORD-X3RK9D5P"}}},"store_id":{"type":"string","format":"uuid"},"categories":{"type":"array","items":{"type":"string","enum":["missing_item","wrong_item","damaged","quality","late","not_received","overcharged","other"]}},"description":{"type":"string","description":"In the shopper’s words"},"requested_resolution":{"type":["string","null"],"enum":["refund","replacement","store_credit","other",null]},"status":{"type":"string","enum":["open","in_review","resolved","rejected","withdrawn"]},"resolution_note":{"type":["string","null"],"description":"Your note to the shopper"},"refund_id":{"type":["string","null"],"description":"A refund of the order made while the report was open"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"closed_at":{"oneOf":[{"type":"string","format":"date-time"},{"type":"null"}]}}},"WebhookPayment":{"type":"object","required":["id","order_id","method","status","amount","amount_received"],"properties":{"id":{"type":"string","example":"pay_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b"},"order_id":{"type":"string","example":"ord_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b"},"method":{"type":"string","enum":["bank_transfer","card"]},"status":{"type":"string","enum":["requires_action","processing","succeeded","failed","expired","unknown","cancelled"]},"amount":{"$ref":"#/components/schemas/Money"},"amount_received":{"$ref":"#/components/schemas/Money"},"provider":{"type":["string","null"]},"succeeded_at":{"oneOf":[{"type":"string","format":"date-time"},{"type":"null"}]}}},"WebhookPayout":{"type":"object","required":["id","reference","status","amount","fee","bank","trigger","created_at"],"properties":{"id":{"type":"string","example":"po_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b"},"reference":{"type":"string","example":"WAL-20261024-002"},"status":{"type":"string","enum":["pending","processing","paid","failed"]},"amount":{"$ref":"#/components/schemas/Money"},"fee":{"$ref":"#/components/schemas/Money"},"bank":{"type":"object","properties":{"bank_name":{"type":"string"},"account_number_last4":{"type":"string","example":"6789"},"account_name":{"type":"string"}}},"trigger":{"type":"string","enum":["manual","auto"]},"failure_reason":{"type":["string","null"]},"created_at":{"type":"string","format":"date-time"},"completed_at":{"oneOf":[{"type":"string","format":"date-time"},{"type":"null"}]}}},"WebhookRefund":{"type":"object","required":["id","reference","order_id","payment_id","status","method","amount","refunded_total","full","created_at"],"properties":{"id":{"type":"string","example":"rf_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b"},"reference":{"type":"string","example":"RFD-20261024-001"},"order_id":{"type":"string"},"payment_id":{"type":"string"},"status":{"type":"string","enum":["pending","processing","succeeded","failed"]},"method":{"type":"string","enum":["bank_transfer","card"]},"amount":{"$ref":"#/components/schemas/Money"},"reason":{"type":"string"},"refunded_total":{"$ref":"#/components/schemas/Money","description":"All refunds on the order so far"},"full":{"type":"boolean","description":"The whole payment has now been refunded"},"failure_reason":{"type":["string","null"]},"created_at":{"type":"string","format":"date-time"},"completed_at":{"oneOf":[{"type":"string","format":"date-time"},{"type":"null"}]}}},"WebhookRewardUse":{"type":"object","required":["id","object","reward","source","points_cost","value","order","customer_id"],"properties":{"id":{"type":"string","format":"uuid"},"object":{"type":"string","const":"reward_use"},"reward":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string","example":"Free small chops"},"type":{"type":"string","enum":["discount_amount","discount_percent","free_product","free_delivery","gift_card","store_credit","custom"]}}},"source":{"type":"string","enum":["points","merchant","welcome","tier"],"description":"Bought with points at checkout, or given to the customer"},"points_cost":{"type":"integer","description":"Points spent; 0 for a given reward"},"value":{"type":["object","null"],"properties":{"amount":{"type":"string","example":"1000.00"},"currency":{"type":"string","example":"NGN"}}},"order":{"type":"object","properties":{"id":{"type":"string","example":"ord_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b"},"reference":{"type":"string","example":"ORD-N7BT3EWK"}}},"customer_id":{"type":["string","null"],"example":"cus_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b"}}},"WebhookTest":{"type":"object","properties":{"message":{"type":"string","example":"Hello from Cartirra"}}},"WebhookTierChange":{"type":"object","required":["object","customer_id","direction","from","to","spend"],"properties":{"object":{"type":"string","const":"tier_change"},"customer_id":{"type":["string","null"],"example":"cus_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b"},"direction":{"type":"string","enum":["up","down"],"description":"Up at once; down after 30 days below the tier"},"from":{"type":["object","null"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string","example":"Silver"}}},"to":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string","example":"Gold"}}},"spend":{"type":"object","description":"Paid over the last 12 months, after refunds","properties":{"amount":{"type":"string","example":"250000.00"},"currency":{"type":"string","example":"NGN"}}}}},"WebhookWarranty":{"type":"object","required":["id","object","reference","order","store_id","customer_id","line_index","item_name","serial_number","starts_on","ends_on","terms","covered_by","provider","source","status","void_reason","created_at","updated_at"],"properties":{"id":{"type":"string","example":"wty_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b"},"object":{"type":"string","const":"warranty"},"reference":{"type":"string","example":"WRN-20261027-001"},"order":{"type":"object","properties":{"id":{"type":"string","example":"ord_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b"},"reference":{"type":"string","example":"ORD-X3RK9D5P"}}},"store_id":{"type":"string","format":"uuid"},"customer_id":{"type":["string","null"],"format":"uuid"},"line_index":{"type":["integer","null"],"description":"The order line it covers"},"item_name":{"type":"string","example":"Samsung Galaxy A15"},"serial_number":{"type":["string","null"]},"starts_on":{"type":"string","format":"date","description":"First covered day (Lagos)"},"ends_on":{"type":"string","format":"date","description":"Last covered day (Lagos)"},"terms":{"type":["string","null"]},"covered_by":{"type":"string","enum":["merchant","manufacturer"]},"provider":{"type":["string","null"]},"source":{"type":"string","enum":["checkout","merchant"]},"status":{"type":"string","enum":["active","voided"],"description":"Expiry is read from ends_on"},"void_reason":{"type":["string","null"]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}}},"responses":{"BadRequest":{"description":"The request is malformed or a field is invalid (`VALIDATION_FAILED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unauthorized":{"description":"Missing, malformed, revoked or expired API key (`UNAUTHENTICATED`), or a key this route does not accept, such as a public key (`CREDENTIAL_NOT_ACCEPTED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Forbidden":{"description":"The key may not do this (`PERMISSION_DENIED`, `LIVE_MODE_NOT_ENABLED`, `PLAN_LIMIT_REACHED`, …).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"No such resource in this business and mode (`NOT_FOUND`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Conflict":{"description":"The resource is in a state that does not allow this (for example `ORDER_NOT_CANCELLABLE`, `REFUND_NOT_ALLOWED`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"UnprocessableEntity":{"description":"The request is valid but breaks a business rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"TooManyRequests":{"description":"Too many requests for this key (`RATE_LIMITED`); wait for `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"InternalError":{"description":"Something went wrong on our side (`INTERNAL`). Safe to retry with the same `Idempotency-Key`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"securitySchemes":{"secretKey":{"type":"http","scheme":"bearer","description":"Your secret key: `Authorization: Bearer sk_test_…` (test mode) or `sk_live_…` (live). The key decides the mode."}}}}