{
  "openapi": "3.1.0",
  "info": {
    "title": "Emacron Store supported headless API",
    "version": "1.0.0",
    "description": "Exact supported public/customer/checkout/server-key interfaces. Staff-only dashboard and provider-webhook operations are inventoried separately, not falsely exposed as shopper or server-key capabilities. Integer minor amounts are strings; timestamps are RFC3339 UTC/offset values. Changes are additive within v1; incompatible changes require a new contract major and published migration/sunset notice. No deprecation is currently scheduled."
  },
  "externalDocs": {
    "description": "Runnable framework-independent storefront example using the actual public and customer API; no mock catalog data.",
    "url": "https://crm.emacronai.com/examples/storefront/README.md"
  },
  "servers": [
    {
      "url": "https://api.crm.emacronai.com"
    }
  ],
  "paths": {
    "/api/shop/{slug}": {
      "get": {
        "operationId": "get_api_shop_slug_",
        "tags": [
          "public"
        ],
        "summary": "GET /api/shop/{slug}",
        "description": "Every endpoint retains current publication, package, grant, record, origin and provider guards.",
        "security": [],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StoreSettings"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/nativeShop.ts",
          "line": 73
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "public",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Public published facts only; endpoint guards remain authoritative",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/analytics/events": {
      "post": {
        "operationId": "post_api_shop_slug_analytics_events",
        "tags": [
          "public"
        ],
        "summary": "POST /api/shop/{slug}/analytics/events",
        "description": "One observation per session/stage. Review/order stages require saved same-Store checkout ID and private token; order_placed must exist canonically. This is not payment, delivery or unique people. No identities or URLs accepted. Every endpoint retains current publication, package, grant, record, origin and provider guards.",
        "security": [],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "session_token": {
                    "$ref": "#/components/schemas/PrivateToken"
                  },
                  "event": {
                    "type": "string",
                    "enum": [
                      "product_view",
                      "cart_add",
                      "checkout_review",
                      "order_placed"
                    ]
                  },
                  "review_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "checkout_token": {
                    "$ref": "#/components/schemas/PrivateToken"
                  }
                },
                "required": [
                  "session_token",
                  "event"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "recorded": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "recorded"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeFunnel.ts",
          "line": 10
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "public",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Public published facts only; endpoint guards remain authoritative",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/analytics/revoke": {
      "post": {
        "operationId": "post_api_shop_slug_analytics_revoke",
        "tags": [
          "public"
        ],
        "summary": "POST /api/shop/{slug}/analytics/revoke",
        "description": "Removes only the current anonymous session and observations. Keep token private and in memory. Works when collection or Store paused. Every endpoint retains current publication, package, grant, record, origin and provider guards.",
        "security": [],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "session_token": {
                    "$ref": "#/components/schemas/PrivateToken"
                  }
                },
                "required": [
                  "session_token"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "revoked": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "revoked"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeFunnel.ts",
          "line": 11
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "public",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Public published facts only; endpoint guards remain authoritative",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/analytics/session": {
      "post": {
        "operationId": "post_api_shop_slug_analytics_session",
        "tags": [
          "public"
        ],
        "summary": "POST /api/shop/{slug}/analytics/session",
        "description": "Explicit optional analytics consent. Server derives hosted/approved independent origin; localhost, bot/automation and DNT/GPC are excluded. Returns a session or recorded:false. No identity, URL or rawIP stored. Never required for shopping. No automatic write retry. Every endpoint retains current publication, package, grant, record, origin and provider guards.",
        "security": [],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "consent": {
                    "const": true
                  },
                  "automated": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "consent",
                  "automated"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "session_token": {
                      "$ref": "#/components/schemas/PrivateToken"
                    },
                    "expires_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "recorded": {
                      "type": "boolean"
                    },
                    "reason": {
                      "type": "string",
                      "enum": [
                        "PRIVACY_OR_TEST_EXCLUDED"
                      ]
                    }
                  },
                  "required": [],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeFunnel.ts",
          "line": 9
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "public",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Public published facts only; endpoint guards remain authoritative",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/analytics/settings": {
      "get": {
        "operationId": "get_api_shop_slug_analytics_settings",
        "tags": [
          "public"
        ],
        "summary": "GET /api/shop/{slug}/analytics/settings",
        "description": "Every endpoint retains current publication, package, grant, record, origin and provider guards.",
        "security": [],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "retention_days": {
                      "const": 30
                    },
                    "session_minutes": {
                      "const": 30
                    }
                  },
                  "required": [
                    "enabled",
                    "retention_days",
                    "session_minutes"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeFunnel.ts",
          "line": 8
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "public",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Public published facts only; endpoint guards remain authoritative",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/b2b": {
      "get": {
        "operationId": "get_api_shop_slug_b2b",
        "tags": [
          "customer"
        ],
        "summary": "GET /api/shop/{slug}/b2b",
        "description": "Private approved company addresses and negotiated quantity prices only. Optional company-country markets use independently entered exact Store-currency prices; no automatic foreign exchange. A country profile and list must both match the approved company country. Pending/revoked membership never reveals company data. Public catalog remains retail. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/B2bOwned"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeNativeB2b.ts",
          "line": 24
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      },
      "post": {
        "operationId": "post_api_shop_slug_b2b",
        "tags": [
          "customer"
        ],
        "summary": "POST /api/shop/{slug}/b2b",
        "description": "Application only; neither matching company reference nor self-submitted address grants approval. Retain the exact request_key and payload after an uncertain response. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "request_key": {
                        "type": "string",
                        "format": "uuid"
                      },
                      "action": {
                        "const": "submit_company"
                      },
                      "legal_name": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "registration_ref": {
                        "type": "string",
                        "maxLength": 120
                      },
                      "country": {
                        "type": "string",
                        "maxLength": 2
                      },
                      "addresses": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "purpose": {
                              "type": "string",
                              "enum": [
                                "billing",
                                "shipping"
                              ]
                            },
                            "address": {
                              "$ref": "#/components/schemas/B2bCompanyAddress"
                            }
                          },
                          "required": [
                            "purpose",
                            "address"
                          ],
                          "additionalProperties": false
                        },
                        "maxItems": 4,
                        "minItems": 2
                      }
                    },
                    "required": [
                      "request_key",
                      "action",
                      "legal_name",
                      "registration_ref",
                      "country",
                      "addresses"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "request_key": {
                        "type": "string",
                        "format": "uuid"
                      },
                      "action": {
                        "const": "request_membership"
                      },
                      "registration_ref": {
                        "type": "string",
                        "maxLength": 120
                      }
                    },
                    "required": [
                      "request_key",
                      "action",
                      "registration_ref"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "request_key": {
                        "type": "string",
                        "format": "uuid"
                      },
                      "action": {
                        "const": "submit_address"
                      },
                      "purpose": {
                        "type": "string",
                        "enum": [
                          "billing",
                          "shipping"
                        ]
                      },
                      "address": {
                        "$ref": "#/components/schemas/B2bCompanyAddress"
                      }
                    },
                    "required": [
                      "request_key",
                      "action",
                      "purpose",
                      "address"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "company_id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "membership_id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "status": {
                          "const": "pending"
                        }
                      },
                      "required": [
                        "company_id",
                        "membership_id",
                        "status"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "membership_id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "status": {
                          "const": "pending"
                        }
                      },
                      "required": [
                        "membership_id",
                        "status"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "address_id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "status": {
                          "const": "pending"
                        }
                      },
                      "required": [
                        "address_id",
                        "status"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeNativeB2b.ts",
          "line": 25
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/cancellation-policy": {
      "get": {
        "operationId": "get_api_shop_slug_cancellation_policy",
        "tags": [
          "public"
        ],
        "summary": "GET /api/shop/{slug}/cancellation-policy",
        "description": "Every endpoint retains current publication, package, grant, record, origin and provider guards.",
        "security": [],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "window_hours": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 2147483647
                    },
                    "reasons": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "maxItems": 10000
                    },
                    "version": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 2147483647
                    }
                  },
                  "required": [],
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeCancellations.ts",
          "line": 21
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "public",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Public published facts only; endpoint guards remain authoritative",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/addresses": {
      "get": {
        "operationId": "get_api_shop_slug_customer_addresses",
        "tags": [
          "customer"
        ],
        "summary": "GET /api/shop/{slug}/customer/addresses",
        "description": "The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "purpose",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "delivery",
                "billing"
              ]
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/SavedAddress"
                      },
                      "maxItems": 10000
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeCustomers.ts",
          "line": 130
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      },
      "post": {
        "operationId": "post_api_shop_slug_customer_addresses",
        "tags": [
          "customer"
        ],
        "summary": "POST /api/shop/{slug}/customer/addresses",
        "description": "The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "address": {
                    "$ref": "#/components/schemas/Address"
                  },
                  "purpose": {
                    "type": "string",
                    "enum": [
                      "delivery",
                      "billing"
                    ]
                  },
                  "is_default": {
                    "type": "boolean"
                  },
                  "version": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000000
                  },
                  "remove": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "version"
                ],
                "additionalProperties": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Mutation"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeCustomers.ts",
          "line": 142
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/auth/challenges": {
      "post": {
        "operationId": "post_api_shop_slug_customer_auth_challenges",
        "tags": [
          "public"
        ],
        "summary": "POST /api/shop/{slug}/customer/auth/challenges",
        "description": "Every endpoint retains current publication, package, grant, record, origin and provider guards.",
        "security": [],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SignIn"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Challenge"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeCustomers.ts",
          "line": 70
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "public",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Public published facts only; endpoint guards remain authoritative",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/auth/logout": {
      "post": {
        "operationId": "post_api_shop_slug_customer_auth_logout",
        "tags": [
          "customer"
        ],
        "summary": "POST /api/shop/{slug}/customer/auth/logout",
        "description": "The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "all_sessions": {
                    "type": "boolean"
                  }
                },
                "required": [],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "signed_out": {
                      "const": true
                    }
                  },
                  "required": [
                    "signed_out"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeCustomers.ts",
          "line": 93
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/auth/methods": {
      "get": {
        "operationId": "get_api_shop_slug_customer_auth_methods",
        "tags": [
          "public"
        ],
        "summary": "GET /api/shop/{slug}/customer/auth/methods",
        "description": "Every endpoint retains current publication, package, grant, record, origin and provider guards.",
        "security": [],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "methods": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "email",
                          "whatsapp"
                        ]
                      },
                      "maxItems": 2
                    },
                    "guest_checkout": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "methods",
                    "guest_checkout"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeCustomers.ts",
          "line": 61
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "public",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Public published facts only; endpoint guards remain authoritative",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/auth/refresh": {
      "post": {
        "operationId": "post_api_shop_slug_customer_auth_refresh",
        "tags": [
          "public"
        ],
        "summary": "POST /api/shop/{slug}/customer/auth/refresh",
        "description": "Every endpoint retains current publication, package, grant, record, origin and provider guards.",
        "security": [],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "refresh_token": {
                    "$ref": "#/components/schemas/PrivateToken"
                  }
                },
                "required": [
                  "refresh_token"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Session"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeCustomers.ts",
          "line": 82
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "public",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Public published facts only; endpoint guards remain authoritative",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/auth/verify": {
      "post": {
        "operationId": "post_api_shop_slug_customer_auth_verify",
        "tags": [
          "public"
        ],
        "summary": "POST /api/shop/{slug}/customer/auth/verify",
        "description": "Every endpoint retains current publication, package, grant, record, origin and provider guards.",
        "security": [],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Verify"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Session"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeCustomers.ts",
          "line": 76
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "public",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Public published facts only; endpoint guards remain authoritative",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/cancellation-requests": {
      "get": {
        "operationId": "get_api_shop_slug_customer_cancellation_requests",
        "tags": [
          "customer"
        ],
        "summary": "GET /api/shop/{slug}/customer/cancellation-requests",
        "description": "The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 100000
            },
            "description": "Zero-based page. Page size is fixed by this endpoint."
          },
          {
            "name": "order_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CancellationPage"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeCancellations.ts",
          "line": 24
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      },
      "post": {
        "operationId": "post_api_shop_slug_customer_cancellation_requests",
        "tags": [
          "customer"
        ],
        "summary": "POST /api/shop/{slug}/customer/cancellation-requests",
        "description": "The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_key": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "order_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "reason_code": {
                    "type": "string",
                    "maxLength": 120,
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "maxLength": 2000,
                    "minLength": 3
                  },
                  "confirmed": {
                    "const": true
                  }
                },
                "required": [
                  "request_key",
                  "order_id",
                  "reason_code",
                  "message",
                  "confirmed"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CancellationMutation"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeCancellations.ts",
          "line": 25
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/cancellation-requests/{id}/evidence": {
      "get": {
        "operationId": "get_api_shop_slug_customer_cancellation_requests_id_evidence",
        "tags": [
          "customer"
        ],
        "summary": "GET /api/shop/{slug}/customer/cancellation-requests/{id}/evidence",
        "description": "The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EvidencePage"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeRequestEvidence.ts",
          "line": 22
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      },
      "post": {
        "operationId": "post_api_shop_slug_customer_cancellation_requests_id_evidence",
        "tags": [
          "customer"
        ],
        "summary": "POST /api/shop/{slug}/customer/cancellation-requests/{id}/evidence",
        "description": "Multipart image evidence only: JPEG/PNG/WebP, at most2MiB,3 photos per cancellation request; decoded/re-encoded privately, never a public media URL. Retry a retained upload operation instead of generating a new identity. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_key": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "confirmed": {
                    "type": "string",
                    "const": "true"
                  },
                  "photo": {
                    "type": "string",
                    "format": "binary"
                  }
                },
                "required": [
                  "request_key",
                  "confirmed",
                  "photo"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Evidence"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeRequestEvidence.ts",
          "line": 23
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/cancellation-requests/{id}/evidence/{photoId}": {
      "get": {
        "operationId": "get_api_shop_slug_customer_cancellation_requests_id_evidence_photoid_",
        "tags": [
          "customer"
        ],
        "summary": "GET /api/shop/{slug}/customer/cancellation-requests/{id}/evidence/{photoId}",
        "description": "The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "photoId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "image/jpeg": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeRequestEvidence.ts",
          "line": 24
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/cancellation-requests/{id}/withdraw": {
      "post": {
        "operationId": "post_api_shop_slug_customer_cancellation_requests_id_withdraw",
        "tags": [
          "customer"
        ],
        "summary": "POST /api/shop/{slug}/customer/cancellation-requests/{id}/withdraw",
        "description": "The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_key": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "version": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 2147483647
                  },
                  "confirmed": {
                    "const": true
                  }
                },
                "required": [
                  "request_key",
                  "version",
                  "confirmed"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CancellationMutation"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeCancellations.ts",
          "line": 26
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/cart": {
      "get": {
        "operationId": "get_api_shop_slug_customer_cart",
        "tags": [
          "customer"
        ],
        "summary": "GET /api/shop/{slug}/customer/cart",
        "description": "The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cart"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeCustomers.ts",
          "line": 158
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      },
      "post": {
        "operationId": "post_api_shop_slug_customer_cart",
        "tags": [
          "customer"
        ],
        "summary": "POST /api/shop/{slug}/customer/cart",
        "description": "The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_key": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "version": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000000
                  },
                  "items": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/CartLine"
                    },
                    "maxItems": 100
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "replace",
                      "merge"
                    ]
                  }
                },
                "required": [
                  "request_key",
                  "version",
                  "items"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cart"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeCustomers.ts",
          "line": 175
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/complaints": {
      "get": {
        "operationId": "get_api_shop_slug_customer_complaints",
        "tags": [
          "customer"
        ],
        "summary": "GET /api/shop/{slug}/customer/complaints",
        "description": "The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 10000
            },
            "description": ""
          },
          {
            "name": "order_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ComplaintPage"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeComplaints.ts",
          "line": 33
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      },
      "post": {
        "operationId": "post_api_shop_slug_customer_complaints",
        "tags": [
          "customer"
        ],
        "summary": "POST /api/shop/{slug}/customer/complaints",
        "description": "One open complaint per owned order. Save request_key before confirmation; retain exact bytes and identity after response loss. This creates one CRM Support ticket, not a contact, sale or Inbox conversation. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_key": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "confirmed": {
                    "const": true
                  },
                  "order_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "title": {
                    "type": "string",
                    "maxLength": 180,
                    "minLength": 3
                  },
                  "message": {
                    "type": "string",
                    "maxLength": 5000,
                    "minLength": 3
                  }
                },
                "required": [
                  "request_key",
                  "confirmed",
                  "order_id",
                  "title",
                  "message"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ComplaintMutation"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeComplaints.ts",
          "line": 35
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/complaints/{id}": {
      "get": {
        "operationId": "get_api_shop_slug_customer_complaints_id_",
        "tags": [
          "customer"
        ],
        "summary": "GET /api/shop/{slug}/customer/complaints/{id}",
        "description": "20 customer-visible messages per page, displayed chronologically within each newest-first page. Internal notes, staff identities, CRM contact/conversation IDs and private object keys are excluded. Recheck current ownership on every read. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "message_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 10000
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Complaint"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeComplaints.ts",
          "line": 34
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/complaints/{id}/evidence": {
      "get": {
        "operationId": "get_api_shop_slug_customer_complaints_id_evidence",
        "tags": [
          "customer"
        ],
        "summary": "GET /api/shop/{slug}/customer/complaints/{id}/evidence",
        "description": "The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "state": {
                            "type": "string",
                            "enum": [
                              "pending",
                              "ready"
                            ]
                          },
                          "byte_size": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 2097152
                          },
                          "width": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 4096
                          },
                          "height": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 4096
                          },
                          "created_at": {
                            "type": "string",
                            "format": "date-time"
                          }
                        },
                        "required": [
                          "id",
                          "state",
                          "byte_size",
                          "width",
                          "height",
                          "created_at"
                        ],
                        "additionalProperties": false
                      },
                      "maxItems": 3
                    },
                    "upload_enabled": {
                      "type": "boolean"
                    },
                    "recovery_enabled": {
                      "type": "boolean"
                    },
                    "max_files": {
                      "const": 3
                    },
                    "max_bytes": {
                      "const": 2097152
                    },
                    "reason": {
                      "anyOf": [
                        {
                          "type": "string",
                          "maxLength": 4000
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "items",
                    "upload_enabled",
                    "recovery_enabled",
                    "max_files",
                    "max_bytes",
                    "reason"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeComplaints.ts",
          "line": 63
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      },
      "post": {
        "operationId": "post_api_shop_slug_customer_complaints_id_evidence",
        "tags": [
          "customer"
        ],
        "summary": "POST /api/shop/{slug}/customer/complaints/{id}/evidence",
        "description": "Explicit multipart upload of one JPEG/PNG/WebP still photo, up to 2MiB; normalized private JPEG max4096px, maximum3 per complaint. Reuse identical original file and request_key after uncertain result. No PDF/video or public URL. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_key": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "confirmed": {
                    "type": "string",
                    "const": "true"
                  },
                  "photo": {
                    "type": "string",
                    "format": "binary"
                  }
                },
                "required": [
                  "request_key",
                  "confirmed",
                  "photo"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Evidence"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeComplaints.ts",
          "line": 65
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/complaints/{id}/evidence/{photoId}": {
      "get": {
        "operationId": "get_api_shop_slug_customer_complaints_id_evidence_photoid_",
        "tags": [
          "customer"
        ],
        "summary": "GET /api/shop/{slug}/customer/complaints/{id}/evidence/{photoId}",
        "description": "Authenticated private JPEG bytes, no public URL; load only after explicit view and revoke the local Blob URL when finished. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "photoId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "image/jpeg": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeComplaints.ts",
          "line": 64
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/complaints/{id}/messages": {
      "post": {
        "operationId": "post_api_shop_slug_customer_complaints_id_messages",
        "tags": [
          "customer"
        ],
        "summary": "POST /api/shop/{slug}/customer/complaints/{id}/messages",
        "description": "Append one private customer-visible Support reply only with the current saved complaint version. Closed/resolved threads reject new replies. No external email/WhatsApp send is implied. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_key": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "confirmed": {
                    "const": true
                  },
                  "version": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 2147483647
                  },
                  "body": {
                    "type": "string",
                    "maxLength": 5000,
                    "minLength": 1
                  }
                },
                "required": [
                  "request_key",
                  "confirmed",
                  "version",
                  "body"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ComplaintMutation"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeComplaints.ts",
          "line": 36
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/credit": {
      "get": {
        "operationId": "get_api_shop_slug_customer_credit",
        "tags": [
          "customer"
        ],
        "summary": "GET /api/shop/{slug}/customer/credit",
        "description": "Owned Store credit only. Currency, exact available amount and original expiry remain separate from cash/provider receipts. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 10000
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/CreditAccount"
                      },
                      "maxItems": 25
                    },
                    "page": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 2147483647
                    },
                    "has_more": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "items",
                    "page",
                    "has_more"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeCredit.ts",
          "line": 23
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/credit/{id}/entries": {
      "get": {
        "operationId": "get_api_shop_slug_customer_credit_id_entries",
        "tags": [
          "customer"
        ],
        "summary": "GET /api/shop/{slug}/customer/credit/{id}/entries",
        "description": "Requires the current same-Store customer to own this exact credit account. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 10000
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/CreditEntry"
                      },
                      "maxItems": 25
                    },
                    "page": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 2147483647
                    },
                    "has_more": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "items",
                    "page",
                    "has_more"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeCredit.ts",
          "line": 25
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/credit/redeem": {
      "post": {
        "operationId": "post_api_shop_slug_customer_credit_redeem",
        "tags": [
          "customer"
        ],
        "summary": "POST /api/shop/{slug}/customer/credit/redeem",
        "description": "Pay a whole owned unpaid manual order using sufficient same-currency credit. No split payment or provider attempt. Keep the original operation identity after uncertainty; credit is never reported as a cash receipt. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_key": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "confirmed": {
                    "const": true
                  },
                  "account_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "order_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "version": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 2147483647
                  }
                },
                "required": [
                  "request_key",
                  "confirmed",
                  "account_id",
                  "order_id",
                  "version"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "account_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "kind": {
                      "const": "redeem"
                    },
                    "amount_minor": {
                      "$ref": "#/components/schemas/ExactMinor"
                    },
                    "order_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "currency": {
                      "type": "string",
                      "maxLength": 3
                    },
                    "currency_exponent": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 4
                    },
                    "expires_at": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "created_at": {
                      "type": "string",
                      "format": "date-time"
                    }
                  },
                  "required": [
                    "id",
                    "account_id",
                    "kind",
                    "amount_minor",
                    "order_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeCredit.ts",
          "line": 24
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/downloads": {
      "get": {
        "operationId": "get_api_shop_slug_customer_downloads",
        "tags": [
          "customer"
        ],
        "summary": "GET /api/shop/{slug}/customer/downloads",
        "description": "Read only owned digital purchase metadata. Historical unrevoked receipts and current owned customer sessions remain available when sales pause. No private object key or public file URL is returned. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 19999
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/DigitalDownload"
                      },
                      "maxItems": 25
                    },
                    "page": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 19999
                    },
                    "has_more": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "items",
                    "page",
                    "has_more"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeDigital.ts",
          "line": 33
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/downloads/{id}/download": {
      "post": {
        "operationId": "post_api_shop_slug_customer_downloads_id_download",
        "tags": [
          "customer"
        ],
        "summary": "POST /api/shop/{slug}/customer/downloads/{id}/download",
        "description": "Explicit private byte transfer after current ownership/payment/expiry/refund/count checks. Retain request_key for a deliberate retry within10minutes; no automatic replay. A new identity consumes a new download. Saved content hash and size verified before response. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "const": true
                  },
                  "request_key": {
                    "type": "string",
                    "format": "uuid"
                  }
                },
                "required": [
                  "confirmed",
                  "request_key"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeDigital.ts",
          "line": 34
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/exchange-requests": {
      "get": {
        "operationId": "get_api_shop_slug_customer_exchange_requests",
        "tags": [
          "customer"
        ],
        "summary": "GET /api/shop/{slug}/customer/exchange-requests",
        "description": "The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 10000
            },
            "description": ""
          },
          {
            "name": "order_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExchangePage"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeExchanges.ts",
          "line": 12
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      },
      "post": {
        "operationId": "post_api_shop_slug_customer_exchange_requests",
        "tags": [
          "customer"
        ],
        "summary": "POST /api/shop/{slug}/customer/exchange-requests",
        "description": "Creates linked original physical-return review and whole-order exchange once. Does not charge/refund, restock, reserve replacement inventory or book shipping. Preserve request_key and exact payload after an uncertain result. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_key": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "confirmed": {
                    "const": true
                  },
                  "order_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "replacement_items": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/ExchangeItem"
                    },
                    "maxItems": 50
                  },
                  "condition": {
                    "type": "string",
                    "enum": [
                      "sellable",
                      "damaged"
                    ]
                  },
                  "reason_code": {
                    "type": "string",
                    "maxLength": 120,
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "maxLength": 2000,
                    "minLength": 3
                  }
                },
                "required": [
                  "request_key",
                  "confirmed",
                  "order_id",
                  "replacement_items",
                  "condition",
                  "reason_code",
                  "message"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExchangeMutation"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeExchanges.ts",
          "line": 15
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/exchange-requests/{id}": {
      "get": {
        "operationId": "get_api_shop_slug_customer_exchange_requests_id_",
        "tags": [
          "customer"
        ],
        "summary": "GET /api/shop/{slug}/customer/exchange-requests/{id}",
        "description": "The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Exchange"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeExchanges.ts",
          "line": 13
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/exchange-requests/{id}/accept": {
      "post": {
        "operationId": "post_api_shop_slug_customer_exchange_requests_id_accept",
        "tags": [
          "customer"
        ],
        "summary": "POST /api/shop/{slug}/customer/exchange-requests/{id}/accept",
        "description": "Explicitly accepts the saved actual replacement-order pricing and exact difference only after original physical return is received. Original refund and replacement full payment remain separate normal financial workflows; no automatic net charge or store credit is created. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_key": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "confirmed": {
                    "const": true
                  },
                  "version": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 2147483647
                  }
                },
                "required": [
                  "request_key",
                  "confirmed",
                  "version"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExchangeMutation"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeExchanges.ts",
          "line": 17
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/exchange-requests/{id}/withdraw": {
      "post": {
        "operationId": "post_api_shop_slug_customer_exchange_requests_id_withdraw",
        "tags": [
          "customer"
        ],
        "summary": "POST /api/shop/{slug}/customer/exchange-requests/{id}/withdraw",
        "description": "Withdraws only an eligible unprocessed exchange/linked open return. Re-read current versions first. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_key": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "confirmed": {
                    "const": true
                  },
                  "version": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 2147483647
                  }
                },
                "required": [
                  "request_key",
                  "confirmed",
                  "version"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExchangeMutation"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeExchanges.ts",
          "line": 16
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/identities/challenges": {
      "post": {
        "operationId": "post_api_shop_slug_customer_identities_challenges",
        "tags": [
          "customer"
        ],
        "summary": "POST /api/shop/{slug}/customer/identities/challenges",
        "description": "The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_key": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "method": {
                    "type": "string",
                    "enum": [
                      "email",
                      "whatsapp"
                    ]
                  },
                  "destination": {
                    "type": "string",
                    "maxLength": 320
                  },
                  "flow_token": {
                    "$ref": "#/components/schemas/PrivateToken"
                  },
                  "replace_identity_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "request_key",
                  "method",
                  "destination",
                  "flow_token"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Challenge"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeCustomers.ts",
          "line": 243
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/identities/remove": {
      "post": {
        "operationId": "post_api_shop_slug_customer_identities_remove",
        "tags": [
          "customer"
        ],
        "summary": "POST /api/shop/{slug}/customer/identities/remove",
        "description": "The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_key": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "identity_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "confirmed": {
                    "const": true
                  }
                },
                "required": [
                  "request_key",
                  "identity_id",
                  "confirmed"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Mutation"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeCustomers.ts",
          "line": 245
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/identities/verify": {
      "post": {
        "operationId": "post_api_shop_slug_customer_identities_verify",
        "tags": [
          "customer"
        ],
        "summary": "POST /api/shop/{slug}/customer/identities/verify",
        "description": "The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Verify"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Mutation"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeCustomers.ts",
          "line": 244
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/marketing": {
      "get": {
        "operationId": "get_api_shop_slug_customer_marketing",
        "tags": [
          "customer"
        ],
        "summary": "GET /api/shop/{slug}/customer/marketing",
        "description": "The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "channel": {
                            "type": "string",
                            "enum": [
                              "email",
                              "whatsapp"
                            ]
                          },
                          "identity_id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "version": {
                            "type": "integer"
                          },
                          "granted": {
                            "type": "boolean"
                          },
                          "purposes": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "abandoned_cart",
                                "repeat_purchase"
                              ]
                            }
                          },
                          "policy_version": {
                            "const": 1
                          },
                          "updated_at": {
                            "type": "string",
                            "format": "date-time"
                          }
                        },
                        "required": [
                          "id",
                          "channel",
                          "identity_id",
                          "version",
                          "granted",
                          "purposes",
                          "policy_version",
                          "updated_at"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "policy_version": {
                      "const": 1
                    },
                    "policy": {
                      "type": "string",
                      "maxLength": 4000
                    }
                  },
                  "required": [
                    "items",
                    "policy_version",
                    "policy"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeMarketing.ts",
          "line": 8
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      },
      "post": {
        "operationId": "post_api_shop_slug_customer_marketing",
        "tags": [
          "customer"
        ],
        "summary": "POST /api/shop/{slug}/customer/marketing",
        "description": "Current same-Store customer session. Exact verified channel identity, explicit purpose consent and current version required. Withdrawal is available after identity removal. Keep request_key on uncertainty; never infer marketing consent from order updates or analytics. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_key": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "confirmed": {
                    "const": true
                  },
                  "channel": {
                    "type": "string",
                    "enum": [
                      "email",
                      "whatsapp"
                    ]
                  },
                  "identity_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "version": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "granted": {
                    "type": "boolean"
                  },
                  "purposes": {
                    "type": "array",
                    "maxItems": 2,
                    "uniqueItems": true,
                    "items": {
                      "type": "string",
                      "enum": [
                        "abandoned_cart",
                        "repeat_purchase"
                      ]
                    }
                  },
                  "policy_version": {
                    "const": 1
                  }
                },
                "required": [
                  "request_key",
                  "confirmed",
                  "channel",
                  "identity_id",
                  "version",
                  "granted",
                  "purposes",
                  "policy_version"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "channel": {
                      "type": "string",
                      "enum": [
                        "email",
                        "whatsapp"
                      ]
                    },
                    "identity_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "version": {
                      "type": "integer"
                    },
                    "granted": {
                      "type": "boolean"
                    },
                    "purposes": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "abandoned_cart",
                          "repeat_purchase"
                        ]
                      }
                    },
                    "policy_version": {
                      "const": 1
                    },
                    "updated_at": {
                      "type": "string",
                      "format": "date-time"
                    }
                  },
                  "required": [
                    "id",
                    "channel",
                    "identity_id",
                    "version",
                    "granted",
                    "purposes",
                    "policy_version",
                    "updated_at"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeMarketing.ts",
          "line": 9
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/marketing/attribution": {
      "post": {
        "operationId": "post_api_shop_slug_customer_marketing_attribution",
        "tags": [
          "customer"
        ],
        "summary": "POST /api/shop/{slug}/customer/marketing/attribution",
        "description": "Original signed offer reference and private saved checkout required. Only a proved order of the campaign recipient verified Store customer is attributed, within 30 days of accepted submission. No identity merge, sale, payment or visitor fact is created. Unverified guests remain unattributed. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "review_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "checkout_token": {
                    "$ref": "#/components/schemas/PrivateToken"
                  },
                  "campaign_reference": {
                    "type": "string",
                    "maxLength": 4000
                  }
                },
                "required": [
                  "review_id",
                  "checkout_token",
                  "campaign_reference"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "attributed": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "attributed"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeMarketing.ts",
          "line": 10
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Original signed Store campaign reference plus body checkout_token, with canonical same-Store verified recipient/order ownership. No employee, merchant or customer-session header required.",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/notifications": {
      "get": {
        "operationId": "get_api_shop_slug_customer_notifications",
        "tags": [
          "customer"
        ],
        "summary": "GET /api/shop/{slug}/customer/notifications",
        "description": "Owned account notices remain readable with a valid current session when new selling is paused. A notice is not an email or WhatsApp delivery receipt. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 19999
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "event": {
                            "type": "string",
                            "maxLength": 100
                          },
                          "title": {
                            "type": "string",
                            "maxLength": 500
                          },
                          "created_at": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "read_at": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "event",
                          "title",
                          "created_at",
                          "read_at"
                        ],
                        "additionalProperties": false
                      },
                      "maxItems": 25
                    },
                    "page": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 2147483647
                    },
                    "has_more": {
                      "type": "boolean"
                    },
                    "delivery": {
                      "type": "string",
                      "maxLength": 500
                    }
                  },
                  "required": [
                    "items",
                    "page",
                    "has_more",
                    "delivery"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeCustomerNotifications.ts",
          "line": 5
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/notifications/{id}/read": {
      "post": {
        "operationId": "post_api_shop_slug_customer_notifications_id_read",
        "tags": [
          "customer"
        ],
        "summary": "POST /api/shop/{slug}/customer/notifications/{id}/read",
        "description": "Marks only the current customer’s same-Store notice read. Does not delete it or mark another customer’s notice. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "const": true
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "read_at": {
                      "type": "string",
                      "format": "date-time"
                    }
                  },
                  "required": [
                    "id",
                    "read_at"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeCustomerNotifications.ts",
          "line": 6
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/orders": {
      "get": {
        "operationId": "get_api_shop_slug_customer_orders",
        "tags": [
          "customer"
        ],
        "summary": "GET /api/shop/{slug}/customer/orders",
        "description": "The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 100000
            },
            "description": "Zero-based page. Page size is fixed by this endpoint."
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderPage"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeCustomers.ts",
          "line": 197
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/orders/{id}": {
      "get": {
        "operationId": "get_api_shop_slug_customer_orders_id_",
        "tags": [
          "customer"
        ],
        "summary": "GET /api/shop/{slug}/customer/orders/{id}",
        "description": "The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "order": {
                      "$ref": "#/components/schemas/Order"
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "product_id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "variant_id": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "quantity": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 2147483647
                          },
                          "snapshot": {
                            "type": "object",
                            "properties": {},
                            "required": [],
                            "additionalProperties": true
                          }
                        },
                        "required": [],
                        "additionalProperties": true
                      },
                      "maxItems": 10000
                    },
                    "progress": {
                      "type": "object",
                      "properties": {},
                      "required": [],
                      "additionalProperties": true
                    }
                  },
                  "required": [],
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeCustomers.ts",
          "line": 215
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/orders/{id}/cancellation-eligibility": {
      "get": {
        "operationId": "get_api_shop_slug_customer_orders_id_cancellation_eligibility",
        "tags": [
          "customer"
        ],
        "summary": "GET /api/shop/{slug}/customer/orders/{id}/cancellation-eligibility",
        "description": "The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Eligibility"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeCancellations.ts",
          "line": 23
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/orders/{id}/complaint-eligibility": {
      "get": {
        "operationId": "get_api_shop_slug_customer_orders_id_complaint_eligibility",
        "tags": [
          "customer"
        ],
        "summary": "GET /api/shop/{slug}/customer/orders/{id}/complaint-eligibility",
        "description": "Only a currently verified customer owning this placed/cancelled native order can inspect eligibility. New complaints require current Store and CRM Support package access. Existing owned thread reads remain available during Store pause. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "eligible": {
                      "type": "boolean"
                    },
                    "reason": {
                      "anyOf": [
                        {
                          "type": "string",
                          "maxLength": 4000
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "order_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "order_number": {
                      "type": "string",
                      "maxLength": 100
                    },
                    "scope": {
                      "const": "owned_order"
                    }
                  },
                  "required": [
                    "eligible",
                    "reason",
                    "order_id",
                    "order_number",
                    "scope"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeComplaints.ts",
          "line": 32
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/orders/{id}/exchange-eligibility": {
      "get": {
        "operationId": "get_api_shop_slug_customer_orders_id_exchange_eligibility",
        "tags": [
          "customer"
        ],
        "summary": "GET /api/shop/{slug}/customer/orders/{id}/exchange-eligibility",
        "description": "Owned original order only. Supported exchange scope is the whole original order. Return windows/conditions apply. Replacement availability is advisory until a separate ordinary checkout reserves actual exact items; requesting an exchange holds no stock. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "eligible": {
                      "type": "boolean"
                    },
                    "reason": {
                      "anyOf": [
                        {
                          "type": "string",
                          "maxLength": 4000
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "policy": {
                      "type": "object",
                      "properties": {},
                      "required": [],
                      "additionalProperties": true
                    },
                    "return_policy": {
                      "anyOf": [
                        {
                          "$ref": "#/components/schemas/ReturnPolicy"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {},
                        "required": [],
                        "additionalProperties": true
                      },
                      "maxItems": 50
                    },
                    "currency": {
                      "type": "string",
                      "maxLength": 3
                    },
                    "currency_exponent": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 4
                    },
                    "original_total_minor": {
                      "$ref": "#/components/schemas/ExactMinor"
                    },
                    "order_version": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 2147483647
                    },
                    "availability": {
                      "type": "string",
                      "maxLength": 2000
                    }
                  },
                  "required": [
                    "eligible",
                    "reason"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeExchanges.ts",
          "line": 11
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/orders/{id}/reorder": {
      "get": {
        "operationId": "get_api_shop_slug_customer_orders_id_reorder",
        "tags": [
          "customer"
        ],
        "summary": "GET /api/shop/{slug}/customer/orders/{id}/reorder",
        "description": "The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/CartLine"
                      },
                      "maxItems": 10000
                    },
                    "unavailable": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "product_id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "reason": {
                            "type": "string",
                            "maxLength": 4000
                          }
                        },
                        "required": [],
                        "additionalProperties": true
                      },
                      "maxItems": 10000
                    }
                  },
                  "required": [],
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeCustomers.ts",
          "line": 232
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/orders/{id}/return-eligibility": {
      "get": {
        "operationId": "get_api_shop_slug_customer_orders_id_return_eligibility",
        "tags": [
          "customer"
        ],
        "summary": "GET /api/shop/{slug}/customer/orders/{id}/return-eligibility",
        "description": "The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReturnEligibility"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeReturns.ts",
          "line": 28
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/orders/{orderId}/review-eligibility": {
      "get": {
        "operationId": "get_api_shop_slug_customer_orders_orderid_review_eligibility",
        "tags": [
          "customer"
        ],
        "summary": "GET /api/shop/{slug}/customer/orders/{orderId}/review-eligibility",
        "description": "The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "orderId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Eligibility"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeProductReviews.ts",
          "line": 27
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/orders/claim": {
      "post": {
        "operationId": "post_api_shop_slug_customer_orders_claim",
        "tags": [
          "customer"
        ],
        "summary": "POST /api/shop/{slug}/customer/orders/claim",
        "description": "The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_key": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "review_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "checkout_token": {
                    "$ref": "#/components/schemas/PrivateToken"
                  },
                  "confirmed": {
                    "const": true
                  }
                },
                "required": [
                  "request_key",
                  "review_id",
                  "checkout_token",
                  "confirmed"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Mutation"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeCustomers.ts",
          "line": 191
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/physical-renewals": {
      "get": {
        "operationId": "get_api_shop_slug_customer_physical_renewals",
        "tags": [
          "customer"
        ],
        "summary": "GET /api/shop/{slug}/customer/physical-renewals",
        "description": "Current same-Store customer history only. Paused/unpublished Stores retain owned history and cancellation; new cycles still require active Store and explicit rollout enablement. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 10000
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/PhysicalRenewalSchedule"
                      },
                      "maxItems": 50
                    },
                    "page": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 2147483647
                    },
                    "has_more": {
                      "type": "boolean"
                    },
                    "accepting_new": {
                      "type": "boolean"
                    },
                    "renewal_checkout_enabled": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "items",
                    "page",
                    "has_more",
                    "accepting_new",
                    "renewal_checkout_enabled"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storePhysicalRenewals.ts",
          "line": 26
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      },
      "post": {
        "operationId": "post_api_shop_slug_customer_physical_renewals",
        "tags": [
          "customer"
        ],
        "summary": "POST /api/shop/{slug}/customer/physical-renewals",
        "description": "Creates a finite schedule from an owned eligible physical order and explicit review-and-pay consent. No mandate, charge, order or stock reservation is created by this request. Exact original products/options/quantities are retained. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_key": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "source_order_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "period": {
                    "type": "string",
                    "enum": [
                      "monthly",
                      "yearly"
                    ]
                  },
                  "interval": {
                    "const": 1
                  },
                  "total_count": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 120
                  },
                  "consent": {
                    "const": true
                  }
                },
                "required": [
                  "request_key",
                  "source_order_id",
                  "period",
                  "interval",
                  "total_count",
                  "consent"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PhysicalRenewalSchedule"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storePhysicalRenewals.ts",
          "line": 28
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/physical-renewals/{id}": {
      "get": {
        "operationId": "get_api_shop_slug_customer_physical_renewals_id_",
        "tags": [
          "customer"
        ],
        "summary": "GET /api/shop/{slug}/customer/physical-renewals/{id}",
        "description": "Current same-Store customer ownership is required, independent of the history page or current sale availability. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PhysicalRenewalSchedule"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storePhysicalRenewals.ts",
          "line": 27
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/physical-renewals/{id}/manage": {
      "post": {
        "operationId": "post_api_shop_slug_customer_physical_renewals_id_manage",
        "tags": [
          "customer"
        ],
        "summary": "POST /api/shop/{slug}/customer/physical-renewals/{id}/manage",
        "description": "Once-only customer schedule action. Stops or skips future renewal cycles; existing placed orders remain subject to normal order cancellation and payment controls. Resume requires current sale eligibility. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_key": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "pause",
                      "resume",
                      "cancel",
                      "skip"
                    ]
                  },
                  "confirmed": {
                    "const": true
                  }
                },
                "required": [
                  "request_key",
                  "action",
                  "confirmed"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PhysicalRenewalSchedule"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storePhysicalRenewals.ts",
          "line": 29
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/physical-renewals/{id}/prepare": {
      "post": {
        "operationId": "post_api_shop_slug_customer_physical_renewals_id_prepare",
        "tags": [
          "customer"
        ],
        "summary": "POST /api/shop/{slug}/customer/physical-renewals/{id}/prepare",
        "description": "Supply and privately retain a caller-generated X-Store-Checkout token (64 hex). Prepared result is a frozen cycle seed, not reserved stock/payment. Normal POST reviews must include physical_cycle_id, the same request_key and checkout token plus the same customer session. Checkout reservation is atomic; unavailable cycles are skipped without payment. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Store-Checkout",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 64,
              "maxLength": 64,
              "pattern": "^[a-f0-9]{64}$",
              "description": "Opaque Store-specific proof; retain privately. Never log or put in a URL."
            },
            "description": "Private original caller-generated checkout proof. Never place it in a URL or send it to another origin."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_key": {
                    "type": "string",
                    "format": "uuid"
                  }
                },
                "required": [
                  "request_key"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "enum": [
                        "prepared",
                        "skipped",
                        "not_due"
                      ]
                    },
                    "cycle_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "cycle_number": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 120
                    },
                    "due_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/CartLine"
                      },
                      "maxItems": 100
                    },
                    "reason": {
                      "type": "string",
                      "maxLength": 2000
                    },
                    "charged": {
                      "const": false
                    }
                  },
                  "required": [
                    "status",
                    "charged"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storePhysicalRenewals.ts",
          "line": 30
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/privacy": {
      "post": {
        "operationId": "post_api_shop_slug_customer_privacy",
        "tags": [
          "customer"
        ],
        "summary": "POST /api/shop/{slug}/customer/privacy",
        "description": "Recent authentication within10minutes and exact profile/receipt version required. review_id required for receipt actions. Deletion revokes sessions and receipts but preserves restricted statutory transaction/dispute facts. Retry the exact operation after unknown response, including deletion acknowledgement within24hours. Receipt rotation invalidates every previous link for that order; revoked links never remove signed-in owned history. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_key": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "confirmed": {
                    "const": true
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "delete",
                      "rotate_receipt",
                      "revoke_receipt"
                    ]
                  },
                  "version": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000000
                  },
                  "review_id": {
                    "type": "string",
                    "format": "uuid"
                  }
                },
                "required": [
                  "request_key",
                  "confirmed",
                  "action",
                  "version"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "deleted": {
                      "type": "boolean"
                    },
                    "sessions_revoked": {
                      "type": "boolean"
                    },
                    "receipts_revoked": {
                      "type": "boolean"
                    },
                    "statutory_records_retained": {
                      "type": "boolean"
                    },
                    "acknowledgement_expires_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "review_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "tracking_version": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 2147483647
                    },
                    "revoked": {
                      "type": "boolean"
                    },
                    "tracking_url": {
                      "type": "string",
                      "maxLength": 2048
                    }
                  },
                  "required": [],
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeCustomerPrivacy.ts",
          "line": 16
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/privacy/availability": {
      "get": {
        "operationId": "get_api_shop_slug_customer_privacy_availability",
        "tags": [
          "public"
        ],
        "summary": "GET /api/shop/{slug}/customer/privacy/availability",
        "description": "Public availability explanation only. Existing owned sessions and unrevoked receipts retain supported history; this does not create a sign-in fallback or grant access to customer data. Every endpoint retains current publication, package, grant, record, origin and provider guards.",
        "security": [],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "accepting_new_orders": {
                      "type": "boolean"
                    },
                    "historical_access": {
                      "type": "string",
                      "maxLength": 2000
                    },
                    "account_url": {
                      "type": "string",
                      "maxLength": 2048
                    },
                    "privacy": {
                      "type": "string",
                      "maxLength": 2000
                    }
                  },
                  "required": [
                    "accepting_new_orders",
                    "historical_access",
                    "account_url",
                    "privacy"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeCustomerPrivacy.ts",
          "line": 13
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "public",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Public published facts only; endpoint guards remain authoritative",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/privacy/export": {
      "get": {
        "operationId": "get_api_shop_slug_customer_privacy_export",
        "tags": [
          "customer"
        ],
        "summary": "GET /api/shop/{slug}/customer/privacy/export",
        "description": "Exports only the current customer’s account and supported owned records. Never includes keys, OTPs, token hashes, staff notes or unrelated customers. Download every page explicitly. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 19999
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "const": 1
                    },
                    "page": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 2147483647
                    },
                    "page_size": {
                      "const": 50
                    },
                    "total": {
                      "type": [
                        "string",
                        "integer"
                      ]
                    },
                    "has_more": {
                      "type": "boolean"
                    },
                    "records": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "maxLength": 100
                          },
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "data": {
                            "type": "object",
                            "properties": {},
                            "required": [],
                            "additionalProperties": true
                          }
                        },
                        "required": [
                          "kind",
                          "id",
                          "data"
                        ],
                        "additionalProperties": false
                      },
                      "maxItems": 50
                    },
                    "retention": {
                      "type": "string",
                      "maxLength": 4000
                    }
                  },
                  "required": [
                    "version",
                    "page",
                    "page_size",
                    "total",
                    "has_more",
                    "records",
                    "retention"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeCustomerPrivacy.ts",
          "line": 14
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/privacy/receipts": {
      "get": {
        "operationId": "get_api_shop_slug_customer_privacy_receipts",
        "tags": [
          "customer"
        ],
        "summary": "GET /api/shop/{slug}/customer/privacy/receipts",
        "description": "The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 19999
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "order_id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "tracking_version": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 2147483647
                          },
                          "tracking_revoked_at": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "created_at": {
                            "type": "string",
                            "format": "date-time"
                          }
                        },
                        "required": [
                          "id",
                          "order_id",
                          "tracking_version",
                          "tracking_revoked_at",
                          "created_at"
                        ],
                        "additionalProperties": false
                      },
                      "maxItems": 20
                    },
                    "page": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 2147483647
                    },
                    "has_more": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "items",
                    "page",
                    "has_more"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeCustomerPrivacy.ts",
          "line": 15
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/product-reviews": {
      "get": {
        "operationId": "get_api_shop_slug_customer_product_reviews",
        "tags": [
          "customer"
        ],
        "summary": "GET /api/shop/{slug}/customer/product-reviews",
        "description": "The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 100000
            },
            "description": "Zero-based page. Page size is fixed by this endpoint."
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductReviewPage"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeProductReviews.ts",
          "line": 26
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      },
      "post": {
        "operationId": "post_api_shop_slug_customer_product_reviews",
        "tags": [
          "customer"
        ],
        "summary": "POST /api/shop/{slug}/customer/product-reviews",
        "description": "The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_key": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "order_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "line_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "rating": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 5
                  },
                  "title": {
                    "type": "string",
                    "maxLength": 120
                  },
                  "body": {
                    "type": "string",
                    "maxLength": 4000,
                    "minLength": 3
                  },
                  "version": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000000
                  }
                },
                "required": [
                  "request_key",
                  "order_id",
                  "line_id",
                  "rating",
                  "title",
                  "body",
                  "version"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductReview"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeProductReviews.ts",
          "line": 28
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/product-reviews/{id}/media": {
      "get": {
        "operationId": "get_api_shop_slug_customer_product_reviews_id_media",
        "tags": [
          "customer"
        ],
        "summary": "GET /api/shop/{slug}/customer/product-reviews/{id}/media",
        "description": "The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EvidencePage"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeReviewMedia.ts",
          "line": 16
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      },
      "post": {
        "operationId": "post_api_shop_slug_customer_product_reviews_id_media",
        "tags": [
          "customer"
        ],
        "summary": "POST /api/shop/{slug}/customer/product-reviews/{id}/media",
        "description": "At most3 still JPEG/PNG/WebP photos,2MiB and4096px per side. Pixels are re-encoded with metadata removed. Upload finalization requeues the review for moderation. Never reuse an upload identity for changed bytes. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_key": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "confirmed": {
                    "type": "string",
                    "const": "true"
                  },
                  "photo": {
                    "type": "string",
                    "format": "binary"
                  }
                },
                "required": [
                  "request_key",
                  "confirmed",
                  "photo"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "state": {
                      "type": "string",
                      "enum": [
                        "ready"
                      ]
                    },
                    "review_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "review_state": {
                      "type": "string",
                      "enum": [
                        "pending",
                        "approved",
                        "rejected"
                      ]
                    },
                    "review_version": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 2147483647
                    }
                  },
                  "required": [
                    "id",
                    "state",
                    "review_id",
                    "review_state",
                    "review_version"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeReviewMedia.ts",
          "line": 17
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/product-reviews/{id}/media/{mediaId}": {
      "get": {
        "operationId": "get_api_shop_slug_customer_product_reviews_id_media_mediaid_",
        "tags": [
          "customer"
        ],
        "summary": "GET /api/shop/{slug}/customer/product-reviews/{id}/media/{mediaId}",
        "description": "The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "mediaId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "image/jpeg": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeReviewMedia.ts",
          "line": 18
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/product-reviews/{id}/media/{mediaId}/remove": {
      "post": {
        "operationId": "post_api_shop_slug_customer_product_reviews_id_media_mediaid_remove",
        "tags": [
          "customer"
        ],
        "summary": "POST /api/shop/{slug}/customer/product-reviews/{id}/media/{mediaId}/remove",
        "description": "Removes display access, preserves the private operation history and requires review moderation again. Use the same UUID and expected version after an unknown outcome. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "mediaId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_key": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "confirmed": {
                    "const": true
                  },
                  "version": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 2147483647
                  }
                },
                "required": [
                  "request_key",
                  "confirmed",
                  "version"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "state": {
                      "const": "removed"
                    },
                    "review_version": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 2147483647
                    },
                    "review_state": {
                      "const": "pending"
                    },
                    "expected_version": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 2147483647
                    }
                  },
                  "required": [
                    "id",
                    "state",
                    "review_version",
                    "review_state",
                    "expected_version"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeReviewMedia.ts",
          "line": 19
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/product-reviews/{id}/report": {
      "post": {
        "operationId": "post_api_shop_slug_customer_product_reviews_id_report",
        "tags": [
          "customer"
        ],
        "summary": "POST /api/shop/{slug}/customer/product-reviews/{id}/report",
        "description": "The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_key": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "reason": {
                    "type": "string",
                    "maxLength": 500,
                    "minLength": 3
                  }
                },
                "required": [
                  "request_key",
                  "reason"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Mutation"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeProductReviews.ts",
          "line": 29
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/profile": {
      "get": {
        "operationId": "get_api_shop_slug_customer_profile",
        "tags": [
          "customer"
        ],
        "summary": "GET /api/shop/{slug}/customer/profile",
        "description": "The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Profile"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeCustomers.ts",
          "line": 108
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      },
      "post": {
        "operationId": "post_api_shop_slug_customer_profile",
        "tags": [
          "customer"
        ],
        "summary": "POST /api/shop/{slug}/customer/profile",
        "description": "The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 200,
                    "minLength": 1
                  },
                  "version": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000000
                  },
                  "preferences": {
                    "$ref": "#/components/schemas/Preferences"
                  }
                },
                "required": [
                  "name",
                  "version"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "name": {
                      "type": "string",
                      "maxLength": 200
                    },
                    "version": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 2147483647
                    },
                    "preferences": {
                      "$ref": "#/components/schemas/Preferences"
                    }
                  },
                  "required": [],
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeCustomers.ts",
          "line": 119
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/return-requests": {
      "get": {
        "operationId": "get_api_shop_slug_customer_return_requests",
        "tags": [
          "customer"
        ],
        "summary": "GET /api/shop/{slug}/customer/return-requests",
        "description": "The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 10000
            },
            "description": ""
          },
          {
            "name": "as_of",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Retain the first response cutoff for subsequent pages; page>0 requires this snapshot."
          },
          {
            "name": "order_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReturnRequestPage"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeReturns.ts",
          "line": 29
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      },
      "post": {
        "operationId": "post_api_shop_slug_customer_return_requests",
        "tags": [
          "customer"
        ],
        "summary": "POST /api/shop/{slug}/customer/return-requests",
        "description": "Returns require at least one eligible exact shipped line; refund-only requests may have no lines and require requested_amount_minor. Return requests cannot set a refund amount. Review approval never moves stock or submits a refund. Current saved policy and outstanding quantities apply. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_key": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "confirmed": {
                    "const": true
                  },
                  "order_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "return",
                      "refund"
                    ]
                  },
                  "condition": {
                    "type": "string",
                    "enum": [
                      "sellable",
                      "damaged"
                    ]
                  },
                  "reason_code": {
                    "type": "string",
                    "maxLength": 120,
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "maxLength": 2000,
                    "minLength": 3
                  },
                  "lines": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/ReturnLine"
                    },
                    "maxItems": 50
                  },
                  "refund_requested": {
                    "type": "boolean"
                  },
                  "requested_amount_minor": {
                    "type": "string",
                    "pattern": "^[1-9][0-9]{0,15}$"
                  }
                },
                "required": [
                  "request_key",
                  "confirmed",
                  "order_id",
                  "kind",
                  "condition",
                  "reason_code",
                  "message",
                  "lines"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReturnMutation"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeReturns.ts",
          "line": 31
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/return-requests/{id}": {
      "get": {
        "operationId": "get_api_shop_slug_customer_return_requests_id_",
        "tags": [
          "customer"
        ],
        "summary": "GET /api/shop/{slug}/customer/return-requests/{id}",
        "description": "The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 10000
            },
            "description": ""
          },
          {
            "name": "as_of",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Retain the first response cutoff for subsequent pages; page>0 requires this snapshot."
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "order_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "return",
                        "refund"
                      ]
                    },
                    "state": {
                      "type": "string",
                      "enum": [
                        "open",
                        "approved",
                        "partially_received",
                        "received",
                        "rejected",
                        "withdrawn"
                      ]
                    },
                    "version": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 2147483647
                    },
                    "reason_code": {
                      "type": "string",
                      "maxLength": 120
                    },
                    "customer_message": {
                      "type": "string",
                      "maxLength": 2000
                    },
                    "currency": {
                      "type": "string",
                      "maxLength": 3
                    },
                    "refund_requested": {
                      "type": "boolean"
                    },
                    "requested_amount_minor": {
                      "anyOf": [
                        {
                          "$ref": "#/components/schemas/ExactMinor"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "policy": {
                      "$ref": "#/components/schemas/ReturnPolicy"
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "line_id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "quantity": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 2147483647
                          },
                          "received_quantity": {
                            "type": [
                              "integer",
                              "string"
                            ]
                          }
                        },
                        "required": [
                          "line_id",
                          "quantity"
                        ],
                        "additionalProperties": true
                      },
                      "maxItems": 50
                    },
                    "created_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "history": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "action": {
                            "type": "string",
                            "maxLength": 100
                          },
                          "message": {
                            "anyOf": [
                              {
                                "type": "string",
                                "maxLength": 2000
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "created_at": {
                            "type": "string",
                            "format": "date-time"
                          }
                        },
                        "required": [],
                        "additionalProperties": true
                      },
                      "maxItems": 10000
                    },
                    "page": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 2147483647
                    },
                    "as_of": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "has_more": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "id",
                    "order_id",
                    "kind",
                    "state",
                    "version",
                    "history",
                    "page",
                    "as_of",
                    "has_more"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeReturns.ts",
          "line": 30
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/return-requests/{id}/evidence": {
      "get": {
        "operationId": "get_api_shop_slug_customer_return_requests_id_evidence",
        "tags": [
          "customer"
        ],
        "summary": "GET /api/shop/{slug}/customer/return-requests/{id}/evidence",
        "description": "The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EvidencePage"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeReturnEvidence.ts",
          "line": 23
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      },
      "post": {
        "operationId": "post_api_shop_slug_customer_return_requests_id_evidence",
        "tags": [
          "customer"
        ],
        "summary": "POST /api/shop/{slug}/customer/return-requests/{id}/evidence",
        "description": "Private still-photo evidence, maximum3 photos and2MiB each; same identity and original bytes for uncertain upload recovery. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_key": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "confirmed": {
                    "type": "string",
                    "const": "true"
                  },
                  "photo": {
                    "type": "string",
                    "format": "binary"
                  }
                },
                "required": [
                  "request_key",
                  "confirmed",
                  "photo"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Evidence"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeReturnEvidence.ts",
          "line": 24
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/return-requests/{id}/evidence/{photoId}": {
      "get": {
        "operationId": "get_api_shop_slug_customer_return_requests_id_evidence_photoid_",
        "tags": [
          "customer"
        ],
        "summary": "GET /api/shop/{slug}/customer/return-requests/{id}/evidence/{photoId}",
        "description": "The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "photoId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "image/jpeg": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeReturnEvidence.ts",
          "line": 25
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/return-requests/{id}/withdraw": {
      "post": {
        "operationId": "post_api_shop_slug_customer_return_requests_id_withdraw",
        "tags": [
          "customer"
        ],
        "summary": "POST /api/shop/{slug}/customer/return-requests/{id}/withdraw",
        "description": "The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_key": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "confirmed": {
                    "const": true
                  },
                  "version": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 2147483647
                  }
                },
                "required": [
                  "request_key",
                  "confirmed",
                  "version"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReturnMutation"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeReturns.ts",
          "line": 32
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/sessions": {
      "get": {
        "operationId": "get_api_shop_slug_customer_sessions",
        "tags": [
          "customer"
        ],
        "summary": "GET /api/shop/{slug}/customer/sessions",
        "description": "The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "created_at": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "expires_at": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "current": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "id"
                        ],
                        "additionalProperties": true
                      },
                      "maxItems": 10000
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeCustomers.ts",
          "line": 247
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/sessions/revoke": {
      "post": {
        "operationId": "post_api_shop_slug_customer_sessions_revoke",
        "tags": [
          "customer"
        ],
        "summary": "POST /api/shop/{slug}/customer/sessions/revoke",
        "description": "The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "session_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "confirmed": {
                    "const": true
                  }
                },
                "required": [
                  "session_id",
                  "confirmed"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Mutation"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeCustomers.ts",
          "line": 248
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/subscriptions": {
      "get": {
        "operationId": "get_api_shop_slug_customer_subscriptions",
        "tags": [
          "customer"
        ],
        "summary": "GET /api/shop/{slug}/customer/subscriptions",
        "description": "Saved owned subscriptions remain readable during Store unpublication/package expiry. New mandate setup is separately gated. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/RecurringSubscription"
                      },
                      "maxItems": 100
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeSubscriptions.ts",
          "line": 32
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      },
      "post": {
        "operationId": "post_api_shop_slug_customer_subscriptions",
        "tags": [
          "customer"
        ],
        "summary": "POST /api/shop/{slug}/customer/subscriptions",
        "description": "Explicit finite recurring service-access consent. Feature defaults OFF. A prepared or unknown result is not payment or entitlement. Keep the same operation identity after a lost response. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_key": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "plan_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "terms_version": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 2147483647
                  },
                  "consent": {
                    "const": true
                  }
                },
                "required": [
                  "request_key",
                  "plan_id",
                  "terms_version",
                  "consent"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecurringSubscription"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeSubscriptions.ts",
          "line": 30
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/subscriptions/{id}": {
      "get": {
        "operationId": "get_api_shop_slug_customer_subscriptions_id_",
        "tags": [
          "customer"
        ],
        "summary": "GET /api/shop/{slug}/customer/subscriptions/{id}",
        "description": "Reconciles original-merchant invoice/payment evidence. Only final current unrefunded verified billing periods grant service access; no physical renewal or native paid-order claim. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "plan_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "state": {
                      "type": "string",
                      "maxLength": 50
                    },
                    "dunning_state": {
                      "type": "string",
                      "maxLength": 100
                    },
                    "provider_status": {
                      "anyOf": [
                        {
                          "type": "string",
                          "maxLength": 50
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "short_url": {
                      "anyOf": [
                        {
                          "type": "string",
                          "pattern": "^https://rzp\\.io/(?:i|r)/[A-Za-z0-9]+$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "consent_snapshot": {
                      "$ref": "#/components/schemas/RecurringConsent"
                    },
                    "consented_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "paid_count": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 2147483647
                    },
                    "auth_attempts": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 2147483647
                    },
                    "current_start": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "current_end": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "ended_at": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "cancel_requested_at": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "cancel_at_cycle_end": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "cancel_dispatch": {
                      "anyOf": [
                        {
                          "type": "string",
                          "maxLength": 50
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "cycles": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/RecurringCycle"
                      },
                      "maxItems": 500
                    },
                    "service_access": {
                      "anyOf": [
                        {
                          "$ref": "#/components/schemas/RecurringCycle"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "plan_id",
                    "state",
                    "dunning_state",
                    "provider_status",
                    "short_url",
                    "consent_snapshot",
                    "consented_at",
                    "paid_count",
                    "auth_attempts",
                    "current_start",
                    "current_end",
                    "ended_at",
                    "cancel_requested_at",
                    "cancel_at_cycle_end",
                    "cancel_dispatch",
                    "cycles",
                    "service_access"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeSubscriptions.ts",
          "line": 33
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/subscriptions/{id}/cancel": {
      "post": {
        "operationId": "post_api_shop_slug_customer_subscriptions_id_cancel",
        "tags": [
          "customer"
        ],
        "summary": "POST /api/shop/{slug}/customer/subscriptions/{id}/cancel",
        "description": "Customer-owned, once-only original-merchant cancellation. Retains recovery after package expiry/unpublication. Unknown outcome requires read-back, never a new cancellation identity. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_key": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "cancel_at_cycle_end": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "request_key",
                  "cancel_at_cycle_end"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecurringSubscription"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeSubscriptions.ts",
          "line": 34
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/wishlist": {
      "get": {
        "operationId": "get_api_shop_slug_customer_wishlist",
        "tags": [
          "customer"
        ],
        "summary": "GET /api/shop/{slug}/customer/wishlist",
        "description": "The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 100000
            },
            "description": "Zero-based page. Page size is fixed by this endpoint."
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WishlistPage"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeWishlist.ts",
          "line": 19
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      },
      "post": {
        "operationId": "post_api_shop_slug_customer_wishlist",
        "tags": [
          "customer"
        ],
        "summary": "POST /api/shop/{slug}/customer/wishlist",
        "description": "The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "product_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "variant_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "product_id"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Mutation"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeWishlist.ts",
          "line": 24
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/customer/wishlist/{id}/remove": {
      "post": {
        "operationId": "post_api_shop_slug_customer_wishlist_id_remove",
        "tags": [
          "customer"
        ],
        "summary": "POST /api/shop/{slug}/customer/wishlist/{id}/remove",
        "description": "The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.",
        "security": [
          {
            "StoreCustomer": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {},
                "required": [],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Mutation"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeWishlist.ts",
          "line": 29
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "customer",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current same-Store customer session; exact owned resource checked server-side",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/delivery-choices": {
      "post": {
        "operationId": "post_api_shop_slug_delivery_choices",
        "tags": [
          "public"
        ],
        "summary": "POST /api/shop/{slug}/delivery-choices",
        "description": "Read-only native merchant-rule choices from current actual products/prices/tax/discounts. Does not reserve stock or pickup capacity. Unknown weight fails weight rates. COD limits use the final total. When the merchant enables Shiprocket pricing, carrier_quotes contains private opaque quote references bound to current cart, destination, payment type and five-minute expiry. Pass the selected carrier_quote_id with the review. Changing cart or destination requires fresh quotes. No booking is created. Every endpoint retains current publication, package, grant, record, origin and provider guards.",
        "security": [],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "items": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "product_id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "variant_id": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "quantity": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 10000
                        }
                      },
                      "required": [
                        "product_id",
                        "quantity"
                      ],
                      "additionalProperties": false
                    },
                    "maxItems": 50
                  },
                  "destination": {
                    "type": "object",
                    "properties": {
                      "country": {
                        "type": "string",
                        "maxLength": 2
                      },
                      "province": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "gst_state_code": {
                        "type": "string",
                        "maxLength": 2
                      },
                      "zip": {
                        "type": "string",
                        "maxLength": 32
                      }
                    },
                    "required": [
                      "country"
                    ],
                    "additionalProperties": false
                  },
                  "delivery_method": {
                    "type": "string",
                    "enum": [
                      "delivery",
                      "pickup",
                      "digital"
                    ]
                  },
                  "discount_code": {
                    "type": "string",
                    "maxLength": 32
                  }
                },
                "required": [
                  "items",
                  "destination",
                  "delivery_method"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "version": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 2147483647
                    },
                    "currency": {
                      "type": "string",
                      "maxLength": 3
                    },
                    "choices": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/DeliveryChoice"
                      },
                      "maxItems": 20
                    },
                    "unavailable": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 40
                          },
                          "name": {
                            "type": "string",
                            "maxLength": 100
                          },
                          "reason": {
                            "type": "string",
                            "maxLength": 4000
                          }
                        },
                        "required": [],
                        "additionalProperties": true
                      },
                      "maxItems": 20
                    },
                    "reason": {
                      "anyOf": [
                        {
                          "type": "string",
                          "maxLength": 4000
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "enabled",
                    "version",
                    "currency",
                    "choices"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/nativeShop.ts",
          "line": 75
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "public",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Public published facts only; endpoint guards remain authoritative",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/pickup-slots": {
      "get": {
        "operationId": "get_api_shop_slug_pickup_slots",
        "tags": [
          "public"
        ],
        "summary": "GET /api/shop/{slug}/pickup-slots",
        "description": "Next14localdays, recurring configured pickup windows and current capacity only. Availability is advisory until review/placement. Private capacity counts are not exposed. DST gaps and repeated ambiguous local times are omitted. Every endpoint retains current publication, package, grant, record, origin and provider guards.",
        "security": [],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "service_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 40
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "policy_version": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 2147483647
                    },
                    "service_id": {
                      "type": "string",
                      "maxLength": 40
                    },
                    "timezone": {
                      "type": "string",
                      "maxLength": 100
                    },
                    "generated_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "horizon_days": {
                      "const": 14
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 40
                          },
                          "start": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "end": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "timezone": {
                            "type": "string",
                            "maxLength": 100
                          },
                          "available": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "id",
                          "start",
                          "end",
                          "timezone",
                          "available"
                        ],
                        "additionalProperties": false
                      },
                      "maxItems": 560
                    }
                  },
                  "required": [
                    "policy_version",
                    "service_id",
                    "timezone",
                    "generated_at",
                    "horizon_days",
                    "items"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/nativeShop.ts",
          "line": 76
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "public",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Public published facts only; endpoint guards remain authoritative",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/product-by-slug/{productSlug}": {
      "get": {
        "operationId": "get_api_shop_slug_product_by_slug_productslug_",
        "tags": [
          "public"
        ],
        "summary": "GET /api/shop/{slug}/product-by-slug/{productSlug}",
        "description": "Every endpoint retains current publication, package, grant, record, origin and provider guards.",
        "security": [],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "productSlug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/nativeShop.ts",
          "line": 71
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "public",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Public published facts only; endpoint guards remain authoritative",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/products": {
      "get": {
        "operationId": "get_api_shop_slug_products",
        "tags": [
          "public"
        ],
        "summary": "GET /api/shop/{slug}/products",
        "description": "Every endpoint retains current publication, package, grant, record, origin and provider guards.",
        "security": [],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 100000
            },
            "description": "Zero-based page. Page size is fixed by this endpoint."
          },
          {
            "name": "product_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": ""
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 150
            },
            "description": ""
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": ""
          },
          {
            "name": "category_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": ""
          },
          {
            "name": "collection_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": ""
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": ""
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "featured",
                "name_asc",
                "name_desc",
                "price_asc",
                "price_desc",
                "newest"
              ]
            },
            "description": ""
          },
          {
            "name": "available",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "true"
              ]
            },
            "description": ""
          },
          {
            "name": "tags",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 1200
            },
            "description": "Comma-separated up to12 distinct tags."
          },
          {
            "name": "attributes",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 5000
            },
            "description": "JSON map of saved attribute UUIDs to arrays of distinct saved value UUIDs; OR within an attribute, AND across attributes."
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductPage"
                },
                "examples": {
                  "emptyCatalog": {
                    "summary": "A published Store with no matching products",
                    "value": {
                      "items": [],
                      "page": 0,
                      "total": 0,
                      "has_more": false,
                      "categories": []
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/nativeShop.ts",
          "line": 77
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "public",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Public published facts only; endpoint guards remain authoritative",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/products/{id}/options": {
      "get": {
        "operationId": "get_api_shop_slug_products_id_options",
        "tags": [
          "public"
        ],
        "summary": "GET /api/shop/{slug}/products/{id}/options",
        "description": "Every endpoint retains current publication, package, grant, record, origin and provider guards.",
        "security": [],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 100000
            },
            "description": "Zero-based page. Page size is fixed by this endpoint."
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 150
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OptionPage"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/nativeShop.ts",
          "line": 80
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "public",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Public published facts only; endpoint guards remain authoritative",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/products/{productId}/reviews": {
      "get": {
        "operationId": "get_api_shop_slug_products_productid_reviews",
        "tags": [
          "public"
        ],
        "summary": "GET /api/shop/{slug}/products/{productId}/reviews",
        "description": "Every endpoint retains current publication, package, grant, record, origin and provider guards.",
        "security": [],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "productId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 100000
            },
            "description": "Zero-based page. Page size is fixed by this endpoint."
          },
          {
            "name": "rating",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 5
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductReviewPage"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeProductReviews.ts",
          "line": 24
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "public",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Public published facts only; endpoint guards remain authoritative",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/products/{productId}/reviews/{id}/media": {
      "get": {
        "operationId": "get_api_shop_slug_products_productid_reviews_id_media",
        "tags": [
          "public"
        ],
        "summary": "GET /api/shop/{slug}/products/{productId}/reviews/{id}/media",
        "description": "Every endpoint retains current publication, package, grant, record, origin and provider guards.",
        "security": [],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "productId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EvidencePage"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeReviewMedia.ts",
          "line": 25
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "public",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Public published facts only; endpoint guards remain authoritative",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/products/{productId}/reviews/{id}/media/{mediaId}": {
      "get": {
        "operationId": "get_api_shop_slug_products_productid_reviews_id_media_mediaid_",
        "tags": [
          "public"
        ],
        "summary": "GET /api/shop/{slug}/products/{productId}/reviews/{id}/media/{mediaId}",
        "description": "Read only while Store/product/review remain published and the purchase is eligible. No private object URL or storage key is disclosed. Every endpoint retains current publication, package, grant, record, origin and provider guards.",
        "security": [],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "productId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "mediaId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "image/jpeg": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeReviewMedia.ts",
          "line": 26
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "public",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Public published facts only; endpoint guards remain authoritative",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/return-policy": {
      "get": {
        "operationId": "get_api_shop_slug_return_policy",
        "tags": [
          "public"
        ],
        "summary": "GET /api/shop/{slug}/return-policy",
        "description": "Every endpoint retains current publication, package, grant, record, origin and provider guards.",
        "security": [],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReturnPolicy"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeReturns.ts",
          "line": 26
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "public",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Public published facts only; endpoint guards remain authoritative",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/reviews": {
      "post": {
        "operationId": "post_api_shop_slug_reviews",
        "tags": [
          "checkout"
        ],
        "summary": "POST /api/shop/{slug}/reviews",
        "description": "Retain the original X-Store-Checkout bearer, even if the creation response is lost. Read order/review status before retrying any write. Tracking-only proof can read supported receipts but cannot place/release/create payment.",
        "security": [
          {
            "StoreCheckout": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Review"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/nativeShop.ts",
          "line": 88
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "checkout",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Original private checkout bearer; read-only receipt proof only where explicitly supported",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/reviews/{id}": {
      "get": {
        "operationId": "get_api_shop_slug_reviews_id_",
        "tags": [
          "checkout"
        ],
        "summary": "GET /api/shop/{slug}/reviews/{id}",
        "description": "Retain the original X-Store-Checkout bearer, even if the creation response is lost. Read order/review status before retrying any write. Tracking-only proof can read supported receipts but cannot place/release/create payment.",
        "security": [
          {
            "StoreCheckout": []
          },
          {
            "StoreTracking": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Store-Tracking",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^(?:r1\\.[0-9]{13}|r2\\.[1-9][0-9]{0,9}\\.[0-9]{13})\\.[A-Za-z0-9_-]{43}$"
            },
            "description": "Supported receipt read alternative; never authority for writes."
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Review"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/nativeShop.ts",
          "line": 107
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "checkout",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Original private checkout bearer; read-only receipt proof only where explicitly supported",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/reviews/{id}/payment": {
      "get": {
        "operationId": "get_api_shop_slug_reviews_id_payment",
        "tags": [
          "checkout"
        ],
        "summary": "GET /api/shop/{slug}/reviews/{id}/payment",
        "description": "Retain the original X-Store-Checkout bearer, even if the creation response is lost. Read order/review status before retrying any write. Tracking-only proof can read supported receipts but cannot place/release/create payment.",
        "security": [
          {
            "StoreCheckout": []
          },
          {
            "StoreTracking": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Store-Tracking",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^(?:r1\\.[0-9]{13}|r2\\.[1-9][0-9]{0,9}\\.[0-9]{13})\\.[A-Za-z0-9_-]{43}$"
            },
            "description": "Supported receipt read alternative; never authority for writes."
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Payment"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/nativeShop.ts",
          "line": 116
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "checkout",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Original private checkout bearer; read-only receipt proof only where explicitly supported",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      },
      "post": {
        "operationId": "post_api_shop_slug_reviews_id_payment",
        "tags": [
          "checkout"
        ],
        "summary": "POST /api/shop/{slug}/reviews/{id}/payment",
        "description": "Retain the original X-Store-Checkout bearer, even if the creation response is lost. Read order/review status before retrying any write. Tracking-only proof can read supported receipts but cannot place/release/create payment.",
        "security": [
          {
            "StoreCheckout": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_key": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "confirmed": {
                    "const": true
                  }
                },
                "required": [
                  "request_key",
                  "confirmed"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Payment"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/nativeShop.ts",
          "line": 117
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "checkout",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Original private checkout bearer; read-only receipt proof only where explicitly supported",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/reviews/{id}/payment/reconcile": {
      "post": {
        "operationId": "post_api_shop_slug_reviews_id_payment_reconcile",
        "tags": [
          "checkout"
        ],
        "summary": "POST /api/shop/{slug}/reviews/{id}/payment/reconcile",
        "description": "Retain the original X-Store-Checkout bearer, even if the creation response is lost. Read order/review status before retrying any write. Tracking-only proof can read supported receipts but cannot place/release/create payment.",
        "security": [
          {
            "StoreCheckout": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "attempt_id": {
                    "type": "string",
                    "format": "uuid"
                  }
                },
                "required": [
                  "attempt_id"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Payment"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/nativeShop.ts",
          "line": 118
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "checkout",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Original private checkout bearer; read-only receipt proof only where explicitly supported",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/reviews/{id}/place": {
      "post": {
        "operationId": "post_api_shop_slug_reviews_id_place",
        "tags": [
          "checkout"
        ],
        "summary": "POST /api/shop/{slug}/reviews/{id}/place",
        "description": "Retain the original X-Store-Checkout bearer, even if the creation response is lost. Read order/review status before retrying any write. Tracking-only proof can read supported receipts but cannot place/release/create payment.",
        "security": [
          {
            "StoreCheckout": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "const": true
                  },
                  "customer": {
                    "$ref": "#/components/schemas/Buyer"
                  },
                  "future_supply_confirmed": {
                    "type": "boolean",
                    "description": "Set true only after the shopper explicitly reviews the saved future-supply quantities and dispatch dates. Required when the saved review includes future supply."
                  }
                },
                "required": [
                  "confirmed",
                  "customer"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Review"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/nativeShop.ts",
          "line": 110
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "checkout",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Original private checkout bearer; read-only receipt proof only where explicitly supported",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/reviews/{id}/release": {
      "post": {
        "operationId": "post_api_shop_slug_reviews_id_release",
        "tags": [
          "checkout"
        ],
        "summary": "POST /api/shop/{slug}/reviews/{id}/release",
        "description": "Retain the original X-Store-Checkout bearer, even if the creation response is lost. Read order/review status before retrying any write. Tracking-only proof can read supported receipts but cannot place/release/create payment.",
        "security": [
          {
            "StoreCheckout": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {},
                "required": [],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "released": {
                      "const": true
                    }
                  },
                  "required": [
                    "released"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/nativeShop.ts",
          "line": 113
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "checkout",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Original private checkout bearer; read-only receipt proof only where explicitly supported",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/reviews/{id}/shipments": {
      "get": {
        "operationId": "get_api_shop_slug_reviews_id_shipments",
        "tags": [
          "checkout"
        ],
        "summary": "GET /api/shop/{slug}/reviews/{id}/shipments",
        "description": "Retain the original X-Store-Checkout bearer, even if the creation response is lost. Read order/review status before retrying any write. Tracking-only proof can read supported receipts but cannot place/release/create payment.",
        "security": [
          {
            "StoreCheckout": []
          },
          {
            "StoreTracking": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 100000
            },
            "description": "Zero-based page. Page size is fixed by this endpoint."
          },
          {
            "name": "X-Store-Tracking",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^(?:r1\\.[0-9]{13}|r2\\.[1-9][0-9]{0,9}\\.[0-9]{13})\\.[A-Za-z0-9_-]{43}$"
            },
            "description": "Supported receipt read alternative; never authority for writes."
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShipmentPage"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/nativeShop.ts",
          "line": 119
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "checkout",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Original private checkout bearer; read-only receipt proof only where explicitly supported",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/reviews/{reviewId}/downloads": {
      "get": {
        "operationId": "get_api_shop_slug_reviews_reviewid_downloads",
        "tags": [
          "public"
        ],
        "summary": "GET /api/shop/{slug}/reviews/{reviewId}/downloads",
        "description": "Read only owned digital purchase metadata. Historical unrevoked receipts and current owned customer sessions remain available when sales pause. No private object key or public file URL is returned. Every endpoint retains current publication, package, grant, record, origin and provider guards.",
        "security": [
          {
            "StoreCheckout": []
          },
          {
            "StoreTracking": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "reviewId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 19999
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/DigitalDownload"
                      },
                      "maxItems": 25
                    },
                    "page": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 19999
                    },
                    "has_more": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "items",
                    "page",
                    "has_more"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeDigital.ts",
          "line": 35
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "public",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current original private checkout bearer or unrevoked read-only receipt proof for this exact same-Store order. Download confirmation consumes only this purchase entitlement, never places or pays an order.",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/reviews/{reviewId}/downloads/{id}/download": {
      "post": {
        "operationId": "post_api_shop_slug_reviews_reviewid_downloads_id_download",
        "tags": [
          "public"
        ],
        "summary": "POST /api/shop/{slug}/reviews/{reviewId}/downloads/{id}/download",
        "description": "Explicit private byte transfer after current ownership/payment/expiry/refund/count checks. Retain request_key for a deliberate retry within10minutes; no automatic replay. A new identity consumes a new download. Saved content hash and size verified before response. Every endpoint retains current publication, package, grant, record, origin and provider guards.",
        "security": [
          {
            "StoreCheckout": []
          },
          {
            "StoreTracking": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "reviewId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "const": true
                  },
                  "request_key": {
                    "type": "string",
                    "format": "uuid"
                  }
                },
                "required": [
                  "confirmed",
                  "request_key"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeDigital.ts",
          "line": 36
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "public",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current original private checkout bearer or unrevoked read-only receipt proof for this exact same-Store order. Download confirmation consumes only this purchase entitlement, never places or pays an order.",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/sitemap": {
      "get": {
        "operationId": "get_api_shop_slug_sitemap",
        "tags": [
          "public"
        ],
        "summary": "GET /api/shop/{slug}/sitemap",
        "description": "Every endpoint retains current publication, package, grant, record, origin and provider guards.",
        "security": [],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 10000
            },
            "description": "Zero-based page of up to1000 published products."
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SitemapPage"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/nativeShop.ts",
          "line": 72
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "public",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Public published facts only; endpoint guards remain authoritative",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/subscription-plans": {
      "get": {
        "operationId": "get_api_shop_slug_subscription_plans",
        "tags": [
          "public"
        ],
        "summary": "GET /api/shop/{slug}/subscription-plans",
        "description": "Every endpoint retains current publication, package, grant, record, origin and provider guards.",
        "security": [],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/RecurringPlan"
                      },
                      "maxItems": 1000
                    },
                    "provider_authorization": {
                      "type": "string",
                      "maxLength": 2000
                    }
                  },
                  "required": [
                    "items",
                    "provider_authorization"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeSubscriptions.ts",
          "line": 28
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "public",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Public published facts only; endpoint guards remain authoritative",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/shop/{slug}/whatsapp-selection": {
      "post": {
        "operationId": "post_api_shop_slug_whatsapp_selection",
        "tags": [
          "public"
        ],
        "summary": "POST /api/shop/{slug}/whatsapp-selection",
        "description": "Opaque handoff token from the intended WhatsApp conversation. Exact selected native options are repriced and reviewed separately. Expires in one hour; no customer sign-in, stock hold or payment occurs here. Every endpoint retains current publication, package, grant, record, origin and provider guards.",
        "security": [],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "token": {
                    "$ref": "#/components/schemas/PrivateToken"
                  }
                },
                "required": [
                  "token"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "description": "Customer, checkout, account, receipt and error responses are private/no-store. Only opted-in public catalog may be indexed."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "product_id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "variant_id": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "quantity": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 10000
                          },
                          "name": {
                            "type": "string",
                            "maxLength": 500
                          }
                        },
                        "required": [
                          "product_id",
                          "variant_id",
                          "quantity",
                          "name"
                        ],
                        "additionalProperties": false
                      },
                      "maxItems": 50
                    },
                    "expires_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "authority": {
                      "type": "string",
                      "maxLength": 2000
                    }
                  },
                  "required": [
                    "id",
                    "items",
                    "expires_at"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/nativeStoreWhatsApp.ts",
          "line": 21
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "public",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Public published facts only; endpoint guards remain authoritative",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/v1/store/merchant/capabilities": {
      "get": {
        "operationId": "get_api_v1_store_merchant_capabilities",
        "tags": [
          "merchant-server"
        ],
        "summary": "GET /api/v1/store/merchant/capabilities",
        "description": "Every endpoint retains current publication, package, grant, record, origin and provider guards.",
        "security": [
          {
            "StoreMerchant": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MerchantCapabilities"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeMerchantApi.ts",
          "line": 29
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "merchant-server",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current scoped private key; original issuer grants and record scope rechecked",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/v1/store/merchant/inventory": {
      "get": {
        "operationId": "get_api_v1_store_merchant_inventory",
        "tags": [
          "merchant-server"
        ],
        "summary": "GET /api/v1/store/merchant/inventory",
        "description": "Every endpoint retains current publication, package, grant, record, origin and provider guards.",
        "security": [
          {
            "StoreMerchant": []
          }
        ],
        "parameters": [
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": ""
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "const": 1
                    },
                    "source": {
                      "const": "emacron"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sku": {
                            "anyOf": [
                              {
                                "type": "string",
                                "maxLength": 4000
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "stock_qty": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 2147483647
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "has_variants": {
                            "type": "boolean"
                          },
                          "updated_at": {
                            "type": "string",
                            "format": "date-time"
                          }
                        },
                        "required": [
                          "id",
                          "sku",
                          "stock_qty",
                          "has_variants",
                          "updated_at"
                        ],
                        "additionalProperties": false
                      },
                      "maxItems": 10000
                    },
                    "has_more": {
                      "type": "boolean"
                    },
                    "next_cursor": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "version",
                    "source",
                    "items",
                    "has_more",
                    "next_cursor"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeMerchantApi.ts",
          "line": 34
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "merchant-server",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current scoped private key; original issuer grants and record scope rechecked",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/v1/store/merchant/orders": {
      "get": {
        "operationId": "get_api_v1_store_merchant_orders",
        "tags": [
          "merchant-server"
        ],
        "summary": "GET /api/v1/store/merchant/orders",
        "description": "Every endpoint retains current publication, package, grant, record, origin and provider guards.",
        "security": [
          {
            "StoreMerchant": []
          }
        ],
        "parameters": [
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": ""
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "const": 1
                    },
                    "source": {
                      "const": "emacron"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "order_number": {
                            "type": "string",
                            "maxLength": 4000
                          },
                          "state": {
                            "type": "string",
                            "enum": [
                              "placed",
                              "cancelled"
                            ]
                          },
                          "payment_status": {
                            "type": "string",
                            "maxLength": 4000
                          },
                          "fulfillment_status": {
                            "type": "string",
                            "maxLength": 4000
                          },
                          "source": {
                            "type": "string",
                            "maxLength": 4000
                          },
                          "created_at": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updated_at": {
                            "type": "string",
                            "format": "date-time"
                          }
                        },
                        "required": [
                          "id",
                          "order_number",
                          "state",
                          "payment_status",
                          "fulfillment_status",
                          "source",
                          "created_at",
                          "updated_at"
                        ],
                        "additionalProperties": false
                      },
                      "maxItems": 10000
                    },
                    "has_more": {
                      "type": "boolean"
                    },
                    "next_cursor": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "version",
                    "source",
                    "items",
                    "has_more",
                    "next_cursor"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeMerchantApi.ts",
          "line": 34
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "merchant-server",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current scoped private key; original issuer grants and record scope rechecked",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/v1/store/merchant/orders/{id}/shipping": {
      "get": {
        "operationId": "get_api_v1_store_merchant_orders_id_shipping",
        "tags": [
          "merchant-server"
        ],
        "summary": "GET /api/v1/store/merchant/orders/{id}/shipping",
        "description": "Requires orders:read and current unrestricted issuer access. Customer details and payment information are excluded. Shipment and event histories paginate independently on the same page parameter. Every endpoint retains current publication, package, grant, record, origin and provider guards.",
        "security": [
          {
            "StoreMerchant": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9999
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MerchantShippingRead"
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeMerchantApi.ts",
          "line": 39
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "merchant-server",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current scoped private key; original issuer grants and record scope rechecked",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      },
      "post": {
        "operationId": "post_api_v1_store_merchant_orders_id_shipping",
        "tags": [
          "merchant-server"
        ],
        "summary": "POST /api/v1/store/merchant/orders/{id}/shipping",
        "description": "Requires opt-in shipping:write and current fulfillment permission. Retain request_key across uncertain retries. Exact fulfillment quantities use normal order guards; tracking only reports facts, never payment, physical return receipt, restock, carrier booking or pickup. Every endpoint retains current publication, package, grant, record, origin and provider guards.",
        "security": [
          {
            "StoreMerchant": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MerchantShippingWrite"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "order_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "version": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 2147483647
                    },
                    "fulfillment_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "fulfillment_status": {
                      "type": "string",
                      "maxLength": 4000
                    },
                    "event_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "reported_status": {
                      "type": "string",
                      "maxLength": 4000
                    }
                  },
                  "required": [
                    "order_id",
                    "version"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeMerchantApi.ts",
          "line": 56
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "merchant-server",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current scoped private key; original issuer grants and record scope rechecked",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/v1/store/merchant/products": {
      "get": {
        "operationId": "get_api_v1_store_merchant_products",
        "tags": [
          "merchant-server"
        ],
        "summary": "GET /api/v1/store/merchant/products",
        "description": "Every endpoint retains current publication, package, grant, record, origin and provider guards.",
        "security": [
          {
            "StoreMerchant": []
          }
        ],
        "parameters": [
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": ""
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "const": 1
                    },
                    "source": {
                      "const": "emacron"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "name": {
                            "type": "string",
                            "maxLength": 4000
                          },
                          "sku": {
                            "anyOf": [
                              {
                                "type": "string",
                                "maxLength": 4000
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "is_active": {
                            "type": "boolean"
                          },
                          "has_variants": {
                            "type": "boolean"
                          },
                          "store_published": {
                            "type": "boolean"
                          },
                          "updated_at": {
                            "type": "string",
                            "format": "date-time"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "sku",
                          "is_active",
                          "has_variants",
                          "store_published",
                          "updated_at"
                        ],
                        "additionalProperties": false
                      },
                      "maxItems": 10000
                    },
                    "has_more": {
                      "type": "boolean"
                    },
                    "next_cursor": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "version",
                    "source",
                    "items",
                    "has_more",
                    "next_cursor"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeMerchantApi.ts",
          "line": 34
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "merchant-server",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current scoped private key; original issuer grants and record scope rechecked",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    },
    "/api/v1/store/merchant/variants": {
      "get": {
        "operationId": "get_api_v1_store_merchant_variants",
        "tags": [
          "merchant-server"
        ],
        "summary": "GET /api/v1/store/merchant/variants",
        "description": "Every endpoint retains current publication, package, grant, record, origin and provider guards.",
        "security": [
          {
            "StoreMerchant": []
          }
        ],
        "parameters": [
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": ""
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Verified current response; optional additional fields preserve compatible evolution.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "const": 1
                    },
                    "source": {
                      "const": "emacron"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "product_id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "name": {
                            "type": "string",
                            "maxLength": 4000
                          },
                          "sku": {
                            "anyOf": [
                              {
                                "type": "string",
                                "maxLength": 4000
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "is_active": {
                            "type": "boolean"
                          },
                          "stock_qty": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 2147483647
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "attributes": {
                            "type": "object",
                            "properties": {},
                            "required": [],
                            "additionalProperties": true
                          }
                        },
                        "required": [
                          "id",
                          "product_id",
                          "name",
                          "sku",
                          "is_active",
                          "stock_qty",
                          "attributes"
                        ],
                        "additionalProperties": false
                      },
                      "maxItems": 10000
                    },
                    "has_more": {
                      "type": "boolean"
                    },
                    "next_cursor": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "version",
                    "source",
                    "items",
                    "has_more",
                    "next_cursor"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State changed or outcome uncertain. Inspect saved facts before a deliberate retry.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Endpoint-specific validation/access/unavailability; see error message.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Application/provider limit. Honor Retry-After; remaining provider quota is not implied.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Seconds or HTTP date when supplied; SDK bounds and exposes this metadata."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Current facts/provider could not be verified. No automatic write retry is safe.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-implementation-source": {
          "file": "src/routes/storeMerchantApi.ts",
          "line": 36
        },
        "x-automatic-write-retry": false,
        "x-ownership": {
          "audience": "merchant-server",
          "store": "Resolved from saved slug or authenticated merchant workspace; never caller workspace_id",
          "proof": "Current scoped private key; original issuer grants and record scope rechecked",
          "idempotency": "request_key identifies a deliberate operation, never authenticates a caller"
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "StoreCustomer": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Store-Customer",
        "description": "Customer-only opaque session, not employee JWT."
      },
      "StoreTracking": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Store-Tracking",
        "description": "Read-only private receipt proof. Never authority to mutate, place, release or create a payment."
      },
      "StoreCheckout": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Store-Checkout",
        "description": "Prepared caller-owned private checkout bearer, retained across uncertain responses."
      },
      "StoreMerchant": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "esm_256_bit_secret",
        "description": "Private server only. Origin/X-API-Key refused. Expiry/revocation/current issuer/package/grants rechecked per request."
      }
    },
    "schemas": {
      "Uuid": {
        "type": "string",
        "format": "uuid"
      },
      "Timestamp": {
        "type": "string",
        "format": "date-time"
      },
      "PrivateToken": {
        "type": "string",
        "minLength": 64,
        "maxLength": 64,
        "pattern": "^[a-f0-9]{64}$",
        "description": "Opaque Store-specific proof; retain privately. Never log or put in a URL."
      },
      "ExactMinor": {
        "type": "string",
        "pattern": "^-?[0-9]+$",
        "description": "Exact integer minor units. Parse with arbitrary precision; never silently coerce null/unknown to zero."
      },
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "maxLength": 2000
          },
          "code": {
            "type": "string",
            "maxLength": 120
          },
          "definitive_rejection": {
            "type": "boolean"
          }
        },
        "required": [
          "error"
        ],
        "additionalProperties": true
      },
      "Preferences": {
        "type": "object",
        "properties": {
          "order_updates_email": {
            "type": "boolean"
          },
          "order_updates_whatsapp": {
            "type": "boolean"
          }
        },
        "required": [],
        "additionalProperties": false
      },
      "CartLine": {
        "type": "object",
        "properties": {
          "product_id": {
            "type": "string",
            "format": "uuid"
          },
          "variant_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "quantity": {
            "type": "integer",
            "minimum": 1,
            "maximum": 10000
          }
        },
        "required": [
          "product_id",
          "quantity"
        ],
        "additionalProperties": false
      },
      "Country": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "maxLength": 2
          },
          "name": {
            "type": "string",
            "maxLength": 200
          }
        },
        "required": [
          "code",
          "name"
        ],
        "additionalProperties": false
      },
      "Address": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 200
          },
          "phone": {
            "type": "string",
            "maxLength": 30
          },
          "email": {
            "type": "string",
            "maxLength": 320
          },
          "address1": {
            "type": "string",
            "maxLength": 500
          },
          "address2": {
            "type": "string",
            "maxLength": 500
          },
          "city": {
            "type": "string",
            "maxLength": 200
          },
          "province": {
            "type": "string",
            "maxLength": 200
          },
          "zip": {
            "type": "string",
            "maxLength": 32
          },
          "country": {
            "type": "string",
            "pattern": "^[A-Z]{2}$"
          }
        },
        "required": [
          "name",
          "address1",
          "city",
          "province",
          "zip",
          "country"
        ],
        "additionalProperties": false
      },
      "Pricing": {
        "type": "object",
        "properties": {
          "currency": {
            "type": "string",
            "pattern": "^[A-Z]{3}$"
          },
          "currency_exponent": {
            "type": "integer",
            "minimum": 0,
            "maximum": 4
          },
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "product_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "variant_id": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "uuid"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "name": {
                  "type": "string",
                  "maxLength": 4000
                },
                "qty": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 2147483647
                },
                "unit_price": {
                  "type": [
                    "string",
                    "number"
                  ]
                }
              },
              "required": [],
              "additionalProperties": true
            },
            "maxItems": 10000
          },
          "items_subtotal_minor": {
            "$ref": "#/components/schemas/ExactMinor"
          },
          "net_minor": {
            "$ref": "#/components/schemas/ExactMinor"
          },
          "tax_minor": {
            "$ref": "#/components/schemas/ExactMinor"
          },
          "delivery_minor": {
            "$ref": "#/components/schemas/ExactMinor"
          },
          "total_minor": {
            "$ref": "#/components/schemas/ExactMinor"
          }
        },
        "required": [
          "currency",
          "currency_exponent",
          "total_minor"
        ],
        "additionalProperties": true
      },
      "Product": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "maxLength": 4000
          },
          "sku": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ]
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 20000
              },
              {
                "type": "null"
              }
            ]
          },
          "currency": {
            "type": "string",
            "maxLength": 3
          },
          "unit_price": {
            "type": [
              "string",
              "number",
              "null"
            ]
          },
          "has_variants": {
            "type": "boolean"
          },
          "image_url": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2048
              },
              {
                "type": "null"
              }
            ]
          },
          "stock_qty": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 2147483647
              },
              {
                "type": "null"
              }
            ]
          },
          "available": {
            "type": "boolean"
          },
          "slug": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "name"
        ],
        "additionalProperties": true
      },
      "Option": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "product_id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "maxLength": 4000
          },
          "sku": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ]
          },
          "stock_qty": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 2147483647
              },
              {
                "type": "null"
              }
            ]
          },
          "price": {
            "type": [
              "string",
              "number",
              "null"
            ]
          },
          "attributes": {
            "type": "object",
            "properties": {},
            "required": [],
            "additionalProperties": true
          },
          "is_active": {
            "type": "boolean"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": true
      },
      "Order": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "order_number": {
            "type": "string",
            "maxLength": 100
          },
          "state": {
            "type": "string",
            "enum": [
              "placed",
              "cancelled"
            ]
          },
          "payment_status": {
            "type": "string",
            "enum": [
              "unpaid",
              "not_required",
              "paid",
              "partially_refunded",
              "refunded"
            ]
          },
          "fulfillment_status": {
            "type": "string",
            "enum": [
              "unfulfilled",
              "partial",
              "fulfilled"
            ]
          },
          "payment_method": {
            "type": "string",
            "enum": [
              "manual",
              "cod",
              "razorpay"
            ]
          },
          "pricing": {
            "$ref": "#/components/schemas/Pricing"
          },
          "customer": {
            "$ref": "#/components/schemas/Buyer"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          }
        },
        "required": [
          "id",
          "state",
          "payment_status",
          "fulfillment_status"
        ],
        "additionalProperties": true
      },
      "Session": {
        "type": "object",
        "properties": {
          "token": {
            "$ref": "#/components/schemas/PrivateToken"
          },
          "refresh_token": {
            "$ref": "#/components/schemas/PrivateToken"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          },
          "refresh_expires_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "token",
          "refresh_token",
          "expires_at",
          "refresh_expires_at"
        ],
        "additionalProperties": false
      },
      "Challenge": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          },
          "resend_after_seconds": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "message": {
            "type": "string",
            "maxLength": 500
          }
        },
        "required": [
          "id",
          "expires_at",
          "resend_after_seconds",
          "message"
        ],
        "additionalProperties": false
      },
      "SignIn": {
        "type": "object",
        "properties": {
          "request_key": {
            "type": "string",
            "format": "uuid"
          },
          "method": {
            "type": "string",
            "enum": [
              "email",
              "whatsapp"
            ]
          },
          "destination": {
            "type": "string",
            "maxLength": 320
          },
          "flow_token": {
            "$ref": "#/components/schemas/PrivateToken"
          }
        },
        "required": [
          "request_key",
          "method",
          "destination",
          "flow_token"
        ],
        "additionalProperties": false
      },
      "Verify": {
        "type": "object",
        "properties": {
          "challenge_id": {
            "type": "string",
            "format": "uuid"
          },
          "flow_token": {
            "$ref": "#/components/schemas/PrivateToken"
          },
          "code": {
            "type": "string",
            "pattern": "^[0-9]{6}$"
          }
        },
        "required": [
          "challenge_id",
          "flow_token",
          "code"
        ],
        "additionalProperties": false
      },
      "ReviewInput": {
        "type": "object",
        "properties": {
          "request_key": {
            "type": "string",
            "format": "uuid"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CartLine"
            },
            "maxItems": 100
          },
          "delivery_method": {
            "type": "string",
            "enum": [
              "delivery",
              "pickup",
              "digital"
            ]
          },
          "destination": {
            "type": "object",
            "properties": {
              "country": {
                "type": "string",
                "maxLength": 2
              },
              "province": {
                "type": "string",
                "maxLength": 200
              },
              "gst_state_code": {
                "type": "string",
                "maxLength": 3
              },
              "zip": {
                "type": "string",
                "maxLength": 32
              }
            },
            "required": [
              "country"
            ],
            "additionalProperties": false
          },
          "payment_method": {
            "type": "string",
            "enum": [
              "manual",
              "cod",
              "razorpay",
              "free"
            ],
            "description": "free is available only for digital delivery with a server-verified zero total; it cannot create an unpaid positive order."
          },
          "accepted_policies": {
            "const": true
          },
          "discount_code": {
            "type": "string",
            "maxLength": 100
          },
          "billing_address": {
            "$ref": "#/components/schemas/Address"
          },
          "carrier_quote_id": {
            "type": "string",
            "format": "uuid"
          },
          "service_id": {
            "type": "string",
            "maxLength": 40
          },
          "pickup_slot": {
            "$ref": "#/components/schemas/DeliverySelection"
          },
          "whatsapp_handoff_token": {
            "$ref": "#/components/schemas/PrivateToken"
          },
          "b2b_address_id": {
            "type": "string",
            "format": "uuid"
          },
          "physical_cycle_id": {
            "type": "string",
            "format": "uuid"
          }
        },
        "required": [
          "request_key",
          "items",
          "delivery_method",
          "payment_method",
          "accepted_policies"
        ],
        "additionalProperties": true
      },
      "Review": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "pricing": {
            "$ref": "#/components/schemas/Pricing"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          },
          "order": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Order"
              },
              {
                "type": "null"
              }
            ]
          },
          "tracking_url": {
            "type": "string",
            "maxLength": 2048
          },
          "shop": {
            "type": "object",
            "properties": {
              "title": {
                "type": "string",
                "maxLength": 4000
              },
              "slug": {
                "type": "string",
                "maxLength": 64
              }
            },
            "required": [],
            "additionalProperties": true
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": true
      },
      "Mutation": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "version": {
            "type": "integer",
            "minimum": 0,
            "maximum": 2147483647
          },
          "removed": {
            "type": "boolean"
          },
          "saved": {
            "type": "boolean"
          },
          "claimed": {
            "type": "boolean"
          },
          "verified": {
            "type": "boolean"
          },
          "signed_out": {
            "type": "boolean"
          },
          "released": {
            "type": "boolean"
          }
        },
        "required": [],
        "additionalProperties": true
      },
      "Payment": {
        "type": "object",
        "properties": {
          "payment": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "state": {
                    "type": "string",
                    "enum": [
                      "prepared",
                      "unknown",
                      "open",
                      "paid",
                      "closed",
                      "review"
                    ]
                  },
                  "amount_minor": {
                    "type": [
                      "string",
                      "integer"
                    ]
                  },
                  "currency": {
                    "type": "string",
                    "maxLength": 3
                  },
                  "link_url": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 2048
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "provider_payment_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 200
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "refunded_minor": {
                    "type": [
                      "string",
                      "integer"
                    ]
                  },
                  "expires_at": {
                    "type": "string",
                    "format": "date-time"
                  }
                },
                "required": [
                  "id",
                  "state"
                ],
                "additionalProperties": true
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "payment"
        ],
        "additionalProperties": false
      },
      "Cancellation": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "order_id": {
            "type": "string",
            "format": "uuid"
          },
          "state": {
            "type": "string",
            "enum": [
              "open",
              "approved",
              "rejected",
              "withdrawn"
            ]
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "reason_code": {
            "type": "string",
            "maxLength": 120
          },
          "customer_message": {
            "type": "string",
            "maxLength": 2000
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": true
      },
      "Evidence": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "request_id": {
            "type": "string",
            "format": "uuid"
          },
          "state": {
            "type": "string",
            "enum": [
              "pending",
              "ready"
            ]
          },
          "byte_size": {
            "type": "integer",
            "minimum": 0,
            "maximum": 2147483647
          },
          "width": {
            "type": "integer",
            "minimum": 1,
            "maximum": 4096
          },
          "height": {
            "type": "integer",
            "minimum": 1,
            "maximum": 4096
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": true
      },
      "Profile": {
        "type": "object",
        "properties": {
          "customer": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "name": {
                "type": "string",
                "maxLength": 200
              },
              "version": {
                "type": "integer",
                "minimum": 1,
                "maximum": 2147483647
              },
              "preferences": {
                "$ref": "#/components/schemas/Preferences"
              },
              "created_at": {
                "type": "string",
                "format": "date-time"
              }
            },
            "required": [
              "id",
              "name",
              "version",
              "preferences",
              "created_at"
            ],
            "additionalProperties": false
          },
          "identities": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "method": {
                  "type": "string",
                  "enum": [
                    "email",
                    "whatsapp"
                  ]
                },
                "destination": {
                  "type": "string",
                  "maxLength": 320
                },
                "verified_at": {
                  "type": "string",
                  "format": "date-time"
                }
              },
              "required": [
                "id",
                "method",
                "destination",
                "verified_at"
              ],
              "additionalProperties": false
            },
            "maxItems": 10000
          },
          "countries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Country"
            },
            "maxItems": 10000
          },
          "states": {
            "type": "object",
            "properties": {},
            "required": [],
            "additionalProperties": {
              "type": "string",
              "maxLength": 200
            }
          }
        },
        "required": [
          "customer",
          "identities",
          "countries",
          "states"
        ],
        "additionalProperties": false
      },
      "SavedAddress": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "purpose": {
            "type": "string",
            "enum": [
              "delivery",
              "billing"
            ]
          },
          "address": {
            "$ref": "#/components/schemas/Address"
          },
          "is_default": {
            "type": "boolean"
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          }
        },
        "required": [
          "id",
          "purpose",
          "address",
          "is_default",
          "version"
        ],
        "additionalProperties": true
      },
      "Cart": {
        "type": "object",
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 0,
            "maximum": 2147483647
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CartLine"
            },
            "maxItems": 100
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "version",
          "items"
        ],
        "additionalProperties": true
      },
      "ProductReview": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "product_id": {
            "type": "string",
            "format": "uuid"
          },
          "order_id": {
            "type": "string",
            "format": "uuid"
          },
          "line_id": {
            "type": "string",
            "format": "uuid"
          },
          "rating": {
            "type": "integer",
            "minimum": 1,
            "maximum": 5
          },
          "title": {
            "type": "string",
            "maxLength": 120
          },
          "body": {
            "type": "string",
            "maxLength": 4000
          },
          "state": {
            "type": "string",
            "enum": [
              "pending",
              "approved",
              "rejected"
            ]
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": true
      },
      "Wishlist": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "product_id": {
            "type": "string",
            "format": "uuid"
          },
          "variant_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "product": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Product"
              },
              {
                "type": "null"
              }
            ]
          },
          "available": {
            "type": "boolean"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": true
      },
      "Eligibility": {
        "type": "object",
        "properties": {
          "eligible": {
            "type": "boolean"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 4000
              },
              {
                "type": "null"
              }
            ]
          },
          "order_id": {
            "type": "string",
            "format": "uuid"
          },
          "policy": {
            "type": "object",
            "properties": {},
            "required": [],
            "additionalProperties": true
          }
        },
        "required": [],
        "additionalProperties": true
      },
      "StoreSettings": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string",
            "maxLength": 64
          },
          "title": {
            "type": "string",
            "maxLength": 200
          },
          "description": {
            "type": "string",
            "maxLength": 5000
          },
          "currency": {
            "type": "string",
            "maxLength": 3
          },
          "version": {
            "type": "integer",
            "minimum": 0,
            "maximum": 2147483647
          },
          "allow_delivery": {
            "type": "boolean"
          },
          "allow_pickup": {
            "type": "boolean"
          },
          "allow_cod": {
            "type": "boolean"
          },
          "allow_manual": {
            "type": "boolean"
          },
          "allow_razorpay": {
            "type": "boolean"
          },
          "privacy_policy": {
            "type": "string",
            "maxLength": 20000
          },
          "terms_policy": {
            "type": "string",
            "maxLength": 20000
          },
          "shipping_policy": {
            "type": "string",
            "maxLength": 20000
          },
          "returns_policy": {
            "type": "string",
            "maxLength": 20000
          },
          "support_email": {
            "type": "string",
            "maxLength": 320
          },
          "support_phone": {
            "type": "string",
            "maxLength": 30
          },
          "delivery_countries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Country"
            },
            "maxItems": 10000
          },
          "billing_countries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Country"
            },
            "maxItems": 10000
          },
          "commerce_capabilities": {
            "type": "object",
            "properties": {},
            "required": [],
            "additionalProperties": true
          },
          "allow_zero_total_digital": {
            "type": "boolean"
          },
          "carrier_checkout_enabled": {
            "type": "boolean"
          },
          "presentation": {
            "$ref": "#/components/schemas/StorePresentation"
          },
          "market_pricing": {
            "type": "object",
            "properties": {
              "mode": {
                "const": "single_currency"
              },
              "currency": {
                "type": "string",
                "maxLength": 3
              },
              "foreign_exchange": {
                "const": false
              },
              "price_lists_enabled": {
                "const": false
              }
            },
            "required": [
              "mode",
              "currency",
              "foreign_exchange",
              "price_lists_enabled"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "slug",
          "title",
          "currency",
          "version"
        ],
        "additionalProperties": true
      },
      "Page": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {},
              "required": [],
              "additionalProperties": true
            },
            "maxItems": 10000
          },
          "page": {
            "type": "integer",
            "minimum": 0,
            "maximum": 2147483647
          },
          "has_more": {
            "type": "boolean"
          },
          "total": {
            "type": [
              "string",
              "integer"
            ]
          }
        },
        "required": [
          "items"
        ],
        "additionalProperties": true
      },
      "MerchantCapabilities": {
        "type": "object",
        "properties": {
          "version": {
            "const": 1
          },
          "source": {
            "const": "emacron"
          },
          "granted_scopes": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "products:read",
                "orders:read",
                "inventory:read",
                "shipping:write"
              ]
            },
            "maxItems": 4
          },
          "available_scopes": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 100
            },
            "maxItems": 4
          },
          "writes": {
            "type": "boolean"
          },
          "limits": {
            "type": "object",
            "properties": {
              "per_key_minute": {
                "const": 60
              },
              "per_key_rolling_hour": {
                "const": 1000
              },
              "max_page": {
                "const": 100
              }
            },
            "required": [
              "per_key_minute",
              "per_key_rolling_hour",
              "max_page"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "version",
          "source",
          "granted_scopes",
          "writes",
          "limits"
        ],
        "additionalProperties": true
      },
      "Buyer": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 200
          },
          "phone": {
            "type": "string",
            "maxLength": 30
          },
          "email": {
            "type": "string",
            "maxLength": 320
          },
          "address1": {
            "type": "string",
            "maxLength": 500
          },
          "address2": {
            "type": "string",
            "maxLength": 500
          },
          "city": {
            "type": "string",
            "maxLength": 200
          },
          "province": {
            "type": "string",
            "maxLength": 200
          },
          "zip": {
            "type": "string",
            "maxLength": 32
          },
          "country": {
            "type": "string",
            "pattern": "^[A-Z]{2}$"
          }
        },
        "required": [
          "name"
        ],
        "additionalProperties": false
      },
      "CancellationMutation": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string",
            "format": "uuid"
          },
          "state": {
            "type": "string",
            "enum": [
              "open",
              "approved",
              "rejected",
              "withdrawn"
            ]
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "order_id": {
            "type": "string",
            "format": "uuid"
          },
          "order_cancelled": {
            "type": "boolean"
          }
        },
        "required": [
          "request_id",
          "state",
          "version",
          "order_id",
          "order_cancelled"
        ],
        "additionalProperties": false
      },
      "ProductPage": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Product"
            },
            "maxItems": 10000
          },
          "page": {
            "type": "integer",
            "minimum": 0,
            "maximum": 2147483647
          },
          "has_more": {
            "type": "boolean"
          },
          "total": {
            "type": [
              "string",
              "integer"
            ]
          }
        },
        "required": [
          "items"
        ],
        "additionalProperties": true
      },
      "OptionPage": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Option"
            },
            "maxItems": 10000
          },
          "page": {
            "type": "integer",
            "minimum": 0,
            "maximum": 2147483647
          },
          "has_more": {
            "type": "boolean"
          },
          "total": {
            "type": [
              "string",
              "integer"
            ]
          }
        },
        "required": [
          "items"
        ],
        "additionalProperties": true
      },
      "CancellationPage": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cancellation"
            },
            "maxItems": 10000
          },
          "page": {
            "type": "integer",
            "minimum": 0,
            "maximum": 2147483647
          },
          "has_more": {
            "type": "boolean"
          },
          "total": {
            "type": [
              "string",
              "integer"
            ]
          }
        },
        "required": [
          "items"
        ],
        "additionalProperties": true
      },
      "EvidencePage": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Evidence"
            },
            "maxItems": 10000
          },
          "page": {
            "type": "integer",
            "minimum": 0,
            "maximum": 2147483647
          },
          "has_more": {
            "type": "boolean"
          },
          "total": {
            "type": [
              "string",
              "integer"
            ]
          }
        },
        "required": [
          "items"
        ],
        "additionalProperties": true
      },
      "ProductReviewPage": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProductReview"
            },
            "maxItems": 10000
          },
          "page": {
            "type": "integer",
            "minimum": 0,
            "maximum": 2147483647
          },
          "has_more": {
            "type": "boolean"
          },
          "total": {
            "type": [
              "string",
              "integer"
            ]
          }
        },
        "required": [
          "items"
        ],
        "additionalProperties": true
      },
      "WishlistPage": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Wishlist"
            },
            "maxItems": 10000
          },
          "page": {
            "type": "integer",
            "minimum": 0,
            "maximum": 2147483647
          },
          "has_more": {
            "type": "boolean"
          },
          "total": {
            "type": [
              "string",
              "integer"
            ]
          }
        },
        "required": [
          "items"
        ],
        "additionalProperties": true
      },
      "OrderPage": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "review_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "order": {
                  "$ref": "#/components/schemas/Order"
                }
              },
              "required": [
                "review_id",
                "order"
              ],
              "additionalProperties": false
            },
            "maxItems": 10000
          },
          "page": {
            "type": "integer",
            "minimum": 0,
            "maximum": 2147483647
          },
          "has_more": {
            "type": "boolean"
          },
          "total": {
            "type": [
              "string",
              "integer"
            ]
          }
        },
        "required": [
          "items"
        ],
        "additionalProperties": true
      },
      "ShipmentPage": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "quantity": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 2147483647
                },
                "tracking": {
                  "type": "object",
                  "properties": {},
                  "required": [],
                  "additionalProperties": true
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time"
                }
              },
              "required": [
                "id",
                "quantity",
                "tracking",
                "created_at"
              ],
              "additionalProperties": false
            },
            "maxItems": 10000
          },
          "page": {
            "type": "integer",
            "minimum": 0,
            "maximum": 2147483647
          },
          "has_more": {
            "type": "boolean"
          },
          "total": {
            "type": [
              "string",
              "integer"
            ]
          },
          "tracking_events": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MerchantTrackingEvent"
            },
            "maxItems": 20
          },
          "tracking_source": {
            "const": "merchant_reported"
          },
          "carrier_events": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "shipment_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "status": {
                  "type": "string",
                  "maxLength": 40
                },
                "occurred_at": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "provider_local_time": {
                  "anyOf": [
                    {
                      "type": "string",
                      "maxLength": 40
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "retrieved_at": {
                  "type": "string",
                  "format": "date-time"
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "provider_scan",
                    "observation"
                  ]
                }
              },
              "required": [
                "id",
                "shipment_id",
                "status",
                "occurred_at",
                "provider_local_time",
                "retrieved_at",
                "kind"
              ],
              "additionalProperties": false
            },
            "maxItems": 50
          }
        },
        "required": [
          "items"
        ],
        "additionalProperties": true
      },
      "SitemapPage": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "slug": {
                  "anyOf": [
                    {
                      "type": "string",
                      "maxLength": 200
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "updated_at": {
                  "type": "string",
                  "format": "date-time"
                }
              },
              "required": [],
              "additionalProperties": true
            },
            "maxItems": 10000
          },
          "page": {
            "type": "integer",
            "minimum": 0,
            "maximum": 2147483647
          },
          "has_more": {
            "type": "boolean"
          },
          "total": {
            "type": [
              "string",
              "integer"
            ]
          }
        },
        "required": [
          "items"
        ],
        "additionalProperties": true
      },
      "CreditAccount": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "currency": {
            "type": "string",
            "maxLength": 3
          },
          "currency_exponent": {
            "type": "integer",
            "minimum": 0,
            "maximum": 4
          },
          "recorded_balance_minor": {
            "$ref": "#/components/schemas/ExactMinor"
          },
          "available_minor": {
            "$ref": "#/components/schemas/ExactMinor"
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "expired": {
            "type": "boolean"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "currency",
          "currency_exponent",
          "recorded_balance_minor",
          "available_minor",
          "expires_at",
          "expired",
          "created_at"
        ],
        "additionalProperties": false
      },
      "CreditEntry": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "enum": [
              "issue",
              "redeem",
              "refund",
              "expire"
            ]
          },
          "delta_minor": {
            "$ref": "#/components/schemas/ExactMinor"
          },
          "order_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "original_debit_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "kind",
          "delta_minor",
          "order_id",
          "original_debit_id",
          "created_at"
        ],
        "additionalProperties": false
      },
      "MerchantTrackingEvent": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "fulfillment_id": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "enum": [
              "in_transit",
              "out_for_delivery",
              "delivered",
              "exception",
              "returned"
            ]
          },
          "occurred_at": {
            "type": "string",
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "fulfillment_id",
          "status",
          "occurred_at"
        ],
        "additionalProperties": true
      },
      "MerchantShippingRead": {
        "type": "object",
        "properties": {
          "order": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "version": {
                "type": "integer",
                "minimum": 1,
                "maximum": 2147483647
              },
              "state": {
                "type": "string",
                "maxLength": 4000
              },
              "fulfillment_status": {
                "type": "string",
                "maxLength": 4000
              }
            },
            "required": [
              "id",
              "version",
              "state",
              "fulfillment_status"
            ],
            "additionalProperties": false
          },
          "lines": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "product_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "variant_id": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "uuid"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "quantity": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 2147483647
                },
                "available_to_fulfill": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "required": [
                "id",
                "product_id",
                "quantity"
              ],
              "additionalProperties": false
            },
            "maxItems": 100
          },
          "fulfillments": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "action_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "line_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "quantity": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 2147483647
                },
                "tracking": {
                  "type": "object",
                  "properties": {},
                  "required": [],
                  "additionalProperties": true
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time"
                }
              },
              "required": [
                "action_id",
                "line_id",
                "quantity",
                "tracking",
                "created_at"
              ],
              "additionalProperties": false
            },
            "maxItems": 50
          },
          "tracking_events": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MerchantTrackingEvent"
            },
            "maxItems": 50
          },
          "page": {
            "type": "integer",
            "minimum": 0,
            "maximum": 2147483647
          },
          "fulfillments_has_more": {
            "type": "boolean"
          },
          "tracking_has_more": {
            "type": "boolean"
          },
          "tracking_source": {
            "const": "merchant_reported"
          },
          "tracking_effect": {
            "type": "string",
            "maxLength": 4000
          }
        },
        "required": [
          "order",
          "lines",
          "fulfillments",
          "tracking_events",
          "page",
          "fulfillments_has_more",
          "tracking_has_more",
          "tracking_source"
        ],
        "additionalProperties": true
      },
      "MerchantShippingWrite": {
        "type": "object",
        "properties": {
          "request_key": {
            "type": "string",
            "format": "uuid"
          },
          "confirmed": {
            "const": true
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          }
        },
        "required": [
          "request_key",
          "confirmed",
          "version"
        ],
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "request_key": {
                "type": "string",
                "format": "uuid"
              },
              "confirmed": {
                "const": true
              },
              "version": {
                "type": "integer",
                "minimum": 1,
                "maximum": 2147483647
              },
              "action": {
                "const": "fulfill"
              },
              "lines": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "line_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "quantity": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 10000
                    }
                  },
                  "required": [
                    "line_id",
                    "quantity"
                  ],
                  "additionalProperties": false
                },
                "maxItems": 50
              },
              "tracking": {
                "type": "object",
                "properties": {
                  "carrier": {
                    "type": "string",
                    "maxLength": 200
                  },
                  "number": {
                    "type": "string",
                    "maxLength": 200
                  },
                  "url": {
                    "type": "string",
                    "format": "uri",
                    "pattern": "^https://",
                    "maxLength": 2000
                  }
                },
                "required": [],
                "additionalProperties": false
              }
            },
            "required": [
              "request_key",
              "confirmed",
              "version",
              "action",
              "lines"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "request_key": {
                "type": "string",
                "format": "uuid"
              },
              "confirmed": {
                "const": true
              },
              "version": {
                "type": "integer",
                "minimum": 1,
                "maximum": 2147483647
              },
              "action": {
                "const": "tracking"
              },
              "fulfillment_id": {
                "type": "string",
                "format": "uuid"
              },
              "status": {
                "type": "string",
                "enum": [
                  "in_transit",
                  "out_for_delivery",
                  "delivered",
                  "exception",
                  "returned"
                ]
              },
              "occurred_at": {
                "type": "string",
                "format": "date-time"
              }
            },
            "required": [
              "request_key",
              "confirmed",
              "version",
              "action",
              "fulfillment_id",
              "status",
              "occurred_at"
            ],
            "additionalProperties": false
          }
        ]
      },
      "DeliverySelection": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 40
          },
          "start": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "start"
        ],
        "additionalProperties": false
      },
      "DeliveryChoice": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 40
          },
          "name": {
            "type": "string",
            "maxLength": 100
          },
          "kind": {
            "type": "string",
            "enum": [
              "delivery",
              "pickup",
              "digital"
            ]
          },
          "currency": {
            "type": "string",
            "maxLength": 3
          },
          "fee_minor": {
            "$ref": "#/components/schemas/ExactMinor"
          },
          "total_minor": {
            "$ref": "#/components/schemas/ExactMinor"
          },
          "currency_exponent": {
            "type": "integer",
            "minimum": 0,
            "maximum": 4
          },
          "payment_methods": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "cod",
                "manual",
                "razorpay"
              ]
            },
            "maxItems": 3
          },
          "pickup_address": {
            "anyOf": [
              {
                "type": "object",
                "properties": {},
                "required": [],
                "additionalProperties": true
              },
              {
                "type": "null"
              }
            ]
          },
          "requires_pickup_slot": {
            "type": "boolean"
          },
          "timezone": {
            "type": "string",
            "maxLength": 100
          },
          "authority": {
            "type": "string",
            "enum": [
              "merchant_rules_not_carrier_quote",
              "shiprocket_estimate"
            ]
          },
          "carrier_quotes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "courier_name": {
                  "type": "string",
                  "maxLength": 200
                },
                "fee_minor": {
                  "$ref": "#/components/schemas/ExactMinor"
                },
                "payment_methods": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "manual",
                      "cod",
                      "razorpay"
                    ]
                  },
                  "maxItems": 3
                },
                "expires_at": {
                  "type": "string",
                  "format": "date-time"
                },
                "tax_inclusion": {
                  "const": "unverified"
                },
                "fees": {
                  "type": "object",
                  "properties": {},
                  "required": [],
                  "additionalProperties": true
                },
                "total_minor": {
                  "$ref": "#/components/schemas/ExactMinor"
                }
              },
              "required": [
                "id",
                "courier_name",
                "fee_minor",
                "payment_methods",
                "expires_at"
              ],
              "additionalProperties": true
            },
            "maxItems": 40
          }
        },
        "required": [
          "id",
          "name",
          "kind",
          "currency",
          "fee_minor",
          "total_minor",
          "payment_methods",
          "requires_pickup_slot"
        ],
        "additionalProperties": true
      },
      "ReturnPolicy": {
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean"
          },
          "refund_requests_enabled": {
            "type": "boolean"
          },
          "window_days": {
            "type": "integer",
            "minimum": 1,
            "maximum": 90
          },
          "window_basis": {
            "type": "string",
            "enum": [
              "shipment",
              "staff_delivery"
            ]
          },
          "reasons": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 120
            },
            "maxItems": 10
          },
          "conditions": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "sellable",
                "damaged"
              ]
            },
            "maxItems": 2
          },
          "return_shipping": {
            "type": "string",
            "enum": [
              "merchant",
              "customer",
              "review"
            ]
          },
          "instructions": {
            "type": "string",
            "maxLength": 2000
          },
          "version": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000
          },
          "exchange_supported": {
            "const": false,
            "description": "The return/refund request kind does not perform an exchange. Whole-order exchanges use separate owned exchange-requests endpoints."
          },
          "refund_submission": {
            "const": "separate_original_merchant_financial_operation"
          }
        },
        "required": [
          "enabled",
          "refund_requests_enabled",
          "window_days",
          "window_basis",
          "reasons",
          "conditions",
          "return_shipping",
          "instructions",
          "version"
        ],
        "additionalProperties": true
      },
      "ReturnLine": {
        "type": "object",
        "properties": {
          "line_id": {
            "type": "string",
            "format": "uuid"
          },
          "quantity": {
            "type": "integer",
            "minimum": 1,
            "maximum": 10000
          }
        },
        "required": [
          "line_id",
          "quantity"
        ],
        "additionalProperties": false
      },
      "ReturnRequest": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "order_id": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "enum": [
              "return",
              "refund"
            ]
          },
          "state": {
            "type": "string",
            "enum": [
              "open",
              "approved",
              "partially_received",
              "received",
              "rejected",
              "withdrawn"
            ]
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "reason_code": {
            "type": "string",
            "maxLength": 120
          },
          "customer_message": {
            "type": "string",
            "maxLength": 2000
          },
          "currency": {
            "type": "string",
            "maxLength": 3
          },
          "refund_requested": {
            "type": "boolean"
          },
          "requested_amount_minor": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ExactMinor"
              },
              {
                "type": "null"
              }
            ]
          },
          "policy": {
            "$ref": "#/components/schemas/ReturnPolicy"
          },
          "lines": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "line_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "quantity": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 2147483647
                },
                "received_quantity": {
                  "type": [
                    "integer",
                    "string"
                  ]
                }
              },
              "required": [
                "line_id",
                "quantity"
              ],
              "additionalProperties": true
            },
            "maxItems": 50
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "order_id",
          "kind",
          "state",
          "version"
        ],
        "additionalProperties": true
      },
      "ReturnMutation": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string",
            "format": "uuid"
          },
          "order_id": {
            "type": "string",
            "format": "uuid"
          },
          "state": {
            "type": "string",
            "enum": [
              "open",
              "approved",
              "partially_received",
              "received",
              "rejected",
              "withdrawn"
            ]
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          }
        },
        "required": [
          "request_id",
          "order_id",
          "state",
          "version"
        ],
        "additionalProperties": true
      },
      "ReturnEligibility": {
        "type": "object",
        "properties": {
          "eligible": {
            "type": "boolean"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 4000
              },
              {
                "type": "null"
              }
            ]
          },
          "refund_eligible": {
            "type": "boolean"
          },
          "refund_reason": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 4000
              },
              {
                "type": "null"
              }
            ]
          },
          "refund_available_minor": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ExactMinor"
              },
              {
                "type": "null"
              }
            ]
          },
          "currency": {
            "type": "string",
            "maxLength": 3
          },
          "policy": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ReturnPolicy"
              },
              {
                "type": "null"
              }
            ]
          },
          "order_version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "lines": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "line_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "product_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "variant_id": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "uuid"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "quantity": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 2147483647
                },
                "shipped_quantity": {
                  "type": [
                    "integer",
                    "string"
                  ]
                },
                "returned_quantity": {
                  "type": [
                    "integer",
                    "string"
                  ]
                },
                "pending_quantity": {
                  "type": [
                    "integer",
                    "string"
                  ]
                },
                "available_quantity": {
                  "type": [
                    "integer",
                    "string"
                  ]
                },
                "eligible": {
                  "type": "boolean"
                },
                "reason": {
                  "anyOf": [
                    {
                      "type": "string",
                      "maxLength": 4000
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "deadline": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "line_id",
                "available_quantity",
                "eligible"
              ],
              "additionalProperties": true
            },
            "maxItems": 50
          },
          "exchange_supported": {
            "const": false
          }
        },
        "required": [
          "eligible",
          "reason",
          "refund_eligible",
          "refund_reason",
          "lines",
          "order_version",
          "exchange_supported"
        ],
        "additionalProperties": true
      },
      "ReturnRequestPage": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReturnRequest"
            },
            "maxItems": 10000
          },
          "page": {
            "type": "integer",
            "minimum": 0,
            "maximum": 2147483647
          },
          "has_more": {
            "type": "boolean"
          },
          "total": {
            "type": [
              "string",
              "integer"
            ]
          },
          "as_of": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "items"
        ],
        "additionalProperties": true
      },
      "StorePresentation": {
        "type": "object",
        "properties": {
          "version": {
            "const": 1
          },
          "logo_image_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "logo_url": {
            "type": "string",
            "maxLength": 2048
          },
          "logo_alt": {
            "type": "string",
            "maxLength": 200
          },
          "announcement": {
            "type": "string",
            "maxLength": 300
          },
          "about_title": {
            "type": "string",
            "maxLength": 160
          },
          "about_text": {
            "type": "string",
            "maxLength": 4000
          },
          "footer_text": {
            "type": "string",
            "maxLength": 500
          },
          "seo_title": {
            "type": "string",
            "maxLength": 160
          },
          "seo_description": {
            "type": "string",
            "maxLength": 320
          },
          "locale": {
            "type": "string",
            "maxLength": 35
          },
          "timezone": {
            "type": "string",
            "maxLength": 100
          },
          "navigation": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "label": {
                  "type": "string",
                  "maxLength": 80
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "products",
                    "category",
                    "policies",
                    "account",
                    "external"
                  ]
                },
                "value": {
                  "type": "string",
                  "maxLength": 2048
                }
              },
              "required": [
                "label",
                "kind",
                "value"
              ],
              "additionalProperties": false
            },
            "maxItems": 8
          }
        },
        "required": [],
        "additionalProperties": false
      },
      "ExchangeItem": {
        "type": "object",
        "properties": {
          "product_id": {
            "type": "string",
            "format": "uuid"
          },
          "variant_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "quantity": {
            "type": "integer",
            "minimum": 1,
            "maximum": 9999
          }
        },
        "required": [
          "product_id",
          "quantity"
        ],
        "additionalProperties": false
      },
      "ExchangeMutation": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "return_request_id": {
            "type": "string",
            "format": "uuid"
          },
          "state": {
            "type": "string",
            "enum": [
              "requested",
              "proposed",
              "accepted",
              "withdrawn"
            ]
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "financial_effect": {
            "const": "none"
          }
        },
        "required": [
          "id",
          "return_request_id",
          "state",
          "version",
          "financial_effect"
        ],
        "additionalProperties": false
      },
      "Exchange": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "order_id": {
            "type": "string",
            "format": "uuid"
          },
          "return_request_id": {
            "type": "string",
            "format": "uuid"
          },
          "replacement_order_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "state": {
            "type": "string",
            "enum": [
              "requested",
              "proposed",
              "accepted",
              "withdrawn"
            ]
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "replacement_items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "product_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "variant_id": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "uuid"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "quantity": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 9999
                },
                "name": {
                  "type": "string",
                  "maxLength": 300
                },
                "option": {
                  "anyOf": [
                    {
                      "type": "string",
                      "maxLength": 300
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "sku": {
                  "anyOf": [
                    {
                      "type": "string",
                      "maxLength": 200
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [],
              "additionalProperties": true
            },
            "maxItems": 50
          },
          "policy": {
            "type": "object",
            "properties": {},
            "required": [],
            "additionalProperties": true
          },
          "proposal": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "order_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "order_number": {
                    "type": "string",
                    "maxLength": 100
                  },
                  "version": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 2147483647
                  },
                  "pricing": {
                    "$ref": "#/components/schemas/Pricing"
                  },
                  "original_total_minor": {
                    "$ref": "#/components/schemas/ExactMinor"
                  },
                  "replacement_total_minor": {
                    "$ref": "#/components/schemas/ExactMinor"
                  },
                  "difference_minor": {
                    "$ref": "#/components/schemas/ExactMinor"
                  },
                  "settlement": {
                    "type": "string",
                    "maxLength": 2000
                  },
                  "payment_status": {
                    "type": "string",
                    "maxLength": 80
                  }
                },
                "required": [],
                "additionalProperties": true
              },
              {
                "type": "null"
              }
            ]
          },
          "original_total_minor": {
            "$ref": "#/components/schemas/ExactMinor"
          },
          "currency": {
            "type": "string",
            "maxLength": 3
          },
          "currency_exponent": {
            "type": "integer",
            "minimum": 0,
            "maximum": 4
          },
          "financial_effect": {
            "const": "none"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "order_id",
          "state",
          "version"
        ],
        "additionalProperties": true
      },
      "ExchangePage": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Exchange"
            },
            "maxItems": 10000
          },
          "page": {
            "type": "integer",
            "minimum": 0,
            "maximum": 2147483647
          },
          "has_more": {
            "type": "boolean"
          },
          "total": {
            "type": [
              "string",
              "integer"
            ]
          }
        },
        "required": [
          "items"
        ],
        "additionalProperties": true
      },
      "ComplaintMessage": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "author": {
            "type": "string",
            "enum": [
              "customer",
              "staff"
            ]
          },
          "body": {
            "type": "string",
            "maxLength": 5000
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "author",
          "body",
          "created_at"
        ],
        "additionalProperties": false
      },
      "Complaint": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "order_id": {
            "type": "string",
            "format": "uuid"
          },
          "order_number": {
            "type": "string",
            "maxLength": 100
          },
          "ticket_number": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "title": {
            "type": "string",
            "maxLength": 180
          },
          "status": {
            "type": "string",
            "enum": [
              "new",
              "open",
              "pending_customer",
              "pending_internal",
              "resolved",
              "closed"
            ]
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "source": {
            "const": "store"
          },
          "crm_linked": {
            "type": "boolean"
          },
          "messages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ComplaintMessage"
            },
            "maxItems": 20
          },
          "message_page": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "messages_has_more": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "order_id",
          "title",
          "status",
          "version"
        ],
        "additionalProperties": true
      },
      "ComplaintMutation": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "maxLength": 50
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "ticket_number": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          }
        },
        "required": [
          "id",
          "status",
          "version",
          "ticket_number"
        ],
        "additionalProperties": false
      },
      "ComplaintPage": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Complaint"
            },
            "maxItems": 10000
          },
          "page": {
            "type": "integer",
            "minimum": 0,
            "maximum": 2147483647
          },
          "has_more": {
            "type": "boolean"
          },
          "total": {
            "type": [
              "string",
              "integer"
            ]
          }
        },
        "required": [
          "items"
        ],
        "additionalProperties": true
      },
      "DigitalDownload": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "order_id": {
            "type": "string",
            "format": "uuid"
          },
          "order_number": {
            "type": "string",
            "maxLength": 100
          },
          "filename": {
            "type": "string",
            "maxLength": 160
          },
          "media_type": {
            "type": "string",
            "enum": [
              "application/pdf",
              "application/zip",
              "application/epub+zip",
              "audio/mpeg",
              "audio/mp4",
              "video/mp4"
            ]
          },
          "byte_size": {
            "type": "integer",
            "minimum": 1,
            "maximum": 26214400
          },
          "state": {
            "type": "string",
            "enum": [
              "pending_payment",
              "active",
              "revoked"
            ]
          },
          "downloads": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100
          },
          "download_limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "revocation_reason": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 500
              },
              {
                "type": "null"
              }
            ]
          },
          "downloadable": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "order_id",
          "order_number",
          "filename",
          "media_type",
          "byte_size",
          "state",
          "downloads",
          "download_limit",
          "expires_at",
          "version",
          "revocation_reason",
          "downloadable"
        ],
        "additionalProperties": false
      },
      "B2bCompanyAddress": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 200
          },
          "email": {
            "type": "string",
            "maxLength": 254
          },
          "phone": {
            "type": "string",
            "maxLength": 32
          },
          "address1": {
            "type": "string",
            "maxLength": 500
          },
          "city": {
            "type": "string",
            "maxLength": 200
          },
          "province": {
            "type": "string",
            "maxLength": 200
          },
          "zip": {
            "type": "string",
            "maxLength": 200
          },
          "country": {
            "type": "string",
            "pattern": "^[A-Z]{2}$"
          }
        },
        "required": [
          "name",
          "address1",
          "city",
          "province",
          "zip",
          "country"
        ],
        "additionalProperties": false
      },
      "B2bTier": {
        "type": "object",
        "properties": {
          "min_quantity": {
            "type": "integer",
            "minimum": 1,
            "maximum": 10000
          },
          "max_quantity": {
            "type": "integer",
            "minimum": 1,
            "maximum": 9999
          },
          "unit_price_minor": {
            "type": "string",
            "pattern": "^(0|[1-9][0-9]{0,14})$"
          }
        },
        "required": [
          "min_quantity",
          "unit_price_minor"
        ],
        "additionalProperties": false
      },
      "B2bOwned": {
        "type": "object",
        "properties": {
          "profile": {
            "type": "object",
            "properties": {
              "enabled": {
                "type": "boolean"
              },
              "currency": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 3
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "version": {
                "type": "integer",
                "minimum": 0,
                "maximum": 2147483647
              },
              "market_pricing": {
                "type": "boolean"
              },
              "market_countries": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[A-Z]{2}$"
                },
                "maxItems": 249,
                "uniqueItems": true
              },
              "pricing_profile": {
                "type": "string",
                "enum": [
                  "approved_company_store_currency",
                  "country_prices_store_currency"
                ]
              }
            },
            "required": [
              "enabled",
              "currency",
              "version"
            ],
            "additionalProperties": false
          },
          "membership": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "pending",
                      "approved",
                      "rejected",
                      "revoked"
                    ]
                  },
                  "role": {
                    "type": "string",
                    "maxLength": 30
                  },
                  "version": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 2147483647
                  }
                },
                "required": [
                  "id",
                  "status",
                  "version"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "company": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "legal_name": {
                    "type": "string",
                    "maxLength": 200
                  },
                  "country": {
                    "type": "string",
                    "maxLength": 2
                  },
                  "currency": {
                    "type": "string",
                    "maxLength": 3
                  },
                  "version": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 2147483647
                  }
                },
                "required": [
                  "id",
                  "legal_name",
                  "country",
                  "currency",
                  "version"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "addresses": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "purpose": {
                  "type": "string",
                  "enum": [
                    "billing",
                    "shipping"
                  ]
                },
                "address": {
                  "$ref": "#/components/schemas/B2bCompanyAddress"
                },
                "version": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 2147483647
                }
              },
              "required": [
                "id",
                "purpose",
                "address",
                "version"
              ],
              "additionalProperties": false
            },
            "maxItems": 10000
          },
          "price_list": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "name": {
                    "type": "string",
                    "maxLength": 120
                  },
                  "currency": {
                    "type": "string",
                    "maxLength": 3
                  },
                  "currency_exponent": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 4
                  },
                  "version": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 2147483647
                  },
                  "market_country": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 2
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "items": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "product_id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "variant_id": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "product_name": {
                          "type": "string",
                          "maxLength": 4000
                        },
                        "variant_name": {
                          "anyOf": [
                            {
                              "type": "string",
                              "maxLength": 4000
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "tiers": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/B2bTier"
                          },
                          "maxItems": 20
                        }
                      },
                      "required": [
                        "product_id",
                        "variant_id",
                        "product_name",
                        "variant_name",
                        "tiers"
                      ],
                      "additionalProperties": false
                    },
                    "maxItems": 500
                  }
                },
                "required": [
                  "id",
                  "name",
                  "currency",
                  "currency_exponent",
                  "version",
                  "items"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "profile",
          "membership",
          "company",
          "addresses",
          "price_list"
        ],
        "additionalProperties": false
      },
      "RecurringPlan": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "product_id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "maxLength": 200
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 20000
              },
              {
                "type": "null"
              }
            ]
          },
          "fulfillment_mode": {
            "const": "service_access"
          },
          "amount_minor": {
            "$ref": "#/components/schemas/ExactMinor"
          },
          "currency": {
            "const": "INR"
          },
          "period": {
            "type": "string",
            "enum": [
              "monthly",
              "yearly"
            ]
          },
          "interval": {
            "const": 1
          },
          "total_count": {
            "type": "integer",
            "minimum": 1,
            "maximum": 120
          },
          "terms_version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          }
        },
        "required": [
          "id",
          "product_id",
          "name",
          "description",
          "fulfillment_mode",
          "amount_minor",
          "currency",
          "period",
          "interval",
          "total_count",
          "terms_version"
        ],
        "additionalProperties": false
      },
      "RecurringCycle": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 120
          },
          "payment_id": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 120
              },
              {
                "type": "null"
              }
            ]
          },
          "state": {
            "type": "string",
            "enum": [
              "pending",
              "captured_verified",
              "refunded",
              "chargeback",
              "needs_review"
            ]
          },
          "invoice_status": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 50
              },
              {
                "type": "null"
              }
            ]
          },
          "payment_status": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 50
              },
              {
                "type": "null"
              }
            ]
          },
          "amount_minor": {
            "type": [
              "integer",
              "string",
              "null"
            ]
          },
          "amount_refunded_minor": {
            "type": [
              "integer",
              "string"
            ]
          },
          "currency": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 3
              },
              {
                "type": "null"
              }
            ]
          },
          "billing_start": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "billing_end": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "entitlement_state": {
            "type": "string",
            "enum": [
              "active",
              "inactive",
              "suspended",
              "ended"
            ]
          },
          "active_until": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "payment_id",
          "state",
          "invoice_status",
          "payment_status",
          "amount_minor",
          "amount_refunded_minor",
          "currency",
          "billing_start",
          "billing_end",
          "entitlement_state",
          "active_until"
        ],
        "additionalProperties": false
      },
      "RecurringConsent": {
        "type": "object",
        "properties": {
          "plan_id": {
            "type": "string",
            "format": "uuid"
          },
          "product_id": {
            "type": "string",
            "format": "uuid"
          },
          "terms_version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "name": {
            "type": "string",
            "maxLength": 200
          },
          "description": {
            "type": "string",
            "maxLength": 20000
          },
          "fulfillment_mode": {
            "const": "service_access"
          },
          "service_access_profile_version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "amount_minor": {
            "$ref": "#/components/schemas/ExactMinor"
          },
          "currency": {
            "const": "INR"
          },
          "period": {
            "type": "string",
            "enum": [
              "monthly",
              "yearly"
            ]
          },
          "interval": {
            "const": 1
          },
          "total_count": {
            "type": "integer",
            "minimum": 1,
            "maximum": 120
          },
          "provider": {
            "const": "Razorpay"
          },
          "consented_by_customer_id": {
            "type": "string",
            "format": "uuid"
          }
        },
        "required": [
          "plan_id",
          "product_id",
          "terms_version",
          "name",
          "description",
          "fulfillment_mode",
          "service_access_profile_version",
          "amount_minor",
          "currency",
          "period",
          "interval",
          "total_count",
          "provider",
          "consented_by_customer_id"
        ],
        "additionalProperties": false
      },
      "RecurringSubscription": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "plan_id": {
            "type": "string",
            "format": "uuid"
          },
          "state": {
            "type": "string",
            "maxLength": 50
          },
          "dunning_state": {
            "type": "string",
            "maxLength": 100
          },
          "provider_status": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 50
              },
              {
                "type": "null"
              }
            ]
          },
          "short_url": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^https://rzp\\.io/(?:i|r)/[A-Za-z0-9]+$"
              },
              {
                "type": "null"
              }
            ]
          },
          "consent_snapshot": {
            "$ref": "#/components/schemas/RecurringConsent"
          },
          "consented_at": {
            "type": "string",
            "format": "date-time"
          },
          "paid_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 2147483647
          },
          "auth_attempts": {
            "type": "integer",
            "minimum": 0,
            "maximum": 2147483647
          },
          "current_start": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "current_end": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "ended_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "cancel_requested_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "cancel_at_cycle_end": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "cancel_dispatch": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 50
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "plan_id",
          "state",
          "dunning_state",
          "provider_status",
          "short_url",
          "consent_snapshot",
          "consented_at",
          "paid_count",
          "auth_attempts",
          "current_start",
          "current_end",
          "ended_at",
          "cancel_requested_at",
          "cancel_at_cycle_end",
          "cancel_dispatch"
        ],
        "additionalProperties": false
      },
      "PhysicalRenewalItem": {
        "type": "object",
        "properties": {
          "product_id": {
            "type": "string",
            "format": "uuid"
          },
          "variant_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "type": "string",
            "maxLength": 500
          },
          "sku": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ]
          },
          "variant_name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 300
              },
              {
                "type": "null"
              }
            ]
          },
          "quantity": {
            "type": "integer",
            "minimum": 1,
            "maximum": 10000
          }
        },
        "required": [
          "product_id",
          "variant_id",
          "name",
          "quantity"
        ],
        "additionalProperties": true
      },
      "PhysicalRenewalCycle": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "cycle_number": {
            "type": "integer",
            "minimum": 1,
            "maximum": 120
          },
          "due_at": {
            "type": "string",
            "format": "date-time"
          },
          "status": {
            "type": "string",
            "maxLength": 50
          },
          "skip_reason": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ]
          },
          "checkout_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "order_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PhysicalRenewalItem"
            },
            "maxItems": 100
          }
        },
        "required": [
          "id",
          "cycle_number",
          "due_at",
          "status",
          "items"
        ],
        "additionalProperties": true
      },
      "PhysicalRenewalSchedule": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "source_order_id": {
            "type": "string",
            "format": "uuid"
          },
          "order_number": {
            "type": "string",
            "maxLength": 100
          },
          "period": {
            "type": "string",
            "enum": [
              "monthly",
              "yearly"
            ]
          },
          "interval": {
            "const": 1
          },
          "total_count": {
            "type": "integer",
            "minimum": 1,
            "maximum": 120
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "paused",
              "cancelled",
              "completed"
            ]
          },
          "next_due_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PhysicalRenewalItem"
            },
            "maxItems": 100
          },
          "cycles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PhysicalRenewalCycle"
            },
            "maxItems": 120
          }
        },
        "required": [
          "id",
          "source_order_id",
          "order_number",
          "period",
          "interval",
          "total_count",
          "status",
          "next_due_at",
          "created_at",
          "cycles"
        ],
        "additionalProperties": true
      }
    }
  },
  "x-supported-operation-count": 120,
  "x-staff-dashboard-and-provider-inventory": [
    {
      "method": "GET",
      "path": "/api/integrations",
      "expressPath": "/api/integrations",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/integrationHub.ts",
      "sourceLine": 68,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "id, provider, is_active, settings, credentials, last_synced_at, created_at"
      ],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/integrations/{provider}/connect",
      "expressPath": "/api/integrations/:provider/connect",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/integrationHub.ts",
      "sourceLine": 101,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "credentials"
      ],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/integrations/{provider}/disconnect",
      "expressPath": "/api/integrations/:provider/disconnect",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/integrationHub.ts",
      "sourceLine": 189,
      "bodyFields": [
        "confirmed",
        "mode",
        "review_key"
      ],
      "queryFields": [],
      "selections": [
        "id"
      ],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/integrations/{provider}/disconnect-impact",
      "expressPath": "/api/integrations/:provider/disconnect-impact",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/integrationHub.ts",
      "sourceLine": 186,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/integrations/{provider}/ensure-fresh",
      "expressPath": "/api/integrations/:provider/ensure-fresh",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/integrationHub.ts",
      "sourceLine": 857,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "last_synced_at"
      ],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/integrations/shopify/abandoned-carts",
      "expressPath": "/api/integrations/shopify/abandoned-carts",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/integrationHub.ts",
      "sourceLine": 631,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "credentials"
      ],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/integrations/shopify/import-customers",
      "expressPath": "/api/integrations/shopify/import-customers",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/integrationHub.ts",
      "sourceLine": 777,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/integrations/shopify/import-products",
      "expressPath": "/api/integrations/shopify/import-products",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/integrationHub.ts",
      "sourceLine": 786,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/integrations/shopify/orders",
      "expressPath": "/api/integrations/shopify/orders",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/integrationHub.ts",
      "sourceLine": 596,
      "bodyFields": [],
      "queryFields": [
        "limit"
      ],
      "selections": [
        "credentials, settings"
      ],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/integrations/shopify/recover-cart",
      "expressPath": "/api/integrations/shopify/recover-cart",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/integrationHub.ts",
      "sourceLine": 665,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "id, phone_number_id, wa_token"
      ],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/integrations/shopify/stats",
      "expressPath": "/api/integrations/shopify/stats",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/integrationHub.ts",
      "sourceLine": 737,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "credentials"
      ],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/integrations/shopify/sync-store",
      "expressPath": "/api/integrations/shopify/sync-store",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/integrationHub.ts",
      "sourceLine": 791,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/integrations/woocommerce/create-order",
      "expressPath": "/api/integrations/woocommerce/create-order",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/integrationHub.ts",
      "sourceLine": 868,
      "bodyFields": [
        "conversationId",
        "revision"
      ],
      "queryFields": [],
      "selections": [
        "id,workspace_id,inbox_account_id,assigned_to,department_id"
      ],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/integrations/woocommerce/import-customers",
      "expressPath": "/api/integrations/woocommerce/import-customers",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/integrationHub.ts",
      "sourceLine": 839,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/integrations/woocommerce/import-products",
      "expressPath": "/api/integrations/woocommerce/import-products",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/integrationHub.ts",
      "sourceLine": 848,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/integrations/woocommerce/stats",
      "expressPath": "/api/integrations/woocommerce/stats",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/integrationHub.ts",
      "sourceLine": 805,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "credentials"
      ],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/integrations/woocommerce/sync-store",
      "expressPath": "/api/integrations/woocommerce/sync-store",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/integrationHub.ts",
      "sourceLine": 854,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/orders/analytics",
      "expressPath": "/api/orders/analytics",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/orders.ts",
      "sourceLine": 261,
      "bodyFields": [],
      "queryFields": [
        "currency"
      ],
      "selections": [
        "id",
        "wa_selling_enabled"
      ],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/orders/customers",
      "expressPath": "/api/orders/customers",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/orders.ts",
      "sourceLine": 40,
      "bodyFields": [],
      "queryFields": [
        "limit",
        "page",
        "search"
      ],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/orders/list",
      "expressPath": "/api/orders/list",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/orders.ts",
      "sourceLine": 252,
      "bodyFields": [],
      "queryFields": [
        "limit",
        "page",
        "status"
      ],
      "selections": [
        "wa_selling_enabled"
      ],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/orders/lookup",
      "expressPath": "/api/orders/lookup",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/orders.ts",
      "sourceLine": 58,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/orders/settings",
      "expressPath": "/api/orders/settings",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/orders.ts",
      "sourceLine": 80,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "notify_customer, customer_template_name, customer_template_lang, customer_var_map",
        "id, phone_number_id, display_phone_number, from_name, is_default",
        "id, template_name, language, category, status, components"
      ],
      "rpcs": []
    },
    {
      "method": "PUT",
      "path": "/api/orders/settings",
      "expressPath": "/api/orders/settings",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/orders.ts",
      "sourceLine": 130,
      "bodyFields": [
        "additional_events"
      ],
      "queryFields": [],
      "selections": [
        "phone_number_id",
        "id",
        "id, components"
      ],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/orders/sources",
      "expressPath": "/api/orders/sources",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/orders.ts",
      "sourceLine": 31,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/orders/webhook-events",
      "expressPath": "/api/orders/webhook-events",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/orders.ts",
      "sourceLine": 33,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "store_order_event_health"
      ]
    },
    {
      "method": "GET",
      "path": "/api/products",
      "expressPath": "/api/products",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/products.ts",
      "sourceLine": 67,
      "bodyFields": [],
      "queryFields": [
        "category",
        "include_inactive",
        "page",
        "scope",
        "search",
        "stock",
        "store",
        "variants"
      ],
      "selections": [],
      "rpcs": [
        "native_store_catalog_page",
        "store_product_categories_scoped"
      ]
    },
    {
      "method": "POST",
      "path": "/api/products",
      "expressPath": "/api/products",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/products.ts",
      "sourceLine": 134,
      "bodyFields": [
        "request_key",
        "store_published"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "create_native_product_editor"
      ]
    },
    {
      "method": "DELETE",
      "path": "/api/products/{id}",
      "expressPath": "/api/products/:id",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/products.ts",
      "sourceLine": 282,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/products/{id}",
      "expressPath": "/api/products/:id",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/products.ts",
      "sourceLine": 118,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "*"
      ],
      "rpcs": []
    },
    {
      "method": "PUT",
      "path": "/api/products/{id}",
      "expressPath": "/api/products/:id",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/products.ts",
      "sourceLine": 191,
      "bodyFields": [
        "expected_stock_qty",
        "expected_updated_at",
        "store_published"
      ],
      "queryFields": [],
      "selections": [
        "source"
      ],
      "rpcs": [
        "update_native_product_editor",
        "update_local_product"
      ]
    },
    {
      "method": "PATCH",
      "path": "/api/products/{id}/stock",
      "expressPath": "/api/products/:id/stock",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/products.ts",
      "sourceLine": 255,
      "bodyFields": [
        "expected_qty"
      ],
      "queryFields": [],
      "selections": [
        "id, stock_qty"
      ],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/products/{id}/variants",
      "expressPath": "/api/products/:id/variants",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/products.ts",
      "sourceLine": 333,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "source,provider_snapshot,currency",
        "*"
      ],
      "rpcs": [
        "native_store_variant_inventory"
      ]
    },
    {
      "method": "POST",
      "path": "/api/products/{id}/variants",
      "expressPath": "/api/products/:id/variants",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/products.ts",
      "sourceLine": 364,
      "bodyFields": [
        "request_key"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "create_local_variant"
      ]
    },
    {
      "method": "DELETE",
      "path": "/api/products/{id}/variants/{varId}",
      "expressPath": "/api/products/:id/variants/:varId",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/products.ts",
      "sourceLine": 460,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "id"
      ],
      "rpcs": []
    },
    {
      "method": "PUT",
      "path": "/api/products/{id}/variants/{varId}",
      "expressPath": "/api/products/:id/variants/:varId",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/products.ts",
      "sourceLine": 396,
      "bodyFields": [
        "expected_stock_qty"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "update_local_variant"
      ]
    },
    {
      "method": "PATCH",
      "path": "/api/products/{id}/variants/{varId}/stock",
      "expressPath": "/api/products/:id/variants/:varId/stock",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/products.ts",
      "sourceLine": 424,
      "bodyFields": [
        "expected_qty"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "adjust_local_stock"
      ]
    },
    {
      "method": "PUT",
      "path": "/api/products/{id}/variants/reorder",
      "expressPath": "/api/products/:id/variants/reorder",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/products.ts",
      "sourceLine": 440,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/products/catalog-sources",
      "expressPath": "/api/products/catalog-sources",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/products.ts",
      "sourceLine": 61,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/products/reorder",
      "expressPath": "/api/products/reorder",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/products.ts",
      "sourceLine": 297,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store-merchant-accounts",
      "expressPath": "/api/store-merchant-accounts",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/storeMerchantAccounts.ts",
      "sourceLine": 13,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "id,name,key_id,created_at",
        "account_id,version"
      ],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store-merchant-accounts",
      "expressPath": "/api/store-merchant-accounts",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/storeMerchantAccounts.ts",
      "sourceLine": 16,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "id"
      ],
      "rpcs": []
    },
    {
      "method": "PUT",
      "path": "/api/store-merchant-accounts/store",
      "expressPath": "/api/store-merchant-accounts/store",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/storeMerchantAccounts.ts",
      "sourceLine": 22,
      "bodyFields": [
        "account_id",
        "confirmed",
        "version"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "select_store_merchant"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store-recurring/action-notice-preference",
      "expressPath": "/api/store-recurring/action-notice-preference",
      "audience": "staff",
      "router": "storeSubscriptionAdmin",
      "sourceFile": "src/routes/storeSubscriptions.ts",
      "sourceLine": 37,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "enabled,version,updated_at"
      ],
      "rpcs": []
    },
    {
      "method": "PUT",
      "path": "/api/store-recurring/action-notice-preference",
      "expressPath": "/api/store-recurring/action-notice-preference",
      "audience": "staff",
      "router": "storeSubscriptionAdmin",
      "sourceFile": "src/routes/storeSubscriptions.ts",
      "sourceLine": 38,
      "bodyFields": [
        "enabled",
        "expected_version"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "save_store_subscription_action_notice_preference"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store-recurring/physical-products",
      "expressPath": "/api/store-recurring/physical-products",
      "audience": "staff",
      "router": "storePhysicalRenewalAdmin",
      "sourceFile": "src/routes/storePhysicalRenewals.ts",
      "sourceLine": 34,
      "bodyFields": [],
      "queryFields": [
        "page"
      ],
      "selections": [
        "id,name,sku,updated_at",
        "product_id,enabled,version"
      ],
      "rpcs": []
    },
    {
      "method": "PUT",
      "path": "/api/store-recurring/physical-products/{id}",
      "expressPath": "/api/store-recurring/physical-products/:id",
      "audience": "staff",
      "router": "storePhysicalRenewalAdmin",
      "sourceFile": "src/routes/storePhysicalRenewals.ts",
      "sourceLine": 35,
      "bodyFields": [
        "confirmed",
        "enabled",
        "expected_updated_at"
      ],
      "queryFields": [],
      "selections": [
        "id,name,sku,updated_at"
      ],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store-recurring/plans",
      "expressPath": "/api/store-recurring/plans",
      "audience": "staff",
      "router": "storeSubscriptionAdmin",
      "sourceFile": "src/routes/storeSubscriptions.ts",
      "sourceLine": 41,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "id,product_id,name,description,fulfillment_mode,amount_minor,currency,period,interval,total_count,terms_version,state,provider_plan_id,created_at,updated_at"
      ],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store-recurring/plans",
      "expressPath": "/api/store-recurring/plans",
      "audience": "staff",
      "router": "storeSubscriptionAdmin",
      "sourceFile": "src/routes/storeSubscriptions.ts",
      "sourceLine": 42,
      "bodyFields": [
        "fulfillment_mode",
        "interval",
        "period",
        "product_id",
        "request_key",
        "total_count"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "save_native_recurring_plan"
      ]
    },
    {
      "method": "POST",
      "path": "/api/store-recurring/plans/{id}/activate",
      "expressPath": "/api/store-recurring/plans/:id/activate",
      "audience": "staff",
      "router": "storeSubscriptionAdmin",
      "sourceFile": "src/routes/storeSubscriptions.ts",
      "sourceLine": 43,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "PUT",
      "path": "/api/store-recurring/plans/{id}/enabled",
      "expressPath": "/api/store-recurring/plans/:id/enabled",
      "audience": "staff",
      "router": "storeSubscriptionAdmin",
      "sourceFile": "src/routes/storeSubscriptions.ts",
      "sourceLine": 44,
      "bodyFields": [
        "enabled"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "set_native_recurring_plan_enabled"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store-recurring/products",
      "expressPath": "/api/store-recurring/products",
      "audience": "staff",
      "router": "storeSubscriptionAdmin",
      "sourceFile": "src/routes/storeSubscriptions.ts",
      "sourceLine": 39,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "id,sku,name,description,unit_price,currency,updated_at",
        "product_id,state,version"
      ],
      "rpcs": []
    },
    {
      "method": "PUT",
      "path": "/api/store-recurring/products/{id}/service-access",
      "expressPath": "/api/store-recurring/products/:id/service-access",
      "audience": "staff",
      "router": "storeSubscriptionAdmin",
      "sourceFile": "src/routes/storeSubscriptions.ts",
      "sourceLine": 40,
      "bodyFields": [
        "enabled"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "set_native_recurring_product_profile"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store-recurring/subscriptions",
      "expressPath": "/api/store-recurring/subscriptions",
      "audience": "staff",
      "router": "storeSubscriptionAdmin",
      "sourceFile": "src/routes/storeSubscriptions.ts",
      "sourceLine": 46,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "id,subscription_id,customer_id,product_id,amount_minor,currency,period,interval,total_count,state,dunning_state,provider_status,paid_count,auth_attempts,current_start,current_end,ended_at,created_at,updated_at"
      ],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store-recurring/subscriptions/{id}",
      "expressPath": "/api/store-recurring/subscriptions/:id",
      "audience": "staff",
      "router": "storeSubscriptionAdmin",
      "sourceFile": "src/routes/storeSubscriptions.ts",
      "sourceLine": 47,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "id,subscription_id,customer_id,product_id,amount_minor,currency,period,interval,total_count,state,dunning_state,provider_status,paid_count,auth_attempts,current_start,current_end,ended_at,created_at,updated_at",
        "id,plan_id,state,dunning_state,consent_snapshot,consented_at,cancel_requested_at,cancel_at_cycle_end,cancel_dispatch"
      ],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store-recurring/subscriptions/{id}/reconcile",
      "expressPath": "/api/store-recurring/subscriptions/:id/reconcile",
      "audience": "staff",
      "router": "storeSubscriptionAdmin",
      "sourceFile": "src/routes/storeSubscriptions.ts",
      "sourceLine": 45,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/capabilities",
      "expressPath": "/api/store/capabilities",
      "audience": "staff",
      "router": "storeCapabilities",
      "sourceFile": "src/routes/storeCapabilities.ts",
      "sourceLine": 59,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "provider",
        "workspace_id",
        "id"
      ],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/customers",
      "expressPath": "/api/store/customers",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/storeCustomerManagement.ts",
      "sourceLine": 16,
      "bodyFields": [],
      "queryFields": [
        "page",
        "search"
      ],
      "selections": [
        "id,name,status,created_at"
      ],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/customers/{id}",
      "expressPath": "/api/store/customers/:id",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/storeCustomerManagement.ts",
      "sourceLine": 27,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "id,name,status,version,created_at",
        "method,destination,verified_at",
        "id,address,is_default",
        "order_id",
        "id,order_number,state,payment_status,fulfillment_status,pricing,created_at"
      ],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/customers/{id}/status",
      "expressPath": "/api/store/customers/:id/status",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/storeCustomerManagement.ts",
      "sourceLine": 46,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "id",
        "id,previous_status,status,reason,created_at"
      ],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/customers/{id}/status",
      "expressPath": "/api/store/customers/:id/status",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/storeCustomerManagement.ts",
      "sourceLine": 51,
      "bodyFields": [
        "confirmed",
        "reason",
        "request_key",
        "status",
        "version"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "set_store_customer_status"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/analytics",
      "expressPath": "/api/store/native/analytics",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStore.ts",
      "sourceLine": 126,
      "bodyFields": [],
      "queryFields": [
        "days"
      ],
      "selections": [],
      "rpcs": [
        "native_store_summary"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/analytics/funnel",
      "expressPath": "/api/store/native/analytics/funnel",
      "audience": "staff",
      "router": "storeFunnelAdmin",
      "sourceFile": "src/routes/storeFunnel.ts",
      "sourceLine": 15,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "read_store_funnel_report"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/analytics/settings",
      "expressPath": "/api/store/native/analytics/settings",
      "audience": "staff",
      "router": "storeFunnelAdmin",
      "sourceFile": "src/routes/storeFunnel.ts",
      "sourceLine": 13,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "PUT",
      "path": "/api/store/native/analytics/settings",
      "expressPath": "/api/store/native/analytics/settings",
      "audience": "staff",
      "router": "storeFunnelAdmin",
      "sourceFile": "src/routes/storeFunnel.ts",
      "sourceLine": 14,
      "bodyFields": [
        "confirmed",
        "enabled",
        "version"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "save_store_funnel_settings"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/b2b",
      "expressPath": "/api/store/native/b2b",
      "audience": "staff",
      "router": "storeNativeB2bAdmin",
      "sourceFile": "src/routes/storeNativeB2b.ts",
      "sourceLine": 17,
      "bodyFields": [],
      "queryFields": [
        "page"
      ],
      "selections": [],
      "rpcs": [
        "native_b2b_admin_read"
      ]
    },
    {
      "method": "POST",
      "path": "/api/store/native/b2b",
      "expressPath": "/api/store/native/b2b",
      "audience": "staff",
      "router": "storeNativeB2bAdmin",
      "sourceFile": "src/routes/storeNativeB2b.ts",
      "sourceLine": 18,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "manage_native_b2b"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/bundles/products/{productId}",
      "expressPath": "/api/store/native/bundles/products/:productId",
      "audience": "staff",
      "router": "storeBundles",
      "sourceFile": "src/routes/storeBundles.ts",
      "sourceLine": 12,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "read_native_bundle"
      ]
    },
    {
      "method": "POST",
      "path": "/api/store/native/bundles/products/{productId}",
      "expressPath": "/api/store/native/bundles/products/:productId",
      "audience": "staff",
      "router": "storeBundles",
      "sourceFile": "src/routes/storeBundles.ts",
      "sourceLine": 13,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "save_native_bundle"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/bundles/products/{productId}/choices",
      "expressPath": "/api/store/native/bundles/products/:productId/choices",
      "audience": "staff",
      "router": "storeBundles",
      "sourceFile": "src/routes/storeBundles.ts",
      "sourceLine": 11,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "native_bundle_choices"
      ]
    },
    {
      "method": "POST",
      "path": "/api/store/native/bundles/products/{productId}/state",
      "expressPath": "/api/store/native/bundles/products/:productId/state",
      "audience": "staff",
      "router": "storeBundles",
      "sourceFile": "src/routes/storeBundles.ts",
      "sourceLine": 15,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "set_native_bundle_enabled"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/cancellation-requests",
      "expressPath": "/api/store/native/cancellation-requests",
      "audience": "staff",
      "router": "cancellationAdmin",
      "sourceFile": "src/routes/storeCancellations.ts",
      "sourceLine": 30,
      "bodyFields": [],
      "queryFields": [
        "handler",
        "state"
      ],
      "selections": [],
      "rpcs": [
        "read_store_cancellation_staff_queue"
      ]
    },
    {
      "method": "POST",
      "path": "/api/store/native/cancellation-requests/{id}/decision",
      "expressPath": "/api/store/native/cancellation-requests/:id/decision",
      "audience": "staff",
      "router": "cancellationAdmin",
      "sourceFile": "src/routes/storeCancellations.ts",
      "sourceLine": 33,
      "bodyFields": [
        "action",
        "confirmed",
        "order_version",
        "reason",
        "request_key",
        "version"
      ],
      "queryFields": [],
      "selections": [
        "order_id",
        "id"
      ],
      "rpcs": [
        "manage_scoped_store_cancellation_request"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/cancellation-requests/{id}/detail",
      "expressPath": "/api/store/native/cancellation-requests/:id/detail",
      "audience": "staff",
      "router": "cancellationAdmin",
      "sourceFile": "src/routes/storeCancellations.ts",
      "sourceLine": 31,
      "bodyFields": [],
      "queryFields": [
        "as_of"
      ],
      "selections": [],
      "rpcs": [
        "read_store_cancellation_staff_detail"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/cancellation-requests/{id}/evidence",
      "expressPath": "/api/store/native/cancellation-requests/:id/evidence",
      "audience": "staff",
      "router": "evidenceAdmin",
      "sourceFile": "src/routes/storeRequestEvidence.ts",
      "sourceLine": 26,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/native/cancellation-requests/{id}/evidence/{photoId}",
      "expressPath": "/api/store/native/cancellation-requests/:id/evidence/:photoId",
      "audience": "staff",
      "router": "evidenceAdmin",
      "sourceFile": "src/routes/storeRequestEvidence.ts",
      "sourceLine": 27,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/cancellation-requests/{id}/work",
      "expressPath": "/api/store/native/cancellation-requests/:id/work",
      "audience": "staff",
      "router": "cancellationAdmin",
      "sourceFile": "src/routes/storeCancellations.ts",
      "sourceLine": 32,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "manage_store_cancellation_staff"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/cancellation-requests/settings",
      "expressPath": "/api/store/native/cancellation-requests/settings",
      "audience": "staff",
      "router": "cancellationAdmin",
      "sourceFile": "src/routes/storeCancellations.ts",
      "sourceLine": 28,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "enabled,window_hours,reasons,excluded_product_ids,version"
      ],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/cancellation-requests/settings",
      "expressPath": "/api/store/native/cancellation-requests/settings",
      "audience": "staff",
      "router": "cancellationAdmin",
      "sourceFile": "src/routes/storeCancellations.ts",
      "sourceLine": 29,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "save_store_cancellation_settings"
      ]
    },
    {
      "method": "POST",
      "path": "/api/store/native/carrier-batches",
      "expressPath": "/api/store/native/carrier-batches",
      "audience": "staff",
      "router": "storeCarrierShipments",
      "sourceFile": "src/routes/storeCarrierShipments.ts",
      "sourceLine": 63,
      "bodyFields": [
        "confirmed",
        "items"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "native_store_order_progress"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/complaints",
      "expressPath": "/api/store/native/complaints",
      "audience": "staff",
      "router": "complaintAdmin",
      "sourceFile": "src/routes/storeComplaints.ts",
      "sourceLine": 38,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/native/complaints/{id}/detail",
      "expressPath": "/api/store/native/complaints/:id/detail",
      "audience": "staff",
      "router": "complaintAdmin",
      "sourceFile": "src/routes/storeComplaints.ts",
      "sourceLine": 50,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/native/complaints/{id}/evidence",
      "expressPath": "/api/store/native/complaints/:id/evidence",
      "audience": "staff",
      "router": "complaintAdmin",
      "sourceFile": "src/routes/storeComplaints.ts",
      "sourceLine": 66,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/native/complaints/{id}/evidence/{photoId}",
      "expressPath": "/api/store/native/complaints/:id/evidence/:photoId",
      "audience": "staff",
      "router": "complaintAdmin",
      "sourceFile": "src/routes/storeComplaints.ts",
      "sourceLine": 67,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/complaints/{id}/handoff",
      "expressPath": "/api/store/native/complaints/:id/handoff",
      "audience": "staff",
      "router": "complaintAdmin",
      "sourceFile": "src/routes/storeComplaints.ts",
      "sourceLine": 54,
      "bodyFields": [
        "confirmed",
        "contact_id",
        "conversation_id",
        "request_key",
        "version"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "link_store_complaint_crm"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/complaints/{id}/handoff-choices",
      "expressPath": "/api/store/native/complaints/:id/handoff-choices",
      "audience": "staff",
      "router": "complaintAdmin",
      "sourceFile": "src/routes/storeComplaints.ts",
      "sourceLine": 53,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "read_store_complaint_handoff_choices"
      ]
    },
    {
      "method": "POST",
      "path": "/api/store/native/complaints/{id}/messages",
      "expressPath": "/api/store/native/complaints/:id/messages",
      "audience": "staff",
      "router": "complaintAdmin",
      "sourceFile": "src/routes/storeComplaints.ts",
      "sourceLine": 51,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/native/complaints/for-conversation/{conversationId}",
      "expressPath": "/api/store/native/complaints/for-conversation/:conversationId",
      "audience": "staff",
      "router": "complaintAdmin",
      "sourceFile": "src/routes/storeComplaints.ts",
      "sourceLine": 40,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "id,channel,inbox_account_id,assigned_to,department_id",
        "id"
      ],
      "rpcs": [
        "read_store_complaints"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/costs",
      "expressPath": "/api/store/native/costs",
      "audience": "staff",
      "router": "storeCostLedger",
      "sourceFile": "src/routes/storeCostLedger.ts",
      "sourceLine": 15,
      "bodyFields": [],
      "queryFields": [
        "page"
      ],
      "selections": [
        "id,kind,product_id,variant_id,order_id,line_id,voids_id,currency,exponent,amount_minor,occurred_on,reason,created_at"
      ],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/costs",
      "expressPath": "/api/store/native/costs",
      "audience": "staff",
      "router": "storeCostLedger",
      "sourceFile": "src/routes/storeCostLedger.ts",
      "sourceLine": 18,
      "bodyFields": [
        "request_key"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "append_native_store_cost"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/costs/options",
      "expressPath": "/api/store/native/costs/options",
      "audience": "staff",
      "router": "storeCostLedger",
      "sourceFile": "src/routes/storeCostLedger.ts",
      "sourceLine": 16,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "native_store_cost_options"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/costs/orders/{id}",
      "expressPath": "/api/store/native/costs/orders/:id",
      "audience": "staff",
      "router": "storeCostLedger",
      "sourceFile": "src/routes/storeCostLedger.ts",
      "sourceLine": 17,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "native_store_order_cost_lines"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/costs/report",
      "expressPath": "/api/store/native/costs/report",
      "audience": "staff",
      "router": "storeCostLedger",
      "sourceFile": "src/routes/storeCostLedger.ts",
      "sourceLine": 19,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "native_store_cost_report"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/credit/accounts/{id}/entries",
      "expressPath": "/api/store/native/credit/accounts/:id/entries",
      "audience": "staff",
      "router": "storeCreditAdmin",
      "sourceFile": "src/routes/storeCredit.ts",
      "sourceLine": 26,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "customer_id"
      ],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/native/credit/customers/{id}",
      "expressPath": "/api/store/native/credit/customers/:id",
      "audience": "staff",
      "router": "storeCreditAdmin",
      "sourceFile": "src/routes/storeCredit.ts",
      "sourceLine": 18,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/credit/expire",
      "expressPath": "/api/store/native/credit/expire",
      "audience": "staff",
      "router": "storeCreditAdmin",
      "sourceFile": "src/routes/storeCredit.ts",
      "sourceLine": 22,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/credit/issue",
      "expressPath": "/api/store/native/credit/issue",
      "audience": "staff",
      "router": "storeCreditAdmin",
      "sourceFile": "src/routes/storeCredit.ts",
      "sourceLine": 20,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/credit/refund",
      "expressPath": "/api/store/native/credit/refund",
      "audience": "staff",
      "router": "storeCreditAdmin",
      "sourceFile": "src/routes/storeCredit.ts",
      "sourceLine": 21,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/native/customers",
      "expressPath": "/api/store/native/customers",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStore.ts",
      "sourceLine": 129,
      "bodyFields": [],
      "queryFields": [
        "page",
        "search"
      ],
      "selections": [
        "id,order_number,customer,source,state,created_at"
      ],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/native/delivery-exceptions",
      "expressPath": "/api/store/native/delivery-exceptions",
      "audience": "staff",
      "router": "storeDeliveryExceptions",
      "sourceFile": "src/routes/storeDeliveryExceptions.ts",
      "sourceLine": 18,
      "bodyFields": [],
      "queryFields": [
        "page",
        "status"
      ],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/native/delivery-policy",
      "expressPath": "/api/store/native/delivery-policy",
      "audience": "staff",
      "router": "nativeStoreDeliveryPolicy",
      "sourceFile": "src/routes/nativeStoreDeliveryPolicy.ts",
      "sourceLine": 18,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/delivery-policy",
      "expressPath": "/api/store/native/delivery-policy",
      "audience": "staff",
      "router": "nativeStoreDeliveryPolicy",
      "sourceFile": "src/routes/nativeStoreDeliveryPolicy.ts",
      "sourceLine": 19,
      "bodyFields": [
        "config",
        "confirmed",
        "request_key",
        "version"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "save_store_delivery_policy"
      ]
    },
    {
      "method": "POST",
      "path": "/api/store/native/delivery-policy/choices",
      "expressPath": "/api/store/native/delivery-policy/choices",
      "audience": "staff",
      "router": "nativeStoreDeliveryPolicy",
      "sourceFile": "src/routes/nativeStoreDeliveryPolicy.ts",
      "sourceLine": 21,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "*"
      ],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/delivery-policy/preview",
      "expressPath": "/api/store/native/delivery-policy/preview",
      "audience": "staff",
      "router": "nativeStoreDeliveryPolicy",
      "sourceFile": "src/routes/nativeStoreDeliveryPolicy.ts",
      "sourceLine": 20,
      "bodyFields": [
        "destination",
        "items",
        "method",
        "service_id"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/digital/entitlements/{id}/revoke",
      "expressPath": "/api/store/native/digital/entitlements/:id/revoke",
      "audience": "staff",
      "router": "storeDigitalAdmin",
      "sourceFile": "src/routes/storeDigital.ts",
      "sourceLine": 14,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "order_id",
        "id"
      ],
      "rpcs": [
        "revoke_scoped_store_digital"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/digital/products/{productId}",
      "expressPath": "/api/store/native/digital/products/:productId",
      "audience": "staff",
      "router": "storeDigitalAdmin",
      "sourceFile": "src/routes/storeDigital.ts",
      "sourceLine": 10,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "id,filename,media_type,byte_size,state,created_at",
        "version,enabled,asset_id,download_limit,expires_days,refund_policy"
      ],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/digital/products/{productId}/assets",
      "expressPath": "/api/store/native/digital/products/:productId/assets",
      "audience": "staff",
      "router": "storeDigitalAdmin",
      "sourceFile": "src/routes/storeDigital.ts",
      "sourceLine": 11,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/native/digital/products/{productId}/entitlements",
      "expressPath": "/api/store/native/digital/products/:productId/entitlements",
      "audience": "staff",
      "router": "storeDigitalAdmin",
      "sourceFile": "src/routes/storeDigital.ts",
      "sourceLine": 13,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "read_staff_digital_entitlements"
      ]
    },
    {
      "method": "POST",
      "path": "/api/store/native/digital/products/{productId}/policy",
      "expressPath": "/api/store/native/digital/products/:productId/policy",
      "audience": "staff",
      "router": "storeDigitalAdmin",
      "sourceFile": "src/routes/storeDigital.ts",
      "sourceLine": 12,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "save_store_digital_policy"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/discounts",
      "expressPath": "/api/store/native/discounts",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStore.ts",
      "sourceLine": 120,
      "bodyFields": [],
      "queryFields": [
        "page"
      ],
      "selections": [],
      "rpcs": [
        "native_discount_page"
      ]
    },
    {
      "method": "PUT",
      "path": "/api/store/native/discounts",
      "expressPath": "/api/store/native/discounts",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStore.ts",
      "sourceLine": 123,
      "bodyFields": [
        "id",
        "version"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "save_native_discount"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/exchange-requests",
      "expressPath": "/api/store/native/exchange-requests",
      "audience": "staff",
      "router": "exchangeAdmin",
      "sourceFile": "src/routes/storeExchanges.ts",
      "sourceLine": 21,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/native/exchange-requests/{id}/detail",
      "expressPath": "/api/store/native/exchange-requests/:id/detail",
      "audience": "staff",
      "router": "exchangeAdmin",
      "sourceFile": "src/routes/storeExchanges.ts",
      "sourceLine": 22,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/exchange-requests/{id}/propose",
      "expressPath": "/api/store/native/exchange-requests/:id/propose",
      "audience": "staff",
      "router": "exchangeAdmin",
      "sourceFile": "src/routes/storeExchanges.ts",
      "sourceLine": 23,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/native/exchange-requests/{id}/replacement-options",
      "expressPath": "/api/store/native/exchange-requests/:id/replacement-options",
      "audience": "staff",
      "router": "exchangeAdmin",
      "sourceFile": "src/routes/storeExchanges.ts",
      "sourceLine": 25,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "store_exchange_replacement_options"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/exchange-requests/settings",
      "expressPath": "/api/store/native/exchange-requests/settings",
      "audience": "staff",
      "router": "exchangeAdmin",
      "sourceFile": "src/routes/storeExchanges.ts",
      "sourceLine": 19,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "enabled,instructions,version"
      ],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/exchange-requests/settings",
      "expressPath": "/api/store/native/exchange-requests/settings",
      "audience": "staff",
      "router": "exchangeAdmin",
      "sourceFile": "src/routes/storeExchanges.ts",
      "sourceLine": 20,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "save_store_exchange_settings"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/images",
      "expressPath": "/api/store/native/images",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStore.ts",
      "sourceLine": 43,
      "bodyFields": [],
      "queryFields": [
        "page"
      ],
      "selections": [
        "id,url,width,height,mime,bytes,alt,created_at"
      ],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/images",
      "expressPath": "/api/store/native/images",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStore.ts",
      "sourceLine": 44,
      "bodyFields": [
        "alt",
        "request_key"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/native/inventory/counts",
      "expressPath": "/api/store/native/inventory/counts",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStocktakes.ts",
      "sourceLine": 19,
      "bodyFields": [],
      "queryFields": [
        "page"
      ],
      "selections": [
        "id,reason,state,version,actor_id,approved_by,created_at,updated_at"
      ],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/inventory/counts",
      "expressPath": "/api/store/native/inventory/counts",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStocktakes.ts",
      "sourceLine": 22,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "review_native_stocktake"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/inventory/counts/{id}",
      "expressPath": "/api/store/native/inventory/counts/:id",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStocktakes.ts",
      "sourceLine": 20,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "*"
      ],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/inventory/counts/{id}",
      "expressPath": "/api/store/native/inventory/counts/:id",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStocktakes.ts",
      "sourceLine": 23,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "apply_native_stocktake"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/inventory/counts/{id}/export",
      "expressPath": "/api/store/native/inventory/counts/:id/export",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStocktakes.ts",
      "sourceLine": 21,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "id,state,reason,actor_id,approved_by,created_at,updated_at",
        "product_id,variant_id,expected_stock,counted_stock,applied_delta,snapshot,ledger_id"
      ],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/native/inventory/items",
      "expressPath": "/api/store/native/inventory/items",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStocktakes.ts",
      "sourceLine": 18,
      "bodyFields": [],
      "queryFields": [
        "page",
        "search"
      ],
      "selections": [],
      "rpcs": [
        "native_inventory_count_page"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/inventory/ledger",
      "expressPath": "/api/store/native/inventory/ledger",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStocktakes.ts",
      "sourceLine": 24,
      "bodyFields": [],
      "queryFields": [
        "page",
        "product_id",
        "variant_id"
      ],
      "selections": [
        "id",
        "id,product_id,variant_id,delta,reason,reference_id,new_qty,actor_user_id,inventory_location_id,native_reservation_id,created_at"
      ],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/native/inventory/location-readiness",
      "expressPath": "/api/store/native/inventory/location-readiness",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStocktakes.ts",
      "sourceLine": 14,
      "bodyFields": [],
      "queryFields": [
        "page"
      ],
      "selections": [],
      "rpcs": [
        "native_location_readiness"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/inventory/locations",
      "expressPath": "/api/store/native/inventory/locations",
      "audience": "staff",
      "router": "nativeInventoryLocations",
      "sourceFile": "src/routes/nativeInventoryLocations.ts",
      "sourceLine": 9,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "mode,version",
        "id,code,name,version,is_active,pickup_enabled,address,priority,updated_at"
      ],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/inventory/locations",
      "expressPath": "/api/store/native/inventory/locations",
      "audience": "staff",
      "router": "nativeInventoryLocations",
      "sourceFile": "src/routes/nativeInventoryLocations.ts",
      "sourceLine": 11,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/native/inventory/locations/items",
      "expressPath": "/api/store/native/inventory/locations/items",
      "audience": "staff",
      "router": "nativeInventoryLocations",
      "sourceFile": "src/routes/nativeInventoryLocations.ts",
      "sourceLine": 12,
      "bodyFields": [],
      "queryFields": [
        "location_id",
        "page"
      ],
      "selections": [],
      "rpcs": [
        "native_location_inventory"
      ]
    },
    {
      "method": "POST",
      "path": "/api/store/native/inventory/locations/items",
      "expressPath": "/api/store/native/inventory/locations/items",
      "audience": "staff",
      "router": "nativeInventoryLocations",
      "sourceFile": "src/routes/nativeInventoryLocations.ts",
      "sourceLine": 14,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/native/inventory/locations/ledger",
      "expressPath": "/api/store/native/inventory/locations/ledger",
      "audience": "staff",
      "router": "nativeInventoryLocations",
      "sourceFile": "src/routes/nativeInventoryLocations.ts",
      "sourceLine": 13,
      "bodyFields": [],
      "queryFields": [
        "location_id",
        "page",
        "product_id",
        "variant_id"
      ],
      "selections": [
        "id,delta,on_hand,kind,reference_id,created_at"
      ],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/native/inventory/locations/reconciliation",
      "expressPath": "/api/store/native/inventory/locations/reconciliation",
      "audience": "staff",
      "router": "nativeInventoryLocations",
      "sourceFile": "src/routes/nativeInventoryLocations.ts",
      "sourceLine": 18,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "native_inventory_reconciliation"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/inventory/locations/transfers",
      "expressPath": "/api/store/native/inventory/locations/transfers",
      "audience": "staff",
      "router": "nativeInventoryLocations",
      "sourceFile": "src/routes/nativeInventoryLocations.ts",
      "sourceLine": 15,
      "bodyFields": [],
      "queryFields": [
        "page"
      ],
      "selections": [
        "id,source_location_id,destination_location_id,state,version,reason,created_at,updated_at"
      ],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/inventory/locations/transfers",
      "expressPath": "/api/store/native/inventory/locations/transfers",
      "audience": "staff",
      "router": "nativeInventoryLocations",
      "sourceFile": "src/routes/nativeInventoryLocations.ts",
      "sourceLine": 17,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/native/inventory/locations/transfers/{id}",
      "expressPath": "/api/store/native/inventory/locations/transfers/:id",
      "audience": "staff",
      "router": "nativeInventoryLocations",
      "sourceFile": "src/routes/nativeInventoryLocations.ts",
      "sourceLine": 16,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "*"
      ],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/inventory/locations/upgrade",
      "expressPath": "/api/store/native/inventory/locations/upgrade",
      "audience": "staff",
      "router": "nativeInventoryLocations",
      "sourceFile": "src/routes/nativeInventoryLocations.ts",
      "sourceLine": 10,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/native/inventory/planned-locations",
      "expressPath": "/api/store/native/inventory/planned-locations",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStocktakes.ts",
      "sourceLine": 15,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "id,code,name,address,is_active,pickup_enabled,version,created_at,updated_at"
      ],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/inventory/planned-locations",
      "expressPath": "/api/store/native/inventory/planned-locations",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStocktakes.ts",
      "sourceLine": 16,
      "bodyFields": [
        "address",
        "code",
        "confirmed",
        "id",
        "is_active",
        "name",
        "pickup_enabled",
        "version"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "save_native_planned_location"
      ]
    },
    {
      "method": "POST",
      "path": "/api/store/native/inventory/planning/future-allocate",
      "expressPath": "/api/store/native/inventory/planning/future-allocate",
      "audience": "staff",
      "router": "storeInventoryPlanning",
      "sourceFile": "src/routes/storeInventoryPlanning.ts",
      "sourceLine": 18,
      "bodyFields": [
        "balance_id",
        "balance_version",
        "line_id",
        "order_version",
        "quantity",
        "reason",
        "request_key",
        "version"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/native/inventory/planning/future-policy",
      "expressPath": "/api/store/native/inventory/planning/future-policy",
      "audience": "staff",
      "router": "storeInventoryPlanning",
      "sourceFile": "src/routes/storeInventoryPlanning.ts",
      "sourceLine": 15,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/inventory/planning/future-policy",
      "expressPath": "/api/store/native/inventory/planning/future-policy",
      "audience": "staff",
      "router": "storeInventoryPlanning",
      "sourceFile": "src/routes/storeInventoryPlanning.ts",
      "sourceLine": 16,
      "bodyFields": [
        "policy",
        "product_id",
        "request_key",
        "variant_id",
        "version"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/native/inventory/planning/future-queue",
      "expressPath": "/api/store/native/inventory/planning/future-queue",
      "audience": "staff",
      "router": "storeInventoryPlanning",
      "sourceFile": "src/routes/storeInventoryPlanning.ts",
      "sourceLine": 17,
      "bodyFields": [],
      "queryFields": [
        "page"
      ],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/native/inventory/planning/mappings",
      "expressPath": "/api/store/native/inventory/planning/mappings",
      "audience": "staff",
      "router": "storeInventoryPlanning",
      "sourceFile": "src/routes/storeInventoryPlanning.ts",
      "sourceLine": 21,
      "bodyFields": [],
      "queryFields": [
        "page"
      ],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/inventory/planning/mappings",
      "expressPath": "/api/store/native/inventory/planning/mappings",
      "audience": "staff",
      "router": "storeInventoryPlanning",
      "sourceFile": "src/routes/storeInventoryPlanning.ts",
      "sourceLine": 24,
      "bodyFields": [
        "id",
        "mapping",
        "request_key",
        "version"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/native/inventory/planning/mappings/choices",
      "expressPath": "/api/store/native/inventory/planning/mappings/choices",
      "audience": "staff",
      "router": "storeInventoryPlanning",
      "sourceFile": "src/routes/storeInventoryPlanning.ts",
      "sourceLine": 22,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/native/inventory/planning/mappings/identity",
      "expressPath": "/api/store/native/inventory/planning/mappings/identity",
      "audience": "staff",
      "router": "storeInventoryPlanning",
      "sourceFile": "src/routes/storeInventoryPlanning.ts",
      "sourceLine": 23,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/native/inventory/planning/policies",
      "expressPath": "/api/store/native/inventory/planning/policies",
      "audience": "staff",
      "router": "storeInventoryPlanning",
      "sourceFile": "src/routes/storeInventoryPlanning.ts",
      "sourceLine": 11,
      "bodyFields": [],
      "queryFields": [
        "page"
      ],
      "selections": [
        "id,balance_id,threshold,target_quantity,enabled,version"
      ],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/inventory/planning/policies",
      "expressPath": "/api/store/native/inventory/planning/policies",
      "audience": "staff",
      "router": "storeInventoryPlanning",
      "sourceFile": "src/routes/storeInventoryPlanning.ts",
      "sourceLine": 13,
      "bodyFields": [
        "balance_id",
        "enabled",
        "request_key",
        "target_quantity",
        "threshold",
        "version"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/native/inventory/planning/policy",
      "expressPath": "/api/store/native/inventory/planning/policy",
      "audience": "staff",
      "router": "storeInventoryPlanning",
      "sourceFile": "src/routes/storeInventoryPlanning.ts",
      "sourceLine": 12,
      "bodyFields": [],
      "queryFields": [
        "balance_id"
      ],
      "selections": [
        "id,balance_id,threshold,target_quantity,enabled,version"
      ],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/native/inventory/planning/replenishment",
      "expressPath": "/api/store/native/inventory/planning/replenishment",
      "audience": "staff",
      "router": "storeInventoryPlanning",
      "sourceFile": "src/routes/storeInventoryPlanning.ts",
      "sourceLine": 10,
      "bodyFields": [],
      "queryFields": [
        "page"
      ],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/native/marketing/attribution",
      "expressPath": "/api/store/native/marketing/attribution",
      "audience": "staff",
      "router": "storeMarketingAdmin",
      "sourceFile": "src/routes/storeMarketing.ts",
      "sourceLine": 11,
      "bodyFields": [],
      "queryFields": [
        "page"
      ],
      "selections": [
        "order_id,channel,campaign_id,recipient_id,audience_kind,recorded_at"
      ],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/native/notifications/events",
      "expressPath": "/api/store/native/notifications/events",
      "audience": "staff",
      "router": "nativeStoreNotifications",
      "sourceFile": "src/routes/nativeStoreNotifications.ts",
      "sourceLine": 16,
      "bodyFields": [],
      "queryFields": [
        "page"
      ],
      "selections": [
        "id,order_id,event,state,created_at"
      ],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/notifications/orders/{id}/pickup-ready",
      "expressPath": "/api/store/native/notifications/orders/:id/pickup-ready",
      "audience": "staff",
      "router": "nativeStoreNotifications",
      "sourceFile": "src/routes/nativeStoreNotifications.ts",
      "sourceLine": 22,
      "bodyFields": [
        "confirmed",
        "request_key",
        "version"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "record_store_pickup_ready"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/notifications/preview",
      "expressPath": "/api/store/native/notifications/preview",
      "audience": "staff",
      "router": "nativeStoreNotifications",
      "sourceFile": "src/routes/nativeStoreNotifications.ts",
      "sourceLine": 17,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/native/notifications/readiness",
      "expressPath": "/api/store/native/notifications/readiness",
      "audience": "staff",
      "router": "nativeStoreNotifications",
      "sourceFile": "src/routes/nativeStoreNotifications.ts",
      "sourceLine": 15,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/native/notifications/receipts",
      "expressPath": "/api/store/native/notifications/receipts",
      "audience": "staff",
      "router": "nativeStoreNotifications",
      "sourceFile": "src/routes/nativeStoreNotifications.ts",
      "sourceLine": 18,
      "bodyFields": [],
      "queryFields": [
        "page"
      ],
      "selections": [
        "id,channel,state,attempts,total_attempts,error,created_at,updated_at,payload"
      ],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/notifications/receipts/{id}/retry",
      "expressPath": "/api/store/native/notifications/receipts/:id/retry",
      "audience": "staff",
      "router": "nativeStoreNotifications",
      "sourceFile": "src/routes/nativeStoreNotifications.ts",
      "sourceLine": 20,
      "bodyFields": [
        "confirmed",
        "expected_updated_at",
        "reason",
        "request_key"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "review_store_delivery_retry"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/notifications/receipts/{id}/reviews",
      "expressPath": "/api/store/native/notifications/receipts/:id/reviews",
      "audience": "staff",
      "router": "nativeStoreNotifications",
      "sourceFile": "src/routes/nativeStoreNotifications.ts",
      "sourceLine": 19,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "request_key,actor_id,reason,created_at"
      ],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/native/operations/health",
      "expressPath": "/api/store/native/operations/health",
      "audience": "staff",
      "router": "nativeStoreOperations",
      "sourceFile": "src/routes/nativeStoreOperations.ts",
      "sourceLine": 5,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "native_store_operations_health"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/orders",
      "expressPath": "/api/store/native/orders",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStore.ts",
      "sourceLine": 132,
      "bodyFields": [],
      "queryFields": [
        "order_id",
        "page"
      ],
      "selections": [
        "*",
        "id"
      ],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/native/orders/{id}",
      "expressPath": "/api/store/native/orders/:id",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStore.ts",
      "sourceLine": 158,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "id,product_id,variant_id,quantity,tracked,snapshot"
      ],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/orders/{id}/actions",
      "expressPath": "/api/store/native/orders/:id/actions",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStore.ts",
      "sourceLine": 299,
      "bodyFields": [
        "action",
        "request_key",
        "version"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "manage_native_store_order"
      ]
    },
    {
      "method": "POST",
      "path": "/api/store/native/orders/{id}/cancel",
      "expressPath": "/api/store/native/orders/:id/cancel",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStore.ts",
      "sourceLine": 235,
      "bodyFields": [
        "confirmed",
        "reason",
        "request_key",
        "version"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "cancel_native_store_order"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/orders/{id}/carrier-shipments",
      "expressPath": "/api/store/native/orders/:id/carrier-shipments",
      "audience": "staff",
      "router": "storeCarrierShipments",
      "sourceFile": "src/routes/storeCarrierShipments.ts",
      "sourceLine": 57,
      "bodyFields": [],
      "queryFields": [
        "event_page",
        "page"
      ],
      "selections": [
        "id,order_id,request_key,account_id,account_version,location_id,state,snapshot,provider_shipment_id,tracking_number,provider_receipt,error_code,version,created_at,updated_at"
      ],
      "rpcs": [
        "list_native_carrier_tracking_events"
      ]
    },
    {
      "method": "POST",
      "path": "/api/store/native/orders/{id}/carrier-shipments",
      "expressPath": "/api/store/native/orders/:id/carrier-shipments",
      "audience": "staff",
      "router": "storeCarrierShipments",
      "sourceFile": "src/routes/storeCarrierShipments.ts",
      "sourceLine": 113,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/orders/{id}/carrier-shipments/{shipmentId}/cancellation",
      "expressPath": "/api/store/native/orders/:id/carrier-shipments/:shipmentId/cancellation",
      "audience": "staff",
      "router": "storeCarrierShipments",
      "sourceFile": "src/routes/storeCarrierShipments.ts",
      "sourceLine": 163,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/orders/{id}/carrier-shipments/{shipmentId}/cancellation/reconcile",
      "expressPath": "/api/store/native/orders/:id/carrier-shipments/:shipmentId/cancellation/reconcile",
      "audience": "staff",
      "router": "storeCarrierShipments",
      "sourceFile": "src/routes/storeCarrierShipments.ts",
      "sourceLine": 168,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/orders/{id}/carrier-shipments/{shipmentId}/label.pdf",
      "expressPath": "/api/store/native/orders/:id/carrier-shipments/:shipmentId/label.pdf",
      "audience": "staff",
      "router": "storeCarrierShipments",
      "sourceFile": "src/routes/storeCarrierShipments.ts",
      "sourceLine": 149,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/orders/{id}/carrier-shipments/{shipmentId}/manifest.pdf",
      "expressPath": "/api/store/native/orders/:id/carrier-shipments/:shipmentId/manifest.pdf",
      "audience": "staff",
      "router": "storeCarrierShipments",
      "sourceFile": "src/routes/storeCarrierShipments.ts",
      "sourceLine": 156,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/orders/{id}/carrier-shipments/{shipmentId}/pickup-preparations",
      "expressPath": "/api/store/native/orders/:id/carrier-shipments/:shipmentId/pickup-preparations",
      "audience": "staff",
      "router": "storeCarrierShipments",
      "sourceFile": "src/routes/storeCarrierShipments.ts",
      "sourceLine": 123,
      "bodyFields": [
        "confirmed",
        "pickup_date",
        "pickup_time",
        "request_key"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/orders/{id}/carrier-shipments/{shipmentId}/reconcile",
      "expressPath": "/api/store/native/orders/:id/carrier-shipments/:shipmentId/reconcile",
      "audience": "staff",
      "router": "storeCarrierShipments",
      "sourceFile": "src/routes/storeCarrierShipments.ts",
      "sourceLine": 140,
      "bodyFields": [
        "confirmed"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/orders/{id}/carrier-shipments/{shipmentId}/tracking/refresh",
      "expressPath": "/api/store/native/orders/:id/carrier-shipments/:shipmentId/tracking/refresh",
      "audience": "staff",
      "router": "storeCarrierShipments",
      "sourceFile": "src/routes/storeCarrierShipments.ts",
      "sourceLine": 144,
      "bodyFields": [
        "confirmed"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/orders/{id}/carrier-shipments/batch",
      "expressPath": "/api/store/native/orders/:id/carrier-shipments/batch",
      "audience": "staff",
      "router": "storeCarrierShipments",
      "sourceFile": "src/routes/storeCarrierShipments.ts",
      "sourceLine": 94,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "native_store_order_progress"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/orders/{id}/cod-reconciliation",
      "expressPath": "/api/store/native/orders/:id/cod-reconciliation",
      "audience": "staff",
      "router": "storeCodReconciliation",
      "sourceFile": "src/routes/storeCodReconciliation.ts",
      "sourceLine": 18,
      "bodyFields": [],
      "queryFields": [
        "page"
      ],
      "selections": [],
      "rpcs": [
        "read_native_cod_reconciliation"
      ]
    },
    {
      "method": "POST",
      "path": "/api/store/native/orders/{id}/cod-reconciliation",
      "expressPath": "/api/store/native/orders/:id/cod-reconciliation",
      "audience": "staff",
      "router": "storeCodReconciliation",
      "sourceFile": "src/routes/storeCodReconciliation.ts",
      "sourceLine": 21,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "record_native_cod_evidence"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/orders/{id}/delivery-confirmations",
      "expressPath": "/api/store/native/orders/:id/delivery-confirmations",
      "audience": "staff",
      "router": "nativeStoreDelivery",
      "sourceFile": "src/routes/nativeStoreDelivery.ts",
      "sourceLine": 6,
      "bodyFields": [],
      "queryFields": [
        "page"
      ],
      "selections": [],
      "rpcs": [
        "native_delivery_confirmation_history"
      ]
    },
    {
      "method": "POST",
      "path": "/api/store/native/orders/{id}/delivery-confirmations",
      "expressPath": "/api/store/native/orders/:id/delivery-confirmations",
      "audience": "staff",
      "router": "nativeStoreDelivery",
      "sourceFile": "src/routes/nativeStoreDelivery.ts",
      "sourceLine": 7,
      "bodyFields": [
        "action",
        "confirmed",
        "lines",
        "reason",
        "request_key",
        "target_id",
        "version"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "manage_native_delivery_confirmation"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/orders/{id}/delivery-exceptions",
      "expressPath": "/api/store/native/orders/:id/delivery-exceptions",
      "audience": "staff",
      "router": "storeDeliveryExceptions",
      "sourceFile": "src/routes/storeDeliveryExceptions.ts",
      "sourceLine": 19,
      "bodyFields": [],
      "queryFields": [
        "page",
        "status"
      ],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/native/orders/{id}/delivery-exceptions/{caseId}",
      "expressPath": "/api/store/native/orders/:id/delivery-exceptions/:caseId",
      "audience": "staff",
      "router": "storeDeliveryExceptions",
      "sourceFile": "src/routes/storeDeliveryExceptions.ts",
      "sourceLine": 20,
      "bodyFields": [],
      "queryFields": [
        "page",
        "request_key"
      ],
      "selections": [
        "id,action,message,created_at"
      ],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/orders/{id}/delivery-exceptions/{caseId}",
      "expressPath": "/api/store/native/orders/:id/delivery-exceptions/:caseId",
      "audience": "staff",
      "router": "storeDeliveryExceptions",
      "sourceFile": "src/routes/storeDeliveryExceptions.ts",
      "sourceLine": 21,
      "bodyFields": [
        "action",
        "confirmed",
        "message",
        "request_key",
        "version"
      ],
      "queryFields": [],
      "selections": [
        "id"
      ],
      "rpcs": [
        "manage_native_delivery_exception"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/orders/{id}/fulfillments/{actionId}/packing-slip",
      "expressPath": "/api/store/native/orders/:id/fulfillments/:actionId/packing-slip",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStore.ts",
      "sourceLine": 243,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/native/orders/{id}/fulfillments/{actionId}/packing-slip.pdf",
      "expressPath": "/api/store/native/orders/:id/fulfillments/:actionId/packing-slip.pdf",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStore.ts",
      "sourceLine": 250,
      "bodyFields": [],
      "queryFields": [
        "format"
      ],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/native/orders/{id}/fulfillments/packing-slips",
      "expressPath": "/api/store/native/orders/:id/fulfillments/packing-slips",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStore.ts",
      "sourceLine": 261,
      "bodyFields": [],
      "queryFields": [
        "action_ids"
      ],
      "selections": [
        "id,action,payload,created_at",
        "id,action_id,line_id,quantity,tracking,created_at"
      ],
      "rpcs": [
        "native_store_order_progress"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/orders/{id}/invoice",
      "expressPath": "/api/store/native/orders/:id/invoice",
      "audience": "staff",
      "router": "nativeStoreInvoiceDocuments",
      "sourceFile": "src/routes/nativeStoreInvoiceDocuments.ts",
      "sourceLine": 23,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "id,state,provider_receipt,updated_at",
        "state"
      ],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/orders/{id}/invoice",
      "expressPath": "/api/store/native/orders/:id/invoice",
      "audience": "staff",
      "router": "nativeStoreInvoices",
      "sourceFile": "src/routes/nativeStoreInvoices.ts",
      "sourceLine": 21,
      "bodyFields": [
        "confirmed",
        "monetary_fingerprint",
        "request_key",
        "source_fingerprint",
        "version"
      ],
      "queryFields": [],
      "selections": [
        "request_key,actor_id"
      ],
      "rpcs": [
        "issue_native_source_invoice"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/orders/{id}/invoice-review",
      "expressPath": "/api/store/native/orders/:id/invoice-review",
      "audience": "staff",
      "router": "nativeStoreInvoices",
      "sourceFile": "src/routes/nativeStoreInvoices.ts",
      "sourceLine": 20,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/native/orders/{id}/invoice.pdf",
      "expressPath": "/api/store/native/orders/:id/invoice.pdf",
      "audience": "staff",
      "router": "nativeStoreInvoiceDocuments",
      "sourceFile": "src/routes/nativeStoreInvoiceDocuments.ts",
      "sourceLine": 21,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/orders/{id}/invoice/send",
      "expressPath": "/api/store/native/orders/:id/invoice/send",
      "audience": "staff",
      "router": "nativeStoreInvoiceDocuments",
      "sourceFile": "src/routes/nativeStoreInvoiceDocuments.ts",
      "sourceLine": 24,
      "bodyFields": [
        "confirmed",
        "invoice_id",
        "recipient_confirmation",
        "request_key",
        "version"
      ],
      "queryFields": [],
      "selections": [
        "id"
      ],
      "rpcs": [
        "begin_native_invoice_delivery"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/orders/{id}/operations",
      "expressPath": "/api/store/native/orders/:id/operations",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStore.ts",
      "sourceLine": 106,
      "bodyFields": [],
      "queryFields": [
        "page"
      ],
      "selections": [
        "id,actor_id,action,reason,before_data,after_data,created_at"
      ],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/orders/{id}/operations",
      "expressPath": "/api/store/native/orders/:id/operations",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStore.ts",
      "sourceLine": 107,
      "bodyFields": [
        "action",
        "confirmed",
        "payload",
        "reason",
        "request_key",
        "version"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "manage_native_order_operation"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/orders/{id}/payment",
      "expressPath": "/api/store/native/orders/:id/payment",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStore.ts",
      "sourceLine": 111,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/orders/{id}/payment",
      "expressPath": "/api/store/native/orders/:id/payment",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStore.ts",
      "sourceLine": 112,
      "bodyFields": [
        "confirmed",
        "request_key"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/orders/{id}/payment/cancel",
      "expressPath": "/api/store/native/orders/:id/payment/cancel",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStore.ts",
      "sourceLine": 114,
      "bodyFields": [
        "attempt_id",
        "confirmed"
      ],
      "queryFields": [],
      "selections": [
        "id"
      ],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/native/orders/{id}/payment/issues",
      "expressPath": "/api/store/native/orders/:id/payment/issues",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStore.ts",
      "sourceLine": 108,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "id,attempt_id,provider_payment_id,kind,created_at,resolved_at",
        "id,observation_id,actor_id,action,reason,created_at"
      ],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/orders/{id}/payment/issues/{issueId}/review",
      "expressPath": "/api/store/native/orders/:id/payment/issues/:issueId/review",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStore.ts",
      "sourceLine": 109,
      "bodyFields": [
        "confirmed",
        "reason",
        "request_key",
        "resolve"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/orders/{id}/payment/reconcile",
      "expressPath": "/api/store/native/orders/:id/payment/reconcile",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStore.ts",
      "sourceLine": 113,
      "bodyFields": [
        "attempt_id"
      ],
      "queryFields": [],
      "selections": [
        "id"
      ],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/native/orders/{id}/progress",
      "expressPath": "/api/store/native/orders/:id/progress",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStore.ts",
      "sourceLine": 280,
      "bodyFields": [],
      "queryFields": [
        "history_page"
      ],
      "selections": [
        "id,action_id,line_id,quantity,tracking,created_at",
        "method,reference,amount_minor,currency,created_at",
        "id,event,state,attempts,error,created_at",
        "id,fulfillment_id,status,occurred_at",
        "id,payload"
      ],
      "rpcs": [
        "native_store_order_progress"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/orders/{id}/refunds",
      "expressPath": "/api/store/native/orders/:id/refunds",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStore.ts",
      "sourceLine": 115,
      "bodyFields": [],
      "queryFields": [
        "page"
      ],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/orders/{id}/refunds",
      "expressPath": "/api/store/native/orders/:id/refunds",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStore.ts",
      "sourceLine": 116,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/orders/{id}/refunds/{refundId}/reconcile",
      "expressPath": "/api/store/native/orders/:id/refunds/:refundId/reconcile",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStore.ts",
      "sourceLine": 119,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/orders/{id}/refunds/{refundId}/submit",
      "expressPath": "/api/store/native/orders/:id/refunds/:refundId/submit",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStore.ts",
      "sourceLine": 118,
      "bodyFields": [
        "confirmed"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/orders/{id}/refunds/{refundId}/withdraw",
      "expressPath": "/api/store/native/orders/:id/refunds/:refundId/withdraw",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStore.ts",
      "sourceLine": 117,
      "bodyFields": [
        "confirmed"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/native/orders/{id}/timeline",
      "expressPath": "/api/store/native/orders/:id/timeline",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStore.ts",
      "sourceLine": 105,
      "bodyFields": [],
      "queryFields": [
        "as_of",
        "page"
      ],
      "selections": [],
      "rpcs": [
        "native_order_timeline"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/package-policy",
      "expressPath": "/api/store/native/package-policy",
      "audience": "staff",
      "router": "nativeStoreOperations",
      "sourceFile": "src/routes/nativeStoreOperations.ts",
      "sourceLine": 4,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/native/packing-profile",
      "expressPath": "/api/store/native/packing-profile",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStore.ts",
      "sourceLine": 38,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "version,profile,updated_at"
      ],
      "rpcs": []
    },
    {
      "method": "PUT",
      "path": "/api/store/native/packing-profile",
      "expressPath": "/api/store/native/packing-profile",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStore.ts",
      "sourceLine": 39,
      "bodyFields": [
        "version"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "save_native_packing_profile"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/payment-availability",
      "expressPath": "/api/store/native/payment-availability",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStore.ts",
      "sourceLine": 110,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/native/product-reviews",
      "expressPath": "/api/store/native/product-reviews",
      "audience": "staff",
      "router": "productReviewAdmin",
      "sourceFile": "src/routes/storeProductReviews.ts",
      "sourceLine": 31,
      "bodyFields": [],
      "queryFields": [
        "state"
      ],
      "selections": [],
      "rpcs": [
        "read_store_product_reviews"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/product-reviews/{id}",
      "expressPath": "/api/store/native/product-reviews/:id",
      "audience": "staff",
      "router": "productReviewAdmin",
      "sourceFile": "src/routes/storeProductReviews.ts",
      "sourceLine": 35,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "read_store_review_detail"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/product-reviews/{id}/media",
      "expressPath": "/api/store/native/product-reviews/:id/media",
      "audience": "staff",
      "router": "reviewMediaAdmin",
      "sourceFile": "src/routes/storeReviewMedia.ts",
      "sourceLine": 21,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/native/product-reviews/{id}/media/{mediaId}",
      "expressPath": "/api/store/native/product-reviews/:id/media/:mediaId",
      "audience": "staff",
      "router": "reviewMediaAdmin",
      "sourceFile": "src/routes/storeReviewMedia.ts",
      "sourceLine": 22,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/product-reviews/{id}/moderate",
      "expressPath": "/api/store/native/product-reviews/:id/moderate",
      "audience": "staff",
      "router": "productReviewAdmin",
      "sourceFile": "src/routes/storeProductReviews.ts",
      "sourceLine": 36,
      "bodyFields": [
        "confirmed",
        "reason",
        "request_key",
        "state",
        "version"
      ],
      "queryFields": [],
      "selections": [
        "order_id",
        "id"
      ],
      "rpcs": [
        "manage_store_product_review"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/product-reviews/settings",
      "expressPath": "/api/store/native/product-reviews/settings",
      "audience": "staff",
      "router": "productReviewAdmin",
      "sourceFile": "src/routes/storeProductReviews.ts",
      "sourceLine": 32,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "enabled,version,updated_at"
      ],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/product-reviews/settings",
      "expressPath": "/api/store/native/product-reviews/settings",
      "audience": "staff",
      "router": "productReviewAdmin",
      "sourceFile": "src/routes/storeProductReviews.ts",
      "sourceLine": 33,
      "bodyFields": [
        "confirmed",
        "enabled",
        "version"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "save_store_review_settings"
      ]
    },
    {
      "method": "POST",
      "path": "/api/store/native/products/{id}/bulk-edit",
      "expressPath": "/api/store/native/products/:id/bulk-edit",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStore.ts",
      "sourceLine": 49,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "apply_native_product_bulk_edit"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/products/{id}/editor-version",
      "expressPath": "/api/store/native/products/:id/editor-version",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStore.ts",
      "sourceLine": 40,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "native_product_editor_version"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/products/{id}/lifecycle",
      "expressPath": "/api/store/native/products/:id/lifecycle",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStore.ts",
      "sourceLine": 47,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "native_product_lifecycle_review"
      ]
    },
    {
      "method": "POST",
      "path": "/api/store/native/products/{id}/lifecycle",
      "expressPath": "/api/store/native/products/:id/lifecycle",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStore.ts",
      "sourceLine": 48,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "apply_native_product_lifecycle"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/products/{id}/merchandising",
      "expressPath": "/api/store/native/products/:id/merchandising",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStore.ts",
      "sourceLine": 45,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "id",
        "version,data,updated_at"
      ],
      "rpcs": []
    },
    {
      "method": "PUT",
      "path": "/api/store/native/products/{id}/merchandising",
      "expressPath": "/api/store/native/products/:id/merchandising",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStore.ts",
      "sourceLine": 46,
      "bodyFields": [
        "version"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "save_native_product_merchandising"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/products/{id}/photos",
      "expressPath": "/api/store/native/products/:id/photos",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStore.ts",
      "sourceLine": 50,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "PUT",
      "path": "/api/store/native/products/{id}/photos",
      "expressPath": "/api/store/native/products/:id/photos",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStore.ts",
      "sourceLine": 51,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "save_native_product_gallery"
      ]
    },
    {
      "method": "POST",
      "path": "/api/store/native/quotes",
      "expressPath": "/api/store/native/quotes",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStore.ts",
      "sourceLine": 168,
      "bodyFields": [
        "carrier_quote_id",
        "delivery_method",
        "destination",
        "discount_code",
        "no_tax_confirmed",
        "payment_method",
        "request_key",
        "service_id",
        "tax_inclusive",
        "tax_rate_id"
      ],
      "queryFields": [],
      "selections": [
        "mode",
        "*",
        "delivery_settings",
        "workspace_id,config,version"
      ],
      "rpcs": [
        "reserve_native_inventory",
        "save_native_store_quote",
        "release_native_inventory"
      ]
    },
    {
      "method": "POST",
      "path": "/api/store/native/quotes/{id}/place",
      "expressPath": "/api/store/native/quotes/:id/place",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStore.ts",
      "sourceLine": 224,
      "bodyFields": [
        "confirmed",
        "customer",
        "future_supply_confirmed",
        "payment_method"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "place_native_store_order"
      ]
    },
    {
      "method": "POST",
      "path": "/api/store/native/quotes/{id}/release",
      "expressPath": "/api/store/native/quotes/:id/release",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStore.ts",
      "sourceLine": 201,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "reservation_id"
      ],
      "rpcs": [
        "release_native_inventory"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/quotes/{id}/status",
      "expressPath": "/api/store/native/quotes/:id/status",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStore.ts",
      "sourceLine": 210,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "reservation_id",
        "id,order_number,state",
        "state,expires_at"
      ],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/native/reports/activity",
      "expressPath": "/api/store/native/reports/activity",
      "audience": "staff",
      "router": "nativeStoreReports",
      "sourceFile": "src/routes/nativeStoreReports.ts",
      "sourceLine": 9,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "native_store_activity_report"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/reports/activity/dimensions",
      "expressPath": "/api/store/native/reports/activity/dimensions",
      "audience": "staff",
      "router": "nativeStoreReports",
      "sourceFile": "src/routes/nativeStoreReports.ts",
      "sourceLine": 16,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "native_store_low_stock_report",
        "native_store_dimension_report",
        "native_store_discount_attribution"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/reports/activity/records",
      "expressPath": "/api/store/native/reports/activity/records",
      "audience": "staff",
      "router": "nativeStoreReports",
      "sourceFile": "src/routes/nativeStoreReports.ts",
      "sourceLine": 12,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "native_report_order_records"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/return-requests",
      "expressPath": "/api/store/native/return-requests",
      "audience": "staff",
      "router": "returnAdmin",
      "sourceFile": "src/routes/storeReturns.ts",
      "sourceLine": 36,
      "bodyFields": [],
      "queryFields": [
        "handler",
        "state"
      ],
      "selections": [],
      "rpcs": [
        "read_store_return_requests"
      ]
    },
    {
      "method": "POST",
      "path": "/api/store/native/return-requests/{id}/decision",
      "expressPath": "/api/store/native/return-requests/:id/decision",
      "audience": "staff",
      "router": "returnAdmin",
      "sourceFile": "src/routes/storeReturns.ts",
      "sourceLine": 40,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/native/return-requests/{id}/detail",
      "expressPath": "/api/store/native/return-requests/:id/detail",
      "audience": "staff",
      "router": "returnAdmin",
      "sourceFile": "src/routes/storeReturns.ts",
      "sourceLine": 37,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "read_store_return_detail"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/return-requests/{id}/evidence",
      "expressPath": "/api/store/native/return-requests/:id/evidence",
      "audience": "staff",
      "router": "returnEvidenceAdmin",
      "sourceFile": "src/routes/storeReturnEvidence.ts",
      "sourceLine": 27,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/native/return-requests/{id}/evidence/{photoId}",
      "expressPath": "/api/store/native/return-requests/:id/evidence/:photoId",
      "audience": "staff",
      "router": "returnEvidenceAdmin",
      "sourceFile": "src/routes/storeReturnEvidence.ts",
      "sourceLine": 28,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/return-requests/{id}/link-refund",
      "expressPath": "/api/store/native/return-requests/:id/link-refund",
      "audience": "staff",
      "router": "returnAdmin",
      "sourceFile": "src/routes/storeReturns.ts",
      "sourceLine": 66,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/return-requests/{id}/receive",
      "expressPath": "/api/store/native/return-requests/:id/receive",
      "audience": "staff",
      "router": "returnAdmin",
      "sourceFile": "src/routes/storeReturns.ts",
      "sourceLine": 41,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/native/return-requests/{id}/reverse-booking",
      "expressPath": "/api/store/native/return-requests/:id/reverse-booking",
      "audience": "staff",
      "router": "returnAdmin",
      "sourceFile": "src/routes/storeReturns.ts",
      "sourceLine": 43,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/return-requests/{id}/reverse-booking",
      "expressPath": "/api/store/native/return-requests/:id/reverse-booking",
      "audience": "staff",
      "router": "returnAdmin",
      "sourceFile": "src/routes/storeReturns.ts",
      "sourceLine": 50,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/return-requests/{id}/reverse-shipment",
      "expressPath": "/api/store/native/return-requests/:id/reverse-shipment",
      "audience": "staff",
      "router": "returnAdmin",
      "sourceFile": "src/routes/storeReturns.ts",
      "sourceLine": 42,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/return-requests/{id}/work",
      "expressPath": "/api/store/native/return-requests/:id/work",
      "audience": "staff",
      "router": "returnAdmin",
      "sourceFile": "src/routes/storeReturns.ts",
      "sourceLine": 39,
      "bodyFields": [
        "action"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/native/return-requests/settings",
      "expressPath": "/api/store/native/return-requests/settings",
      "audience": "staff",
      "router": "returnAdmin",
      "sourceFile": "src/routes/storeReturns.ts",
      "sourceLine": 34,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "enabled,refund_requests_enabled,window_days,window_basis,reasons,conditions,excluded_product_ids,return_shipping,instructions,version"
      ],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/return-requests/settings",
      "expressPath": "/api/store/native/return-requests/settings",
      "audience": "staff",
      "router": "returnAdmin",
      "sourceFile": "src/routes/storeReturns.ts",
      "sourceLine": 35,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "save_store_return_settings"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/server-keys",
      "expressPath": "/api/store/native/server-keys",
      "audience": "staff",
      "router": "storeMerchantKeys",
      "sourceFile": "src/routes/storeMerchantKeys.ts",
      "sourceLine": 11,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "id,name,key_prefix,scopes,issued_by,created_at,expires_at,revoked_at,last_used_at"
      ],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/server-keys",
      "expressPath": "/api/store/native/server-keys",
      "audience": "staff",
      "router": "storeMerchantKeys",
      "sourceFile": "src/routes/storeMerchantKeys.ts",
      "sourceLine": 13,
      "bodyFields": [
        "action",
        "confirmed",
        "request_key",
        "scopes",
        "target_id"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "manage_store_merchant_key"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/server-keys/events",
      "expressPath": "/api/store/native/server-keys/events",
      "audience": "staff",
      "router": "storeMerchantKeys",
      "sourceFile": "src/routes/storeMerchantKeys.ts",
      "sourceLine": 12,
      "bodyFields": [],
      "queryFields": [
        "page"
      ],
      "selections": [
        "id,key_id,scope,outcome,created_at"
      ],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/native/shipping/accounts",
      "expressPath": "/api/store/native/shipping/accounts",
      "audience": "staff",
      "router": "storeShippingAccounts",
      "sourceFile": "src/routes/storeShippingAccounts.ts",
      "sourceLine": 13,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/shipping/accounts",
      "expressPath": "/api/store/native/shipping/accounts",
      "audience": "staff",
      "router": "storeShippingAccounts",
      "sourceFile": "src/routes/storeShippingAccounts.ts",
      "sourceLine": 35,
      "bodyFields": [
        "action",
        "api_user_email",
        "api_user_password",
        "confirmed",
        "credential_mode",
        "endpoint",
        "environment",
        "id",
        "location_id",
        "name",
        "provider",
        "provider_warehouse_id",
        "token",
        "version"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "manage_store_shipping_account"
      ]
    },
    {
      "method": "POST",
      "path": "/api/store/native/shipping/accounts/delhivery-live-warehouse",
      "expressPath": "/api/store/native/shipping/accounts/delhivery-live-warehouse",
      "audience": "staff",
      "router": "storeShippingAccounts",
      "sourceFile": "src/routes/storeShippingAccounts.ts",
      "sourceLine": 29,
      "bodyFields": [
        "confirmed",
        "email",
        "id",
        "location_id",
        "version",
        "warehouse_name"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/shipping/accounts/delhivery-staging-warehouse",
      "expressPath": "/api/store/native/shipping/accounts/delhivery-staging-warehouse",
      "audience": "staff",
      "router": "storeShippingAccounts",
      "sourceFile": "src/routes/storeShippingAccounts.ts",
      "sourceLine": 14,
      "bodyFields": [
        "confirmed",
        "email",
        "id",
        "location_id",
        "version",
        "warehouse_name"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/shipping/accounts/orders/{id}/rate-quotes",
      "expressPath": "/api/store/native/shipping/accounts/orders/:id/rate-quotes",
      "audience": "staff",
      "router": "storeShippingAccounts",
      "sourceFile": "src/routes/storeShippingAccounts.ts",
      "sourceLine": 60,
      "bodyFields": [
        "account_id",
        "account_version",
        "confirmed",
        "location_id",
        "order_version",
        "parcels"
      ],
      "queryFields": [],
      "selections": [
        "*",
        "id,version,address,is_active,pickup_enabled"
      ],
      "rpcs": [
        "native_store_order_progress"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/taxonomy",
      "expressPath": "/api/store/native/taxonomy",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStore.ts",
      "sourceLine": 41,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "id,kind,name,slug,parent_id,values,is_active,version"
      ],
      "rpcs": []
    },
    {
      "method": "PUT",
      "path": "/api/store/native/taxonomy",
      "expressPath": "/api/store/native/taxonomy",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/nativeStore.ts",
      "sourceLine": 42,
      "bodyFields": [
        "id",
        "version"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "save_native_taxonomy"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/webhooks",
      "expressPath": "/api/store/native/webhooks",
      "audience": "staff",
      "router": "storeOutboundWebhooks",
      "sourceFile": "src/routes/storeOutboundWebhooks.ts",
      "sourceLine": 7,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/webhooks",
      "expressPath": "/api/store/native/webhooks",
      "audience": "staff",
      "router": "storeOutboundWebhooks",
      "sourceFile": "src/routes/storeOutboundWebhooks.ts",
      "sourceLine": 15,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/webhooks/{id}",
      "expressPath": "/api/store/native/webhooks/:id",
      "audience": "staff",
      "router": "storeOutboundWebhooks",
      "sourceFile": "src/routes/storeOutboundWebhooks.ts",
      "sourceLine": 16,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/native/webhooks/deliveries",
      "expressPath": "/api/store/native/webhooks/deliveries",
      "audience": "staff",
      "router": "storeOutboundWebhooks",
      "sourceFile": "src/routes/storeOutboundWebhooks.ts",
      "sourceLine": 17,
      "bodyFields": [],
      "queryFields": [
        "page"
      ],
      "selections": [
        "id,subscription_id,event_id,state,attempts,last_status,error,updated_at"
      ],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/webhooks/deliveries/{id}/retry",
      "expressPath": "/api/store/native/webhooks/deliveries/:id/retry",
      "audience": "staff",
      "router": "storeOutboundWebhooks",
      "sourceFile": "src/routes/storeOutboundWebhooks.ts",
      "sourceLine": 18,
      "bodyFields": [
        "confirmed"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "retry_store_outbound_delivery"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/whatsapp/choices",
      "expressPath": "/api/store/native/whatsapp/choices",
      "audience": "staff",
      "router": "nativeStoreWhatsApp",
      "sourceFile": "src/routes/nativeStoreWhatsApp.ts",
      "sourceLine": 16,
      "bodyFields": [],
      "queryFields": [
        "kind",
        "number_id",
        "page",
        "search"
      ],
      "selections": [
        "id,label,wa_display_name,wa_phone_number",
        "id",
        "id,name,retailer_id,catalog_id"
      ],
      "rpcs": [
        "store_mapping_choices"
      ]
    },
    {
      "method": "POST",
      "path": "/api/store/native/whatsapp/handoffs",
      "expressPath": "/api/store/native/whatsapp/handoffs",
      "audience": "staff",
      "router": "nativeStoreWhatsApp",
      "sourceFile": "src/routes/nativeStoreWhatsApp.ts",
      "sourceLine": 19,
      "bodyFields": [
        "confirmed",
        "message_id",
        "renew_expired",
        "request_key",
        "token"
      ],
      "queryFields": [],
      "selections": [
        "conversation_id",
        "*",
        "slug"
      ],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/native/whatsapp/mappings",
      "expressPath": "/api/store/native/whatsapp/mappings",
      "audience": "staff",
      "router": "nativeStoreWhatsApp",
      "sourceFile": "src/routes/nativeStoreWhatsApp.ts",
      "sourceLine": 17,
      "bodyFields": [],
      "queryFields": [
        "page"
      ],
      "selections": [
        "*,native:products!native_product_id(name),option:product_variants!native_variant_id(name),number:sender_configs!number_id(wa_display_name,wa_phone_number),meta:wa_catalog_products!catalog_product_id(name,retailer_id)"
      ],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/native/whatsapp/mappings",
      "expressPath": "/api/store/native/whatsapp/mappings",
      "audience": "staff",
      "router": "nativeStoreWhatsApp",
      "sourceFile": "src/routes/nativeStoreWhatsApp.ts",
      "sourceLine": 18,
      "bodyFields": [
        "catalog_product_id",
        "confirmed",
        "enabled",
        "id",
        "native_product_id",
        "native_variant_id",
        "number_id",
        "version"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "save_native_whatsapp_mapping"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/native/whatsapp/orders/{id}/source",
      "expressPath": "/api/store/native/whatsapp/orders/:id/source",
      "audience": "staff",
      "router": "nativeStoreWhatsApp",
      "sourceFile": "src/routes/nativeStoreWhatsApp.ts",
      "sourceLine": 15,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "id",
        "conversation_id,number_id,created_at",
        "*",
        "wa_display_name,wa_phone_number"
      ],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/notification-settings",
      "expressPath": "/api/store/notification-settings",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/storeNotificationSettings.ts",
      "sourceLine": 20,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "*",
        "id",
        "id, template_name, language, category, status, components"
      ],
      "rpcs": []
    },
    {
      "method": "PUT",
      "path": "/api/store/notification-settings",
      "expressPath": "/api/store/notification-settings",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/storeNotificationSettings.ts",
      "sourceLine": 107,
      "bodyFields": [
        "notify_admins",
        "notify_customer"
      ],
      "queryFields": [],
      "selections": [
        "updated_at",
        "id",
        "components"
      ],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/notification-settings/team-recipients",
      "expressPath": "/api/store/notification-settings/team-recipients",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/storeNotificationSettings.ts",
      "sourceLine": 17,
      "bodyFields": [],
      "queryFields": [
        "page",
        "search"
      ],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/operations/deliveries",
      "expressPath": "/api/store/operations/deliveries",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/storeOperations.ts",
      "sourceLine": 18,
      "bodyFields": [],
      "queryFields": [
        "page"
      ],
      "selections": [
        "id,channel,state,attempts,total_attempts,error,created_at,updated_at"
      ],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/operations/deliveries/{id}/retry",
      "expressPath": "/api/store/operations/deliveries/:id/retry",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/storeOperations.ts",
      "sourceLine": 30,
      "bodyFields": [
        "confirmed",
        "expected_updated_at",
        "reason",
        "request_key"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "review_store_delivery_retry"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/operations/orders/{provider}/{id}",
      "expressPath": "/api/store/operations/orders/:provider/:id",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/storeOperations.ts",
      "sourceLine": 16,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "request_key,action,expected_version,state"
      ],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/operations/orders/{provider}/{id}",
      "expressPath": "/api/store/operations/orders/:provider/:id",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/storeOperations.ts",
      "sourceLine": 17,
      "bodyFields": [
        "action",
        "confirmed",
        "request_key",
        "version"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/operations/pricing-preview",
      "expressPath": "/api/store/operations/pricing-preview",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/storeOperations.ts",
      "sourceLine": 29,
      "bodyFields": [
        "save",
        "tax_rate_id"
      ],
      "queryFields": [],
      "selections": [
        "*",
        "delivery_settings",
        "id,created_at"
      ],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/operations/products/{id}",
      "expressPath": "/api/store/operations/products/:id",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/storeOperations.ts",
      "sourceLine": 13,
      "bodyFields": [],
      "queryFields": [
        "request_key"
      ],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/operations/products/{id}",
      "expressPath": "/api/store/operations/products/:id",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/storeOperations.ts",
      "sourceLine": 14,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/operations/stock-movements",
      "expressPath": "/api/store/operations/stock-movements",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/storeOperations.ts",
      "sourceLine": 23,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "id,product_id,delta,applied_delta,requested_qty,reason,reference_id,new_qty,created_at,product:products(name,source)"
      ],
      "rpcs": [
        "store_stock_return_totals"
      ]
    },
    {
      "method": "POST",
      "path": "/api/store/operations/stock-movements/{id}/restock",
      "expressPath": "/api/store/operations/stock-movements/:id/restock",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/storeOperations.ts",
      "sourceLine": 24,
      "bodyFields": [
        "confirmed",
        "quantity",
        "reason",
        "request_key"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "reverse_local_stock_movement"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/operations/sync-jobs",
      "expressPath": "/api/store/operations/sync-jobs",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/storeOperations.ts",
      "sourceLine": 25,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "id,provider,resource,state,checkpoint,result,error,created_at,updated_at"
      ],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/operations/sync-jobs/{id}/{action}",
      "expressPath": "/api/store/operations/sync-jobs/:id/:action",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/storeOperations.ts",
      "sourceLine": 26,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "id,state,provider,actor_id,workspace_id,updated_at",
        "id"
      ],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/operations/webhooks/{provider}",
      "expressPath": "/api/store/operations/webhooks/:provider",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/storeOperations.ts",
      "sourceLine": 27,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/operations/webhooks/{provider}/repair",
      "expressPath": "/api/store/operations/webhooks/:provider/repair",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/storeOperations.ts",
      "sourceLine": 28,
      "bodyFields": [
        "confirmed"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/product-imports",
      "expressPath": "/api/store/product-imports",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/storeProductImports.ts",
      "sourceLine": 44,
      "bodyFields": [],
      "queryFields": [
        "page"
      ],
      "selections": [
        "id,request_key,created_by,state,version,created_at,updated_at"
      ],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/product-imports/{id}/action",
      "expressPath": "/api/store/product-imports/:id/action",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/storeProductImports.ts",
      "sourceLine": 117,
      "bodyFields": [
        "action",
        "confirmed",
        "version"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "run_store_product_import"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/product-imports/{id}/errors.csv",
      "expressPath": "/api/store/product-imports/:id/errors.csv",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/storeProductImports.ts",
      "sourceLine": 97,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "id,version",
        "row_number,row_key,action,kind,product_id,variant_id,state,errors,attempts",
        "version"
      ],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/product-imports/{id}/events",
      "expressPath": "/api/store/product-imports/:id/events",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/storeProductImports.ts",
      "sourceLine": 88,
      "bodyFields": [],
      "queryFields": [
        "page"
      ],
      "selections": [
        "id",
        "id,actor_id,action,details,created_at"
      ],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/product-imports/{id}/rows",
      "expressPath": "/api/store/product-imports/:id/rows",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/storeProductImports.ts",
      "sourceLine": 45,
      "bodyFields": [],
      "queryFields": [
        "page",
        "state"
      ],
      "selections": [
        "id,state,version,created_at,updated_at",
        "id,row_number,row_key,action,kind,product_id,variant_id,state,errors,result,attempts"
      ],
      "rpcs": [
        "store_product_import_review",
        "store_product_import_counts"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/product-imports/export.csv",
      "expressPath": "/api/store/product-imports/export.csv",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/storeProductImports.ts",
      "sourceLine": 123,
      "bodyFields": [],
      "queryFields": [
        "active",
        "category",
        "ids",
        "search",
        "stock_location"
      ],
      "selections": [
        "mode",
        "id",
        "id,name,sku,description,unit_price,currency,category,tags,image_url,is_active,has_variants,stock_qty,store_published,updated_at",
        "id,product_id,name,sku,price,compare_at_price,stock_qty,attributes,image_url,is_active,updated_at",
        "product_id,variant_id,on_hand,version",
        "product_id,version,data"
      ],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/product-imports/images",
      "expressPath": "/api/store/product-imports/images",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/storeProductImports.ts",
      "sourceLine": 66,
      "bodyFields": [
        "allowed_hosts",
        "alt",
        "confirmed",
        "request_key",
        "url"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/product-imports/images/csv",
      "expressPath": "/api/store/product-imports/images/csv",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/storeProductImports.ts",
      "sourceLine": 76,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "state,url"
      ],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/product-imports/preview",
      "expressPath": "/api/store/product-imports/preview",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/storeProductImports.ts",
      "sourceLine": 26,
      "bodyFields": [
        "approved_hosts",
        "csv",
        "mapping",
        "request_key"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "prepare_store_product_import",
        "store_product_import_review"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/product-imports/schema",
      "expressPath": "/api/store/product-imports/schema",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/storeProductImports.ts",
      "sourceLine": 24,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/product-imports/template.csv",
      "expressPath": "/api/store/product-imports/template.csv",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/storeProductImports.ts",
      "sourceLine": 25,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/storefront",
      "expressPath": "/api/store/storefront",
      "audience": "staff",
      "router": "nativeShopAdmin",
      "sourceFile": "src/routes/nativeShop.ts",
      "sourceLine": 45,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "*"
      ],
      "rpcs": []
    },
    {
      "method": "PUT",
      "path": "/api/store/storefront",
      "expressPath": "/api/store/storefront",
      "audience": "staff",
      "router": "nativeShopAdmin",
      "sourceFile": "src/routes/nativeShop.ts",
      "sourceLine": 48,
      "bodyFields": [
        "confirmed",
        "version"
      ],
      "queryFields": [],
      "selections": [
        "url,alt",
        "delivery_settings"
      ],
      "rpcs": [
        "save_native_shop_settings"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/storefront/customer-auth",
      "expressPath": "/api/store/storefront/customer-auth",
      "audience": "staff",
      "router": "storeCustomerAdmin",
      "sourceFile": "src/routes/storeCustomers.ts",
      "sourceLine": 38,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "PUT",
      "path": "/api/store/storefront/customer-auth",
      "expressPath": "/api/store/storefront/customer-auth",
      "audience": "staff",
      "router": "storeCustomerAdmin",
      "sourceFile": "src/routes/storeCustomers.ts",
      "sourceLine": 49,
      "bodyFields": [
        "version"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "save_store_customer_auth"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/storefront/preview",
      "expressPath": "/api/store/storefront/preview",
      "audience": "staff",
      "router": "nativeShopAdmin",
      "sourceFile": "src/routes/nativeShop.ts",
      "sourceLine": 65,
      "bodyFields": [],
      "queryFields": [
        "page",
        "search"
      ],
      "selections": [],
      "rpcs": [
        "native_shop_catalog_page"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/storefront/preview/products/{id}/options",
      "expressPath": "/api/store/storefront/preview/products/:id/options",
      "audience": "staff",
      "router": "nativeShopAdmin",
      "sourceFile": "src/routes/nativeShop.ts",
      "sourceLine": 68,
      "bodyFields": [],
      "queryFields": [
        "page",
        "search"
      ],
      "selections": [],
      "rpcs": [
        "native_shop_option_page"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/storefront/products",
      "expressPath": "/api/store/storefront/products",
      "audience": "staff",
      "router": "nativeShopAdmin",
      "sourceFile": "src/routes/nativeShop.ts",
      "sourceLine": 58,
      "bodyFields": [],
      "queryFields": [
        "page",
        "search"
      ],
      "selections": [
        "id,name,sku,currency,is_active,has_variants,store_published,updated_at"
      ],
      "rpcs": []
    },
    {
      "method": "PUT",
      "path": "/api/store/storefront/products/{id}",
      "expressPath": "/api/store/storefront/products/:id",
      "audience": "staff",
      "router": "nativeShopAdmin",
      "sourceFile": "src/routes/nativeShop.ts",
      "sourceLine": 61,
      "bodyFields": [
        "published",
        "updated_at"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "set_native_product_publication"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/storefront/website",
      "expressPath": "/api/store/storefront/website",
      "audience": "staff",
      "router": "nativeShopAdmin",
      "sourceFile": "src/routes/nativeShop.ts",
      "sourceLine": 52,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "slug,is_published",
        "enabled,origins,version"
      ],
      "rpcs": []
    },
    {
      "method": "PUT",
      "path": "/api/store/storefront/website",
      "expressPath": "/api/store/storefront/website",
      "audience": "staff",
      "router": "nativeShopAdmin",
      "sourceFile": "src/routes/nativeShop.ts",
      "sourceLine": 55,
      "bodyFields": [
        "version"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "save_native_store_frontend"
      ]
    },
    {
      "method": "GET",
      "path": "/api/store/tax-rates",
      "expressPath": "/api/store/tax-rates",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/storeTaxRates.ts",
      "sourceLine": 23,
      "bodyFields": [],
      "queryFields": [
        "include_inactive"
      ],
      "selections": [
        "*"
      ],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/store/tax-rates",
      "expressPath": "/api/store/tax-rates",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/storeTaxRates.ts",
      "sourceLine": 42,
      "bodyFields": [
        "cess_pct",
        "cgst_pct",
        "description",
        "hsn_sac_code",
        "igst_pct",
        "is_default",
        "is_gst",
        "name",
        "rate_pct",
        "sgst_pct"
      ],
      "queryFields": [],
      "selections": [],
      "rpcs": [
        "save_store_tax_rate"
      ]
    },
    {
      "method": "DELETE",
      "path": "/api/store/tax-rates/{id}",
      "expressPath": "/api/store/tax-rates/:id",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/storeTaxRates.ts",
      "sourceLine": 69,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "id"
      ],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/store/tax-rates/{id}",
      "expressPath": "/api/store/tax-rates/:id",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/storeTaxRates.ts",
      "sourceLine": 47,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "*"
      ],
      "rpcs": []
    },
    {
      "method": "PUT",
      "path": "/api/store/tax-rates/{id}",
      "expressPath": "/api/store/tax-rates/:id",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/storeTaxRates.ts",
      "sourceLine": 63,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "*"
      ],
      "rpcs": [
        "save_store_tax_rate"
      ]
    },
    {
      "method": "POST",
      "path": "/api/store/tax-rates/{id}/set-default",
      "expressPath": "/api/store/tax-rates/:id/set-default",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/storeTaxRates.ts",
      "sourceLine": 66,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "*"
      ],
      "rpcs": [
        "save_store_tax_rate"
      ]
    },
    {
      "method": "GET",
      "path": "/api/wa-catalogs",
      "expressPath": "/api/wa-catalogs",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/waCatalog.ts",
      "sourceLine": 393,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "*",
        "id"
      ],
      "rpcs": []
    },
    {
      "method": "DELETE",
      "path": "/api/wa-catalogs/{catalogDbId}",
      "expressPath": "/api/wa-catalogs/:catalogDbId",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/waCatalog.ts",
      "sourceLine": 682,
      "bodyFields": [
        "is_primary",
        "wa_number_id"
      ],
      "queryFields": [],
      "selections": [
        "wa_number_id"
      ],
      "rpcs": []
    },
    {
      "method": "PATCH",
      "path": "/api/wa-catalogs/{catalogDbId}/ai-enabled",
      "expressPath": "/api/wa-catalogs/:catalogDbId/ai-enabled",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/waCatalog.ts",
      "sourceLine": 622,
      "bodyFields": [
        "is_primary",
        "wa_number_id"
      ],
      "queryFields": [],
      "selections": [
        "wa_number_id",
        "id",
        "sync_status",
        "id, ai_enabled"
      ],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/wa-catalogs/{catalogDbId}/products",
      "expressPath": "/api/wa-catalogs/:catalogDbId/products",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/waCatalog.ts",
      "sourceLine": 595,
      "bodyFields": [
        "is_primary",
        "wa_number_id"
      ],
      "queryFields": [
        "page",
        "search"
      ],
      "selections": [
        "wa_number_id",
        "id,sync_status,ownership_verified_at,ownership_waba_id,sender_configs:wa_number_id(waba_id)",
        "*"
      ],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/wa-catalogs/{catalogDbId}/products/{productDbId}/link",
      "expressPath": "/api/wa-catalogs/:catalogDbId/products/:productDbId/link",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/waCatalog.ts",
      "sourceLine": 656,
      "bodyFields": [
        "is_primary",
        "wa_number_id"
      ],
      "queryFields": [],
      "selections": [
        "wa_number_id",
        "id"
      ],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/wa-catalogs/{catalogDbId}/sync-products",
      "expressPath": "/api/wa-catalogs/:catalogDbId/sync-products",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/waCatalog.ts",
      "sourceLine": 467,
      "bodyFields": [
        "is_primary",
        "wa_number_id"
      ],
      "queryFields": [],
      "selections": [
        "wa_number_id",
        "*, sender_configs:wa_number_id(wa_token)",
        "id, retailer_id"
      ],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/wa-catalogs/add-manual",
      "expressPath": "/api/wa-catalogs/add-manual",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/waCatalog.ts",
      "sourceLine": 454,
      "bodyFields": [
        "catalog_name",
        "is_primary",
        "wa_number_id"
      ],
      "queryFields": [],
      "selections": [
        "wa_number_id"
      ],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/wa-catalogs/commerce-settings",
      "expressPath": "/api/wa-catalogs/commerce-settings",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/waCatalog.ts",
      "sourceLine": 43,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "wa_catalog_commerce, payment_gateways"
      ],
      "rpcs": []
    },
    {
      "method": "PUT",
      "path": "/api/wa-catalogs/commerce-settings",
      "expressPath": "/api/wa-catalogs/commerce-settings",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/waCatalog.ts",
      "sourceLine": 59,
      "bodyFields": [
        "enabled"
      ],
      "queryFields": [],
      "selections": [
        "payment_gateways"
      ],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/wa-catalogs/discover",
      "expressPath": "/api/wa-catalogs/discover",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/waCatalog.ts",
      "sourceLine": 444,
      "bodyFields": [
        "is_primary",
        "wa_number_id"
      ],
      "queryFields": [],
      "selections": [
        "wa_number_id"
      ],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/wa-catalogs/orders/{sourceMessageId}/payment-link",
      "expressPath": "/api/wa-catalogs/orders/:sourceMessageId/payment-link",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/waCatalog.ts",
      "sourceLine": 79,
      "bodyFields": [
        "lead_id"
      ],
      "queryFields": [],
      "selections": [
        "wa_catalog_commerce, payment_gateways",
        "id, external_id, qty, unit_price, currency, status, payment_status, notes",
        "sync_status",
        "price, currency, availability",
        "name, email, phone",
        "*",
        "id"
      ],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/wa-catalogs/orders/{sourceMessageId}/refunds",
      "expressPath": "/api/wa-catalogs/orders/:sourceMessageId/refunds",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/waCatalog.ts",
      "sourceLine": 222,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "id, status, amount, currency, provider_payment_id, payment_link_id, lead_id",
        "payment_gateways",
        "id",
        "*"
      ],
      "rpcs": [
        "reserve_wa_catalog_order_refund"
      ]
    },
    {
      "method": "POST",
      "path": "/api/webhooks/rzp/{workspaceId}",
      "expressPath": "/api/webhooks/rzp/:workspaceId",
      "audience": "provider-webhook",
      "router": "storeMerchantWebhook",
      "sourceFile": "src/routes/storeMerchantAccounts.ts",
      "sourceLine": 40,
      "bodyFields": [
        "event",
        "payload"
      ],
      "queryFields": [],
      "selections": [
        "id,gateway_fingerprint",
        "webhook_secret"
      ],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/webhooks/rzp/{workspaceId}/accounts/{accountId}",
      "expressPath": "/api/webhooks/rzp/:workspaceId/accounts/:accountId",
      "audience": "provider-webhook",
      "router": "storeMerchantWebhook",
      "sourceFile": "src/routes/storeMerchantAccounts.ts",
      "sourceLine": 28,
      "bodyFields": [
        "event",
        "payload"
      ],
      "queryFields": [],
      "selections": [
        "webhook_secret,gateway_fingerprint",
        "gateway_fingerprint"
      ],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/webhooks/rzp/{workspaceId}/subscriptions/{accountId}",
      "expressPath": "/api/webhooks/rzp/:workspaceId/subscriptions/:accountId",
      "audience": "provider-webhook",
      "router": "storeSubscriptionWebhook",
      "sourceFile": "src/routes/storeSubscriptions.ts",
      "sourceLine": 50,
      "bodyFields": [
        "authorized",
        "captured",
        "created",
        "dispute",
        "entity",
        "event",
        "expired",
        "failed",
        "id",
        "issued",
        "paid",
        "partially_paid",
        "payload",
        "payment_id",
        "refunded"
      ],
      "queryFields": [],
      "selections": [
        "webhook_secret,gateway_fingerprint",
        "id,gateway_fingerprint"
      ],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/webhooks/shopify/{workspaceId}/inventory",
      "expressPath": "/api/webhooks/shopify/:workspaceId/inventory",
      "audience": "provider-webhook",
      "router": "router",
      "sourceFile": "src/routes/storeWebhooks.ts",
      "sourceLine": 196,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/webhooks/shopify/{workspaceId}/orders",
      "expressPath": "/api/webhooks/shopify/:workspaceId/orders",
      "audience": "provider-webhook",
      "router": "router",
      "sourceFile": "src/routes/storeWebhooks.ts",
      "sourceLine": 142,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/webhooks/shopify/{workspaceId}/products",
      "expressPath": "/api/webhooks/shopify/:workspaceId/products",
      "audience": "provider-webhook",
      "router": "router",
      "sourceFile": "src/routes/storeWebhooks.ts",
      "sourceLine": 158,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/webhooks/woocommerce/{workspaceId}/orders",
      "expressPath": "/api/webhooks/woocommerce/:workspaceId/orders",
      "audience": "provider-webhook",
      "router": "router",
      "sourceFile": "src/routes/storeWebhooks.ts",
      "sourceLine": 171,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "POST",
      "path": "/api/webhooks/woocommerce/{workspaceId}/products",
      "expressPath": "/api/webhooks/woocommerce/:workspaceId/products",
      "audience": "provider-webhook",
      "router": "router",
      "sourceFile": "src/routes/storeWebhooks.ts",
      "sourceLine": 187,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/workspace-settings",
      "expressPath": "/api/workspace-settings",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/workspaceSettings.ts",
      "sourceLine": 26,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "*",
        "inbox_scope"
      ],
      "rpcs": []
    },
    {
      "method": "PATCH",
      "path": "/api/workspace-settings",
      "expressPath": "/api/workspace-settings",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/workspaceSettings.ts",
      "sourceLine": 469,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "PUT",
      "path": "/api/workspace-settings",
      "expressPath": "/api/workspace-settings",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/workspaceSettings.ts",
      "sourceLine": 165,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "business_hours"
      ],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/workspace-settings/commerce-status",
      "expressPath": "/api/workspace-settings/commerce-status",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/workspaceSettings.ts",
      "sourceLine": 747,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "provider, credentials",
        "wa_selling_enabled, wa_link_sharing_enabled, wa_direct_checkout_enabled"
      ],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/workspace-settings/delivery",
      "expressPath": "/api/workspace-settings/delivery",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/workspaceSettings.ts",
      "sourceLine": 855,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "delivery_settings"
      ],
      "rpcs": []
    },
    {
      "method": "PUT",
      "path": "/api/workspace-settings/delivery",
      "expressPath": "/api/workspace-settings/delivery",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/workspaceSettings.ts",
      "sourceLine": 871,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/workspace-settings/payment-gateways",
      "expressPath": "/api/workspace-settings/payment-gateways",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/workspaceSettings.ts",
      "sourceLine": 619,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "payment_gateways, updated_at",
        "workspace_id"
      ],
      "rpcs": []
    },
    {
      "method": "PUT",
      "path": "/api/workspace-settings/payment-gateways",
      "expressPath": "/api/workspace-settings/payment-gateways",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/workspaceSettings.ts",
      "sourceLine": 520,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "payment_gateways"
      ],
      "rpcs": [
        "merge_payment_gateway"
      ]
    },
    {
      "method": "POST",
      "path": "/api/workspace-settings/payment-gateways/test",
      "expressPath": "/api/workspace-settings/payment-gateways/test",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/workspaceSettings.ts",
      "sourceLine": 686,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "payment_gateways"
      ],
      "rpcs": []
    },
    {
      "method": "GET",
      "path": "/api/workspace-settings/store-settings",
      "expressPath": "/api/workspace-settings/store-settings",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/workspaceSettings.ts",
      "sourceLine": 801,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "wa_selling_enabled, wa_link_sharing_enabled, wa_direct_checkout_enabled, payment_gateways, delivery_settings",
        "provider, last_synced_at, is_active,credentials",
        "provider,last_synced_at,is_active,credentials"
      ],
      "rpcs": []
    },
    {
      "method": "PUT",
      "path": "/api/workspace-settings/wa-direct-checkout",
      "expressPath": "/api/workspace-settings/wa-direct-checkout",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/workspaceSettings.ts",
      "sourceLine": 934,
      "bodyFields": [],
      "queryFields": [],
      "selections": [
        "payment_gateways"
      ],
      "rpcs": []
    },
    {
      "method": "PUT",
      "path": "/api/workspace-settings/wa-link-sharing",
      "expressPath": "/api/workspace-settings/wa-link-sharing",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/workspaceSettings.ts",
      "sourceLine": 916,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    },
    {
      "method": "PUT",
      "path": "/api/workspace-settings/wa-selling",
      "expressPath": "/api/workspace-settings/wa-selling",
      "audience": "staff",
      "router": "router",
      "sourceFile": "src/routes/workspaceSettings.ts",
      "sourceLine": 894,
      "bodyFields": [],
      "queryFields": [],
      "selections": [],
      "rpcs": []
    }
  ],
  "x-rate-limits": {
    "public_edge": "300 requests/minute shared IP",
    "customer_auth_edge": "30 requests/minute; durable Store/recipient/IP budgets, resend cooldown and single-use attempts apply",
    "customer_auth_store_hour": 1000,
    "merchant_key_minute": 60,
    "merchant_key_conservative_hour": 1000,
    "merchant_ip_minute": 120,
    "review_wishlist_and_photo": "Purpose-specific durable and edge limits apply;429 does not certify remaining provider quota."
  },
  "x-origin-contract": "Merchant-approved exact origin only, opt-in; credentials omitted. CORS is not authentication. Never expose employee JWT or merchant key in shopper JavaScript.",
  "x-no-automatic-write-replay": true
}
