{"openapi":"3.0.0","paths":{"/api/v1/public/reports/inventory":{"get":{"description":"Returns active stock rows only. This is a current snapshot, not a historical report. Requires reports:inventory:read.","operationId":"PublicInventoryController_list_v1","parameters":[{"name":"store_id","required":true,"in":"query","schema":{"format":"uuid","type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":100,"default":50,"example":50,"type":"number"}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor returned by the previous page.","schema":{"maxLength":256,"type":"string"}},{"name":"X-Request-Id","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicInventoryResponseDto"}}}},"400":{"description":"Invalid query or cursor.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}},"401":{"description":"Missing or invalid public API key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}},"403":{"description":"Key lacks reports:inventory:read.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}},"404":{"description":"Store is not accessible to this key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}},"429":{"description":"Public API rate limit exceeded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}},"503":{"description":"The public API is unavailable in this environment.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Read current inventory in one permitted store","tags":["Report & Analysis / Product Stock"],"x-required-scopes":["reports:inventory:read"]}},"/api/v1/public/reports/inventory/low-stock":{"get":{"operationId":"PublicInventoryController_lowStock_v1","parameters":[{"name":"store_id","required":true,"in":"query","schema":{"format":"uuid","type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":100,"default":50,"allOf":[{"$ref":"#/components/schemas/Object"}]}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor returned by the previous page.","schema":{"maxLength":256,"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicInventoryResponseDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Read low-stock variants in one permitted store","tags":["Report & Analysis / Product Stock"],"x-required-scopes":["reports:inventory:read"]}},"/api/v1/public/stores":{"get":{"operationId":"PublicStoreController_list_v1","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":100,"default":50,"allOf":[{"$ref":"#/components/schemas/Object"}]}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from the previous page.","schema":{"maxLength":256,"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicStoreListDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"List stores permitted for this key","tags":["Settings / Store Management"],"x-required-scopes":["stores:read"]}},"/api/v1/public/stores/{store_id}":{"get":{"operationId":"PublicStoreController_get_v1","parameters":[{"name":"store_id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicStoreDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Get a permitted store","tags":["Settings / Store Management"],"x-required-scopes":["stores:read"]}},"/api/v1/public/stores/{store_id}/ordering-hours":{"get":{"operationId":"PublicStoreController_orderingHours_v1","parameters":[{"name":"store_id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Read ordering hours and fulfillment modes for a permitted store","tags":["Settings / Store Management"],"x-required-scopes":["stores:read"]}},"/api/v1/public/registers":{"get":{"operationId":"PublicRegisterController_listRegisters_v1","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":100,"default":50,"allOf":[{"$ref":"#/components/schemas/Object"}]}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from the previous page.","schema":{"maxLength":256,"type":"string"}},{"name":"store_id","required":true,"in":"query","schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicRegisterListDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"List registers in a permitted store","tags":["Register Management / Register"],"x-required-scopes":["registers:read"]}},"/api/v1/public/cash-registers":{"get":{"operationId":"PublicRegisterController_cashRegisters_v1","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":100,"default":50,"allOf":[{"$ref":"#/components/schemas/Object"}]}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from the previous page.","schema":{"maxLength":256,"type":"string"}},{"name":"store_id","required":true,"in":"query","schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicRegisterListDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"List cash registers in a permitted store","tags":["Register Management / Register"],"x-required-scopes":["registers:read"]}},"/api/v1/public/cash-registers/{register_id}":{"get":{"operationId":"PublicRegisterController_getRegister_v1","parameters":[{"name":"register_id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicRegisterDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Read a cash register","tags":["Register Management / Register"],"x-required-scopes":["registers:read"]}},"/api/v1/public/cash-registers/{register_id}/current-session":{"get":{"operationId":"PublicRegisterController_currentSession_v1","parameters":[{"name":"register_id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicRegisterSessionDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Read the current cash register session","tags":["Register Management / Register View"],"x-required-scopes":["registers:read"]}},"/api/v1/public/cash-registers/{register_id}/current-cart":{"get":{"description":"The items and totals the Simple POS shows on this register, updated about a second after each change. For customer-facing displays. Customer details are never included.","operationId":"PublicRegisterController_currentCart_v1","parameters":[{"name":"register_id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicRegisterCartDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Read the cart being rung up at a register","tags":["Register Management / Register View"],"x-required-scopes":["registers:read"]}},"/api/v1/public/register-sessions":{"get":{"operationId":"PublicRegisterController_listSessions_v1","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":100,"default":50,"allOf":[{"$ref":"#/components/schemas/Object"}]}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from the previous page.","schema":{"maxLength":256,"type":"string"}},{"name":"store_id","required":true,"in":"query","schema":{"format":"uuid","type":"string"}},{"name":"status","required":false,"in":"query","schema":{"type":"string","enum":["open","closing","closed","waiting_for_approval","unassigned"]}},{"name":"opened_from","required":false,"in":"query","schema":{"format":"date-time","type":"string"}},{"name":"opened_to","required":false,"in":"query","schema":{"format":"date-time","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicRegisterSessionListDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"List register sessions in a permitted store","tags":["Register Management / Register View"],"x-required-scopes":["registers:read"]}},"/api/v1/public/register-sessions/{session_id}":{"get":{"operationId":"PublicRegisterController_getSession_v1","parameters":[{"name":"session_id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicRegisterSessionDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Read a register session","tags":["Register Management / Register View"],"x-required-scopes":["registers:read"]}},"/api/v1/public/register-sessions/{session_id}/closing-summary":{"get":{"operationId":"PublicRegisterController_closingSummary_v1","parameters":[{"name":"session_id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicClosingSummaryDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Read a consistent register closing snapshot","tags":["Register Management / Close Register"],"x-required-scopes":["registers:read"]}},"/api/v1/public/register-sessions/{session_id}/expected-cash":{"get":{"operationId":"PublicRegisterController_expectedCash_v1","parameters":[{"name":"session_id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Read expected and counted cash for a session","tags":["Register Management / Close Register"],"x-required-scopes":["registers:read"]}},"/api/v1/public/register-sessions/{session_id}/sales-summary":{"get":{"operationId":"PublicRegisterController_salesSummary_v1","parameters":[{"name":"session_id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Read sales and tax totals for a session","tags":["Register Management / Close Register"],"x-required-scopes":["registers:read"]}},"/api/v1/public/register-sessions/{session_id}/payment-method-summary":{"get":{"operationId":"PublicRegisterController_paymentSummary_v1","parameters":[{"name":"session_id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Read payment method totals for a session","tags":["Register Management / Close Register"],"x-required-scopes":["registers:read"]}},"/api/v1/public/register-sessions/{session_id}/tips-and-payouts":{"get":{"operationId":"PublicRegisterController_tipsAndPayouts_v1","parameters":[{"name":"session_id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Read tips and payouts for a session","tags":["Register Management / Close Register"],"x-required-scopes":["registers:read"]}},"/api/v1/public/register-sessions/{session_id}/discrepancies":{"get":{"operationId":"PublicRegisterController_discrepancies_v1","parameters":[{"name":"session_id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Read cash variance and approval status for a session","tags":["Register Management / Close Register"],"x-required-scopes":["registers:read"]}},"/api/v1/public/register-sessions/{session_id}/end-of-day-report":{"get":{"operationId":"PublicRegisterController_endOfDayReport_v1","parameters":[{"name":"session_id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicClosingSummaryDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Read the full end-of-day closing snapshot","tags":["Register Management / Close Register"],"x-required-scopes":["registers:read"]}},"/api/v1/public/register-sessions/{session_id}/transactions":{"get":{"operationId":"PublicRegisterController_transactions_v1","parameters":[{"name":"session_id","required":true,"in":"path","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":100,"default":50,"allOf":[{"$ref":"#/components/schemas/Object"}]}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from the previous page.","schema":{"maxLength":256,"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicClosingTransactionListDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"List redacted register ledger entries","tags":["Register Management / Register Logs"],"x-required-scopes":["registers:read"]}},"/api/v1/public/register-sessions/{session_id}/cash-count":{"put":{"operationId":"PublicRegisterController_count_v1","parameters":[{"name":"session_id","required":true,"in":"path","schema":{"type":"string"}},{"name":"Idempotency-Key","required":true,"in":"header","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCashCountDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCashCountResponseDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Submit or revise a register cash count","tags":["Register Management / Close Register"],"x-required-scopes":["registers:count"]}},"/api/v1/public/register-sessions/{session_id}/approval-requests":{"post":{"operationId":"PublicRegisterController_requestApproval_v1","parameters":[{"name":"session_id","required":true,"in":"path","schema":{"type":"string"}},{"name":"Idempotency-Key","required":true,"in":"header","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApprovalRequestResponseDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Request human manager review of a variance","tags":["Register Management / Close Register"],"x-required-scopes":["registers:count"]}},"/api/v1/public/register-sessions/{session_id}/close":{"post":{"operationId":"PublicRegisterController_close_v1","parameters":[{"name":"session_id","required":true,"in":"path","schema":{"type":"string"}},{"name":"Idempotency-Key","required":true,"in":"header","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCloseDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicRegisterCloseResponseDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Close a counted and approved register session","tags":["Register Management / Close Register"],"x-required-scopes":["registers:close"]}},"/api/v1/public/reports/sales":{"get":{"operationId":"PublicReportController_sales_v1","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":100,"default":50,"allOf":[{"$ref":"#/components/schemas/Object"}]}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from the previous page.","schema":{"maxLength":256,"type":"string"}},{"name":"store_id","required":true,"in":"query","schema":{"format":"uuid","type":"string"}},{"name":"start_at","required":false,"in":"query","description":"Inclusive start. Alias for from.","schema":{"format":"date-time","type":"string"}},{"name":"end_at","required":false,"in":"query","description":"Exclusive end. Alias for to.","schema":{"format":"date-time","type":"string"}},{"name":"timezone","required":false,"in":"query","schema":{"maxLength":64,"example":"America/New_York","type":"string"}},{"name":"group_by","required":false,"in":"query","schema":{"type":"string","enum":["hour","day","week","month"]}},{"name":"updated_since","required":false,"in":"query","schema":{"format":"date-time","type":"string"}},{"name":"from","required":false,"in":"query","description":"Inclusive UTC start; defaults to 7 days ago.","schema":{"format":"date-time","type":"string"}},{"name":"to","required":false,"in":"query","description":"Exclusive UTC end; defaults to now.","schema":{"format":"date-time","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicReportResponseDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Completed sales in a bounded UTC window","tags":["Report & Analysis / Sales"],"x-required-scopes":["reports:sales:read"]}},"/api/v1/public/reports/sales/summary":{"get":{"operationId":"PublicReportController_salesSummary_v1","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":100,"default":50,"allOf":[{"$ref":"#/components/schemas/Object"}]}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from the previous page.","schema":{"maxLength":256,"type":"string"}},{"name":"store_id","required":true,"in":"query","schema":{"format":"uuid","type":"string"}},{"name":"start_at","required":false,"in":"query","description":"Inclusive start. Alias for from.","schema":{"format":"date-time","type":"string"}},{"name":"end_at","required":false,"in":"query","description":"Exclusive end. Alias for to.","schema":{"format":"date-time","type":"string"}},{"name":"timezone","required":false,"in":"query","schema":{"maxLength":64,"example":"America/New_York","type":"string"}},{"name":"group_by","required":false,"in":"query","schema":{"type":"string","enum":["hour","day","week","month"]}},{"name":"updated_since","required":false,"in":"query","schema":{"format":"date-time","type":"string"}},{"name":"from","required":false,"in":"query","description":"Inclusive UTC start; defaults to 7 days ago.","schema":{"format":"date-time","type":"string"}},{"name":"to","required":false,"in":"query","description":"Exclusive UTC end; defaults to now.","schema":{"format":"date-time","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicReportSummaryDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Sales totals for a bounded window","tags":["Report & Analysis / Sales"],"x-required-scopes":["reports:sales:read"]}},"/api/v1/public/reports/sales/timeseries":{"get":{"operationId":"PublicReportController_salesTimeseries_v1","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":100,"default":50,"allOf":[{"$ref":"#/components/schemas/Object"}]}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from the previous page.","schema":{"maxLength":256,"type":"string"}},{"name":"store_id","required":true,"in":"query","schema":{"format":"uuid","type":"string"}},{"name":"start_at","required":false,"in":"query","description":"Inclusive start. Alias for from.","schema":{"format":"date-time","type":"string"}},{"name":"end_at","required":false,"in":"query","description":"Exclusive end. Alias for to.","schema":{"format":"date-time","type":"string"}},{"name":"timezone","required":false,"in":"query","schema":{"maxLength":64,"example":"America/New_York","type":"string"}},{"name":"group_by","required":false,"in":"query","schema":{"type":"string","enum":["hour","day","week","month"]}},{"name":"updated_since","required":false,"in":"query","schema":{"format":"date-time","type":"string"}},{"name":"from","required":false,"in":"query","description":"Inclusive UTC start; defaults to 7 days ago.","schema":{"format":"date-time","type":"string"}},{"name":"to","required":false,"in":"query","description":"Exclusive UTC end; defaults to now.","schema":{"format":"date-time","type":"string"}}],"responses":{"200":{"description":""},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Sales grouped by hour, day, week, or month","tags":["Report & Analysis / Sales"],"x-required-scopes":["reports:sales:read"]}},"/api/v1/public/reports/returns":{"get":{"operationId":"PublicReportController_returns_v1","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":100,"default":50,"allOf":[{"$ref":"#/components/schemas/Object"}]}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from the previous page.","schema":{"maxLength":256,"type":"string"}},{"name":"store_id","required":true,"in":"query","schema":{"format":"uuid","type":"string"}},{"name":"start_at","required":false,"in":"query","description":"Inclusive start. Alias for from.","schema":{"format":"date-time","type":"string"}},{"name":"end_at","required":false,"in":"query","description":"Exclusive end. Alias for to.","schema":{"format":"date-time","type":"string"}},{"name":"timezone","required":false,"in":"query","schema":{"maxLength":64,"example":"America/New_York","type":"string"}},{"name":"group_by","required":false,"in":"query","schema":{"type":"string","enum":["hour","day","week","month"]}},{"name":"updated_since","required":false,"in":"query","schema":{"format":"date-time","type":"string"}},{"name":"from","required":false,"in":"query","description":"Inclusive UTC start; defaults to 7 days ago.","schema":{"format":"date-time","type":"string"}},{"name":"to","required":false,"in":"query","description":"Exclusive UTC end; defaults to now.","schema":{"format":"date-time","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicReportResponseDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Completed sales returns in a bounded UTC window","tags":["Report & Analysis / Sales Return"],"x-required-scopes":["reports:returns:read"]}},"/api/v1/public/reports/returns/summary":{"get":{"operationId":"PublicReportController_returnsSummary_v1","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":100,"default":50,"allOf":[{"$ref":"#/components/schemas/Object"}]}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from the previous page.","schema":{"maxLength":256,"type":"string"}},{"name":"store_id","required":true,"in":"query","schema":{"format":"uuid","type":"string"}},{"name":"start_at","required":false,"in":"query","description":"Inclusive start. Alias for from.","schema":{"format":"date-time","type":"string"}},{"name":"end_at","required":false,"in":"query","description":"Exclusive end. Alias for to.","schema":{"format":"date-time","type":"string"}},{"name":"timezone","required":false,"in":"query","schema":{"maxLength":64,"example":"America/New_York","type":"string"}},{"name":"group_by","required":false,"in":"query","schema":{"type":"string","enum":["hour","day","week","month"]}},{"name":"updated_since","required":false,"in":"query","schema":{"format":"date-time","type":"string"}},{"name":"from","required":false,"in":"query","description":"Inclusive UTC start; defaults to 7 days ago.","schema":{"format":"date-time","type":"string"}},{"name":"to","required":false,"in":"query","description":"Exclusive UTC end; defaults to now.","schema":{"format":"date-time","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicReportSummaryDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Completed returns totals for a bounded window","tags":["Report & Analysis / Sales Return"],"x-required-scopes":["reports:returns:read"]}},"/api/v1/public/reports/payments":{"get":{"operationId":"PublicReportController_payments_v1","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":100,"default":50,"allOf":[{"$ref":"#/components/schemas/Object"}]}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from the previous page.","schema":{"maxLength":256,"type":"string"}},{"name":"store_id","required":true,"in":"query","schema":{"format":"uuid","type":"string"}},{"name":"start_at","required":false,"in":"query","description":"Inclusive start. Alias for from.","schema":{"format":"date-time","type":"string"}},{"name":"end_at","required":false,"in":"query","description":"Exclusive end. Alias for to.","schema":{"format":"date-time","type":"string"}},{"name":"timezone","required":false,"in":"query","schema":{"maxLength":64,"example":"America/New_York","type":"string"}},{"name":"group_by","required":false,"in":"query","schema":{"type":"string","enum":["hour","day","week","month"]}},{"name":"updated_since","required":false,"in":"query","schema":{"format":"date-time","type":"string"}},{"name":"from","required":false,"in":"query","description":"Inclusive UTC start; defaults to 7 days ago.","schema":{"format":"date-time","type":"string"}},{"name":"to","required":false,"in":"query","description":"Exclusive UTC end; defaults to now.","schema":{"format":"date-time","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicReportResponseDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Successful sales and return payments in a bounded UTC window","tags":["Report & Analysis / Payments"],"x-required-scopes":["reports:payments:read"]}},"/api/v1/public/reports/payments/summary":{"get":{"operationId":"PublicReportController_paymentsSummary_v1","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":100,"default":50,"allOf":[{"$ref":"#/components/schemas/Object"}]}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from the previous page.","schema":{"maxLength":256,"type":"string"}},{"name":"store_id","required":true,"in":"query","schema":{"format":"uuid","type":"string"}},{"name":"start_at","required":false,"in":"query","description":"Inclusive start. Alias for from.","schema":{"format":"date-time","type":"string"}},{"name":"end_at","required":false,"in":"query","description":"Exclusive end. Alias for to.","schema":{"format":"date-time","type":"string"}},{"name":"timezone","required":false,"in":"query","schema":{"maxLength":64,"example":"America/New_York","type":"string"}},{"name":"group_by","required":false,"in":"query","schema":{"type":"string","enum":["hour","day","week","month"]}},{"name":"updated_since","required":false,"in":"query","schema":{"format":"date-time","type":"string"}},{"name":"from","required":false,"in":"query","description":"Inclusive UTC start; defaults to 7 days ago.","schema":{"format":"date-time","type":"string"}},{"name":"to","required":false,"in":"query","description":"Exclusive UTC end; defaults to now.","schema":{"format":"date-time","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicReportSummaryDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Payment totals and method breakdown for a bounded window","tags":["Report & Analysis / Payments"],"x-required-scopes":["reports:payments:read"]}},"/api/v1/public/reports/top-products":{"get":{"operationId":"PublicReportController_topProducts_v1","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":100,"default":50,"allOf":[{"$ref":"#/components/schemas/Object"}]}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from the previous page.","schema":{"maxLength":256,"type":"string"}},{"name":"store_id","required":true,"in":"query","schema":{"format":"uuid","type":"string"}},{"name":"start_at","required":false,"in":"query","description":"Inclusive start. Alias for from.","schema":{"format":"date-time","type":"string"}},{"name":"end_at","required":false,"in":"query","description":"Exclusive end. Alias for to.","schema":{"format":"date-time","type":"string"}},{"name":"timezone","required":false,"in":"query","schema":{"maxLength":64,"example":"America/New_York","type":"string"}},{"name":"group_by","required":false,"in":"query","schema":{"type":"string","enum":["hour","day","week","month"]}},{"name":"updated_since","required":false,"in":"query","schema":{"format":"date-time","type":"string"}},{"name":"from","required":false,"in":"query","description":"Inclusive UTC start; defaults to 7 days ago.","schema":{"format":"date-time","type":"string"}},{"name":"to","required":false,"in":"query","description":"Exclusive UTC end; defaults to now.","schema":{"format":"date-time","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicTopProductsResponseDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Top products sold in a bounded UTC window","tags":["Report & Analysis / Top Selling"],"x-required-scopes":["reports:sales:read"]}},"/api/v1/public/reports/products/top-selling":{"get":{"operationId":"PublicReportController_topSelling_v1","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":100,"default":50,"allOf":[{"$ref":"#/components/schemas/Object"}]}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from the previous page.","schema":{"maxLength":256,"type":"string"}},{"name":"store_id","required":true,"in":"query","schema":{"format":"uuid","type":"string"}},{"name":"start_at","required":false,"in":"query","description":"Inclusive start. Alias for from.","schema":{"format":"date-time","type":"string"}},{"name":"end_at","required":false,"in":"query","description":"Exclusive end. Alias for to.","schema":{"format":"date-time","type":"string"}},{"name":"timezone","required":false,"in":"query","schema":{"maxLength":64,"example":"America/New_York","type":"string"}},{"name":"group_by","required":false,"in":"query","schema":{"type":"string","enum":["hour","day","week","month"]}},{"name":"updated_since","required":false,"in":"query","schema":{"format":"date-time","type":"string"}},{"name":"from","required":false,"in":"query","description":"Inclusive UTC start; defaults to 7 days ago.","schema":{"format":"date-time","type":"string"}},{"name":"to","required":false,"in":"query","description":"Exclusive UTC end; defaults to now.","schema":{"format":"date-time","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicTopProductsResponseDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Top-selling products in a bounded window","tags":["Report & Analysis / Top Selling"],"x-required-scopes":["reports:sales:read"]}},"/api/v1/public/reports/stores/performance":{"get":{"operationId":"PublicReportController_storePerformance_v1","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":100,"default":50,"allOf":[{"$ref":"#/components/schemas/Object"}]}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from the previous page.","schema":{"maxLength":256,"type":"string"}},{"name":"store_id","required":true,"in":"query","schema":{"format":"uuid","type":"string"}},{"name":"start_at","required":false,"in":"query","description":"Inclusive start. Alias for from.","schema":{"format":"date-time","type":"string"}},{"name":"end_at","required":false,"in":"query","description":"Exclusive end. Alias for to.","schema":{"format":"date-time","type":"string"}},{"name":"timezone","required":false,"in":"query","schema":{"maxLength":64,"example":"America/New_York","type":"string"}},{"name":"group_by","required":false,"in":"query","schema":{"type":"string","enum":["hour","day","week","month"]}},{"name":"updated_since","required":false,"in":"query","schema":{"format":"date-time","type":"string"}},{"name":"from","required":false,"in":"query","description":"Inclusive UTC start; defaults to 7 days ago.","schema":{"format":"date-time","type":"string"}},{"name":"to","required":false,"in":"query","description":"Exclusive UTC end; defaults to now.","schema":{"format":"date-time","type":"string"}}],"responses":{"200":{"description":""},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Sales performance for one permitted store","tags":["Report & Analysis / Store"],"x-required-scopes":["reports:sales:read"]}},"/api/v1/public/catalog/products":{"get":{"operationId":"PublicCatalogController_list_v1","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":100,"default":50,"allOf":[{"$ref":"#/components/schemas/Object"}]}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from the previous page.","schema":{"maxLength":256,"type":"string"}},{"name":"store_id","required":true,"in":"query","schema":{"format":"uuid","type":"string"}},{"name":"updated_since","required":false,"in":"query","description":"Inclusive delta cursor time. Products changed since then are returned, including removed or deactivated ones as tombstones (availability_status: unpublished).","schema":{"format":"date-time","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCatalogListDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"List published products or delta tombstones in one store","tags":["Inventory / Product Catalog"],"x-required-scopes":["catalog:read"]}},"/api/v1/public/catalog/products/{product_id}":{"get":{"operationId":"PublicCatalogController_detail_v1","parameters":[{"name":"product_id","required":true,"in":"path","schema":{"type":"string"}},{"name":"store_id","required":false,"in":"query","description":"Optional permitted store, echoed in the response. Products are company-wide.","schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCatalogProductDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Read a published product and public variants","tags":["Inventory / Product Catalog"],"x-required-scopes":["catalog:read"]}},"/api/v1/public/catalog/availability":{"get":{"operationId":"PublicCatalogController_availability_v1","parameters":[{"name":"store_id","required":true,"in":"query","schema":{"format":"uuid","type":"string"}},{"name":"variant_ids","required":true,"in":"query","description":"Comma-separated UUIDs, maximum 100.","schema":{"maxLength":3700,"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAvailabilityResponseDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Check availability of up to 100 published variants","tags":["Inventory / Stock Overview"],"x-required-scopes":["inventory:read"]}},"/api/v1/public/orders":{"post":{"description":"Requires checkout to be enabled in this environment. Reprices and checks stock, then atomically creates the order, invoice and stock movements. 409 on changed prices, stale version, insufficient stock, active stock audits or duplicate external ID. Retry the identical request with the same key/header to replay its result for 48 hours, including after key rotation. Cart single-use and integration external-ID uniqueness persist beyond replay expiry. Does not charge cards, award loyalty, dispatch delivery or fulfill the order.","operationId":"PublicOrderController_create_v1","parameters":[{"name":"Idempotency-Key","required":true,"in":"header","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicOrderCreateDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicOrderDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Create an unpaid pickup order from an accepted cart","tags":["Sales / Point of Sales"],"x-required-scopes":["orders:write"]},"get":{"operationId":"PublicOrderController_list_v1","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":100,"default":50,"allOf":[{"$ref":"#/components/schemas/Object"}]}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from the previous page.","schema":{"maxLength":256,"type":"string"}},{"name":"store_id","required":true,"in":"query","schema":{"format":"uuid","type":"string"}},{"name":"external_id","required":false,"in":"query","schema":{"maxLength":128,"type":"string"}},{"name":"created_from","required":false,"in":"query","schema":{"format":"date-time","type":"string"}},{"name":"created_to","required":false,"in":"query","schema":{"format":"date-time","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicOrderListDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"List orders created by this integration in one store","tags":["Sales / Point of Sales"],"x-required-scopes":["orders:read"]}},"/api/v1/public/orders/{order_id}":{"get":{"operationId":"PublicOrderController_detail_v1","parameters":[{"name":"order_id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicOrderDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Read an order created by this integration","tags":["Sales / Point of Sales"],"x-required-scopes":["orders:read"]}},"/api/v1/public/orders/{order_id}/cancel":{"post":{"description":"Allowed only while the order is pending, unpaid and not yet picked up or fulfilled. Atomically restores every stock movement the order made and records the cancellation in the order history. 404 for orders created by another integration; 409 if already cancelled, paid (refund in Simple instead), fulfilled, or a variant is under stock audit. Retry the identical request with the same Idempotency-Key to replay its result for 48 hours.","operationId":"PublicOrderController_cancel_v1","parameters":[{"name":"order_id","required":true,"in":"path","schema":{"type":"string"}},{"name":"Idempotency-Key","required":true,"in":"header","schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicOrderCancelDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicOrderDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Cancel an unpaid order created by this integration","tags":["Sales / Point of Sales"],"x-required-scopes":["orders:cancel"]}},"/api/v1/public/merchant":{"get":{"operationId":"PublicFoundationController_merchant_v1","parameters":[],"responses":{"200":{"description":""},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Read public merchant configuration","tags":["Settings / App Settings"],"x-required-scopes":["merchant:read"]}},"/api/v1/public/payment-methods":{"get":{"operationId":"PublicFoundationController_paymentMethods_v1","parameters":[],"responses":{"200":{"description":""},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"List payment methods available to this integration","tags":["Settings / POS Settings"],"x-required-scopes":["payment_methods:read"]}},"/api/v1/public/tax-rates":{"get":{"operationId":"PublicFoundationController_taxRates_v1","parameters":[],"responses":{"200":{"description":""},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"List applicable tax rates","tags":["Settings / Taxes"],"x-required-scopes":["taxes:read"]}},"/api/v1/public/products":{"get":{"operationId":"PublicCommerceReadController_products_v1","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":100,"default":50,"allOf":[{"$ref":"#/components/schemas/Object"}]}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from the previous page.","schema":{"maxLength":256,"type":"string"}},{"name":"store_id","required":true,"in":"query","schema":{"format":"uuid","type":"string"}},{"name":"updated_since","required":false,"in":"query","description":"Inclusive delta cursor time. Products changed since then are returned, including removed or deactivated ones as tombstones (availability_status: unpublished).","schema":{"format":"date-time","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCatalogListDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"List published products or delta tombstones in one store","tags":["Inventory / Product Catalog"],"x-required-scopes":["catalog:read"]}},"/api/v1/public/products/{product_id}":{"get":{"operationId":"PublicCommerceReadController_product_v1","parameters":[{"name":"product_id","required":true,"in":"path","schema":{"type":"string"}},{"name":"store_id","required":false,"in":"query","description":"Optional permitted store, echoed in the response. Products are company-wide.","schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCatalogProductDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Read a published product","tags":["Inventory / Product Catalog"],"x-required-scopes":["catalog:read"]}},"/api/v1/public/product-variants/{variant_id}":{"get":{"operationId":"PublicCommerceReadController_variant_v1","parameters":[{"name":"variant_id","required":true,"in":"path","schema":{"type":"string"}},{"name":"store_id","required":false,"in":"query","description":"Optional permitted store, echoed in the response. Products are company-wide.","schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCatalogVariantDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Read a published product variant","tags":["Inventory / Product Catalog"],"x-required-scopes":["catalog:read"]}},"/api/v1/public/inventory-levels":{"get":{"operationId":"PublicCommerceReadController_inventoryLevels_v1","parameters":[{"name":"store_id","required":true,"in":"query","schema":{"format":"uuid","type":"string"}},{"name":"variant_id","required":false,"in":"query","schema":{"format":"uuid","type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":100,"default":50,"allOf":[{"$ref":"#/components/schemas/Object"}]}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor returned by the previous page.","schema":{"maxLength":256,"type":"string"}}],"responses":{"200":{"description":""},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Page through published variant stock levels in one store","tags":["Inventory / Stock Overview"],"x-required-scopes":["inventory:read"]}},"/api/v1/public/categories":{"get":{"operationId":"PublicCommerceReadController_categories_v1","parameters":[{"name":"store_id","required":true,"in":"query","schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"description":""},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"List categories of published products in one store","tags":["Inventory / Category"],"x-required-scopes":["catalog:read"]}},"/api/v1/public/brands":{"get":{"operationId":"PublicCommerceReadController_brands_v1","parameters":[{"name":"store_id","required":true,"in":"query","schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"description":""},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"List brands of published products in one store","tags":["Inventory / Brand"],"x-required-scopes":["catalog:read"]}},"/api/v1/public/delivery-zones/match":{"post":{"operationId":"PublicDeliveryController_match_v1","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicDeliverySearchDto"}}}},"responses":{"201":{"description":""},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Match coordinates to permitted delivery zones","tags":["Dispatch / Delivery"],"x-required-scopes":["delivery:read"]}},"/api/v1/public/delivery-slots/search":{"post":{"operationId":"PublicDeliveryController_search_v1","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicDeliverySearchDto"}}}},"responses":{"201":{"description":""},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Search available delivery slots for coordinates","tags":["Dispatch / Delivery"],"x-required-scopes":["delivery:read"]}},"/api/v1/public/customers":{"post":{"operationId":"PublicCustomerController_create_v1","parameters":[{"name":"Idempotency-Key","required":true,"in":"header","schema":{"type":"string"},"description":"Recommended. A new value per change; a retry with the same key returns the original result instead of writing twice."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCustomerCreateDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCustomerDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Create a customer in one permitted store","tags":["Customer Management / Customer List"],"x-required-scopes":["customers:write"]},"get":{"description":"Oldest first. Filter by exact email or phone, a search term, store, customer group or last change.","operationId":"PublicCustomerController_list_v1","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":100,"default":50,"allOf":[{"$ref":"#/components/schemas/Object"}]}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from the previous page.","schema":{"maxLength":256,"type":"string"}},{"name":"email","required":false,"in":"query","description":"Exact email match.","schema":{"format":"email","type":"string"}},{"name":"phone","required":false,"in":"query","description":"Exact phone match.","schema":{"minLength":1,"maxLength":50,"type":"string"}},{"name":"q","required":false,"in":"query","description":"Name contains, or email/phone starts with (case-insensitive).","schema":{"minLength":1,"maxLength":100,"type":"string"}},{"name":"store_id","required":false,"in":"query","description":"Only customers of this store.","schema":{"format":"uuid","type":"string"}},{"name":"customer_group_id","required":false,"in":"query","schema":{"format":"uuid","type":"string"}},{"name":"updated_since","required":false,"in":"query","description":"Changed at or after this time.","schema":{"format":"date-time","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCustomerListDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"List and search customers","tags":["Customer Management / Customer List"],"x-required-scopes":["customers:read"]}},"/api/v1/public/customers/{customer_id}":{"get":{"operationId":"PublicCustomerController_get_v1","parameters":[{"name":"customer_id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCustomerDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Read a customer","tags":["Customer Management / Customer List"],"x-required-scopes":["customers:read"]},"patch":{"description":"Send null to clear an optional field.","operationId":"PublicCustomerController_update_v1","parameters":[{"name":"customer_id","required":true,"in":"path","schema":{"type":"string"}},{"name":"Idempotency-Key","required":true,"in":"header","schema":{"type":"string"},"description":"Recommended. A new value per change; a retry with the same key returns the original result instead of writing twice."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCustomerUpdateDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCustomerDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Update a customer","tags":["Customer Management / Customer List"],"x-required-scopes":["customers:write"]}},"/api/v1/public/returns/{return_id}":{"get":{"operationId":"PublicReturnController_get_v1","parameters":[{"name":"return_id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Read a return for an order owned by this integration","tags":["Sales / Sales Return"],"x-required-scopes":["returns:read"]}},"/api/v1/public/carts":{"post":{"description":"Requires checkout to be enabled in this environment. Expires after 24 hours; does not reserve stock. Whole quantities, USD/EUR, assigned customers and published variants only. Promotions, payment-dependent fees and taxable fees fail closed pending support. No prices, discounts, tax or totals accepted from callers.","operationId":"PublicCartController_create_v1","parameters":[{"name":"Idempotency-Key","required":true,"in":"header","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCartCreateDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCartDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Create a server-priced pickup cart","tags":["Sales / Point of Sales"],"x-required-scopes":["carts:write"]}},"/api/v1/public/carts/{cart_id}":{"get":{"description":"Returns the accepted price snapshot, not a live quote. Checkout always reprices. No stock reservation.","operationId":"PublicCartController_get_v1","parameters":[{"name":"cart_id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCartDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Read this integration’s saved cart quote","tags":["Sales / Point of Sales"],"x-required-scopes":["carts:read"]},"patch":{"description":"Requires the latest version. Store/customer/fulfillment cannot change. Expired or completed carts cannot be edited.","operationId":"PublicCartController_update_v1","parameters":[{"name":"cart_id","required":true,"in":"path","schema":{"type":"string"}},{"name":"Idempotency-Key","required":true,"in":"header","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCartUpdateDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCartDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Replace cart lines and refresh server pricing","tags":["Sales / Point of Sales"],"x-required-scopes":["carts:write"]}},"/api/v1/public/discounts":{"post":{"description":"Manage Simple Discount records, not Deal promotions. Does not automatically apply discounts to public checkout. Targets must belong to this company.","operationId":"PublicDiscountController_create_v1","parameters":[{"name":"Idempotency-Key","required":true,"in":"header","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicDiscountCreateDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicDiscountDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Create a discount in one store","tags":["Discounts / Discount Overview"],"x-required-scopes":["discounts:create"]},"get":{"operationId":"PublicDiscountController_list_v1","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":100,"default":50,"allOf":[{"$ref":"#/components/schemas/Object"}]}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from the previous page.","schema":{"maxLength":256,"type":"string"}},{"name":"store_id","required":true,"in":"query","schema":{"format":"uuid","type":"string"}},{"name":"discount_type","required":false,"in":"query","schema":{"type":"string","enum":["INDIVIDUAL","FLAT"]}},{"name":"status","required":false,"in":"query","schema":{"type":"string","enum":["ACTIVE","INACTIVE"]}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicDiscountListDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"List discounts in one store","tags":["Discounts / Discount Overview"],"x-required-scopes":["discounts:read"]}},"/api/v1/public/discounts/{discount_id}":{"get":{"operationId":"PublicDiscountController_get_v1","parameters":[{"name":"discount_id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicDiscountDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Read a discount","tags":["Discounts / Discount Overview"],"x-required-scopes":["discounts:read"]},"patch":{"description":"Omitted fields and target lists remain unchanged. Store is immutable. Set dates/note to null to clear them; use status INACTIVE to disable. Switching to FLAT clears product/variant restrictions.","operationId":"PublicDiscountController_update_v1","parameters":[{"name":"discount_id","required":true,"in":"path","schema":{"type":"string"}},{"name":"Idempotency-Key","required":true,"in":"header","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicDiscountUpdateDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicDiscountDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Modify a discount","tags":["Discounts / Discount Overview"],"x-required-scopes":["discounts:update"]},"delete":{"description":"Soft deletion preserves historical cart/sale references. Repeated deletion of the same permitted record remains safe.","operationId":"PublicDiscountController_delete_v1","parameters":[{"name":"discount_id","required":true,"in":"path","schema":{"type":"string"}},{"name":"Idempotency-Key","required":true,"in":"header","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicDiscountDeletedDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Delete a discount","tags":["Discounts / Discount Overview"],"x-required-scopes":["discounts:delete"]}},"/api/v1/public/webhook-endpoints":{"post":{"description":"Returns the signing secret once; store it server-side. The key must hold the read scope for every subscribed event (orders:read, inventory:read or registers:read). Order events cover only orders this integration created. Each delivery is an HTTPS POST with a JSON envelope (id, type, created_at, environment, store_id, data.object) and a Simple-Signature header `t=<unix seconds>,v1=<hex HMAC-SHA256 of \"t.body\">`. Reject timestamps older than 5 minutes and de-duplicate on the event id. Non-2xx responses are retried 8 times over about 28 hours; endpoints that keep failing are disabled.","operationId":"PublicWebhookController_create_v1","parameters":[{"name":"Idempotency-Key","required":true,"in":"header","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicWebhookEndpointCreateDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicWebhookEndpointWithSecretDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Register a webhook endpoint","tags":["Developer / Webhooks"],"x-required-scopes":["webhooks:manage"]},"get":{"operationId":"PublicWebhookController_list_v1","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":100,"default":50,"allOf":[{"$ref":"#/components/schemas/Object"}]}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from the previous page.","schema":{"maxLength":256,"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicWebhookEndpointListDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"List this integration’s webhook endpoints","tags":["Developer / Webhooks"],"x-required-scopes":["webhooks:manage"]}},"/api/v1/public/webhook-endpoints/{endpoint_id}":{"get":{"operationId":"PublicWebhookController_detail_v1","parameters":[{"name":"endpoint_id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicWebhookEndpointDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Read a webhook endpoint","tags":["Developer / Webhooks"],"x-required-scopes":["webhooks:manage"]},"patch":{"description":"Setting status to disabled cancels pending deliveries. Setting it back to active resets the failure counter.","operationId":"PublicWebhookController_update_v1","parameters":[{"name":"endpoint_id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicWebhookEndpointUpdateDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicWebhookEndpointDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Update or re-enable a webhook endpoint","tags":["Developer / Webhooks"],"x-required-scopes":["webhooks:manage"]},"delete":{"operationId":"PublicWebhookController_remove_v1","parameters":[{"name":"endpoint_id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":""},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Delete a webhook endpoint and cancel its pending deliveries","tags":["Developer / Webhooks"],"x-required-scopes":["webhooks:manage"]}},"/api/v1/public/webhook-endpoints/{endpoint_id}/rotate-secret":{"post":{"description":"Returns the new secret once. For 24 hours deliveries carry two v1 signatures, one per secret, so receivers can switch without dropping events.","operationId":"PublicWebhookController_rotate_v1","parameters":[{"name":"endpoint_id","required":true,"in":"path","schema":{"type":"string"}},{"name":"Idempotency-Key","required":true,"in":"header","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicWebhookEndpointWithSecretDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Rotate the signing secret","tags":["Developer / Webhooks"],"x-required-scopes":["webhooks:manage"]}},"/api/v1/public/webhook-endpoints/{endpoint_id}/test":{"post":{"operationId":"PublicWebhookController_test_v1","parameters":[{"name":"endpoint_id","required":true,"in":"path","schema":{"type":"string"}},{"name":"Idempotency-Key","required":true,"in":"header","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicWebhookDeliveryDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Send a signed webhook.test event to the endpoint","tags":["Developer / Webhooks"],"x-required-scopes":["webhooks:manage"]}},"/api/v1/public/webhook-endpoints/{endpoint_id}/deliveries":{"get":{"description":"Delivery history is kept for 30 days. Response bodies are never stored.","operationId":"PublicWebhookController_deliveries_v1","parameters":[{"name":"endpoint_id","required":true,"in":"path","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":100,"default":50,"allOf":[{"$ref":"#/components/schemas/Object"}]}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from the previous page.","schema":{"maxLength":256,"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicWebhookDeliveryListDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"List recent deliveries for an endpoint, newest first","tags":["Developer / Webhooks"],"x-required-scopes":["webhooks:manage"]}},"/api/v1/public/webhook-deliveries/{delivery_id}/redeliver":{"post":{"description":"Sends the original payload again with a fresh retry cycle and a new signature timestamp.","operationId":"PublicWebhookController_redeliver_v1","parameters":[{"name":"delivery_id","required":true,"in":"path","schema":{"type":"string"}},{"name":"Idempotency-Key","required":true,"in":"header","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicWebhookDeliveryDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Redeliver a finished delivery","tags":["Developer / Webhooks"],"x-required-scopes":["webhooks:manage"]}},"/api/v1/public/employees":{"get":{"description":"Owners, admins and staff in the stores this key may access. Returns work details only: never email, phone, address, pay rate, login ID, PIN or permissions.","operationId":"PublicEmployeeController_list_v1","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":100,"default":50,"allOf":[{"$ref":"#/components/schemas/Object"}]}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from the previous page.","schema":{"maxLength":256,"type":"string"}},{"name":"store_id","required":false,"in":"query","description":"Only employees assigned to this store.","schema":{"format":"uuid","type":"string"}},{"name":"team_id","required":false,"in":"query","description":"Only members of this team.","schema":{"format":"uuid","type":"string"}},{"name":"status","required":false,"in":"query","schema":{"type":"string","enum":["pending","active","inactive","suspended","restricted"]}},{"name":"q","required":false,"in":"query","description":"Name contains (case-insensitive).","schema":{"maxLength":100,"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicEmployeeListDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"List employees with their roles and stores","tags":["Employee Management / Employee List"],"x-required-scopes":["employees:read"]}},"/api/v1/public/employees/{employee_id}":{"get":{"operationId":"PublicEmployeeController_get_v1","parameters":[{"name":"employee_id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicEmployeeDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Read an employee","tags":["Employee Management / Employee List"],"x-required-scopes":["employees:read"]}},"/api/v1/public/teams":{"get":{"operationId":"PublicTeamController_list_v1","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":100,"default":50,"allOf":[{"$ref":"#/components/schemas/Object"}]}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from the previous page.","schema":{"maxLength":256,"type":"string"}},{"name":"store_id","required":false,"in":"query","schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicTeamListDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"List teams","tags":["Employee Management / Teams"],"x-required-scopes":["employees:read"]}},"/api/v1/public/customer-groups":{"get":{"operationId":"PublicCustomerGroupController_list_v1","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":100,"default":50,"allOf":[{"$ref":"#/components/schemas/Object"}]}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from the previous page.","schema":{"maxLength":256,"type":"string"}},{"name":"store_id","required":false,"in":"query","schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCustomerGroupListDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"List customer groups","tags":["Customer Management / Customer Group"],"x-required-scopes":["customer_groups:read"]}},"/api/v1/public/sales":{"get":{"description":"Completed sales by default, oldest first, in a UTC window of up to 90 days (default: the last 7 days). Filter by store, customer, employee, channel or last change.","operationId":"PublicSalesController_list_v1","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":100,"default":50,"allOf":[{"$ref":"#/components/schemas/Object"}]}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from the previous page.","schema":{"maxLength":256,"type":"string"}},{"name":"store_id","required":false,"in":"query","description":"Only this store.","schema":{"format":"uuid","type":"string"}},{"name":"from","required":false,"in":"query","description":"Inclusive UTC start; defaults to 7 days before `to`.","schema":{"format":"date-time","type":"string"}},{"name":"to","required":false,"in":"query","description":"Exclusive UTC end; defaults to now. At most 90 days after `from`.","schema":{"format":"date-time","type":"string"}},{"name":"customer_id","required":false,"in":"query","schema":{"format":"uuid","type":"string"}},{"name":"employee_id","required":false,"in":"query","description":"Employee credited with the sale or return.","schema":{"format":"uuid","type":"string"}},{"name":"updated_since","required":false,"in":"query","description":"Changed at or after this time.","schema":{"format":"date-time","type":"string"}},{"name":"status","required":false,"in":"query","schema":{"default":"completed","type":"string","enum":["completed","pending","hold"]}},{"name":"channel","required":false,"in":"query","schema":{"type":"string","enum":["in_store","e_commerce","kiosk"]}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicSaleListDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"List sales","tags":["Sales / Sales"],"x-required-scopes":["sales:read"]}},"/api/v1/public/sales/{sale_id}":{"get":{"description":"Payments show the method and amount only; card details are never returned.","operationId":"PublicSalesController_get_v1","parameters":[{"name":"sale_id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicSaleDetailDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Read a sale with its items and payments","tags":["Sales / Sales"],"x-required-scopes":["sales:read"]}},"/api/v1/public/sales-returns":{"get":{"description":"Oldest first, in a UTC window of up to 90 days (default: the last 7 days). Filter by store, customer, employee or last change.","operationId":"PublicSalesReturnController_list_v1","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":100,"default":50,"allOf":[{"$ref":"#/components/schemas/Object"}]}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from the previous page.","schema":{"maxLength":256,"type":"string"}},{"name":"store_id","required":false,"in":"query","description":"Only this store.","schema":{"format":"uuid","type":"string"}},{"name":"from","required":false,"in":"query","description":"Inclusive UTC start; defaults to 7 days before `to`.","schema":{"format":"date-time","type":"string"}},{"name":"to","required":false,"in":"query","description":"Exclusive UTC end; defaults to now. At most 90 days after `from`.","schema":{"format":"date-time","type":"string"}},{"name":"customer_id","required":false,"in":"query","schema":{"format":"uuid","type":"string"}},{"name":"employee_id","required":false,"in":"query","description":"Employee credited with the sale or return.","schema":{"format":"uuid","type":"string"}},{"name":"updated_since","required":false,"in":"query","description":"Changed at or after this time.","schema":{"format":"date-time","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicSalesReturnListDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"List sales returns","tags":["Sales / Sales Return"],"x-required-scopes":["sales_returns:read"]}},"/api/v1/public/sales-returns/{return_id}":{"get":{"operationId":"PublicSalesReturnController_get_v1","parameters":[{"name":"return_id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicSalesReturnDetailDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Read a sales return with its items","tags":["Sales / Sales Return"],"x-required-scopes":["sales_returns:read"]}},"/api/v1/public/loyalty/program":{"get":{"operationId":"PublicLoyaltyController_program_v1","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicLoyaltyProgramDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Read how points are earned and what bonuses apply","tags":["Loyalty Management / Settings"],"x-required-scopes":["loyalty:read"]}},"/api/v1/public/loyalty/tiers":{"get":{"operationId":"PublicLoyaltyController_tiers_v1","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":100,"default":50,"allOf":[{"$ref":"#/components/schemas/Object"}]}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from the previous page.","schema":{"maxLength":256,"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicLoyaltyTierListDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"List loyalty tiers","tags":["Loyalty Management / Tiers"],"x-required-scopes":["loyalty:read"]}},"/api/v1/public/loyalty/rewards":{"get":{"operationId":"PublicLoyaltyController_rewards_v1","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":100,"default":50,"allOf":[{"$ref":"#/components/schemas/Object"}]}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from the previous page.","schema":{"maxLength":256,"type":"string"}},{"name":"store_id","required":false,"in":"query","schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicLoyaltyRewardListDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"List active rewards","tags":["Loyalty Management / Rewards"],"x-required-scopes":["loyalty:read"]}},"/api/v1/public/loyalty/members":{"get":{"operationId":"PublicLoyaltyController_members_v1","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":100,"default":50,"allOf":[{"$ref":"#/components/schemas/Object"}]}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from the previous page.","schema":{"maxLength":256,"type":"string"}},{"name":"store_id","required":false,"in":"query","schema":{"format":"uuid","type":"string"}},{"name":"tier_id","required":false,"in":"query","schema":{"format":"uuid","type":"string"}},{"name":"status","required":false,"in":"query","schema":{"type":"string","enum":["active","suspended"]}},{"name":"q","required":false,"in":"query","description":"Customer name contains, or email/phone starts with.","schema":{"maxLength":100,"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicLoyaltyMemberListDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"List loyalty members with their points and tier","tags":["Loyalty Management / Members"],"x-required-scopes":["loyalty:read"]}},"/api/v1/public/loyalty/members/{customer_id}":{"get":{"operationId":"PublicLoyaltyController_member_v1","parameters":[{"name":"customer_id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicLoyaltyMemberDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"Read a customer's loyalty membership","tags":["Loyalty Management / Members"],"x-required-scopes":["loyalty:read"]}},"/api/v1/public/loyalty/transactions":{"get":{"description":"Oldest first, in a UTC window of up to 90 days (default: the last 30 days).","operationId":"PublicLoyaltyController_transactions_v1","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":100,"default":50,"allOf":[{"$ref":"#/components/schemas/Object"}]}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from the previous page.","schema":{"maxLength":256,"type":"string"}},{"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":"from","required":false,"in":"query","description":"Inclusive UTC start; defaults to 30 days before `to`.","schema":{"format":"date-time","type":"string"}},{"name":"to","required":false,"in":"query","description":"Exclusive UTC end; defaults to now. At most 90 days after `from`.","schema":{"format":"date-time","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicLoyaltyTransactionListDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}}},"security":[{"public-api-key":[]}],"summary":"List points earned, redeemed and adjusted","tags":["Loyalty Management / Transactions"],"x-required-scopes":["loyalty:read"]}},"/api/v1/public/customer-display/resolved/{storeId}":{"get":{"description":"Authenticate with a company service token (`Authorization: Bearer simple_live_…`) that has the `customer_display:read` scope, or with the Simple platform key (`simple_platform_…`, any store). Returns the same shape the POS passes to window.SimpleTerminal.setCustomerDisplayConfig. Compare `updatedAt` with the last config drawn and skip unchanged ones.","operationId":"PublicCustomerDisplayController_resolved_v1","parameters":[{"name":"storeId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolvedCustomerDisplayConfigDto"}}}},"400":{"description":"Invalid or missing request field. See errors for field-level details.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PublicProblemDto"}}}},"401":{"description":"Missing, invalid, expired or revoked token"},"404":{"description":"Store not in this token's company or store list"}},"security":[{"public-api-key":[]}],"summary":"Get a store's resolved customer display config","tags":["Settings / Customer Display"],"x-required-scopes":["customer_display:read"]}},"/api/v1/merchant-info":{"post":{"operationId":"MerchantInfoController_create_v1","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateMerchantInfoDto"}}}},"responses":{"201":{"description":"Application received; retain id and applicationNumber.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"applicationNumber":{"type":"string"},"message":{"type":"string"}}}}}},"400":{"description":"Invalid input data"},"429":{"description":"Rate limit exceeded. Try again later."}},"summary":"Create a merchant application","tags":["Onboarding / Merchant Application"],"description":"Submit a merchant application through the existing onboarding workflow. No bearer token is required. Submission does not imply approval or card-processing readiness. This is a real write in the selected environment, not a simulated response.","security":[]}},"/api/v1/merchant-info/by-company/{companyId}/application-status":{"get":{"description":"Requires an owner-session JWT from login. Store owners can read only their own company; super admins retain their existing permissions. This is not anonymous application tracking: company/account provisioning is required. A scoped public API key cannot authenticate this route.","operationId":"MerchantInfoController_getMerchantApplicationStatusByCompanyId_v1","parameters":[{"name":"companyId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Application status and optional CoPilot corrections JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MerchantApplicationStatusByCompanyResponseDto"}}}},"403":{"description":"Store owner requested another company, or disallowed user type"},"404":{"description":"Linked merchant application row missing"}},"summary":"Read merchant application status","tags":["Onboarding / Merchant Application"],"security":[{"merchant-owner-token":[]}]}}},"info":{"title":"Simple Retail POS Public API","description":"Production curated public REST API and merchant onboarding. Invite-only: requests succeed only for merchants Simple has enabled. Public REST uses scoped simple_live_ API keys; onboarding status uses an owner-session JWT from login.","version":"1.0.0","contact":{}},"tags":[{"name":"Settings / App Settings","description":"Business name, currency and formats. Settings → App Settings.","x-displayName":"App Settings"},{"name":"Settings / POS Settings","description":"Enabled payment methods. Settings → POS Settings → Payment.","x-displayName":"POS Settings"},{"name":"Settings / Customer Display","description":"Customer screen branding for Simple Terminal and Fleet. Settings → POS Settings → Customer Display.","x-displayName":"Customer Display"},{"name":"Settings / Taxes","description":"Tax rates. Settings → Taxes.","x-displayName":"Taxes"},{"name":"Settings / Store Management","description":"Stores and their ordering hours. Settings → Store Management.","x-displayName":"Store Management"},{"name":"Sales / Point of Sales","description":"Server-priced carts and unpaid pickup orders placed by this integration. Sales → Point of Sales.","x-displayName":"Point of Sales"},{"name":"Sales / Sales","description":"Completed sales across the business. Sales → Sales.","x-displayName":"Sales"},{"name":"Sales / Sales Return","description":"Returns against sales. Sales → Sales Return.","x-displayName":"Sales Return"},{"name":"Loyalty Management / Members","description":"Loyalty members and balances. Loyalty Management → Members.","x-displayName":"Members"},{"name":"Loyalty Management / Tiers","description":"Loyalty tiers. Loyalty Management → Tiers.","x-displayName":"Tiers"},{"name":"Loyalty Management / Rewards","description":"Rewards members can redeem. Loyalty Management → Rewards.","x-displayName":"Rewards"},{"name":"Loyalty Management / Transactions","description":"Points earned and redeemed. Loyalty Management → Transactions.","x-displayName":"Transactions"},{"name":"Loyalty Management / Settings","description":"How points are earned and what they are worth. Loyalty Management → Settings.","x-displayName":"Settings"},{"name":"Discounts / Discount Overview","description":"Discounts. Discounts → Discount Overview.","x-displayName":"Discount Overview"},{"name":"Customer Management / Customer List","description":"Customers. Customer Management → Customer List.","x-displayName":"Customer List"},{"name":"Customer Management / Customer Group","description":"Customer groups. Customer Management → Customer Group.","x-displayName":"Customer Group"},{"name":"Inventory / Product Catalog","description":"Products, variants and prices. Inventory → Product Catalog.","x-displayName":"Product Catalog"},{"name":"Inventory / Category","description":"Product categories. Inventory → Category.","x-displayName":"Category"},{"name":"Inventory / Brand","description":"Product brands. Inventory → Brand.","x-displayName":"Brand"},{"name":"Inventory / Stock Overview","description":"Stock on hand and availability by store. Inventory → Stock Overview.","x-displayName":"Stock Overview"},{"name":"Dispatch / Delivery","description":"Delivery zones and time slots. Dispatch → Delivery.","x-displayName":"Delivery"},{"name":"Employee Management / Employee List","description":"Employees and their stores and roles. Employee Management → Employee List.","x-displayName":"Employee List"},{"name":"Employee Management / Teams","description":"Teams. Employee Management → Teams.","x-displayName":"Teams"},{"name":"Register Management / Register","description":"Cash registers. Register Management → Register.","x-displayName":"Register"},{"name":"Register Management / Register View","description":"Open and past register sessions. Register Management → Register View.","x-displayName":"Register View"},{"name":"Register Management / Close Register","description":"Closing figures, cash counts, approval requests and closing. Register Management → Close Register.","x-displayName":"Close Register"},{"name":"Register Management / Register Logs","description":"Transactions in a register session. Register Management → Register Logs.","x-displayName":"Register Logs"},{"name":"Report & Analysis / Sales","description":"Sales report. Report & Analysis → Sales.","x-displayName":"Sales"},{"name":"Report & Analysis / Sales Return","description":"Sales return report. Report & Analysis → Sales Return.","x-displayName":"Sales Return"},{"name":"Report & Analysis / Payments","description":"Payments report. Report & Analysis → Payments.","x-displayName":"Payments"},{"name":"Report & Analysis / Top Selling","description":"Top-selling products. Report & Analysis → Top Selling.","x-displayName":"Top Selling"},{"name":"Report & Analysis / Store","description":"Performance by store. Report & Analysis → Store.","x-displayName":"Store"},{"name":"Report & Analysis / Product Stock","description":"Stock and low-stock report. Report & Analysis → Product Stock.","x-displayName":"Product Stock"},{"name":"Developer / Webhooks","description":"Signed event notifications for this integration. Set up next to Settings → App Settings → Developer API Keys.","x-displayName":"Webhooks"},{"name":"Onboarding / Merchant Application","description":"Apply to become a Simple merchant and check the application. Uses the onboarding flow, not an API key.","x-displayName":"Merchant Application"}],"servers":[{"url":"https://api.simplepos.simplecommerce.io","description":"Production API"}],"components":{"securitySchemes":{"public-api-key":{"scheme":"bearer","bearerFormat":"API key","type":"http"},"merchant-owner-token":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Owner-session access_token returned by username/password login. Not accepted by scoped public REST operations."}},"schemas":{"PublicProblemDto":{"type":"object","properties":{"type":{"type":"string","example":"https://developer.simplecommerce.io/errors/invalid-request","description":"Link to the documentation page for this error code."},"title":{"type":"string","example":"Bad Request"},"status":{"type":"number","example":400},"detail":{"type":"string","example":"Invalid request."},"instance":{"type":"string","example":"/api/v1/public/reports/inventory"},"code":{"type":"string","example":"INVALID_REQUEST"},"request_id":{"type":"string","description":"Also returned in X-Request-Id."},"errors":{"type":"object","additionalProperties":{"type":"string"},"description":"Validation messages keyed by field path. Included when field-level errors are available.","example":{"store_id":"store_id is required"}}},"required":["type","title","status","detail","instance","code","request_id"]},"PublicInventoryRowDto":{"type":"object","properties":{"variant_id":{"type":"string"},"product_id":{"type":"string"},"product_name":{"type":"string"},"variant_name":{"type":"string"},"sku":{"type":"string","nullable":true},"quantity":{"type":"string","description":"Current quantity as a decimal string.","example":"12.0000"},"low_stock":{"type":"boolean"}},"required":["variant_id","product_id","product_name","variant_name","sku","quantity","low_stock"]},"PublicPageDto":{"type":"object","properties":{"has_more":{"type":"boolean"},"next_cursor":{"type":"string","nullable":true}},"required":["has_more","next_cursor"]},"PublicInventoryResponseDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PublicInventoryRowDto"}},"page":{"$ref":"#/components/schemas/PublicPageDto"}},"required":["data","page"]},"Object":{"type":"object","properties":{}},"PublicStoreDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"currency":{"type":"string","nullable":true},"timezone":{"type":"string","nullable":true},"address":{"type":"string","nullable":true},"is_active":{"type":"boolean","description":"Whether the store is active; not an ordering-hours guarantee."}},"required":["id","name","currency","timezone","address","is_active"]},"PublicStoreListDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PublicStoreDto"}},"page":{"$ref":"#/components/schemas/PublicPageDto"}},"required":["data","page"]},"PublicRegisterDto":{"type":"object","properties":{"id":{"type":"string"},"store_id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"},"current_session_id":{"type":"string","nullable":true}},"required":["id","store_id","name","status","current_session_id"]},"PublicRegisterListDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PublicRegisterDto"}},"page":{"$ref":"#/components/schemas/PublicPageDto"}},"required":["data","page"]},"PublicRegisterSessionDto":{"type":"object","properties":{"id":{"type":"string"},"register_id":{"type":"string"},"store_id":{"type":"string"},"status":{"type":"string"},"opened_at":{"type":"string","format":"date-time"},"closed_at":{"type":"string","nullable":true,"format":"date-time"},"opening_float":{"type":"string","example":"0.00"},"closing_float":{"type":"string","example":"0.00"},"variance":{"type":"string","example":"0.00"},"approval_status":{"type":"string","enum":["not_required","required","pending","approved","rejected"]},"currency":{"type":"string","nullable":true}},"required":["id","register_id","store_id","status","opened_at","closed_at","opening_float","closing_float","variance","approval_status","currency"]},"PublicRegisterCartLineDto":{"type":"object","properties":{"variant_id":{"type":"string","nullable":true},"product_id":{"type":"string","nullable":true},"name":{"type":"string"},"variant_name":{"type":"string","nullable":true},"sku":{"type":"string","nullable":true},"quantity":{"type":"number"},"unit_price":{"type":"string","example":"24.50","description":"Price per unit after item-level deals."},"total":{"type":"string","nullable":true,"example":"49.00","description":"Line total as shown at the register; null until the POS reports totals."}},"required":["variant_id","product_id","name","variant_name","sku","quantity","unit_price","total"]},"PublicRegisterCartTotalsDto":{"type":"object","properties":{"subtotal":{"type":"string","example":"98.00"},"discount":{"type":"string","example":"0.00","description":"Cart-level discounts not already in subtotal."},"tax":{"type":"string","example":"0.00"},"fees":{"type":"string","example":"0.00"},"total":{"type":"string","example":"98.00"}},"required":["subtotal","discount","tax","fees","total"]},"PublicRegisterCartDto":{"type":"object","properties":{"register_id":{"type":"string"},"store_id":{"type":"string"},"session_id":{"type":"string","nullable":true},"status":{"enum":["empty","active"],"type":"string"},"source":{"enum":["register","session_opener"],"type":"string","nullable":true,"description":"register: the POS reported this register. session_opener: matched through the employee who opened the register session."},"items":{"type":"array","items":{"$ref":"#/components/schemas/PublicRegisterCartLineDto"}},"totals":{"nullable":true,"description":"Totals exactly as the register shows them; null when the POS has not reported them.","type":"object","allOf":[{"$ref":"#/components/schemas/PublicRegisterCartTotalsDto"}]},"updated_at":{"type":"string","nullable":true,"format":"date-time"}},"required":["register_id","store_id","session_id","status","source","items","totals","updated_at"]},"PublicRegisterSessionListDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PublicRegisterSessionDto"}},"page":{"$ref":"#/components/schemas/PublicPageDto"}},"required":["data","page"]},"PublicClosingPaymentMethodDto":{"type":"object","properties":{"method":{"type":"string"},"total":{"type":"string","example":"12.34"},"count":{"type":"number"}},"required":["method","total","count"]},"PublicClosingSummaryDto":{"type":"object","properties":{"session_id":{"type":"string"},"currency":{"type":"string","nullable":true},"opening_float":{"type":"string","example":"100.00"},"expected_cash":{"type":"string","example":"150.00"},"counted_cash":{"type":"string","nullable":true,"example":"149.50"},"variance":{"type":"string","nullable":true,"example":"-0.50"},"sales_total":{"type":"string","example":"80.00"},"tax_total":{"type":"string","example":"5.00"},"tips_total":{"type":"string","example":"2.00"},"payouts_total":{"type":"string","example":"10.00"},"payments_by_method":{"type":"array","items":{"$ref":"#/components/schemas/PublicClosingPaymentMethodDto"}},"generated_at":{"type":"string","format":"date-time"}},"required":["session_id","currency","opening_float","expected_cash","counted_cash","variance","sales_total","tax_total","tips_total","payouts_total","payments_by_method","generated_at"]},"PublicClosingTransactionDto":{"type":"object","properties":{"id":{"type":"string"},"occurred_at":{"type":"string","format":"date-time"},"reason":{"type":"string"},"amount":{"type":"string","example":"12.34"},"order_id":{"type":"string","nullable":true}},"required":["id","occurred_at","reason","amount","order_id"]},"PublicClosingTransactionListDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PublicClosingTransactionDto"}},"page":{"$ref":"#/components/schemas/PublicPageDto"}},"required":["data","page"]},"PublicDenominationDto":{"type":"object","properties":{"value":{"type":"string","pattern":"^(?:0|[1-9]\\d{0,5})\\.\\d{2}$","example":"20.00"},"quantity":{"type":"number","minimum":0,"maximum":100000}},"required":["value","quantity"]},"PublicCashCountDto":{"type":"object","properties":{"denominations":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/PublicDenominationDto"}},"notes":{"type":"string","maxLength":1000}},"required":["denominations"]},"PublicCashCountResponseDto":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string"},"currency":{"type":"string"},"counted_cash":{"type":"string"},"expected_cash":{"type":"string"},"variance":{"type":"string"},"approval_status":{"type":"string"},"updated_at":{"type":"string"}},"required":["id","status","currency","counted_cash","expected_cash","variance","approval_status","updated_at"]},"PublicApprovalRequestResponseDto":{"type":"object","properties":{"id":{"type":"string"},"approval_status":{"type":"string"},"status":{"type":"string"}},"required":["id","approval_status","status"]},"PublicCloseDto":{"type":"object","properties":{"notes":{"type":"string","maxLength":1000}}},"PublicRegisterCloseResponseDto":{"type":"object","properties":{"session":{"$ref":"#/components/schemas/PublicRegisterSessionDto"},"summary":{"$ref":"#/components/schemas/PublicClosingSummaryDto"}},"required":["session","summary"]},"PublicReportRowDto":{"type":"object","properties":{"id":{"type":"string"},"occurred_at":{"type":"string","format":"date-time"},"amount":{"type":"string","example":"12.34"},"method":{"type":"string","nullable":true},"status":{"type":"string","nullable":true}},"required":["id","occurred_at","amount","method","status"]},"PublicPaymentMethodTotalDto":{"type":"object","properties":{"method":{"type":"string"},"count":{"type":"number"},"total":{"type":"string","example":"123.45"}},"required":["method","count","total"]},"PublicReportSummaryDto":{"type":"object","properties":{"count":{"type":"number"},"total":{"type":"string","example":"123.45"},"currency":{"type":"string","nullable":true},"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time"},"method_breakdown":{"type":"array","items":{"$ref":"#/components/schemas/PublicPaymentMethodTotalDto"}}},"required":["count","total","currency","from","to"]},"PublicReportResponseDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PublicReportRowDto"}},"summary":{"$ref":"#/components/schemas/PublicReportSummaryDto"},"page":{"$ref":"#/components/schemas/PublicPageDto"}},"required":["data","summary","page"]},"PublicTopProductDto":{"type":"object","properties":{"product_id":{"type":"string"},"name":{"type":"string"},"quantity_sold":{"type":"string","example":"12.0000"},"revenue":{"type":"string","example":"123.45"}},"required":["product_id","name","quantity_sold","revenue"]},"PublicTopProductsResponseDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PublicTopProductDto"}},"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time"},"currency":{"type":"string","nullable":true}},"required":["data","from","to","currency"]},"PublicCatalogVariantDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"sku":{"type":"string","nullable":true},"price":{"type":"string","example":"12.34"},"tax_percentage":{"type":"string","nullable":true,"example":"5.00"},"image_urls":{"type":"array","items":{"type":"string"}}},"required":["id","name","sku","price","tax_percentage","image_urls"]},"PublicCatalogProductDto":{"type":"object","properties":{"id":{"type":"string"},"store_id":{"type":"string","nullable":true},"name":{"type":"string"},"description":{"type":"string","nullable":true},"category":{"type":"string","nullable":true},"image_urls":{"type":"array","items":{"type":"string"}},"variants":{"type":"array","items":{"$ref":"#/components/schemas/PublicCatalogVariantDto"}},"availability_status":{"enum":["published","unpublished"],"type":"string","description":"published: active and sellable. unpublished: removed, deactivated or without a priced variant (tombstone)."},"updated_at":{"type":"string","format":"date-time"}},"required":["id","store_id","name","description","category","image_urls","variants","availability_status","updated_at"]},"PublicCatalogListDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PublicCatalogProductDto"}},"page":{"$ref":"#/components/schemas/PublicPageDto"}},"required":["data","page"]},"PublicAvailabilityRowDto":{"type":"object","properties":{"variant_id":{"type":"string"},"available":{"type":"boolean"}},"required":["variant_id","available"]},"PublicAvailabilityResponseDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PublicAvailabilityRowDto"}}},"required":["data"]},"PublicOrderCreateDto":{"type":"object","properties":{"cart_id":{"type":"string","format":"uuid"},"cart_version":{"type":"number","minimum":1,"description":"The accepted cart version. Reprice with PATCH after a pricing conflict."},"external_order_id":{"type":"string","maxLength":128,"pattern":"^[A-Za-z0-9][A-Za-z0-9_.:-]{0,127}$","description":"Unique per integration, including after key rotation."}},"required":["cart_id","cart_version","external_order_id"]},"PublicOrderDto":{"type":"object","properties":{"id":{"type":"string"},"external_id":{"type":"string"},"channel":{"type":"string"},"store_id":{"type":"string"},"status":{"type":"string"},"payment_status":{"type":"string"},"fulfillment_status":{"type":"string"},"currency":{"type":"string","nullable":true},"total":{"type":"string","example":"12.34"},"created_at":{"type":"string","format":"date-time"}},"required":["id","external_id","channel","store_id","status","payment_status","fulfillment_status","currency","total","created_at"]},"PublicOrderListDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PublicOrderDto"}},"page":{"$ref":"#/components/schemas/PublicPageDto"}},"required":["data","page"]},"PublicOrderCancelDto":{"type":"object","properties":{"reason":{"enum":["customer_request","out_of_stock","pricing_issue","compliance_issue","duplicate_order","other"],"type":"string","default":"customer_request"},"notes":{"type":"string","maxLength":500}}},"PublicCoordinateDto":{"type":"object","properties":{"lat":{"type":"number","minimum":-90,"maximum":90},"lng":{"type":"number","minimum":-180,"maximum":180}},"required":["lat","lng"]},"PublicDeliverySearchDto":{"type":"object","properties":{"store_id":{"type":"string","format":"uuid"},"locations":{"minItems":1,"maxItems":20,"type":"array","items":{"$ref":"#/components/schemas/PublicCoordinateDto"}},"timezone":{"type":"string","maxLength":64,"example":"America/New_York"}},"required":["store_id","locations"]},"PublicCustomerCreateDto":{"type":"object","properties":{"customer_group_id":{"type":"string","nullable":true,"format":"uuid","description":"Customer group."},"address":{"type":"string","nullable":true,"maxLength":255,"description":"Street address."},"city":{"type":"string","nullable":true,"maxLength":100},"state":{"type":"string","nullable":true,"maxLength":100},"zip_code":{"type":"string","nullable":true,"maxLength":20},"country":{"type":"string","nullable":true,"maxLength":100},"date_of_birth":{"type":"string","nullable":true,"format":"date","example":"1990-04-21"},"store_id":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"email":{"type":"string","maxLength":320,"format":"email"},"phone":{"type":"string","minLength":1,"maxLength":50}},"required":["store_id","name","email","phone"]},"PublicNamedRefDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["id","name"]},"PublicCustomerAddressDto":{"type":"object","properties":{"line":{"type":"string","nullable":true},"city":{"type":"string","nullable":true},"state":{"type":"string","nullable":true},"zip_code":{"type":"string","nullable":true},"country":{"type":"string","nullable":true}},"required":["line","city","state","zip_code","country"]},"PublicCustomerLoyaltyDto":{"type":"object","properties":{"is_member":{"type":"boolean"},"points_balance":{"type":"string","nullable":true,"example":"120.00"},"tier":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/PublicNamedRefDto"}]}},"required":["is_member","points_balance","tier"]},"PublicCustomerDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"email":{"type":"string","nullable":true},"phone":{"type":"string"},"store_id":{"type":"string","nullable":true,"format":"uuid","description":"Store the customer was created in (create responses only)."},"store_ids":{"description":"Permitted stores the customer belongs to.","type":"array","items":{"type":"string"}},"customer_group":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/PublicNamedRefDto"}]},"address":{"$ref":"#/components/schemas/PublicCustomerAddressDto"},"date_of_birth":{"type":"string","nullable":true,"format":"date"},"loyalty":{"$ref":"#/components/schemas/PublicCustomerLoyaltyDto"},"created_at":{"type":"string","nullable":true,"format":"date-time"},"updated_at":{"type":"string","nullable":true,"format":"date-time"}},"required":["id","name","email","phone","store_id","store_ids","customer_group","address","date_of_birth","loyalty","created_at","updated_at"]},"PublicCustomerListDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PublicCustomerDto"}},"page":{"$ref":"#/components/schemas/PublicPageDto"}},"required":["data","page"]},"PublicCustomerUpdateDto":{"type":"object","properties":{"customer_group_id":{"type":"string","nullable":true,"format":"uuid","description":"Customer group."},"address":{"type":"string","nullable":true,"maxLength":255,"description":"Street address."},"city":{"type":"string","nullable":true,"maxLength":100},"state":{"type":"string","nullable":true,"maxLength":100},"zip_code":{"type":"string","nullable":true,"maxLength":20},"country":{"type":"string","nullable":true,"maxLength":100},"date_of_birth":{"type":"string","nullable":true,"format":"date","example":"1990-04-21"},"name":{"type":"string","minLength":1,"maxLength":200},"email":{"type":"string","maxLength":320,"format":"email"},"phone":{"type":"string","minLength":1,"maxLength":50}}},"PublicCartItemInputDto":{"type":"object","properties":{"variant_id":{"type":"string","format":"uuid"},"quantity":{"type":"number","minimum":1,"maximum":10000,"description":"Whole units only in this release."}},"required":["variant_id","quantity"]},"PublicCartCreateDto":{"type":"object","properties":{"store_id":{"type":"string","format":"uuid"},"customer_id":{"type":"string","format":"uuid","description":"An existing customer assigned to this store."},"fulfillment":{"type":"string","enum":["pickup"],"description":"Delivery is not supported by this checkout release."},"items":{"minItems":1,"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/PublicCartItemInputDto"}}},"required":["store_id","customer_id","fulfillment","items"]},"PublicCartLineDto":{"type":"object","properties":{"variant_id":{"type":"string"},"quantity":{"type":"number"},"unit_price":{"type":"string"},"subtotal":{"type":"string"},"tax_rate":{"type":"string"},"tax":{"type":"string"},"total":{"type":"string"}},"required":["variant_id","quantity","unit_price","subtotal","tax_rate","tax","total"]},"PublicCartFeeDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"amount":{"type":"string"}},"required":["id","name","amount"]},"PublicCartDto":{"type":"object","properties":{"id":{"type":"string"},"store_id":{"type":"string"},"customer_id":{"type":"string"},"fulfillment":{"type":"string","enum":["pickup"]},"status":{"type":"string","enum":["active","expired","completed"]},"version":{"type":"number"},"currency":{"type":"string"},"items":{"type":"array","items":{"$ref":"#/components/schemas/PublicCartLineDto"}},"fees":{"type":"array","items":{"$ref":"#/components/schemas/PublicCartFeeDto"}},"subtotal":{"type":"string"},"discount":{"type":"string"},"tax":{"type":"string"},"fee_total":{"type":"string"},"total":{"type":"string"},"expires_at":{"type":"string"},"order_id":{"type":"string","nullable":true}},"required":["id","store_id","customer_id","fulfillment","status","version","currency","items","fees","subtotal","discount","tax","fee_total","total","expires_at","order_id"]},"PublicCartUpdateDto":{"type":"object","properties":{"version":{"type":"number","minimum":1,"description":"Version from the latest cart response; prevents lost updates."},"items":{"minItems":1,"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/PublicCartItemInputDto"}}},"required":["version","items"]},"PublicDiscountCreateDto":{"type":"object","properties":{"store_id":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"discount_type":{"enum":["INDIVIDUAL","FLAT"],"type":"string","description":"FLAT: store-wide; INDIVIDUAL: restrict to product_ids or variant_ids."},"amount_type":{"enum":["PERCENTAGE","FIXED"],"type":"string"},"amount":{"type":"string","pattern":"^\\d{1,8}(\\.\\d{1,2})?$","example":"10.00","description":"Decimal string with at most two decimal places. Percentage cannot exceed 100."},"start_date":{"type":"string","nullable":true,"pattern":"^\\d{4}-\\d{2}-\\d{2}$","format":"date"},"end_date":{"type":"string","nullable":true,"pattern":"^\\d{4}-\\d{2}-\\d{2}$","format":"date"},"status":{"enum":["ACTIVE","INACTIVE"],"type":"string","default":"ACTIVE"},"product_ids":{"uniqueItems":true,"maxItems":100,"description":"Company-owned product UUIDs. INDIVIDUAL requires at least one product or variant.","type":"array","items":{"type":"string","format":"uuid"}},"variant_ids":{"uniqueItems":true,"maxItems":100,"description":"Company-owned variant UUIDs. At least one product or variant is required for INDIVIDUAL.","type":"array","items":{"type":"string","format":"uuid"}},"note":{"type":"string","nullable":true,"maxLength":2000}},"required":["store_id","name","discount_type","amount_type","amount"]},"PublicDiscountDto":{"type":"object","properties":{"id":{"type":"string"},"store_id":{"type":"string"},"name":{"type":"string"},"discount_type":{"enum":["INDIVIDUAL","FLAT"],"type":"string"},"amount_type":{"enum":["PERCENTAGE","FIXED"],"type":"string"},"amount":{"type":"string","example":"10.00"},"status":{"enum":["ACTIVE","INACTIVE","PAUSED","PENDING","SUSPENDED","RESTRICTED","DELETED","EXPIRED"],"type":"string"},"start_date":{"type":"string","nullable":true},"end_date":{"type":"string","nullable":true},"note":{"type":"string","nullable":true},"product_ids":{"type":"array","items":{"type":"string"}},"variant_ids":{"type":"array","items":{"type":"string"}},"created_at":{"type":"string"},"updated_at":{"type":"string"}},"required":["id","store_id","name","discount_type","amount_type","amount","status","start_date","end_date","note","product_ids","variant_ids","created_at","updated_at"]},"PublicDiscountListDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PublicDiscountDto"}},"page":{"$ref":"#/components/schemas/PublicPageDto"}},"required":["data","page"]},"PublicDiscountUpdateDto":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"discount_type":{"enum":["INDIVIDUAL","FLAT"],"type":"string","description":"FLAT: store-wide; INDIVIDUAL: restrict to product_ids or variant_ids."},"amount_type":{"enum":["PERCENTAGE","FIXED"],"type":"string"},"amount":{"type":"string","pattern":"^\\d{1,8}(\\.\\d{1,2})?$","example":"10.00","description":"Decimal string with at most two decimal places. Percentage cannot exceed 100."},"start_date":{"type":"string","nullable":true,"pattern":"^\\d{4}-\\d{2}-\\d{2}$","format":"date"},"end_date":{"type":"string","nullable":true,"pattern":"^\\d{4}-\\d{2}-\\d{2}$","format":"date"},"status":{"enum":["ACTIVE","INACTIVE"],"type":"string","default":"ACTIVE"},"product_ids":{"uniqueItems":true,"maxItems":100,"description":"Company-owned product UUIDs. INDIVIDUAL requires at least one product or variant.","type":"array","items":{"type":"string","format":"uuid"}},"variant_ids":{"uniqueItems":true,"maxItems":100,"description":"Company-owned variant UUIDs. At least one product or variant is required for INDIVIDUAL.","type":"array","items":{"type":"string","format":"uuid"}},"note":{"type":"string","nullable":true,"maxLength":2000}}},"PublicDiscountDeletedDto":{"type":"object","properties":{"id":{"type":"string"},"deleted":{"type":"boolean","example":true}},"required":["id","deleted"]},"PublicWebhookEndpointCreateDto":{"type":"object","properties":{"url":{"type":"string","maxLength":2048,"example":"https://example.com/simple/webhooks"},"event_types":{"type":"array","uniqueItems":true,"minItems":1,"items":{"type":"string","enum":["order.created","order.updated","order.cancelled","inventory.level.updated","register_session.opened","register_session.counted","register_session.approval_requested","register_session.closed"]}},"description":{"type":"string","maxLength":255},"store_ids":{"uniqueItems":true,"minItems":1,"maxItems":100,"description":"Only send events for these stores. Defaults to the key’s permitted stores (all stores for an unrestricted key).","type":"array","items":{"type":"string","format":"uuid"}}},"required":["url","event_types"]},"PublicWebhookEndpointWithSecretDto":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"description":{"type":"string","nullable":true},"event_types":{"type":"array","items":{"type":"string","enum":["order.created","order.updated","order.cancelled","inventory.level.updated","register_session.opened","register_session.counted","register_session.approval_requested","register_session.closed"]}},"store_ids":{"nullable":true,"type":"array","items":{"type":"string"}},"status":{"type":"string","enum":["active","disabled"]},"disabled_reason":{"type":"string","nullable":true},"last_success_at":{"type":"string","nullable":true,"format":"date-time"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"secret":{"type":"string","nullable":true,"description":"Signing secret (whsec_…), returned only by the request that created it. A replayed request returns null."}},"required":["id","url","description","event_types","store_ids","status","disabled_reason","last_success_at","created_at","updated_at","secret"]},"PublicWebhookEndpointDto":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"description":{"type":"string","nullable":true},"event_types":{"type":"array","items":{"type":"string","enum":["order.created","order.updated","order.cancelled","inventory.level.updated","register_session.opened","register_session.counted","register_session.approval_requested","register_session.closed"]}},"store_ids":{"nullable":true,"type":"array","items":{"type":"string"}},"status":{"type":"string","enum":["active","disabled"]},"disabled_reason":{"type":"string","nullable":true},"last_success_at":{"type":"string","nullable":true,"format":"date-time"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["id","url","description","event_types","store_ids","status","disabled_reason","last_success_at","created_at","updated_at"]},"PublicWebhookEndpointListDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PublicWebhookEndpointDto"}},"page":{"$ref":"#/components/schemas/PublicPageDto"}},"required":["data","page"]},"PublicWebhookEndpointUpdateDto":{"type":"object","properties":{"url":{"type":"string","maxLength":2048},"event_types":{"type":"array","uniqueItems":true,"minItems":1,"items":{"type":"string","enum":["order.created","order.updated","order.cancelled","inventory.level.updated","register_session.opened","register_session.counted","register_session.approval_requested","register_session.closed"]}},"description":{"type":"string","maxLength":255,"nullable":true},"store_ids":{"uniqueItems":true,"minItems":1,"maxItems":100,"type":"array","items":{"type":"string","format":"uuid"}},"status":{"enum":["active","disabled"],"type":"string","description":"Re-enabling resets the failure counter. Simple disables endpoints that keep failing."}}},"PublicWebhookDeliveryDto":{"type":"object","properties":{"id":{"type":"string"},"event_id":{"type":"string"},"event_type":{"type":"string"},"status":{"type":"string","enum":["pending","succeeded","failed","cancelled"]},"attempts":{"type":"number"},"next_attempt_at":{"type":"string","nullable":true,"format":"date-time"},"last_status_code":{"type":"number","nullable":true},"last_error":{"type":"string","nullable":true},"last_attempt_at":{"type":"string","nullable":true,"format":"date-time"},"succeeded_at":{"type":"string","nullable":true,"format":"date-time"},"created_at":{"type":"string","format":"date-time"}},"required":["id","event_id","event_type","status","attempts","next_attempt_at","last_status_code","last_error","last_attempt_at","succeeded_at","created_at"]},"PublicWebhookDeliveryListDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PublicWebhookDeliveryDto"}},"page":{"$ref":"#/components/schemas/PublicPageDto"}},"required":["data","page"]},"PublicEmployeeStoreDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"team":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/PublicNamedRefDto"}]}},"required":["id","name","team"]},"PublicEmployeeDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"first_name":{"type":"string"},"last_name":{"type":"string","nullable":true},"full_name":{"type":"string"},"image_url":{"type":"string","nullable":true},"user_type":{"enum":["owner","admin","staff"],"type":"string"},"status":{"enum":["pending","active","inactive","suspended","restricted"],"type":"string"},"roles":{"description":"Role names only.","type":"array","items":{"$ref":"#/components/schemas/PublicNamedRefDto"}},"stores":{"type":"array","items":{"$ref":"#/components/schemas/PublicEmployeeStoreDto"}},"created_at":{"type":"string","format":"date-time"}},"required":["id","first_name","last_name","full_name","image_url","user_type","status","roles","stores","created_at"]},"PublicEmployeeListDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PublicEmployeeDto"}},"page":{"$ref":"#/components/schemas/PublicPageDto"}},"required":["data","page"]},"PublicTeamDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"store_id":{"type":"string","nullable":true,"format":"uuid"}},"required":["id","name","description","store_id"]},"PublicTeamListDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PublicTeamDto"}},"page":{"$ref":"#/components/schemas/PublicPageDto"}},"required":["data","page"]},"PublicCustomerGroupDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"is_default":{"type":"boolean"},"store_id":{"type":"string","nullable":true,"format":"uuid"}},"required":["id","name","is_default","store_id"]},"PublicCustomerGroupListDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PublicCustomerGroupDto"}},"page":{"$ref":"#/components/schemas/PublicPageDto"}},"required":["data","page"]},"PublicPersonRefDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["id","name"]},"PublicSaleDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"receipt_number":{"type":"string","nullable":true,"description":"Receipt number shown in the merchant app."},"store_id":{"type":"string","nullable":true,"format":"uuid"},"channel":{"type":"string","nullable":true,"enum":["in_store","e_commerce","kiosk"]},"status":{"type":"string","enum":["completed","pending","hold"]},"payment_status":{"type":"string","example":"paid"},"fulfillment_status":{"type":"string","nullable":true,"example":"pending"},"customer":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/PublicPersonRefDto"}]},"employee":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/PublicPersonRefDto"}]},"currency":{"type":"string","nullable":true},"subtotal":{"type":"string","example":"40.00"},"discount":{"type":"string","example":"2.00"},"tax":{"type":"string","example":"3.04"},"total":{"type":"string","example":"41.04"},"paid":{"type":"string","example":"41.04"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["id","receipt_number","store_id","channel","status","payment_status","fulfillment_status","customer","employee","currency","subtotal","discount","tax","total","paid","created_at","updated_at"]},"PublicSaleListDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PublicSaleDto"}},"page":{"$ref":"#/components/schemas/PublicPageDto"}},"required":["data","page"]},"PublicSaleLineDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"variant_id":{"type":"string","nullable":true,"format":"uuid"},"product_id":{"type":"string","nullable":true,"format":"uuid"},"name":{"type":"string"},"sku":{"type":"string","nullable":true},"quantity":{"type":"string","example":"2"},"unit_price":{"type":"string","example":"12.00"},"discount":{"type":"string","example":"1.00","description":"Discount on the whole line."},"tax_rate":{"type":"string","example":"8.00","description":"Tax rate in percent."},"total":{"type":"string","example":"23.00","description":"Line total after discount, before tax."}},"required":["id","variant_id","product_id","name","sku","quantity","unit_price","discount","tax_rate","total"]},"PublicSalePaymentDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"method":{"type":"string","nullable":true,"description":"Payment method name; no card details."},"amount":{"type":"string","example":"41.04"},"status":{"type":"string","example":"paid"},"paid_at":{"type":"string","nullable":true,"format":"date-time"}},"required":["id","method","amount","status","paid_at"]},"PublicSaleDetailDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"receipt_number":{"type":"string","nullable":true,"description":"Receipt number shown in the merchant app."},"store_id":{"type":"string","nullable":true,"format":"uuid"},"channel":{"type":"string","nullable":true,"enum":["in_store","e_commerce","kiosk"]},"status":{"type":"string","enum":["completed","pending","hold"]},"payment_status":{"type":"string","example":"paid"},"fulfillment_status":{"type":"string","nullable":true,"example":"pending"},"customer":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/PublicPersonRefDto"}]},"employee":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/PublicPersonRefDto"}]},"currency":{"type":"string","nullable":true},"subtotal":{"type":"string","example":"40.00"},"discount":{"type":"string","example":"2.00"},"tax":{"type":"string","example":"3.04"},"total":{"type":"string","example":"41.04"},"paid":{"type":"string","example":"41.04"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"lines":{"type":"array","items":{"$ref":"#/components/schemas/PublicSaleLineDto"}},"payments":{"type":"array","items":{"$ref":"#/components/schemas/PublicSalePaymentDto"}}},"required":["id","receipt_number","store_id","channel","status","payment_status","fulfillment_status","customer","employee","currency","subtotal","discount","tax","total","paid","created_at","updated_at","lines","payments"]},"PublicSalesReturnDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"receipt_number":{"type":"string","nullable":true,"description":"Return receipt number shown in the merchant app."},"sale_id":{"type":"string","nullable":true,"format":"uuid"},"store_id":{"type":"string","nullable":true,"format":"uuid"},"status":{"type":"string","example":"completed"},"customer":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/PublicPersonRefDto"}]},"employee":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/PublicPersonRefDto"}]},"currency":{"type":"string","nullable":true},"subtotal":{"type":"string","example":"12.00"},"discount":{"type":"string","example":"0.00"},"tax":{"type":"string","example":"0.96"},"total":{"type":"string","example":"12.96"},"reason":{"nullable":true,"description":"Return reason.","type":"object","allOf":[{"$ref":"#/components/schemas/PublicNamedRefDto"}]},"returned_at":{"type":"string","nullable":true,"format":"date-time"},"created_at":{"type":"string","format":"date-time"}},"required":["id","receipt_number","sale_id","store_id","status","customer","employee","currency","subtotal","discount","tax","total","reason","returned_at","created_at"]},"PublicSalesReturnListDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PublicSalesReturnDto"}},"page":{"$ref":"#/components/schemas/PublicPageDto"}},"required":["data","page"]},"PublicSalesReturnLineDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"variant_id":{"type":"string","nullable":true,"format":"uuid"},"name":{"type":"string"},"sku":{"type":"string","nullable":true},"quantity":{"type":"string","example":"1"},"unit_price":{"type":"string","example":"12.00"},"discount":{"type":"string","example":"0.00"},"tax":{"type":"string","example":"0.96"},"total":{"type":"string","example":"12.96"}},"required":["id","variant_id","name","sku","quantity","unit_price","discount","tax","total"]},"PublicSalesReturnDetailDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"receipt_number":{"type":"string","nullable":true,"description":"Return receipt number shown in the merchant app."},"sale_id":{"type":"string","nullable":true,"format":"uuid"},"store_id":{"type":"string","nullable":true,"format":"uuid"},"status":{"type":"string","example":"completed"},"customer":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/PublicPersonRefDto"}]},"employee":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/PublicPersonRefDto"}]},"currency":{"type":"string","nullable":true},"subtotal":{"type":"string","example":"12.00"},"discount":{"type":"string","example":"0.00"},"tax":{"type":"string","example":"0.96"},"total":{"type":"string","example":"12.96"},"reason":{"nullable":true,"description":"Return reason.","type":"object","allOf":[{"$ref":"#/components/schemas/PublicNamedRefDto"}]},"returned_at":{"type":"string","nullable":true,"format":"date-time"},"created_at":{"type":"string","format":"date-time"},"lines":{"type":"array","items":{"$ref":"#/components/schemas/PublicSalesReturnLineDto"}}},"required":["id","receipt_number","sale_id","store_id","status","customer","employee","currency","subtotal","discount","tax","total","reason","returned_at","created_at","lines"]},"PublicLoyaltyRuleDto":{"type":"object","properties":{"level":{"type":"string","enum":["category","subcategory"]},"category_id":{"type":"string","nullable":true,"format":"uuid"},"sub_category_id":{"type":"string","nullable":true,"format":"uuid"},"points_per_currency_unit":{"type":"string","example":"2.00"}},"required":["level","category_id","sub_category_id","points_per_currency_unit"]},"PublicLoyaltyProgramDto":{"type":"object","properties":{"points_per_currency_unit":{"type":"string","example":"1.00","description":"Default points earned per unit of currency spent."},"sign_up_bonus":{"type":"string","example":"50.00"},"birthday_bonus_enabled":{"type":"boolean"},"birthday_bonus_points":{"type":"string","nullable":true,"example":"25.00"},"birthday_bonus_valid_days":{"type":"number","nullable":true,"description":"Days a birthday bonus stays valid."},"category_rules":{"description":"Category overrides of the default rate.","type":"array","items":{"$ref":"#/components/schemas/PublicLoyaltyRuleDto"}}},"required":["points_per_currency_unit","sign_up_bonus","birthday_bonus_enabled","birthday_bonus_points","birthday_bonus_valid_days","category_rules"]},"PublicLoyaltyTierDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"min_points":{"type":"number"},"max_points":{"type":"number","nullable":true}},"required":["id","name","description","min_points","max_points"]},"PublicLoyaltyTierListDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PublicLoyaltyTierDto"}},"page":{"$ref":"#/components/schemas/PublicPageDto"}},"required":["data","page"]},"PublicLoyaltyRewardDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"type":{"type":"string","enum":["discount","free_product","points_multiplier","cashback"]},"value":{"type":"string","nullable":true,"description":"Percentage, amount, product or multiplier, depending on type."},"points_required":{"type":"number"},"tier_id":{"type":"string","nullable":true,"format":"uuid"},"store_id":{"type":"string","nullable":true,"format":"uuid","description":"Null means every store."},"valid_from":{"type":"string","nullable":true,"format":"date-time"},"valid_to":{"type":"string","nullable":true,"format":"date-time"},"usage_limit":{"type":"number","nullable":true},"usage_count":{"type":"number"}},"required":["id","name","description","type","value","points_required","tier_id","store_id","valid_from","valid_to","usage_limit","usage_count"]},"PublicLoyaltyRewardListDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PublicLoyaltyRewardDto"}},"page":{"$ref":"#/components/schemas/PublicPageDto"}},"required":["data","page"]},"PublicLoyaltyMemberDto":{"type":"object","properties":{"customer":{"$ref":"#/components/schemas/PublicPersonRefDto"},"points_balance":{"type":"string","example":"120.00"},"tier":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/PublicNamedRefDto"}]},"total_spent":{"type":"string","example":"842.50","description":"Total spent while a member."},"status":{"type":"string","enum":["active","suspended"]},"last_activity_at":{"type":"string","nullable":true,"format":"date-time"},"joined_at":{"type":"string","format":"date-time"}},"required":["customer","points_balance","tier","total_spent","status","last_activity_at","joined_at"]},"PublicLoyaltyMemberListDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PublicLoyaltyMemberDto"}},"page":{"$ref":"#/components/schemas/PublicPageDto"}},"required":["data","page"]},"PublicLoyaltyTransactionDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"customer_id":{"type":"string","format":"uuid"},"store_id":{"type":"string","nullable":true,"format":"uuid"},"sale_id":{"type":"string","nullable":true,"format":"uuid"},"action":{"type":"string","enum":["earned","redeemed","adjusted"]},"type":{"type":"string","enum":["sale","sign_up","birthday"]},"points":{"type":"string","example":"12.00"},"balance_before":{"type":"string","example":"108.00"},"balance_after":{"type":"string","example":"120.00"},"reason":{"type":"string","nullable":true},"reward":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/PublicNamedRefDto"}]},"created_at":{"type":"string","format":"date-time"}},"required":["id","customer_id","store_id","sale_id","action","type","points","balance_before","balance_after","reason","reward","created_at"]},"PublicLoyaltyTransactionListDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PublicLoyaltyTransactionDto"}},"page":{"$ref":"#/components/schemas/PublicPageDto"}},"required":["data","page"]},"ResolvedCustomerDisplayStoreDto":{"type":"object","properties":{"name":{"type":"string","example":"BOSTON"},"logoUrl":{"type":"string","nullable":true,"example":"https://cdn.example.com/uploads/receipt-logo.png","description":"Custom display logo, else the receipt logo, else the company logo"}},"required":["name","logoUrl"]},"ResolvedCustomerDisplaySlideDto":{"type":"object","properties":{"imageUrl":{"type":"string","example":"https://cdn.example.com/uploads/summer-sale.jpg"}},"required":["imageUrl"]},"ResolvedCustomerDisplayQrCodeDto":{"type":"object","properties":{"label":{"type":"string","example":"Join our rewards"},"url":{"type":"string","example":"https://example.com/rewards"}},"required":["label","url"]},"ResolvedCustomerDisplayConfigDto":{"type":"object","properties":{"enabled":{"type":"boolean","example":true,"description":"Off = show a plain store logo only"},"store":{"$ref":"#/components/schemas/ResolvedCustomerDisplayStoreDto"},"welcomeHeadline":{"type":"string","example":"Welcome to BOSTON","description":"{storeName} already replaced"},"welcomeSubtext":{"type":"string","nullable":true,"example":"Ask about our loyalty program"},"thankYouText":{"type":"string","example":"Thanks for shopping with us!"},"slideSeconds":{"type":"number","example":8,"minimum":3,"maximum":30},"slides":{"description":"Enabled only, in order","type":"array","items":{"$ref":"#/components/schemas/ResolvedCustomerDisplaySlideDto"}},"qrCodes":{"maxItems":2,"type":"array","items":{"$ref":"#/components/schemas/ResolvedCustomerDisplayQrCodeDto"}},"backgroundColor":{"type":"string","nullable":true,"example":"#6366F1","description":"Display setting, else the receipt brand color"},"textTheme":{"enum":["light","dark"],"type":"string","example":"light"},"updatedAt":{"type":"string","example":"2026-10-07T12:00:00.000Z","description":"Latest change to anything in this config (display settings, receipt logo or brand color, store name). Skip the redraw when unchanged."}},"required":["enabled","store","welcomeHeadline","welcomeSubtext","thankYouText","slideSeconds","slides","qrCodes","backgroundColor","textTheme","updatedAt"]},"CreateMerchantInfoDto":{"type":"object","properties":{"wantsCardPayments":{"type":"boolean","description":"False when the applicant declined card processing — a Simple account only.\n\nDefaults to true when absent so existing clients (super-admin create-account, the CoPilot\ncorrection flow) keep submitting full applications without change.","default":true},"templateId":{"type":"string"},"merchant":{"$ref":"#/components/schemas/MerchantDto"},"ownerSiteUser":{"description":"The person who becomes the account's login user. Required in both flows.","allOf":[{"$ref":"#/components/schemas/OwnerSiteUserDto"}]},"eSignature":{"description":"CoPilot-only — the signature exists to satisfy `PUT /merchant/{id}/signature`.","allOf":[{"$ref":"#/components/schemas/SignatureDto"}]},"isCreatedByAdmin":{"type":"boolean"}},"required":["merchant","ownerSiteUser"]},"MerchantDto":{"type":"object","properties":{"salesCode":{"type":"string"},"dbaName":{"type":"string"},"legalBusinessName":{"type":"string"},"businessType":{"type":"string","description":"CoPilot-only (`ownership.ownershipTypeCd`)."},"email":{"type":"string","description":"Collected by the full application only, and read by nothing downstream."},"businessPhone":{"type":"string"},"businessEmail":{"type":"string"},"website":{"type":"string","description":"CoPilot-only (`demographic.websiteAddress`)."},"taxFilingName":{"type":"string","description":"CoPilot-only."},"taxFilingMethod":{"type":"string","description":"CoPilot-only."},"ssn":{"type":"string"},"ein":{"type":"string"},"mccId":{"type":"string","description":"SRP-Dev1661: Merchant Category Code (CoPilot `processing.platformDetails.mccId`).","pattern":"^\\d{4}$"},"businessDescription":{"type":"string","description":"SRP-Dev1661: what the business sells (CoPilot `processing.platformDetails.businessDescription`).","maxLength":4000},"businessStartDate":{"type":"string","description":"SRP-Dev1661: business start date, MM/DD/YYYY or YYYY-MM-DD (CoPilot `merchant.businessStartDate`).","pattern":"^(\\d{2}\\/\\d{2}\\/\\d{4}|\\d{4}-\\d{2}-\\d{2})$"},"demographic":{"$ref":"#/components/schemas/DemographicDto"},"ownership":{"description":"CoPilot-only (`ownership.owner`).","allOf":[{"$ref":"#/components/schemas/OwnershipDto"}]},"bankDetail":{"description":"CoPilot-only (`bankDetail`).","allOf":[{"$ref":"#/components/schemas/BankDetailDto"}]},"account":{"$ref":"#/components/schemas/AccountCreateDto"},"processing":{"description":"Underwriting figures. Stored in `processing_details` and, since SRP-Dev1661, sent to CoPilot\nas `processing.volumeDetails` / `deliveryPercentages` / `modeOfTransaction` so the merchant\ndoes not retype them on the CardConnect form.","allOf":[{"$ref":"#/components/schemas/ProcessingDto"}]}},"required":["dbaName","legalBusinessName","businessPhone","businessEmail","demographic","account"]},"DemographicDto":{"type":"object","properties":{"businessAddress":{"$ref":"#/components/schemas/AddressDto"},"mailingAddress":{"description":"CoPilot-only (`demographic.mailingAddress`). Omitted by a simple account; CoPilot falls back\nto the business address when it is absent.","allOf":[{"$ref":"#/components/schemas/AddressDto"}]}},"required":["businessAddress"]},"AddressDto":{"type":"object","properties":{"address1":{"type":"string"},"address2":{"type":"string"},"city":{"type":"string"},"stateCd":{"type":"string"},"zip":{"type":"string"},"countryCd":{"type":"string"}},"required":["address1","city","stateCd","zip","countryCd"]},"OwnershipDto":{"type":"object","properties":{"owner":{"type":"array","items":{"$ref":"#/components/schemas/OwnerDto"}}},"required":["owner"]},"OwnerDto":{"type":"object","properties":{"ownerAddress":{"$ref":"#/components/schemas/AddressDto"},"ownerEmail":{"type":"string","format":"email"},"ownerName":{"type":"string"},"ownerPhone":{"type":"string"},"ownerTitle":{"type":"string"},"ownerPercentage":{"type":"string"},"ownerDob":{"type":"string"},"driversLicenseNumber":{"type":"string"},"driversLicenseStateCd":{"type":"string"},"ownerSsn":{"type":"string","description":"SRP-Dev1661: the owner's own SSN (CoPilot `ownership.owner.ownerSSN`, ###-##-####).\nOptional for older clients and super-admin creation; /apply requires it. Never the EIN.","pattern":"^\\d{3}-?\\d{2}-?\\d{4}$"}},"required":["ownerAddress","ownerEmail","ownerName","ownerPhone","ownerTitle","ownerPercentage","ownerDob"]},"BankDetailDto":{"type":"object","properties":{"depositBank":{"$ref":"#/components/schemas/BankAccountDto"},"withdrawalBank":{"$ref":"#/components/schemas/BankAccountDto"}},"required":["depositBank","withdrawalBank"]},"BankAccountDto":{"type":"object","properties":{"bankAcctNum":{"type":"string"},"bankRoutingNum":{"type":"string"},"bankAcctTypeCd":{"type":"string"},"bankName":{"type":"string"}},"required":["bankAcctNum","bankRoutingNum","bankAcctTypeCd","bankName"]},"AccountCreateDto":{"type":"object","properties":{"adminEmail":{"type":"string","format":"email"},"adminPassword":{"type":"string"},"plan":{"type":"string","description":"Display name of the chosen plan, e.g. \"Medium\". Not billable — see stripePriceId."},"stripePriceId":{"type":"string","description":"Stripe Price the applicant selected (`price_…`). This is what a subscription is created\nagainst on approval.\n\nOptional so an in-flight signup still submits if Stripe was unreachable when the plan\nstep rendered — losing a whole application over a plan lookup would be worse. The\npattern check rejects a Product id or a legacy plan code, which would otherwise fail\nmuch later with an opaque Stripe error.","pattern":"^price_[A-Za-z0-9]+$"},"selectedAddonFeatureKeys":{"type":"array","description":"Add-on features ticked on top of the chosen plan (SRP-Dev1601). Charged with the plan at\napproval, at the add-ons' then-current prices on the plan's term. Keys only — never prices — so the applicant\ncannot choose what they are charged.","uniqueItems":true,"items":{"type":"string","enum":["reporting","invoice","expense","stock_audit","appointments","sales_goal","loyalty_management","email_marketing","customer_segment","discounts","customer_support","task_management","forms_checklists","employee_scheduling","dispatch","time_clock","swim_lanes"]}},"storeCount":{"type":"string"},"stores":{"type":"array","items":{"$ref":"#/components/schemas/StoreDto"}}},"required":["adminEmail","adminPassword","plan","storeCount","stores"]},"StoreDto":{"type":"object","properties":{"name":{"type":"string"},"phone":{"type":"string"},"email":{"type":"string","format":"email"},"address1":{"type":"string"},"address2":{"type":"string"},"country":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"zip":{"type":"string"}},"required":["name","phone","email","address1","country","city","state","zip"]},"ProcessingDto":{"type":"object","properties":{"volumeDetails":{"$ref":"#/components/schemas/VolumeDetailsDto"},"deliveryPercentages":{"$ref":"#/components/schemas/DeliveryPercentagesDto"},"modeOfTransaction":{"$ref":"#/components/schemas/ModeOfTransactionDto"}},"required":["volumeDetails","deliveryPercentages","modeOfTransaction"]},"VolumeDetailsDto":{"type":"object","properties":{"averageMonthlyVolume":{"type":"string","description":"Average monthly processing volume in dollars","example":"50000"},"highTicketAmount":{"type":"string","description":"Highest ticket size (maximum single transaction amount)","example":"1000"},"averageTicketAmount":{"type":"string","description":"Average ticket size (average value per transaction)","example":"150"}},"required":["averageMonthlyVolume","highTicketAmount","averageTicketAmount"]},"DeliveryPercentagesDto":{"type":"object","properties":{"dlvrySameDayPct":{"type":"string","description":"Percentage of transactions delivered the same day","example":"10"},"dlvry0To7DaysPct":{"type":"string","description":"Percentage of transactions delivered within 0–7 days","example":"25"},"dlvry8To14DaysPct":{"type":"string","description":"Percentage of transactions delivered within 8–14 days","example":"30"},"dlvry15To30DaysPct":{"type":"string","description":"Percentage of transactions delivered within 15–30 days","example":"20"},"dlvryOver30DaysPct":{"type":"string","description":"Percentage of transactions delivered after more than 30 days","example":"15"}},"required":["dlvrySameDayPct","dlvry0To7DaysPct","dlvry8To14DaysPct","dlvry15To30DaysPct","dlvryOver30DaysPct"]},"ModeOfTransactionDto":{"type":"object","properties":{"eCommercePct":{"type":"string","description":"Percentage of e-commerce (online) transactions","example":"40"},"keyedPct":{"type":"string","description":"Percentage of keyed (manually entered) transactions","example":"20"},"mailOrderPct":{"type":"string","description":"Percentage of mail-order transactions","example":"10"},"swipedPct":{"type":"string","description":"Percentage of swiped/in-person card transactions","example":"30"}},"required":["eCommercePct","keyedPct","mailOrderPct","swipedPct"]},"OwnerSiteUserDto":{"type":"object","properties":{"firstName":{"type":"string"},"lastName":{"type":"string"},"email":{"type":"string","format":"email"}},"required":["firstName","lastName","email"]},"SignatureDto":{"type":"object","properties":{"signatureType":{"type":"string","enum":["type","draw"]},"typedSignature":{"type":"string"},"drawSignatureDataUrl":{"type":"string"},"signatureStatus":{"type":"string","enum":["Signed","Unsigned"]}},"required":["signatureType","signatureStatus"]},"MerchantApplicationStatusByCompanyResponseDto":{"type":"object","properties":{"merchantInfoId":{"type":"string","nullable":true,"description":"Merchant application UUID when a user in this company is linked to one"},"status":{"nullable":true,"enum":["pending","under_review","approved","out_for_signature","correction_needed","rejected","on_hold","completed"],"type":"string","description":"Workflow status from `merchant_info.status` (SRP database)."},"boardingStatus":{"type":"string","nullable":true,"description":"CoPilot `merchantStatus.boardingProcessStatusCd` from `GET /merchant/{id}/status` (exact string). Null if no `copilotMerchantId`, CoPilot is not configured, or the request failed."},"gatewayStatus":{"type":"string","nullable":true,"description":"CoPilot `merchantStatus.gatewayBoardingStatusCd` from `GET /merchant/{id}/status` (exact string). Null if no `copilotMerchantId`, CoPilot is not configured, or the request failed."},"copilotMerchantId":{"type":"string","nullable":true,"description":"CoPilot merchant id from `merchant_info.copilotMerchantId` after a successful POST to CoPilot; null when none or no application linked."},"copilotCorrectionsJson":{"type":"string","nullable":true,"description":"JSON string of CoPilot errors when post-create (PUT merchant / signature) failed; null otherwise"},"copilotCorrectionMessages":{"description":"Ordered validation messages from CoPilot (`validationErrors[].message`); empty array when none","type":"array","items":{"type":"string"}},"copilotCorrectionMessagesDisplay":{"description":"Same messages for display as `1. …`, `2. …`; empty array when none","type":"array","items":{"type":"string"}},"platformFixPending":{"type":"boolean","description":"SRP-Dev1661: true when CoPilot only raised setup items Payment Gurus must fix (card programs, pricing template). Their messages are withheld from the merchant."},"wantsCardPayments":{"type":"boolean","description":"SRP-Dev1661: false when the account was created without card processing."},"signingUrl":{"type":"string","nullable":true,"description":"SRP-Dev1661: CardConnect hosted application link (the merchant signs there). Only set while signing is the next step."},"signatureStatus":{"type":"string","nullable":true,"description":"SRP-Dev1661: CoPilot signatureStatusCd (NOT_SENT, PENDING, SIGNED)."},"stage":{"type":"string","enum":["not_applied","submitted","needs_corrections","pending_signature","under_review","approved","boarded","declined","cancelled"],"description":"SRP-Dev1661: single stage for the merchant-facing status tracker."},"message":{"type":"string","description":"Human-readable note when no merchant application is linked to the company"}}}}},"x-tagGroups":[{"name":"Settings","tags":["Settings / App Settings","Settings / POS Settings","Settings / Customer Display","Settings / Taxes","Settings / Store Management"]},{"name":"Sales","tags":["Sales / Point of Sales","Sales / Sales","Sales / Sales Return"]},{"name":"Loyalty Management","tags":["Loyalty Management / Members","Loyalty Management / Tiers","Loyalty Management / Rewards","Loyalty Management / Transactions","Loyalty Management / Settings"]},{"name":"Discounts","tags":["Discounts / Discount Overview"]},{"name":"Customer Management","tags":["Customer Management / Customer List","Customer Management / Customer Group"]},{"name":"Inventory","tags":["Inventory / Product Catalog","Inventory / Category","Inventory / Brand","Inventory / Stock Overview"]},{"name":"Dispatch","tags":["Dispatch / Delivery"]},{"name":"Employee Management","tags":["Employee Management / Employee List","Employee Management / Teams"]},{"name":"Register Management","tags":["Register Management / Register","Register Management / Register View","Register Management / Close Register","Register Management / Register Logs"]},{"name":"Report & Analysis","tags":["Report & Analysis / Sales","Report & Analysis / Sales Return","Report & Analysis / Payments","Report & Analysis / Top Selling","Report & Analysis / Store","Report & Analysis / Product Stock"]},{"name":"Developer","tags":["Developer / Webhooks"]},{"name":"Onboarding","tags":["Onboarding / Merchant Application"]}]}