Skip to content

armgit / Orkas

Public Imported from GitHub
0

Orkas is an open-source (MIT), local-first AI team for your desktop: a Commander turns your goal into to-dos and coordinates 16 built-in specialist agents plus Claude Code, Codex, OpenCode, OpenClaw and Hermes, with projects, scheduled automations and connectors. Free app for macOS & Windows; built-in models or your own keys.

1.1 MB
Raw Blame
'use strict';
// Generated from the pinned official Lightspeed X-Series OpenAPI.
module.exports = {
  "version": "2026-07",
  "methods": {
    "GET /auditlog_events": {
      "method": "GET",
      "path": "/auditlog_events",
      "risk": "R",
      "description": "List audit events",
      "input_schema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "object",
            "properties": {
              "page_size": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 100,
                "description": "The size for a single page of results. By default 100 events will be returned."
              },
              "offset": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^(0|[1-9][0-9]{0,14})$"
                  }
                ],
                "description": "The number of objects to skip."
              },
              "from": {
                "type": "string",
                "maxLength": 262144,
                "description": "The lower limit for the `occurred_at` attribute. to be included in the response. The date and time from needs to be in isoformat."
              },
              "to": {
                "type": "string",
                "maxLength": 262144,
                "description": "The upper limit for the `occurred_at` attribute. to be included in the response. The date and time from needs to be in isoformat."
              },
              "order": {
                "type": "string",
                "maxLength": 262144,
                "description": "The sorting order for the results. Sorting is done by the `occurred_at` parameter. The default order is descending."
              },
              "user_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The `id` of the user to filter the events by."
              },
              "type": {
                "type": "string",
                "maxLength": 262144,
                "description": "The `type` of the events to be filtered for the response."
              }
            },
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [],
        "additionalProperties": false,
        "description": "This API returns a list of all the audit log events that match the given filters.\n\n**Note**: Not every single change in the system is audited. Currently the audited entities include:\n\n| Object     | Action                    | Notes |\n|------------|---------------------------|-------|\n| customer   | form create/update/delete |       |\n| customer   | api create/update/delete  |       |\n| customer   | csv import                |       |\n| register   | form create/update/delete |       |\n| outlet     | form create/update/delete |       |\n| csv import | init                      | Tracks CSV import requests and includes data about the import type (customer, product) and the CSV file line count. |\n| product*   | create/update/delete      | All actions on products. |\n| security   | terms_accepted, signin, signout, change_email, change_password, reset_password_confirm, user_switching_succes, user_switching_denied, new_personal_token, update_personal_token, delete_personal_tokenss, issue_oauth_token ||\n| vend_consignment | insert/update | Receiving, creating and editing purchase orders as well as inventory counts. |\n| vend_consignment_product | insert/update | Changes to the products in a purchase order. Such as creating purchase orders. |\n| timeclock | clockin/clockout | Clock event where a user either clocked in or clocked out. |\n\n### Filters\n- The from and to filters require a full isoformat date, for example `?from=2020-02-03T00:00:00&to=2020-02-05T23:59:59`.\n\n🔒 Requires: `audit:read` scope"
      },
      "wire": [
        {
          "name": "page_size",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "offset",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "from",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "to",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "order",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "user_id",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "type",
          "in": "query",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {
          "page_size": 100
        },
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "properties": {
              "data": {
                "items": {
                  "$ref": "#/components/schemas/AuditLogEvent"
                },
                "type": "array"
              }
            },
            "type": "object"
          }
        }
      }
    },
    "GET /brands": {
      "method": "GET",
      "path": "/brands",
      "risk": "R",
      "description": "List brands",
      "input_schema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "object",
            "properties": {
              "after": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The lower limit for the version numbers to be included in the response."
              },
              "before": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The upper limit for the version numbers to be included in the response."
              },
              "page_size": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 100,
                "description": "The maximum number of items to be returned in the response."
              },
              "deleted": {
                "type": "boolean",
                "description": "Indicates whether deleted items should be included in the response."
              }
            },
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [],
        "additionalProperties": false,
        "description": "Returns a paginated list of brands.\n\n🔒 Requires: `products:read` scope"
      },
      "wire": [
        {
          "name": "after",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "before",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "page_size",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "deleted",
          "in": "query",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {
          "page_size": 100
        },
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/BrandCollection"
          }
        }
      }
    },
    "POST /brands": {
      "method": "POST",
      "path": "/brands",
      "risk": "W",
      "description": "Create brand",
      "input_schema": {
        "type": "object",
        "properties": {
          "body": {
            "$ref": "#/$defs/BrandBase"
          }
        },
        "required": [
          "body"
        ],
        "additionalProperties": false,
        "description": "Creates a new brand.\n\n🔒 Requires: `products:write` scope",
        "$defs": {
          "BrandBase": {
            "type": "object",
            "required": [
              "name"
            ],
            "properties": {
              "description": {
                "type": "string",
                "description": "The brand description.",
                "maxLength": 262144
              },
              "name": {
                "type": "string",
                "description": "The Brand name.",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "properties": {
              "data": {
                "description": "The id of brand created.",
                "format": "uuid",
                "type": "string"
              }
            },
            "type": "object"
          }
        }
      }
    },
    "DELETE /brands/{brand_id}": {
      "method": "DELETE",
      "path": "/brands/{brand_id}",
      "risk": "D",
      "description": "Delete a single brand",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "brand_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The brand id."
              }
            },
            "required": [
              "brand_id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Deletes a brand. If there are products associated with the brand, the products will be disassociated from the brand.\n\n🔒 Requires: `products:write` scope"
      },
      "wire": [
        {
          "name": "brand_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "properties": {
              "payload": {
                "properties": {
                  "data": {
                    "properties": {
                      "id": {
                        "description": "The id of the brand deleted.",
                        "format": "UUID",
                        "type": "string"
                      },
                      "job_id": {
                        "description": "The id of the asynchronous job to disassociate products from the deleted brand.",
                        "type": "string"
                      }
                    },
                    "type": "object"
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          }
        }
      }
    },
    "GET /brands/{brand_id}": {
      "method": "GET",
      "path": "/brands/{brand_id}",
      "risk": "R",
      "description": "Get a single brand",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "brand_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The brand id"
              }
            },
            "required": [
              "brand_id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Returns a single brand with a requested ID\n\n🔒 Requires: `products:read` scope"
      },
      "wire": [
        {
          "name": "brand_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/BrandResponse"
          }
        }
      }
    },
    "PUT /brands/{brand_id}": {
      "method": "PUT",
      "path": "/brands/{brand_id}",
      "risk": "W",
      "description": "Update a single brand",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "brand_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The brand id."
              }
            },
            "required": [
              "brand_id"
            ],
            "additionalProperties": false
          },
          "body": {
            "$ref": "#/$defs/BrandBase"
          }
        },
        "required": [
          "path",
          "body"
        ],
        "additionalProperties": false,
        "description": "🔒 Requires: `products:write` scope",
        "$defs": {
          "BrandBase": {
            "type": "object",
            "required": [
              "name"
            ],
            "properties": {
              "description": {
                "type": "string",
                "description": "The brand description.",
                "maxLength": 262144
              },
              "name": {
                "type": "string",
                "description": "The Brand name.",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [
        {
          "name": "brand_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "properties": {
              "data": {
                "properties": {
                  "id": {
                    "description": "The id of the brand.",
                    "format": "uuid",
                    "type": "string"
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          }
        }
      }
    },
    "GET /button_layouts": {
      "method": "GET",
      "path": "/button_layouts",
      "risk": "R",
      "description": "List button layouts",
      "input_schema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "object",
            "properties": {
              "after": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The lower limit for the version numbers to be included in the response."
              },
              "before": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The upper limit for the version numbers to be included in the response."
              },
              "page_size": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 100,
                "description": "The maximum number of items to be returned in the response."
              },
              "deleted": {
                "type": "boolean",
                "description": "Indicates whether deleted items should be included in the response."
              }
            },
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [],
        "additionalProperties": false,
        "description": "Returns a versioned collection of button layouts for the authenticated retailer.\nButton layouts define the arrangement of quick key buttons on a register.\n\n🔒 Requires: `registers:read` scope"
      },
      "wire": [
        {
          "name": "after",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "before",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "page_size",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "deleted",
          "in": "query",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {
          "page_size": 100
        },
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/ButtonLayoutCollection"
          }
        }
      }
    },
    "GET /button_layouts/{button_layout_id}": {
      "method": "GET",
      "path": "/button_layouts/{button_layout_id}",
      "risk": "R",
      "description": "Get a single button layout",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "button_layout_id": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "UUID of the button layout"
              }
            },
            "required": [
              "button_layout_id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Returns a single button layout by id.\nButton layouts define the arrangement of quick key buttons on a register.\n\n🔒 Requires: `registers:read` scope"
      },
      "wire": [
        {
          "name": "button_layout_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/ButtonLayout"
          }
        }
      }
    },
    "GET /channel_requests": {
      "method": "GET",
      "path": "/channel_requests",
      "risk": "R",
      "description": "List request records",
      "input_schema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "object",
            "properties": {
              "status_code": {
                "type": "string",
                "maxLength": 262144,
                "description": "Limit the requests to 1 or more status codes."
              },
              "request_method": {
                "type": "string",
                "maxLength": 262144,
                "description": "Limit the requests to 1 or more request methods."
              },
              "occurred_before": {
                "type": "string",
                "maxLength": 262144,
                "format": "date-time",
                "description": "Limit requests to before this RFC3339 date."
              },
              "occurred_after": {
                "type": "string",
                "maxLength": 262144,
                "format": "date-time",
                "description": "Limit requests to after this RFC3339 date."
              },
              "status_code_before": {
                "type": "string",
                "maxLength": 262144,
                "description": "Limit requests to those with status codes less than this value."
              },
              "status_code_after": {
                "type": "string",
                "maxLength": 262144,
                "description": "Limit requests to those with status codes greater than this value."
              },
              "channel_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "If provided, request logs will be limited to the supplied channel id. If no id is provided, only requests logged with no channel id will be returned. Requests with no channel id indicate requests made during the setup process."
              }
            },
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [],
        "additionalProperties": false,
        "description": "Returns a list of request log records.\n\n🔒 Requires: `channels:read` scope"
      },
      "wire": [
        {
          "name": "status_code",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "request_method",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "occurred_before",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "occurred_after",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "status_code_before",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "status_code_after",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "channel_id",
          "in": "query",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/RequestCollectionResponse"
          }
        }
      }
    },
    "GET /channel_requests/{request_log_id}": {
      "method": "GET",
      "path": "/channel_requests/{request_log_id}",
      "risk": "R",
      "description": "Get a single request log",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "request_log_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The request log id"
              }
            },
            "required": [
              "request_log_id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Returns a single request log entry with a specific ID.\n\n🔒 Requires: `channels:read` scope"
      },
      "wire": [
        {
          "name": "request_log_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/RequestSingleResponse"
          }
        }
      }
    },
    "GET /channel_requests/{request_log_id}.txt": {
      "method": "GET",
      "path": "/channel_requests/{request_log_id}.txt",
      "risk": "R",
      "description": "Get a single request log as text",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "request_log_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The request log id"
              }
            },
            "required": [
              "request_log_id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Returns a text representation of a single request log entry with a specific ID.\n\n🔒 Requires: `channels:read` scope"
      },
      "wire": [
        {
          "name": "request_log_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "text/plain",
          "schema": {
            "description": "Plain text representation of the request object.",
            "type": "string"
          }
        }
      }
    },
    "GET /channels": {
      "method": "GET",
      "path": "/channels",
      "risk": "R",
      "description": "List channel records",
      "input_schema": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false,
        "description": "Returns a list of configured channels.\n\n🔒 Requires: `channels:read` scope"
      },
      "wire": [],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/ChannelCollectionResponse"
          }
        }
      }
    },
    "GET /consignments": {
      "method": "GET",
      "path": "/consignments",
      "risk": "R",
      "description": "List consignments",
      "input_schema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "SUPPLIER",
                  "OUTLET",
                  "STOCKTAKE",
                  "RETURN"
                ],
                "maxLength": 262144,
                "description": "The consignment type to search for."
              },
              "status": {
                "type": "string",
                "enum": [
                  "OPEN",
                  "SENT",
                  "DISPATCHED",
                  "RECEIVED",
                  "STOCKTAKE_IN_PROGRESS",
                  "STOCKTAKE_SCHEDULED",
                  "STOCKTAKE_IN_PROGRESS_PROCESSED",
                  "STOCKTAKE_COMPLETE",
                  "CLOSED",
                  "CANCELLED"
                ],
                "maxLength": 262144,
                "description": "The consignment status to search for."
              },
              "outlet_id": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "Filter response by the ID of the outlet associated with the consignments."
              },
              "after": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The lower limit for the version numbers to be included in the response."
              },
              "before": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The upper limit for the version numbers to be included in the response."
              },
              "page_size": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 100,
                "description": "The maximum number of items to be returned in the response."
              }
            },
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [],
        "additionalProperties": false,
        "description": "Return a paginated list of consignments.\n\n🔒 Requires: `consignments:read` scope"
      },
      "wire": [
        {
          "name": "type",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "status",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "outlet_id",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "after",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "before",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "page_size",
          "in": "query",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {
          "page_size": 100
        },
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/ConsignmentCollection"
          }
        }
      }
    },
    "POST /consignments": {
      "method": "POST",
      "path": "/consignments",
      "risk": "H",
      "description": "Create a consignment",
      "input_schema": {
        "type": "object",
        "properties": {
          "body": {
            "$ref": "#/$defs/ConsignmentRequest"
          }
        },
        "required": [
          "body"
        ],
        "additionalProperties": false,
        "description": "Creates a new consignment.\n\nThe consignment type can be `SUPPLIER`, `OUTLET`, `STOCKTAKE` or `RETURN`. The workflows for these are:\n\n- `SUPPLIER` workflow: `OPEN` -> `SENT` -> `DISPATCHED` -> `RECEIVED`\n  * Can be `CANCELLED` at any time, except from `RECEIVED`\n  * Cannot create a `DISPATCHED` or `RECEIVED` consignment directly\n  * In the response `reference` refers to `Order number` and `name` refers to `Note`\n- `OUTLET` workflow: `OPEN` -> `SENT` -> `RECEIVED` (can be `CANCELLED` at any time after `OPEN`)\n- `RETURN` workflow: `OPEN` -> `SENT` or `CANCELLED`\n- `STOCKTAKE` workflow: `STOCKTAKE` or `STOCKTAKE_SCHEDULED` -> `STOCKTAKE_IN_PROGRESS` -> `STOCKTAKE_IN_PROGRESS_PROCESSED` -> `STOCKTAKE_COMPLETE` (can be `CANCELLED` or `CLOSED` at any time)\n\n🔒 Requires: One of the following scopes:\n- `consignments:write:stock_order` scope for `SUPPLIER` and `RETURN` consignments\n- `consignments:write:stock_transfer` scope for `OUTLET` consignments\n- `consignments:write:inventory_count` scope for `STOCKTAKE` consignments",
        "$defs": {
          "ConsignmentRequest": {
            "type": "object",
            "required": [
              "data"
            ],
            "properties": {
              "data": {
                "$ref": "#/$defs/Consignment"
              }
            },
            "additionalProperties": false
          },
          "Consignment": {
            "type": "object",
            "required": [
              "name",
              "outlet_id",
              "type"
            ],
            "properties": {
              "consignment_date": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "11-28T19:02:15+00:00 (timestamp) - Consignment creation date.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "created_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Creation timestamp in UTC.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "deleted_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Deletion timestamp in UTC.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "due_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "11-30T19:08:541+00:00 (timestamp) - Due date.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "id": {
                "type": "string",
                "description": "Auto-generated object ID.",
                "maxLength": 262144,
                "format": "uuid"
              },
              "name": {
                "type": "string",
                "description": "Tue 29 Nov 2016 (string) - Consignment name. For orders, the note field in the UI will be the name value.",
                "maxLength": 262144
              },
              "outlet_id": {
                "type": "string",
                "description": "A valid ID of an outlet where stock will be received.",
                "maxLength": 262144,
                "format": "uuid"
              },
              "received_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "11-30T19:08:541+00:00 (timestamp) - The date when consignment was received.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "reference": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Order number.+ `total_count_gain` (number)",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "source_outlet_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "A valid ID of an outlet where stock will come from. **Stock transfers only**.",
                    "maxLength": 262144,
                    "format": "uuid"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "OPEN",
                  "SENT",
                  "DISPATCHED",
                  "RECEIVED",
                  "STOCKTAKE_IN_PROGRESS",
                  "STOCKTAKE_SCHEDULED",
                  "STOCKTAKE_IN_PROGRESS_PROCESSED",
                  "STOCKTAKE_COMPLETE",
                  "CLOSED",
                  "CANCELLED"
                ],
                "description": "* Supplier Order: One of `OPEN`, `SENT`, `DISPATCHED`, `RECEIVED`, `CANCELLED`\n* Outlet Transfer: One of `OPEN`, `SENT`, `RECEIVED`, `CANCELLED`\n* Return Order: One of `OPEN`, `SENT`, `CANCELLED`\n* Stocktake: One of `STOCKTAKE_SCHEDULED`, `STOCKTAKE_IN_PROGRESS`, `STOCKTAKE_IN_PROGRESS_PROCESSED`, `STOCKTAKE_COMPLETE`, `CLOSED`, `CANCELLED`\nThis is not a definitive list and may be extended in future\n",
                "maxLength": 262144
              },
              "supplier_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "a valid supplier ID.",
                    "maxLength": 262144,
                    "format": "uuid"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "supplier_invoice": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Supplier invoice number.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "total_cost_gain": {
                "anyOf": [
                  {
                    "type": "number",
                    "description": "The cost of items over the expected level."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "total_cost_loss": {
                "anyOf": [
                  {
                    "type": "number",
                    "description": "The cost of items below the expected level."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "total_count_gain": {
                "anyOf": [
                  {
                    "type": "number",
                    "description": "The number of items over the expected level."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "total_count_loss": {
                "anyOf": [
                  {
                    "type": "number",
                    "description": "The number of items below the expected level."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "type": {
                "type": "string",
                "enum": [
                  "SUPPLIER",
                  "OUTLET",
                  "STOCKTAKE",
                  "RETURN"
                ],
                "description": "One of `SUPPLIER`, `OUTLET`, `STOCKTAKE`, `RETURN`.",
                "maxLength": 262144
              },
              "updated_at": {
                "type": "string",
                "description": "Last update timestamp in UTC.",
                "maxLength": 262144
              },
              "version": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "Auto-incrementing object version number."
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "201": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/ConsignmentResponse"
          }
        }
      }
    },
    "DELETE /consignments/{consignment_id}": {
      "method": "DELETE",
      "path": "/consignments/{consignment_id}",
      "risk": "D",
      "description": "Delete a consignment",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "consignment_id": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "The consignment id"
              }
            },
            "required": [
              "consignment_id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Deletes the consignment with the given ID.\n\n🔒 Requires: One of the following scopes:\n- `consignments:write:stock_order` scope for `SUPPLIER` and `RETURN` consignments\n- `consignments:write:stock_transfer` scope for `OUTLET` consignments\n- `consignments:write:inventory_count` scope for `STOCKTAKE` consignments"
      },
      "wire": [
        {
          "name": "consignment_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "204": {
          "media": null,
          "schema": null
        }
      }
    },
    "GET /consignments/{consignment_id}": {
      "method": "GET",
      "path": "/consignments/{consignment_id}",
      "risk": "R",
      "description": "Get a single consignment",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "consignment_id": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "The consignment id"
              }
            },
            "required": [
              "consignment_id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Returns a single consignment with the requested ID.\n\n🔒 Requires: `consignments:read` scope"
      },
      "wire": [
        {
          "name": "consignment_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/ConsignmentResponse"
          }
        }
      }
    },
    "PUT /consignments/{consignment_id}": {
      "method": "PUT",
      "path": "/consignments/{consignment_id}",
      "risk": "D",
      "description": "Update a consignment",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "consignment_id": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "The consignment id"
              }
            },
            "required": [
              "consignment_id"
            ],
            "additionalProperties": false
          },
          "body": {
            "$ref": "#/$defs/ConsignmentRequest"
          }
        },
        "required": [
          "path",
          "body"
        ],
        "additionalProperties": false,
        "description": "Updates the given consignment.\n\nIf the type is SUPPLIER then:\n\n- Cannot change from `SUPPLIER` to a different consignment type\n- `SUPPLIER` workflow: `OPEN` -> `SENT` -> `DISPATCHED` -> `RECEIVED`\n- Can be `CANCELLED` at any time, except from `RECEIVED`\n- Cannot update a `SUPPLIER` consignment that has the status `RECEIVED` or `CANCELLED`\n- Cannot update status if there are no products in the order\n- At least one product should have non-zero received quantity before updating to `RECEIVED`\n\n🔒 Requires: One of the following scopes:\n- `consignments:write:stock_order` scope for `SUPPLIER` and `RETURN` consignments\n- `consignments:write:stock_transfer` scope for `OUTLET` consignments\n- `consignments:write:inventory_count` scope for `STOCKTAKE` consignments",
        "$defs": {
          "ConsignmentRequest": {
            "type": "object",
            "required": [
              "data"
            ],
            "properties": {
              "data": {
                "$ref": "#/$defs/Consignment"
              }
            },
            "additionalProperties": false
          },
          "Consignment": {
            "type": "object",
            "required": [
              "name",
              "outlet_id",
              "type"
            ],
            "properties": {
              "consignment_date": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "11-28T19:02:15+00:00 (timestamp) - Consignment creation date.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "created_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Creation timestamp in UTC.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "deleted_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Deletion timestamp in UTC.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "due_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "11-30T19:08:541+00:00 (timestamp) - Due date.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "id": {
                "type": "string",
                "description": "Auto-generated object ID.",
                "maxLength": 262144,
                "format": "uuid"
              },
              "name": {
                "type": "string",
                "description": "Tue 29 Nov 2016 (string) - Consignment name. For orders, the note field in the UI will be the name value.",
                "maxLength": 262144
              },
              "outlet_id": {
                "type": "string",
                "description": "A valid ID of an outlet where stock will be received.",
                "maxLength": 262144,
                "format": "uuid"
              },
              "received_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "11-30T19:08:541+00:00 (timestamp) - The date when consignment was received.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "reference": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Order number.+ `total_count_gain` (number)",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "source_outlet_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "A valid ID of an outlet where stock will come from. **Stock transfers only**.",
                    "maxLength": 262144,
                    "format": "uuid"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "OPEN",
                  "SENT",
                  "DISPATCHED",
                  "RECEIVED",
                  "STOCKTAKE_IN_PROGRESS",
                  "STOCKTAKE_SCHEDULED",
                  "STOCKTAKE_IN_PROGRESS_PROCESSED",
                  "STOCKTAKE_COMPLETE",
                  "CLOSED",
                  "CANCELLED"
                ],
                "description": "* Supplier Order: One of `OPEN`, `SENT`, `DISPATCHED`, `RECEIVED`, `CANCELLED`\n* Outlet Transfer: One of `OPEN`, `SENT`, `RECEIVED`, `CANCELLED`\n* Return Order: One of `OPEN`, `SENT`, `CANCELLED`\n* Stocktake: One of `STOCKTAKE_SCHEDULED`, `STOCKTAKE_IN_PROGRESS`, `STOCKTAKE_IN_PROGRESS_PROCESSED`, `STOCKTAKE_COMPLETE`, `CLOSED`, `CANCELLED`\nThis is not a definitive list and may be extended in future\n",
                "maxLength": 262144
              },
              "supplier_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "a valid supplier ID.",
                    "maxLength": 262144,
                    "format": "uuid"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "supplier_invoice": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Supplier invoice number.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "total_cost_gain": {
                "anyOf": [
                  {
                    "type": "number",
                    "description": "The cost of items over the expected level."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "total_cost_loss": {
                "anyOf": [
                  {
                    "type": "number",
                    "description": "The cost of items below the expected level."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "total_count_gain": {
                "anyOf": [
                  {
                    "type": "number",
                    "description": "The number of items over the expected level."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "total_count_loss": {
                "anyOf": [
                  {
                    "type": "number",
                    "description": "The number of items below the expected level."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "type": {
                "type": "string",
                "enum": [
                  "SUPPLIER",
                  "OUTLET",
                  "STOCKTAKE",
                  "RETURN"
                ],
                "description": "One of `SUPPLIER`, `OUTLET`, `STOCKTAKE`, `RETURN`.",
                "maxLength": 262144
              },
              "updated_at": {
                "type": "string",
                "description": "Last update timestamp in UTC.",
                "maxLength": 262144
              },
              "version": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "Auto-incrementing object version number."
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [
        {
          "name": "consignment_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/ConsignmentResponse"
          }
        }
      }
    },
    "POST /consignments/{consignment_id}/bulk": {
      "method": "POST",
      "path": "/consignments/{consignment_id}/bulk",
      "risk": "H",
      "description": "Bulk update consignment products",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "consignment_id": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "The consignment id"
              }
            },
            "required": [
              "consignment_id"
            ],
            "additionalProperties": false
          },
          "body": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/ConsignmentProduct"
            },
            "maxItems": 10
          }
        },
        "required": [
          "path",
          "body"
        ],
        "additionalProperties": false,
        "description": "Add or update the products in a consignment in bulk.\n\n**Note**: Must include either count or received for each product.\n\n**Note**: It is not recommended to update more than 500 products at a time, as this may lead to server timeouts.\n\n**Note**:\n\nIf the type is SUPPLIER then:\n\n- Cannot add a composite product by this api\n- Cannot update products if the consignment has a status of RECEIVED or CANCELLED\n- If status is OPEN or SENT, the count value will be accumulated\n- If status is DISPATCHED, the received quantity will be accumulated\n- If status is OPEN, SENT or DISPATCHED, the cost will be updated\n- If a received field is provided for consignment products in an OPEN or SENT Supplier Order - the order will be automatically marked as DISPATCHED. Remove the received field if you don't intend to dispatch the OPEN or SENT purchase order\n\n🔒 Requires: One of the following scopes:\n- `consignments:write:stock_order` scope for `SUPPLIER` and `RETURN` consignments\n- `consignments:write:stock_transfer` scope for `OUTLET` consignments\n- `consignments:write:inventory_count` scope for `STOCKTAKE` consignments",
        "$defs": {
          "ConsignmentProduct": {
            "type": "object",
            "required": [
              "product_id"
            ],
            "properties": {
              "cost": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The cost of the item.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "count": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Expected item count.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "created_at": {
                "type": "string",
                "description": "The creation timestamp in UTC.",
                "maxLength": 262144
              },
              "deleted_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The deletion timestamp in UTC.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "is_included": {
                "type": "boolean",
                "description": "Indicated whether the item was included via a filter. Can be `null`. For full count (no filters) always `true`."
              },
              "product_id": {
                "type": "string",
                "description": "The ID of the product.",
                "maxLength": 262144,
                "format": "uuid"
              },
              "product_sku": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The SKU of the product.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "received": {
                "type": "string",
                "description": "Observed item count.",
                "maxLength": 262144
              },
              "status": {
                "type": "string",
                "description": "The status of the item. One of: `PENDING`, `SUCCESS`.",
                "maxLength": 262144
              },
              "updated_at": {
                "type": "string",
                "description": "Last update timestamp in UTC.",
                "maxLength": 262144
              },
              "version": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "Auto-incrementing object version number."
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [
        {
          "name": "consignment_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "properties": {
              "data": {
                "properties": {
                  "product_id": {
                    "properties": {
                      "count": {
                        "minLength": 1,
                        "type": "string"
                      },
                      "received": {
                        "type": "string"
                      }
                    },
                    "type": "object"
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          }
        }
      }
    },
    "GET /consignments/{consignment_id}/products": {
      "method": "GET",
      "path": "/consignments/{consignment_id}/products",
      "risk": "R",
      "description": "List all products for a specific consignment",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "consignment_id": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "The consignment id"
              }
            },
            "required": [
              "consignment_id"
            ],
            "additionalProperties": false
          },
          "query": {
            "type": "object",
            "properties": {
              "after": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The lower limit for the version numbers to be included in the response."
              },
              "before": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The upper limit for the version numbers to be included in the response."
              },
              "page_size": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 100,
                "description": "The maximum number of items to be returned in the response."
              }
            },
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Returns a collection of consignment products associated with the specified consignment.\n\n🔒 Requires: `consignments:read` scope"
      },
      "wire": [
        {
          "name": "consignment_id",
          "in": "path",
          "style": "form",
          "explode": true
        },
        {
          "name": "after",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "before",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "page_size",
          "in": "query",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {
          "page_size": 100
        },
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/ConsignmentProductCollection"
          }
        }
      }
    },
    "POST /consignments/{consignment_id}/products": {
      "method": "POST",
      "path": "/consignments/{consignment_id}/products",
      "risk": "H",
      "description": "Add a product to a consignment",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "consignment_id": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "The consignment id"
              }
            },
            "required": [
              "consignment_id"
            ],
            "additionalProperties": false
          },
          "body": {
            "$ref": "#/$defs/ConsignmentProductRequest"
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Add a product to the given consignment.\n\nIf the type is SUPPLIER then:\n\n- Cannot add a product to a `RECEIVED` or `CANCELLED` order\n- Cannot add a composite product to the order\n- If a received value is provided for a consignment product for a SENT Supplier Order - the order will be automatically marked as DISPATCHED\n\nIf the type is OUTLET then:\n\n- If a cost value is not provided for a consignment product on an OPEN Outlet order - the cost will be automatically populated after the fact using the most accurate average cost of the product at the time of marking the consignment as sent.\n\n🔒 Requires: One of the following scopes:\n- `consignments:write:stock_order` scope for `SUPPLIER` and `RETURN` consignments\n- `consignments:write:stock_transfer` scope for `OUTLET` consignments\n- `consignments:write:inventory_count` scope for `STOCKTAKE` consignments",
        "$defs": {
          "ConsignmentProductRequest": {
            "type": "object",
            "required": [
              "data"
            ],
            "properties": {
              "data": {
                "$ref": "#/$defs/ConsignmentProduct"
              }
            },
            "additionalProperties": false
          },
          "ConsignmentProduct": {
            "type": "object",
            "required": [
              "product_id"
            ],
            "properties": {
              "cost": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The cost of the item.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "count": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Expected item count.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "created_at": {
                "type": "string",
                "description": "The creation timestamp in UTC.",
                "maxLength": 262144
              },
              "deleted_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The deletion timestamp in UTC.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "is_included": {
                "type": "boolean",
                "description": "Indicated whether the item was included via a filter. Can be `null`. For full count (no filters) always `true`."
              },
              "product_id": {
                "type": "string",
                "description": "The ID of the product.",
                "maxLength": 262144,
                "format": "uuid"
              },
              "product_sku": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The SKU of the product.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "received": {
                "type": "string",
                "description": "Observed item count.",
                "maxLength": 262144
              },
              "status": {
                "type": "string",
                "description": "The status of the item. One of: `PENDING`, `SUCCESS`.",
                "maxLength": 262144
              },
              "updated_at": {
                "type": "string",
                "description": "Last update timestamp in UTC.",
                "maxLength": 262144
              },
              "version": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "Auto-incrementing object version number."
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [
        {
          "name": "consignment_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/InventoryCountItemResponse"
          }
        }
      }
    },
    "DELETE /consignments/{consignment_id}/products/{product_id}": {
      "method": "DELETE",
      "path": "/consignments/{consignment_id}/products/{product_id}",
      "risk": "D",
      "description": "Delete an item from a consignment",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "consignment_id": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "The consignment id to be updated."
              },
              "product_id": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "The product id of the product to be added to the consignment."
              }
            },
            "required": [
              "consignment_id",
              "product_id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Removes the specific product from the consignment.\n\nFor `SUPPLIER` workflow:\n\n- Cannot delete a product from a consignment with a status of `DISPATCHED`, `RECEIVED` or `CANCELLED`\n\nFor consignment type `OUTLET`:\n\n- Cannot delete a product if the consignment has a status of `SENT` or `RECEIVED`\n\nFor consignment type `RETURN`:\n\n- Cannot delete a product if the consignment has a status of `SENT`\n\n🔒 Requires: One of the following scopes:\n- `consignments:write:stock_order` scope for `SUPPLIER` and `RETURN` consignments\n- `consignments:write:stock_transfer` scope for `OUTLET` consignments\n- `consignments:write:inventory_count` scope for `STOCKTAKE` consignments"
      },
      "wire": [
        {
          "name": "consignment_id",
          "in": "path",
          "style": "form",
          "explode": true
        },
        {
          "name": "product_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "204": {
          "media": null,
          "schema": null
        }
      }
    },
    "PUT /consignments/{consignment_id}/products/{product_id}": {
      "method": "PUT",
      "path": "/consignments/{consignment_id}/products/{product_id}",
      "risk": "H",
      "description": "Update a product in a consignment",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "consignment_id": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "The consignment id to be updated."
              },
              "product_id": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "The product id of the product to be added to the consignment."
              }
            },
            "required": [
              "consignment_id",
              "product_id"
            ],
            "additionalProperties": false
          },
          "body": {
            "$ref": "#/$defs/ConsignmentProductRequest"
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Updates the specific product within the consignment.\n\n**Notes**:\n\n- If the type is SUPPLIER then:\n  * If status is OPEN or SENT, the count value will be updated\n  * If status is DISPATCHED, the received quantity will be updated\n  * If status is OPEN, SENT or DISPATCHED, the cost can be updated\n  * Cannot update a product in RECEIVED or CANCELLED status\n  * Any updates to the received quantity field on a product in a `SENT` consignment, will set the consignment status to `DISPATCHED`\n- If the type is OUTLET then:\n  * If the status is OPEN and there is a cost the cost will be updated.\n  * If the status is SENT or DISPATCHED and received is not null the received quantity will be updated.\n  * If the status is OPEN or SENT and count is not null then the count quantity will be updated.\n- If the type is RETURN and the status is OPEN or SENT and count is not null then the count quantity will be updated.\n- If the type is STOCKTAKE and the status is STATUS\\_STOCKTAKE\\_IN\\_PROGRESS or STATUS\\_STOCKTAKE\\_IN\\_PROCESS\\_PROCESSED and received is not null then the received quantity will be updated.\n\n🔒 Requires: One of the following scopes:\n- `consignments:write:stock_order` scope for `SUPPLIER` and `RETURN` consignments\n- `consignments:write:stock_transfer` scope for `OUTLET` consignments\n- `consignments:write:inventory_count` scope for `STOCKTAKE` consignments",
        "$defs": {
          "ConsignmentProductRequest": {
            "type": "object",
            "required": [
              "data"
            ],
            "properties": {
              "data": {
                "$ref": "#/$defs/ConsignmentProduct"
              }
            },
            "additionalProperties": false
          },
          "ConsignmentProduct": {
            "type": "object",
            "required": [
              "product_id"
            ],
            "properties": {
              "cost": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The cost of the item.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "count": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Expected item count.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "created_at": {
                "type": "string",
                "description": "The creation timestamp in UTC.",
                "maxLength": 262144
              },
              "deleted_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The deletion timestamp in UTC.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "is_included": {
                "type": "boolean",
                "description": "Indicated whether the item was included via a filter. Can be `null`. For full count (no filters) always `true`."
              },
              "product_id": {
                "type": "string",
                "description": "The ID of the product.",
                "maxLength": 262144,
                "format": "uuid"
              },
              "product_sku": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The SKU of the product.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "received": {
                "type": "string",
                "description": "Observed item count.",
                "maxLength": 262144
              },
              "status": {
                "type": "string",
                "description": "The status of the item. One of: `PENDING`, `SUCCESS`.",
                "maxLength": 262144
              },
              "updated_at": {
                "type": "string",
                "description": "Last update timestamp in UTC.",
                "maxLength": 262144
              },
              "version": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "Auto-incrementing object version number."
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [
        {
          "name": "consignment_id",
          "in": "path",
          "style": "form",
          "explode": true
        },
        {
          "name": "product_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/ConsignmentProductResponse"
          }
        }
      }
    },
    "GET /consignments/{consignment_id}/totals": {
      "method": "GET",
      "path": "/consignments/{consignment_id}/totals",
      "risk": "R",
      "description": "Get consignment totals",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "consignment_id": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "The consignment id"
              }
            },
            "required": [
              "consignment_id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Returns the count and cost for the given consignment.\n\nThe consignment type can be `SUPPLIER`, `OUTLET` or `RETURN` (not `STOCKTAKE`).\n\nThe status of the consignment will determine which values make sense:\n\n- If the consignment type is `OUTLET` the sent cost may not be accurate when the status is `OPEN`.\n- If the consignment is `OPEN` or `SENT` the received count and cost should both be zero.\n- For completely received consignments received cost should equal the sent cost and the received count should equal the sent count.\n- For partially received consignments we would expect the received cost value to be less than sent cost value, and the received count to be less than the sent count.\n\n🔒 Requires: `consignments:read` scope"
      },
      "wire": [
        {
          "name": "consignment_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/ConsignmentTotalsResponse"
          }
        }
      }
    },
    "GET /custom_inventory_adjustment_reasons": {
      "method": "GET",
      "path": "/custom_inventory_adjustment_reasons",
      "risk": "R",
      "description": "List custom inventory adjustment reasons",
      "input_schema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "object",
            "properties": {
              "page_size": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 100,
                "description": "The maximum number of items to be returned in the response."
              },
              "after": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "Return records with a version greater than this value."
              },
              "before": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "Return records with a version less than this value."
              }
            },
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [],
        "additionalProperties": false,
        "description": "Returns a paginated list of custom inventory adjustment reasons for the authenticated retailer.\n\n🔒 Requires: `inventory:write` scope"
      },
      "wire": [
        {
          "name": "page_size",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "after",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "before",
          "in": "query",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {
          "page_size": 100
        },
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/CustomInventoryAdjustmentReasonCollection"
          }
        }
      }
    },
    "POST /custom_inventory_adjustment_reasons": {
      "method": "POST",
      "path": "/custom_inventory_adjustment_reasons",
      "risk": "H",
      "description": "Create a custom inventory adjustment reason",
      "input_schema": {
        "type": "object",
        "properties": {
          "body": {
            "$ref": "#/$defs/CreateCustomInventoryAdjustmentReasonRequest"
          }
        },
        "required": [
          "body"
        ],
        "additionalProperties": false,
        "description": "Creates a new custom inventory adjustment reason for the authenticated retailer.\n\n🔒 Requires: `inventory:write` scope",
        "$defs": {
          "CreateCustomInventoryAdjustmentReasonRequest": {
            "type": "object",
            "required": [
              "name",
              "enabled",
              "type"
            ],
            "description": "Parameters for creating a new custom inventory adjustment reason.",
            "properties": {
              "enabled": {
                "type": "boolean",
                "description": "Whether the reason can be selected when creating stock adjustments."
              },
              "name": {
                "type": "string",
                "maxLength": 30,
                "description": "Display name of the reason. Must be unique within the retailer. Max 30 characters."
              },
              "type": {
                "type": "string",
                "enum": [
                  "POSITIVE",
                  "NEGATIVE"
                ],
                "description": "Whether the reason applies to positive (stock-in) or negative (stock-out) adjustments.",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/CustomInventoryAdjustmentReasonSingleton"
          }
        }
      }
    },
    "PUT /custom_inventory_adjustment_reasons/{custom_reason_id}": {
      "method": "PUT",
      "path": "/custom_inventory_adjustment_reasons/{custom_reason_id}",
      "risk": "H",
      "description": "Update a custom inventory adjustment reason",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "custom_reason_id": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "The ID of the custom inventory adjustment reason to update."
              }
            },
            "required": [
              "custom_reason_id"
            ],
            "additionalProperties": false
          },
          "body": {
            "$ref": "#/$defs/UpdateCustomInventoryAdjustmentReasonRequest"
          }
        },
        "required": [
          "path",
          "body"
        ],
        "additionalProperties": false,
        "description": "Updates a custom inventory adjustment reason.\n\n🔒 Requires: `inventory:write` scope",
        "$defs": {
          "UpdateCustomInventoryAdjustmentReasonRequest": {
            "type": "object",
            "description": "Parameters for updating a custom inventory adjustment reason.",
            "properties": {
              "enabled": {
                "type": "boolean",
                "description": "Whether the reason can be selected when creating stock adjustments."
              },
              "name": {
                "type": "string",
                "maxLength": 30,
                "description": "New display name. Must remain unique within the retailer. Max 30 characters."
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [
        {
          "name": "custom_reason_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/CustomInventoryAdjustmentReasonSingleton"
          }
        }
      }
    },
    "GET /customer_groups": {
      "method": "GET",
      "path": "/customer_groups",
      "risk": "R",
      "description": "List customer groups",
      "input_schema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "object",
            "properties": {
              "after": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The lower limit for the version numbers to be included in the response."
              },
              "before": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The upper limit for the version numbers to be included in the response."
              },
              "page_size": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 100,
                "description": "The maximum number of items to be returned in the response."
              },
              "deleted": {
                "type": "boolean",
                "description": "Indicates whether deleted items should be included in the response."
              }
            },
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [],
        "additionalProperties": false,
        "description": "Return a list of Customer Groups\n\n🔒 Requires: `customers:read` scope"
      },
      "wire": [
        {
          "name": "after",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "before",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "page_size",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "deleted",
          "in": "query",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {
          "page_size": 100
        },
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/CustomerGroupCollection"
          }
        }
      }
    },
    "POST /customer_groups": {
      "method": "POST",
      "path": "/customer_groups",
      "risk": "W",
      "description": "Create new customer group",
      "input_schema": {
        "type": "object",
        "properties": {
          "body": {
            "$ref": "#/$defs/CustomerGroup"
          }
        },
        "required": [
          "body"
        ],
        "additionalProperties": false,
        "description": "Create a new customer group\n\n🔒 Requires: `customers:write` scope",
        "$defs": {
          "CustomerGroup": {
            "type": "object",
            "required": [
              "name"
            ],
            "properties": {
              "created_at": {
                "type": "string",
                "description": "Creation timestamp in UTC.",
                "maxLength": 262144
              },
              "deleted_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Deletion timestamp in UTC.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "group_id": {
                "type": "string",
                "description": "The customer group identifier.",
                "maxLength": 262144
              },
              "id": {
                "type": "string",
                "description": "Auto-generated object ID.",
                "maxLength": 262144
              },
              "name": {
                "type": "string",
                "description": "The customer group name.",
                "maxLength": 262144
              },
              "retailer_id": {
                "type": "string",
                "description": "The retailer identifier",
                "maxLength": 262144
              },
              "updated_at": {
                "type": "string",
                "description": "Last update timestamp in UTC.",
                "maxLength": 262144
              },
              "version": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "Auto-incrementing object version number."
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "201": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/CustomerGroupResponse"
          }
        }
      }
    },
    "GET /customer_groups/{customer_group_id}": {
      "method": "GET",
      "path": "/customer_groups/{customer_group_id}",
      "risk": "R",
      "description": "Get single customer group",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "customer_group_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The customer group id"
              }
            },
            "required": [
              "customer_group_id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Return given customer group\n\n🔒 Requires: `customers:read` scope"
      },
      "wire": [
        {
          "name": "customer_group_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/CustomerGroupResponse"
          }
        }
      }
    },
    "PUT /customer_groups/{customer_group_id}": {
      "method": "PUT",
      "path": "/customer_groups/{customer_group_id}",
      "risk": "W",
      "description": "Update the given customer group",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "customer_group_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The customer group id"
              }
            },
            "required": [
              "customer_group_id"
            ],
            "additionalProperties": false
          },
          "body": {
            "$ref": "#/$defs/CustomerGroup"
          }
        },
        "required": [
          "path",
          "body"
        ],
        "additionalProperties": false,
        "description": "Update the given Customer Group\n\n🔒 Requires: `customers:write` scope",
        "$defs": {
          "CustomerGroup": {
            "type": "object",
            "required": [
              "name"
            ],
            "properties": {
              "created_at": {
                "type": "string",
                "description": "Creation timestamp in UTC.",
                "maxLength": 262144
              },
              "deleted_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Deletion timestamp in UTC.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "group_id": {
                "type": "string",
                "description": "The customer group identifier.",
                "maxLength": 262144
              },
              "id": {
                "type": "string",
                "description": "Auto-generated object ID.",
                "maxLength": 262144
              },
              "name": {
                "type": "string",
                "description": "The customer group name.",
                "maxLength": 262144
              },
              "retailer_id": {
                "type": "string",
                "description": "The retailer identifier",
                "maxLength": 262144
              },
              "updated_at": {
                "type": "string",
                "description": "Last update timestamp in UTC.",
                "maxLength": 262144
              },
              "version": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "Auto-incrementing object version number."
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [
        {
          "name": "customer_group_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/CustomerGroupResponse"
          }
        }
      }
    },
    "DELETE /customer_groups/{customer_group_id}/customers": {
      "method": "DELETE",
      "path": "/customer_groups/{customer_group_id}/customers",
      "risk": "D",
      "description": "Delete customers from customer group",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "customer_group_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The customer group id"
              }
            },
            "required": [
              "customer_group_id"
            ],
            "additionalProperties": false
          },
          "body": {
            "type": "object",
            "description": "An array of Customer ids to delete from the Customer Group.",
            "properties": {
              "customer_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 262144
                },
                "maxItems": 10
              }
            },
            "additionalProperties": false
          }
        },
        "required": [
          "path",
          "body"
        ],
        "additionalProperties": false,
        "description": "Deletes the given customers from the customer group.\n\n**Note**: Only the link is deleted, the customers are not.\n\n🔒 Requires: `customers:write` scope\n"
      },
      "wire": [
        {
          "name": "customer_group_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "204": {
          "media": "application/json",
          "schema": {
            "type": "string"
          }
        }
      }
    },
    "GET /customer_groups/{customer_group_id}/customers": {
      "method": "GET",
      "path": "/customer_groups/{customer_group_id}/customers",
      "risk": "R",
      "description": "Get customers for customer group",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "customer_group_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The customer group id"
              }
            },
            "required": [
              "customer_group_id"
            ],
            "additionalProperties": false
          },
          "query": {
            "type": "object",
            "properties": {
              "after": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The lower limit for the version numbers to be included in the response."
              },
              "before": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The upper limit for the version numbers to be included in the response."
              },
              "page_size": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 100,
                "description": "The maximum number of items to be returned in the response."
              }
            },
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Returns a list of customers for the given Customer Group\n\n🔒 Requires: `customers:read` scope"
      },
      "wire": [
        {
          "name": "customer_group_id",
          "in": "path",
          "style": "form",
          "explode": true
        },
        {
          "name": "after",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "before",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "page_size",
          "in": "query",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {
          "page_size": 100
        },
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/CustomerCollection"
          }
        }
      }
    },
    "POST /customer_groups/{customer_group_id}/customers": {
      "method": "POST",
      "path": "/customer_groups/{customer_group_id}/customers",
      "risk": "W",
      "description": "Add customers to customer group",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "customer_group_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The customer group id"
              }
            },
            "required": [
              "customer_group_id"
            ],
            "additionalProperties": false
          },
          "body": {
            "type": "object",
            "required": [
              "customer_ids"
            ],
            "description": "An array of Customer ids to add to the Customer Group.",
            "properties": {
              "customer_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 262144
                },
                "maxItems": 25
              }
            },
            "additionalProperties": false
          }
        },
        "required": [
          "path",
          "body"
        ],
        "additionalProperties": false,
        "description": "Associates one or more customers with the given customer group\n\n🔒 Requires: `customers:write` scope"
      },
      "wire": [
        {
          "name": "customer_group_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "201": {
          "media": "application/json",
          "schema": {
            "type": "boolean"
          }
        }
      }
    },
    "GET /customer_taxes": {
      "method": "GET",
      "path": "/customer_taxes",
      "risk": "R",
      "description": "List customer tax assignments",
      "input_schema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "object",
            "properties": {
              "customer_id": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "The customer ID for which to return the tax assignment."
              },
              "after": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The lower limit for the version numbers to be included in the response."
              },
              "before": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The upper limit for the version numbers to be included in the response."
              },
              "page_size": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 100,
                "description": "The maximum number of items to be returned in the response."
              },
              "deleted": {
                "type": "boolean",
                "description": "Indicates whether deleted assignments should be included in the response."
              }
            },
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [],
        "additionalProperties": false,
        "description": "Returns a paginated list of customer tax assignments.\n\n🔒 Requires: `customers:read` scope"
      },
      "wire": [
        {
          "name": "customer_id",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "after",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "before",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "page_size",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "deleted",
          "in": "query",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {
          "page_size": 100
        },
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/CustomerTaxCollection"
          }
        }
      }
    },
    "POST /customer_taxes/bulk": {
      "method": "POST",
      "path": "/customer_taxes/bulk",
      "risk": "H",
      "description": "Bulk update customer tax assignments",
      "input_schema": {
        "type": "object",
        "properties": {
          "body": {
            "type": "object",
            "required": [
              "customer_tax"
            ],
            "properties": {
              "customer_tax": {
                "type": "array",
                "minItems": 1,
                "maxItems": 10,
                "items": {
                  "type": "object",
                  "required": [
                    "customer_id",
                    "tax_id"
                  ],
                  "properties": {
                    "customer_id": {
                      "type": "string",
                      "description": "Valid customer ID",
                      "maxLength": 262144,
                      "format": "uuid"
                    },
                    "tax_id": {
                      "anyOf": [
                        {
                          "type": "string",
                          "description": "Valid tax ID or null to remove tax assignment",
                          "maxLength": 262144,
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "additionalProperties": false
                }
              }
            },
            "additionalProperties": false
          }
        },
        "required": [
          "body"
        ],
        "additionalProperties": false,
        "description": "Updates tax assignments for multiple customers (up to 100) in a single request. This endpoint allows you to assign or remove tax IDs from customers in bulk operations.\n\nSet `tax_id` to `null` to remove tax assignment from a customer.\n\n🔒 Requires: `customers:write` scope"
      },
      "wire": [],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/CustomerTaxBulkResponse"
          }
        },
        "207": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/CustomerTaxBulkResponse"
          }
        }
      }
    },
    "GET /customers": {
      "method": "GET",
      "path": "/customers",
      "risk": "R",
      "description": "List customers",
      "input_schema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "object",
            "properties": {
              "after": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The lower limit for the version numbers to be included in the response."
              },
              "before": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The upper limit for the version numbers to be included in the response."
              },
              "page_size": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 100,
                "description": "The maximum number of items to be returned in the response."
              },
              "deleted": {
                "type": "boolean",
                "description": "Indicates whether deleted items should be included in the response."
              }
            },
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [],
        "additionalProperties": false,
        "description": "Returns a paginated list of customers.\n\nTo search for customers, please have a look at our [Search endpoint](/reference/search-1) on what is supported.\n\n🔒 Requires: `customers:read` scope"
      },
      "wire": [
        {
          "name": "after",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "before",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "page_size",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "deleted",
          "in": "query",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {
          "page_size": 100
        },
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/CustomerCollection"
          }
        }
      }
    },
    "POST /customers": {
      "method": "POST",
      "path": "/customers",
      "risk": "W",
      "description": "Create a new customer",
      "input_schema": {
        "type": "object",
        "properties": {
          "body": {
            "$ref": "#/$defs/CustomerBase"
          }
        },
        "required": [
          "body"
        ],
        "additionalProperties": false,
        "description": "Creates a new customer.\n\n🔒 Requires: `customers:write` scope",
        "$defs": {
          "CustomerBase": {
            "type": "object",
            "required": [
              "first_name",
              "last_name"
            ],
            "properties": {
              "company_name": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Company name.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "custom_field_1": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Custom field 1. Can be used to store random data.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "custom_field_2": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Custom field 2.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "custom_field_3": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Custom field 3.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "custom_field_4": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Custom field 4.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "customer_code": {
                "type": "string",
                "description": "Customer code used for claiming loyalty.",
                "maxLength": 262144
              },
              "customer_group_id": {
                "type": "string",
                "description": "Customer group ID.",
                "maxLength": 262144
              },
              "date_of_birth": {
                "type": "string",
                "description": "Birthday.",
                "maxLength": 262144
              },
              "do_not_email": {
                "type": "boolean",
                "description": "Indicates whether the customer opted out of email communications.",
                "default": false
              },
              "email": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Customer's email address.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "enable_loyalty": {
                "type": "boolean"
              },
              "enable_promotional_sms": {
                "type": "boolean",
                "description": "Indicates whether the customer opted in to SMS communications.",
                "default": false
              },
              "fax": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Fax no.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "first_name": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Customer's first name.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "gender": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Customer's gender. Can be `M`, `F` or null.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "last_name": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Customer 's last name.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "mobile": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Mobile phone no.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "note": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Customer note.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "on_account_limit": {
                "anyOf": [
                  {
                    "type": "number",
                    "description": "Customer's OnAccount Limit."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "phone": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Phone no.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "physical_address_1": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Physical address, line 1.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "physical_address_2": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Physical address, line 2.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "physical_city": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Physical address, city.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "physical_country_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Physical address, country code.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "physical_postcode": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Physical address, post code.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "physical_state": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Physical address, state.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "physical_suburb": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Physical address, suburb.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "postal_address_1": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Postal address, line 1.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "postal_address_2": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Postal address, line 2.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "postal_city": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Postal address, city.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "postal_country_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Postal address, country code.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "postal_postcode": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Postal address, post code.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "postal_state": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Postal address, state.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "postal_suburb": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Postal address, suburb.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "tax_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Customer's tax ID.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "twitter": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Twitter handle.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "website": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Website URL.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "201": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/CustomerResponse"
          }
        }
      }
    },
    "DELETE /customers/{customer_id}": {
      "method": "DELETE",
      "path": "/customers/{customer_id}",
      "risk": "D",
      "description": "Delete a customer",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "customer_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The customer id"
              }
            },
            "required": [
              "customer_id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Deletes the customer with the requested ID.\n\n🔒 Requires: `customers:write` scope"
      },
      "wire": [
        {
          "name": "customer_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "204": {
          "media": null,
          "schema": null
        }
      }
    },
    "GET /customers/{customer_id}": {
      "method": "GET",
      "path": "/customers/{customer_id}",
      "risk": "R",
      "description": "Get a single customer",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "customer_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The customer id"
              }
            },
            "required": [
              "customer_id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Returns a single customer with a requested ID.\n\n🔒 Requires: `customers:read` scope"
      },
      "wire": [
        {
          "name": "customer_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/CustomerResponse"
          }
        }
      }
    },
    "PUT /customers/{customer_id}": {
      "method": "PUT",
      "path": "/customers/{customer_id}",
      "risk": "W",
      "description": "Update a customer",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "customer_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The customer id"
              }
            },
            "required": [
              "customer_id"
            ],
            "additionalProperties": false
          },
          "body": {
            "$ref": "#/$defs/CustomerBase"
          }
        },
        "required": [
          "path",
          "body"
        ],
        "additionalProperties": false,
        "description": "Updates the customer with the requested ID.\n\n🔒 Requires: `customers:write` scope",
        "$defs": {
          "CustomerBase": {
            "type": "object",
            "required": [
              "first_name",
              "last_name"
            ],
            "properties": {
              "company_name": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Company name.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "custom_field_1": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Custom field 1. Can be used to store random data.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "custom_field_2": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Custom field 2.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "custom_field_3": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Custom field 3.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "custom_field_4": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Custom field 4.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "customer_code": {
                "type": "string",
                "description": "Customer code used for claiming loyalty.",
                "maxLength": 262144
              },
              "customer_group_id": {
                "type": "string",
                "description": "Customer group ID.",
                "maxLength": 262144
              },
              "date_of_birth": {
                "type": "string",
                "description": "Birthday.",
                "maxLength": 262144
              },
              "do_not_email": {
                "type": "boolean",
                "description": "Indicates whether the customer opted out of email communications.",
                "default": false
              },
              "email": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Customer's email address.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "enable_loyalty": {
                "type": "boolean"
              },
              "enable_promotional_sms": {
                "type": "boolean",
                "description": "Indicates whether the customer opted in to SMS communications.",
                "default": false
              },
              "fax": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Fax no.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "first_name": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Customer's first name.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "gender": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Customer's gender. Can be `M`, `F` or null.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "last_name": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Customer 's last name.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "mobile": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Mobile phone no.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "note": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Customer note.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "on_account_limit": {
                "anyOf": [
                  {
                    "type": "number",
                    "description": "Customer's OnAccount Limit."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "phone": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Phone no.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "physical_address_1": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Physical address, line 1.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "physical_address_2": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Physical address, line 2.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "physical_city": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Physical address, city.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "physical_country_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Physical address, country code.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "physical_postcode": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Physical address, post code.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "physical_state": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Physical address, state.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "physical_suburb": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Physical address, suburb.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "postal_address_1": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Postal address, line 1.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "postal_address_2": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Postal address, line 2.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "postal_city": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Postal address, city.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "postal_country_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Postal address, country code.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "postal_postcode": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Postal address, post code.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "postal_state": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Postal address, state.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "postal_suburb": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Postal address, suburb.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "tax_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Customer's tax ID.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "twitter": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Twitter handle.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "website": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Website URL.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [
        {
          "name": "customer_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/CustomerResponse"
          }
        }
      }
    },
    "GET /customers/{customer_id}/addresses": {
      "method": "GET",
      "path": "/customers/{customer_id}/addresses",
      "risk": "R",
      "description": "List all addresses for a customer",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "customer_id": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "The unique identifier of the customer."
              }
            },
            "required": [
              "customer_id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Returns a list of all addresses associated with the specified customer.\n\n🔒 Requires: `customers:read` scope"
      },
      "wire": [
        {
          "name": "customer_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/CustomerAddressCollection"
          }
        }
      }
    },
    "POST /customers/{customer_id}/addresses": {
      "method": "POST",
      "path": "/customers/{customer_id}/addresses",
      "risk": "W",
      "description": "Create a new address for a customer",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "customer_id": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "The unique identifier of the customer."
              }
            },
            "required": [
              "customer_id"
            ],
            "additionalProperties": false
          },
          "body": {
            "$ref": "#/$defs/CustomerAddressBase"
          }
        },
        "required": [
          "path",
          "body"
        ],
        "additionalProperties": false,
        "description": "Creates a new address for the specified customer.\n\n**Validation Rules:**\n- `country_code`: Required, must be a valid ISO 3166-1 alpha-2 code (e.g., US, NZ, AU)\n- `state_code`: Required for US and CA, must be valid for the country\n- `postcode`: Required, must be valid format for the country\n- `type`: Required, must be either BILLING or SHIPPING\n- `address_line_1`: Required, maximum 50 characters\n- `city`: Required, maximum 28 characters\n- `state`: Maximum 35 characters\n\n🔒 Requires: `customers:write` scope",
        "$defs": {
          "CustomerAddressBase": {
            "type": "object",
            "required": [
              "address_line_1",
              "city",
              "postcode",
              "country_code",
              "type"
            ],
            "properties": {
              "address_line_1": {
                "type": "string",
                "maxLength": 50,
                "description": "Primary address line (street address, P.O. box, etc.)."
              },
              "address_line_2": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 50,
                    "description": "Secondary address line (apartment, suite, unit, building, floor, etc.)."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "city": {
                "type": "string",
                "maxLength": 28,
                "description": "City or town name."
              },
              "country_code": {
                "type": "string",
                "description": "ISO 3166-1 alpha-2 country code (e.g., US, NZ, AU).",
                "maxLength": 262144
              },
              "postcode": {
                "type": "string",
                "description": "Postal code or ZIP code.",
                "maxLength": 262144
              },
              "state": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 35,
                    "description": "State, province, or region name."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "state_code": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "State or province code. Required for US and CA.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "suburb": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Suburb or district.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "type": {
                "type": "string",
                "enum": [
                  "BILLING",
                  "SHIPPING"
                ],
                "description": "The type of address.",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [
        {
          "name": "customer_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "201": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/CustomerAddressCreateResponse"
          }
        }
      }
    },
    "DELETE /customers/{customer_id}/addresses/{address_id}": {
      "method": "DELETE",
      "path": "/customers/{customer_id}/addresses/{address_id}",
      "risk": "D",
      "description": "Delete an address",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "customer_id": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "The unique identifier of the customer."
              },
              "address_id": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The unique identifier of the address."
              }
            },
            "required": [
              "customer_id",
              "address_id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Deletes an address for the specified customer.\n\n🔒 Requires: `customers:write` scope"
      },
      "wire": [
        {
          "name": "customer_id",
          "in": "path",
          "style": "form",
          "explode": true
        },
        {
          "name": "address_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "204": {
          "media": null,
          "schema": null
        }
      }
    },
    "GET /customers/{customer_id}/addresses/{address_id}": {
      "method": "GET",
      "path": "/customers/{customer_id}/addresses/{address_id}",
      "risk": "R",
      "description": "Get a single address",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "customer_id": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "The unique identifier of the customer."
              },
              "address_id": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The unique identifier of the address."
              }
            },
            "required": [
              "customer_id",
              "address_id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Returns a single address by its ID for the specified customer.\n\n🔒 Requires: `customers:read` scope"
      },
      "wire": [
        {
          "name": "customer_id",
          "in": "path",
          "style": "form",
          "explode": true
        },
        {
          "name": "address_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/CustomerAddressResponse"
          }
        }
      }
    },
    "PUT /customers/{customer_id}/addresses/{address_id}": {
      "method": "PUT",
      "path": "/customers/{customer_id}/addresses/{address_id}",
      "risk": "W",
      "description": "Update an address",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "customer_id": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "The unique identifier of the customer."
              },
              "address_id": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The unique identifier of the address."
              }
            },
            "required": [
              "customer_id",
              "address_id"
            ],
            "additionalProperties": false
          },
          "body": {
            "$ref": "#/$defs/CustomerAddressBase"
          }
        },
        "required": [
          "path",
          "body"
        ],
        "additionalProperties": false,
        "description": "Updates an existing address for the specified customer.\n\n**Validation Rules:**\n- `country_code`: Required, must be a valid ISO 3166-1 alpha-2 code (e.g., US, NZ, AU)\n- `state_code`: Required for US and CA, must be valid for the country\n- `postcode`: Required, must be valid format for the country\n- `type`: Required, must be either BILLING or SHIPPING\n- `address_line_1`: Required, maximum 50 characters\n- `city`: Required, maximum 28 characters\n- `state`: Maximum 35 characters\n\n🔒 Requires: `customers:write` scope",
        "$defs": {
          "CustomerAddressBase": {
            "type": "object",
            "required": [
              "address_line_1",
              "city",
              "postcode",
              "country_code",
              "type"
            ],
            "properties": {
              "address_line_1": {
                "type": "string",
                "maxLength": 50,
                "description": "Primary address line (street address, P.O. box, etc.)."
              },
              "address_line_2": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 50,
                    "description": "Secondary address line (apartment, suite, unit, building, floor, etc.)."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "city": {
                "type": "string",
                "maxLength": 28,
                "description": "City or town name."
              },
              "country_code": {
                "type": "string",
                "description": "ISO 3166-1 alpha-2 country code (e.g., US, NZ, AU).",
                "maxLength": 262144
              },
              "postcode": {
                "type": "string",
                "description": "Postal code or ZIP code.",
                "maxLength": 262144
              },
              "state": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 35,
                    "description": "State, province, or region name."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "state_code": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "State or province code. Required for US and CA.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "suburb": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Suburb or district.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "type": {
                "type": "string",
                "enum": [
                  "BILLING",
                  "SHIPPING"
                ],
                "description": "The type of address.",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [
        {
          "name": "customer_id",
          "in": "path",
          "style": "form",
          "explode": true
        },
        {
          "name": "address_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/CustomerAddressResponse"
          }
        }
      }
    },
    "POST /discount": {
      "method": "POST",
      "path": "/discount",
      "risk": "R",
      "description": "Apply discounts to a sale object",
      "input_schema": {
        "type": "object",
        "properties": {
          "body": {
            "$ref": "#/$defs/DiscountParam"
          }
        },
        "required": [
          "body"
        ],
        "additionalProperties": false,
        "description": "This will find the best possible promotion to a sale, apply it and return the sale and the discount.\n\n * Despite its `POST` method, this endpoint does not modify any server-side state.\n * It is the caller's responsibility to pass along the full details of the sale, including all customer information and product information (product type, tags, etc.).\n\n 🔒 Requires: `promotions:read` `outlets:read` scopes\n",
        "$defs": {
          "DiscountParam": {
            "type": "object",
            "required": [
              "channel",
              "customer",
              "outlet_id",
              "sale"
            ],
            "properties": {
              "channel": {
                "type": "string",
                "description": "The channel where the sale is coming from",
                "maxLength": 262144
              },
              "customer": {
                "$ref": "#/$defs/DiscountCustomerParam"
              },
              "is_tax_inclusive": {
                "type": "boolean",
                "description": "Indication whether the sale is tax inclusive or tax exclusive"
              },
              "outlet_id": {
                "type": "string",
                "description": "The outlet ID for this sale",
                "maxLength": 262144
              },
              "promo_code": {
                "type": "string",
                "description": "The promo code to apply to this sale",
                "maxLength": 262144
              },
              "sale": {
                "$ref": "#/$defs/DiscountSaleParam"
              }
            },
            "additionalProperties": false
          },
          "DiscountCustomerParam": {
            "type": "object",
            "properties": {
              "customer_group_id": {
                "type": "string",
                "description": "Customer group ID",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          },
          "DiscountSaleParam": {
            "type": "object",
            "required": [
              "line_items",
              "sale_date",
              "total_price",
              "total_tax"
            ],
            "properties": {
              "line_items": {
                "type": "array",
                "description": "Collection of line items.",
                "items": {
                  "$ref": "#/$defs/DiscountLineItem"
                },
                "maxItems": 100
              },
              "sale_date": {
                "type": "string",
                "description": "Sale timestamp in UTC, e.g. `2006-01-02T15:04:05` (no timezone suffix).",
                "maxLength": 262144
              },
              "total_price": {
                "type": "number",
                "description": "Total (tax exclusive) price of the sale"
              },
              "total_tax": {
                "type": "number",
                "description": "Total tax."
              }
            },
            "additionalProperties": false
          },
          "DiscountLineItem": {
            "type": "object",
            "required": [
              "handle",
              "product_brand_id",
              "product_id",
              "product_supplier_id",
              "product_tag_ids",
              "product_type_id",
              "quantity",
              "unit_price",
              "unit_tax_discount"
            ],
            "properties": {
              "confirmed": {
                "type": "boolean",
                "description": "Whether the line item is confirmed as part of a layby or on account sale."
              },
              "explicit_loyalty_value": {
                "type": "boolean",
                "description": "Whether loyalty was explicitly set in the product or it just uses the default outlet ratio."
              },
              "handle": {
                "type": "string",
                "description": "Handle.",
                "maxLength": 262144
              },
              "id": {
                "type": "string",
                "description": "Line item ID.",
                "maxLength": 262144
              },
              "loyalty_value": {
                "type": "number",
                "description": "The line item's loyalty value"
              },
              "price_adjusted": {
                "type": "boolean",
                "description": "Indicator to suggest that the price has been adjusted manually, such as through a discount."
              },
              "product_brand_id": {
                "type": "string",
                "description": "Product Brand ID.",
                "maxLength": 262144
              },
              "product_id": {
                "type": "string",
                "description": "Product ID",
                "maxLength": 262144
              },
              "product_supplier_id": {
                "type": "string",
                "description": "Product Supplier ID.",
                "maxLength": 262144
              },
              "product_tag_ids": {
                "type": "array",
                "description": "Product Tag IDs.",
                "items": {
                  "type": "string",
                  "maxLength": 262144
                },
                "maxItems": 100
              },
              "product_type_id": {
                "type": "string",
                "description": "Product Type ID.",
                "maxLength": 262144
              },
              "promotion_ids": {
                "type": "array",
                "description": "List of promotion IDs applied to this line item.",
                "items": {
                  "type": "string",
                  "maxLength": 262144
                },
                "maxItems": 100
              },
              "quantity": {
                "type": "integer",
                "description": "Quantity of the line item.",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "unit_discount": {
                "type": "number",
                "description": "The line item's unit discount"
              },
              "unit_price": {
                "type": "number",
                "description": "The unit price for the line item."
              },
              "unit_tax_discount": {
                "type": "number",
                "description": "The line item's unit tax discount"
              },
              "variant_parent_id": {
                "type": "string",
                "description": "Product variant parent ID",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/DiscountResponse"
          }
        }
      }
    },
    "GET /fulfillments": {
      "method": "GET",
      "path": "/fulfillments",
      "risk": "R",
      "description": "Get Fulfillments Summary",
      "input_schema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "object",
            "properties": {
              "outlet_id": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 262144
                },
                "maxItems": 100,
                "description": "Filter by outlet IDs (can be specified multiple times)"
              },
              "sale_id": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 262144
                },
                "maxItems": 100,
                "description": "Filter by sale IDs (can be specified multiple times)"
              },
              "fulfillment_type": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "PICKUP",
                    "DISPATCH",
                    "SERVICE"
                  ],
                  "maxLength": 262144
                },
                "maxItems": 100,
                "description": "Filter by fulfillment types (can be specified multiple times)"
              },
              "fulfillment_state": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "OPEN",
                    "STARTED",
                    "PICKED",
                    "PACKED",
                    "FULFILLED"
                  ],
                  "maxLength": 262144
                },
                "maxItems": 100,
                "description": "Filter by fulfillment states (can be specified multiple times)"
              },
              "page_number": {
                "type": "integer",
                "minimum": 1,
                "default": 1,
                "maximum": 9007199254740991,
                "description": "Page number for pagination (1-based)"
              },
              "page_size": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 10,
                "description": "Number of items per page"
              }
            },
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [],
        "additionalProperties": false,
        "description": "Retrieves a paginated list of fulfillment summary items with optional filtering"
      },
      "wire": [
        {
          "name": "outlet_id",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "sale_id",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "fulfillment_type",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "fulfillment_state",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "page_number",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "page_size",
          "in": "query",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {
          "page_size": 10
        },
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/FulfillmentSummaryResponse"
          }
        }
      }
    },
    "POST /fulfillments/fulfill": {
      "method": "POST",
      "path": "/fulfillments/fulfill",
      "risk": "H",
      "description": "Fulfill a Sale",
      "input_schema": {
        "type": "object",
        "properties": {
          "body": {
            "$ref": "#/$defs/FulfillSaleRequest"
          }
        },
        "required": [],
        "additionalProperties": false,
        "description": "Completes all fulfillments for a given sale. This is an idempotent action.\n\n🔒 Requires: `sales:write` scope",
        "$defs": {
          "FulfillSaleRequest": {
            "type": "object",
            "required": [
              "sale_id"
            ],
            "properties": {
              "sale_id": {
                "type": "string",
                "description": "The unique identifier of the sale to be fulfilled.",
                "maxLength": 262144,
                "format": "uuid"
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/FulfillSaleResponse"
          }
        }
      }
    },
    "POST /fulfillments/{fulfillment_id}/fulfill": {
      "method": "POST",
      "path": "/fulfillments/{fulfillment_id}/fulfill",
      "risk": "H",
      "description": "Fulfill line items within a sale",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "fulfillment_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The unique identifier of the fulfillment"
              }
            },
            "required": [
              "fulfillment_id"
            ],
            "additionalProperties": false
          },
          "body": {
            "$ref": "#/$defs/FulfillLineItemsRequest"
          }
        },
        "required": [
          "path",
          "body"
        ],
        "additionalProperties": false,
        "description": "Fulfills line items for a given sale.\n\nEach line item may optionally include a `source_breakdown`, which specifies how a fulfillment quantity should be sourced.\nWhen provided, all three fields are required and must sum to the parent quantity.\n\n🔒 Requires: `sales:write` scope",
        "$defs": {
          "FulfillLineItemsRequest": {
            "type": "object",
            "required": [
              "version",
              "line_items"
            ],
            "properties": {
              "line_items": {
                "type": "array",
                "description": "The line items to be fulfilled",
                "items": {
                  "$ref": "#/$defs/FulfillmentLineItemRequest"
                },
                "maxItems": 10
              },
              "version": {
                "type": "integer",
                "description": "The current version number of the fulfillment.",
                "minimum": -2147483648,
                "maximum": 2147483647
              }
            },
            "additionalProperties": false
          },
          "FulfillmentLineItemRequest": {
            "type": "object",
            "required": [
              "sale_line_item_id",
              "quantity"
            ],
            "properties": {
              "quantity": {
                "type": "number",
                "description": "The quantity to be fulfilled"
              },
              "sale_line_item_id": {
                "type": "string",
                "description": "The unique identifier of the sale line item to be fulfilled.",
                "maxLength": 262144,
                "format": "uuid"
              },
              "source_breakdown": {
                "$ref": "#/$defs/FulfillLineItemSourceBreakdown"
              }
            },
            "additionalProperties": false
          },
          "FulfillLineItemSourceBreakdown": {
            "type": "object",
            "required": [
              "quantity_from_picked",
              "quantity_from_packed",
              "quantity_from_not_started"
            ],
            "description": "Specifies how a fulfillment quantity should be sourced. When provided, all three fields are required and must sum to the parent quantity.",
            "properties": {
              "quantity_from_not_started": {
                "type": "number",
                "description": "Quantity to source from the not-started state."
              },
              "quantity_from_packed": {
                "type": "number",
                "description": "Quantity to source from the packed state."
              },
              "quantity_from_picked": {
                "type": "number",
                "description": "Quantity to source from the picked state."
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [
        {
          "name": "fulfillment_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/FulfillLineItemsResponse"
          }
        }
      }
    },
    "GET /fulfillments/{fulfillment_id}/history": {
      "method": "GET",
      "path": "/fulfillments/{fulfillment_id}/history",
      "risk": "R",
      "description": "Get Fulfillment History",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "fulfillment_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The unique identifier of the fulfillment"
              }
            },
            "required": [
              "fulfillment_id"
            ],
            "additionalProperties": false
          },
          "query": {
            "type": "object",
            "properties": {
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 100,
                "description": "Maximum number of history entries to return per page. When omitted or set to 0, all entries are returned."
              },
              "cursor": {
                "type": "string",
                "maxLength": 262144,
                "description": "Opaque pagination cursor returned from a previous request. Pass this value to retrieve the next page of results."
              }
            },
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Retrieves the history ledger for a single fulfillment, showing all state-change events\n(e.g. created, picked, packed, fulfilled, voided, returned) for each line item.\n\nResults are ordered oldest-first and support cursor-based pagination.\nWhen no more pages exist, the `next_cursor` field will be empty.\n\n🔒 Requires: `fulfillments:read` scope"
      },
      "wire": [
        {
          "name": "fulfillment_id",
          "in": "path",
          "style": "form",
          "explode": true
        },
        {
          "name": "limit",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "cursor",
          "in": "query",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {
          "limit": 100
        },
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/FulfillmentHistoryResponse"
          }
        }
      }
    },
    "POST /fulfillments/{fulfillment_id}/pack": {
      "method": "POST",
      "path": "/fulfillments/{fulfillment_id}/pack",
      "risk": "H",
      "description": "Partial Pack line items within a sale",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "fulfillment_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The unique identifier of the fulfillment"
              }
            },
            "required": [
              "fulfillment_id"
            ],
            "additionalProperties": false
          },
          "body": {
            "$ref": "#/$defs/PackLineItemsRequest"
          }
        },
        "required": [
          "path",
          "body"
        ],
        "additionalProperties": false,
        "description": "Sets pack quantity for line items for a given sale. This is an idempotent action.\n\nEach line item may optionally include a `source_breakdown`, which specifies how a packing quantity should be sourced.\nWhen provided, both fields are required and must sum to the parent quantity.\nSource breakdown is not allowed when the quantity is negative (unpacking).\n\n🔒 Requires: `sales:write` scope",
        "$defs": {
          "PackLineItemsRequest": {
            "type": "object",
            "required": [
              "version",
              "line_items"
            ],
            "properties": {
              "line_items": {
                "type": "array",
                "description": "The line items to be packed",
                "items": {
                  "$ref": "#/$defs/PackLineItemRequest"
                },
                "maxItems": 10
              },
              "version": {
                "type": "integer",
                "description": "The current version number of the fulfillment.",
                "minimum": -2147483648,
                "maximum": 2147483647
              }
            },
            "additionalProperties": false
          },
          "PackLineItemRequest": {
            "type": "object",
            "required": [
              "sale_line_item_id",
              "quantity"
            ],
            "properties": {
              "quantity": {
                "type": "number",
                "description": "The quantity to be packed"
              },
              "sale_line_item_id": {
                "type": "string",
                "description": "The unique identifier of the sale line item to be packed.",
                "maxLength": 262144,
                "format": "uuid"
              },
              "source_breakdown": {
                "$ref": "#/$defs/PackLineItemSourceBreakdown"
              }
            },
            "additionalProperties": false
          },
          "PackLineItemSourceBreakdown": {
            "type": "object",
            "required": [
              "quantity_from_picked",
              "quantity_from_not_started"
            ],
            "description": "Specifies how a packing quantity should be sourced. When provided, both fields are required and must sum to the parent quantity. Source breakdown is not allowed when the parent quantity is negative (unpacking).",
            "properties": {
              "quantity_from_not_started": {
                "type": "number",
                "description": "Quantity to source from the not-started state."
              },
              "quantity_from_picked": {
                "type": "number",
                "description": "Quantity to source from the picked state."
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [
        {
          "name": "fulfillment_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/PackLineItemsResponse"
          }
        }
      }
    },
    "POST /fulfillments/{fulfillment_id}/pick": {
      "method": "POST",
      "path": "/fulfillments/{fulfillment_id}/pick",
      "risk": "H",
      "description": "Partial Pick line items within a sale",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "fulfillment_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The unique identifier of the fulfillment"
              }
            },
            "required": [
              "fulfillment_id"
            ],
            "additionalProperties": false
          },
          "body": {
            "$ref": "#/$defs/PickLineItemsRequest"
          }
        },
        "required": [
          "path",
          "body"
        ],
        "additionalProperties": false,
        "description": "Sets pick quantity for line items for a given sale. This is an idempotent action.\n\n🔒 Requires: `sales:write` scope",
        "$defs": {
          "PickLineItemsRequest": {
            "type": "object",
            "required": [
              "version",
              "line_items"
            ],
            "properties": {
              "line_items": {
                "type": "array",
                "description": "The line items to be picked",
                "items": {
                  "$ref": "#/$defs/PickLineItemRequest"
                },
                "maxItems": 10
              },
              "version": {
                "type": "integer",
                "description": "The current version number of the fulfillment.",
                "minimum": -2147483648,
                "maximum": 2147483647
              }
            },
            "additionalProperties": false
          },
          "PickLineItemRequest": {
            "type": "object",
            "required": [
              "sale_line_item_id",
              "quantity"
            ],
            "properties": {
              "quantity": {
                "type": "number",
                "description": "The quantity to be picked"
              },
              "sale_line_item_id": {
                "type": "string",
                "description": "The unique identifier of the sale line item to be picked.",
                "maxLength": 262144,
                "format": "uuid"
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [
        {
          "name": "fulfillment_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/PickLineItemsResponse"
          }
        }
      }
    },
    "GET /gift_cards": {
      "method": "GET",
      "path": "/gift_cards",
      "risk": "R",
      "description": "List gift cards",
      "input_schema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "object",
            "properties": {
              "before": {
                "type": "string",
                "maxLength": 262144,
                "description": "Pagination cursor for reverse-chronological traversal. Pass the ID of a gift card to retrieve the next page of gift cards created before it, ordered from newest to oldest."
              },
              "page_size": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 100,
                "description": "The maximum number of items to be returned in the response. Defaults to 1000. Maximum value is 1000."
              },
              "card_number": {
                "type": "string",
                "maxLength": 262144,
                "description": "Find by gift card number."
              },
              "status": {
                "type": "string",
                "enum": [
                  "ACTIVE",
                  "INACTIVE",
                  "REDEEMED",
                  "VOIDED",
                  "EXPIRED"
                ],
                "maxLength": 262144,
                "description": "Filter by gift card status."
              }
            },
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [],
        "additionalProperties": false,
        "description": "Returns a paginated list of gift cards.\n\n🔒 Requires: `gift_cards:read` scope"
      },
      "wire": [
        {
          "name": "before",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "page_size",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "card_number",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "status",
          "in": "query",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {
          "page_size": 100
        },
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/GiftCardCollection"
          }
        }
      }
    },
    "POST /gift_cards": {
      "method": "POST",
      "path": "/gift_cards",
      "risk": "H",
      "description": "Create gift card",
      "input_schema": {
        "type": "object",
        "properties": {
          "body": {
            "$ref": "#/$defs/GiftCardActivationParams"
          }
        },
        "required": [
          "body"
        ],
        "additionalProperties": false,
        "description": "Creates and activates a new gift card. The gift card will be created with one transaction with status \"ACTIVATION\" which contains the initial balance of the gift card.\n\n🔒 Requires: `gift_cards:write:issue` scope",
        "$defs": {
          "GiftCardActivationParams": {
            "type": "object",
            "required": [
              "amount",
              "number"
            ],
            "description": "The parameters for creating and activating a new gift card.",
            "properties": {
              "amount": {
                "type": "number",
                "description": "The initial balance to be loaded onto the gift card (e.g. 10.00)."
              },
              "expires_at": {
                "type": "string",
                "description": "The expiry date of the gift card in YYYY-MM-DD format. If omitted, the expiry will be calculated based on the validity period configured in the Lightspeed Retail UI, or will be null if expiry is not enabled.",
                "maxLength": 262144
              },
              "number": {
                "type": "string",
                "description": "The unique number to assign to the gift card.",
                "maxLength": 262144
              },
              "time_zone": {
                "type": "string",
                "description": "The timezone to use when interpreting the `expires_at` date (e.g. \"Pacific/Auckland\"). See the list of tz database time zones for valid values.",
                "maxLength": 262144
              },
              "user_id": {
                "type": "string",
                "description": "The ID of the user creating the gift card. If omitted, the authenticated user will be used.",
                "maxLength": 262144,
                "format": "uuid"
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "201": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/GiftCardSingleton"
          }
        }
      }
    },
    "DELETE /gift_cards/by_id/{id}": {
      "method": "DELETE",
      "path": "/gift_cards/by_id/{id}",
      "risk": "D",
      "description": "Void gift card by id",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The id of the gift card to be voided."
              }
            },
            "required": [
              "id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Voids the gift card with the given id. The gift card balance will be set to zero and its status changed to \"VOIDED\".\n\n🔒 Requires: `gift_cards:write:issue` scope"
      },
      "wire": [
        {
          "name": "id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/GiftCardSingleton"
          }
        }
      }
    },
    "GET /gift_cards/by_id/{id}": {
      "method": "GET",
      "path": "/gift_cards/by_id/{id}",
      "risk": "R",
      "description": "Find gift card by id",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The id of the gift card to find."
              }
            },
            "required": [
              "id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Finds and returns the gift card with the given id. Returns a 404 if the card does not exist.\n\nWithin the gift card structure returned is the field `gift_card_transactions` which contains a list of all the transactions associated with the gift card. In this list you will see one or more of the following statuses:\n\n* \"ACTIVATION\" - This transaction type is added automatically when the gift card is created. The amount will be the initial balance that was loaded onto the gift card.\n* \"REDEEMING\" - This status indicates the customer used their gift card to pay for one or more items. The amount MUST be negative.\n* \"IMPORTING\" - You should only see this if gift cards were imported into the gift card system.\n* \"VOIDING\" - You will see this status if the gift card has been voided. Note that the balance of the card is set to zero when the gift card is voided.\n* \"EXPIRING\" - This transaction is added automatically when the gift card expires. Again note that the balance is set to zero when the gift card expires.\n* \"REVERSING\" - This status indicates that a given transaction was reversed.\n* \"RELOADING\" - This status means that more credit was loaded onto the gift card.\n\n🔒 Requires: `gift_cards:read` scope"
      },
      "wire": [
        {
          "name": "id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/GiftCardSingleton"
          }
        }
      }
    },
    "DELETE /gift_cards/by_number/{card_number}": {
      "method": "DELETE",
      "path": "/gift_cards/by_number/{card_number}",
      "risk": "D",
      "description": "Void gift card by number",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "card_number": {
                "type": "string",
                "maxLength": 262144,
                "description": "The number of the gift card to be voided."
              }
            },
            "required": [
              "card_number"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Voids the gift card with the given card number. The gift card balance will be set to zero and its status changed to \"VOIDED\".\n\n🔒 Requires: `gift_cards:write:issue` scope"
      },
      "wire": [
        {
          "name": "card_number",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/GiftCardSingleton"
          }
        }
      }
    },
    "GET /gift_cards/by_number/{card_number}": {
      "method": "GET",
      "path": "/gift_cards/by_number/{card_number}",
      "risk": "R",
      "description": "Find gift card by number",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "card_number": {
                "type": "string",
                "maxLength": 262144,
                "description": "The number of the gift card to find."
              }
            },
            "required": [
              "card_number"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Finds and returns the gift card with the given card number. Returns a 404 if the card does not exist.\n\nWithin the gift card structure returned is the field `gift_card_transactions` which contains a list of all the transactions associated with the gift card. In this list you will see one or more of the following statuses:\n\n* \"ACTIVATION\" - This transaction type is added automatically when the gift card is created. The amount will be the initial balance that was loaded onto the gift card.\n* \"REDEEMING\" - This status indicates the customer used their gift card to pay for one or more items. The amount MUST be negative.\n* \"IMPORTING\" - You should only see this if gift cards were imported into the gift card system.\n* \"VOIDING\" - You will see this status if the gift card has been voided. Note that the balance of the card is set to zero when the gift card is voided.\n* \"EXPIRING\" - This transaction is added automatically when the gift card expires. Again note that the balance is set to zero when the gift card expires.\n* \"REVERSING\" - This status indicates that a given transaction was reversed.\n* \"RELOADING\" - This status means that more credit was loaded onto the gift card.\n\n🔒 Requires: `gift_cards:read` scope"
      },
      "wire": [
        {
          "name": "card_number",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/GiftCardSingleton"
          }
        }
      }
    },
    "DELETE /gift_cards/transactions/{transaction_id}": {
      "method": "DELETE",
      "path": "/gift_cards/transactions/{transaction_id}",
      "risk": "D",
      "description": "Reverse gift card transaction",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "transaction_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The transaction id to be reversed for the gift card."
              }
            },
            "required": [
              "transaction_id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Reverses the given transaction on the gift card. If the reversal is successful, a new transaction will be added to the gift card transactions with the status \"REVERSING\". Only transactions of type \"REDEEMING\" can be reversed.\n\n🔒 Requires: `gift_cards:write:redeem` scope"
      },
      "wire": [
        {
          "name": "transaction_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/GiftCardTransactionSingleton"
          }
        }
      }
    },
    "GET /gift_cards/transactions/{transaction_id}": {
      "method": "GET",
      "path": "/gift_cards/transactions/{transaction_id}",
      "risk": "R",
      "description": "Find gift card by transaction id",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "transaction_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The transaction id of the gift card transaction to find."
              }
            },
            "required": [
              "transaction_id"
            ],
            "additionalProperties": false
          },
          "query": {
            "type": "object",
            "properties": {
              "system_id": {
                "type": "string",
                "enum": [
                  "x-series",
                  "e-series"
                ],
                "default": "x-series",
                "maxLength": 262144,
                "description": "The source system identifier. Defaults to x-series if not specified."
              }
            },
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Finds and returns the gift card associated with the given transaction id. Returns a 404 if the gift card with the given transaction id was not found.\n\nSupports an optional `system_id` query parameter to specify the source system (defaults to x-series, also supports e-series).\n\n🔒 Requires: `gift_cards:read` scope"
      },
      "wire": [
        {
          "name": "transaction_id",
          "in": "path",
          "style": "form",
          "explode": true
        },
        {
          "name": "system_id",
          "in": "query",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/GiftCardSingleton"
          }
        }
      }
    },
    "POST /gift_cards/{card_number}/transactions": {
      "method": "POST",
      "path": "/gift_cards/{card_number}/transactions",
      "risk": "H",
      "description": "Create a gift card transaction",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "card_number": {
                "type": "string",
                "maxLength": 262144,
                "description": "The number of the gift card to add the transaction to."
              }
            },
            "required": [
              "card_number"
            ],
            "additionalProperties": false
          },
          "body": {
            "$ref": "#/$defs/GiftCardTransactionParams"
          }
        },
        "required": [
          "path",
          "body"
        ],
        "additionalProperties": false,
        "description": "Creates a new gift card transaction on the specified gift card. The request body requires the `type`, `amount`, and `client_id` fields. The `type` determines what sort of transaction it is.\n\n* \"REDEEMING\" - Use this type when you want to redeem a certain amount from the gift card balance. The amount MUST be negative. If you want to add an amount to the balance use the \"RELOADING\" type.\n* \"RELOADING\" - Use this type when you load a new amount onto a gift card.\n\nIf the gift card does not have enough credit to honour the transaction a 422 HTTP status code will be returned.\n\n## Idempotency\n\nPlease populate the client_id field with a unique transaction identifier, to ensure that the transaction is safe from double-submit problems. See [the tutorial](/docs/gift_cards#idempotency) for more information.\n\n🔒 Requires: `gift_cards:write:redeem` scope",
        "$defs": {
          "GiftCardTransactionParams": {
            "type": "object",
            "required": [
              "amount",
              "client_id",
              "type"
            ],
            "description": "The parameters for creating a new gift card transaction.",
            "properties": {
              "amount": {
                "type": "number",
                "description": "The transaction amount. Must be negative for REDEEMING transactions and positive for RELOADING transactions."
              },
              "client_id": {
                "type": "string",
                "description": "A unique transaction identifier for idempotency. The client must provide this and is normally the transaction id from the client system.",
                "maxLength": 262144
              },
              "expires_at": {
                "type": "string",
                "description": "Optional new expiry date for the gift card in YYYY-MM-DD format. Can be used to extend the gift card's expiry when reloading.",
                "maxLength": 262144
              },
              "time_zone": {
                "type": "string",
                "description": "The timezone to use when interpreting the `expires_at` date (e.g. \"Pacific/Auckland\"). See the list of tz database time zones for valid values.",
                "maxLength": 262144
              },
              "type": {
                "type": "string",
                "enum": [
                  "REDEEMING",
                  "RELOADING"
                ],
                "description": "The type of the transaction.",
                "maxLength": 262144
              },
              "user_id": {
                "type": "string",
                "description": "The ID of the user creating the transaction. If omitted, the authenticated user will be used.",
                "maxLength": 262144,
                "format": "uuid"
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [
        {
          "name": "card_number",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "201": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/GiftCardTransactionSingleton"
          }
        }
      }
    },
    "POST /inventory": {
      "method": "POST",
      "path": "/inventory",
      "risk": "R",
      "description": "List inventory records",
      "input_schema": {
        "type": "object",
        "properties": {
          "body": {
            "$ref": "#/$defs/InventoryRequest"
          }
        },
        "required": [],
        "additionalProperties": false,
        "description": "Returns a paginated list of inventory records.\n\n🔒 Requires: `inventory:read` scope",
        "$defs": {
          "InventoryRequest": {
            "type": "object",
            "properties": {
              "after": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The lower limit for the version numbers to be included in the response."
              },
              "before": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The upper limit for the version numbers to be included in the response."
              },
              "include_deleted": {
                "type": "boolean",
                "description": "Whether to include inventory records for deleted products.",
                "default": false
              },
              "product_id": {
                "type": "string",
                "description": "Optional filter to restrict results to the specified product. When combined with variants: true, it's \ntreated as a root product ID and matches all variants of that product; otherwise it matches the exact \nproduct.",
                "maxLength": 262144,
                "format": "uuid"
              },
              "size": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 100,
                "description": "The maximum number of inventory records to return."
              },
              "sort_direction": {
                "type": "string",
                "enum": [
                  "asc",
                  "desc"
                ],
                "description": "Whether to sort the response by ascending or descending.",
                "default": "desc",
                "maxLength": 262144
              },
              "variants": {
                "type": "boolean",
                "description": "When true (and product_id is set), matches all variant products sharing the same root_product_id, rather\nthan just the exact product.",
                "default": false
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [],
      "defaults": {
        "query": {},
        "body": {
          "size": 100
        }
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "items": {
              "$ref": "#/components/schemas/Inventory"
            },
            "type": "array"
          }
        }
      }
    },
    "POST /inventory/reorder_points": {
      "method": "POST",
      "path": "/inventory/reorder_points",
      "risk": "H",
      "description": "Set reorder points",
      "input_schema": {
        "type": "object",
        "properties": {
          "body": {
            "$ref": "#/$defs/SetReorderPointsRequest"
          }
        },
        "required": [
          "body"
        ],
        "additionalProperties": false,
        "description": "Sets reorder points for one or more products at specific outlets. The method must be consistent across all outlets for a product and within the same variant family.\n\n🔒 Requires: `inventory:write` scope",
        "$defs": {
          "SetReorderPointsRequest": {
            "type": "array",
            "minItems": 1,
            "maxItems": 10,
            "description": "An array of reorder point entries to upsert.",
            "items": {
              "oneOf": [
                {
                  "$ref": "#/$defs/ReorderPointFixedRequestItem"
                },
                {
                  "$ref": "#/$defs/ReorderPointMinMaxRequestItem"
                }
              ]
            }
          },
          "ReorderPointFixedRequestItem": {
            "type": "object",
            "required": [
              "product_id",
              "outlet_id",
              "method",
              "reorder_point",
              "reorder_amount"
            ],
            "description": "A reorder point entry using the `FIXED` method.",
            "properties": {
              "method": {
                "type": "string",
                "enum": [
                  "FIXED"
                ],
                "description": "The reorder method. Must be `FIXED`.",
                "maxLength": 262144
              },
              "outlet_id": {
                "type": "string",
                "maxLength": 36,
                "description": "The ID of the outlet the reorder point applies to.",
                "format": "uuid"
              },
              "product_id": {
                "type": "string",
                "maxLength": 36,
                "description": "The ID of the product the reorder point applies to.",
                "format": "uuid"
              },
              "reorder_amount": {
                "type": "number",
                "description": "The static quantity to order each time the reorder point is triggered."
              },
              "reorder_point": {
                "type": "number",
                "description": "The minimum inventory level below which a product is automatically suggested for reordering."
              }
            },
            "additionalProperties": false
          },
          "ReorderPointMinMaxRequestItem": {
            "type": "object",
            "required": [
              "product_id",
              "outlet_id",
              "method",
              "reorder_point",
              "reorder_target"
            ],
            "description": "A reorder point entry using the `MIN_MAX` method.",
            "properties": {
              "method": {
                "type": "string",
                "enum": [
                  "MIN_MAX"
                ],
                "description": "The reorder method. Must be `MIN_MAX`.",
                "maxLength": 262144
              },
              "outlet_id": {
                "type": "string",
                "maxLength": 36,
                "description": "The ID of the outlet the reorder point applies to.",
                "format": "uuid"
              },
              "product_id": {
                "type": "string",
                "maxLength": 36,
                "description": "The ID of the product the reorder point applies to.",
                "format": "uuid"
              },
              "reorder_point": {
                "type": "number",
                "description": "The minimum inventory level below which a product is automatically suggested for reordering."
              },
              "reorder_target": {
                "type": "number",
                "description": "The desired stock level to restore to when reordering."
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/ReorderPointsCollection"
          }
        }
      }
    },
    "GET /inventory/{product_id}": {
      "method": "GET",
      "path": "/inventory/{product_id}",
      "risk": "R",
      "description": "List inventory records for a single product",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "product_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The product to fetch inventory levels for. When combined with variants: true, it's treated as a root product\nID and matches all variants of that product; otherwise it matches the exact product."
              }
            },
            "required": [
              "product_id"
            ],
            "additionalProperties": false
          },
          "query": {
            "type": "object",
            "properties": {
              "after": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The lower limit for the version numbers to be included in the response."
              },
              "before": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The upper limit for the version numbers to be included in the response."
              },
              "page_size": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 100,
                "description": "The maximum number of items to be returned in the response."
              },
              "variants": {
                "type": "boolean",
                "default": false,
                "description": "When true (and product_id is set), matches all variant products sharing the same root_product_id, rather\nthan just the exact product."
              },
              "include_deleted": {
                "type": "boolean",
                "default": false,
                "description": "Whether to include inventory records for deleted products."
              },
              "order_direction": {
                "type": "string",
                "enum": [
                  "asc",
                  "desc"
                ],
                "default": "asc",
                "maxLength": 262144,
                "description": "Whether to order the results ascending or descending by version."
              }
            },
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Returns inventory records for a single product at all outlets.\n\n🔒 Requires: `inventory:read` scope"
      },
      "wire": [
        {
          "name": "product_id",
          "in": "path",
          "style": "form",
          "explode": true
        },
        {
          "name": "after",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "before",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "page_size",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "variants",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "include_deleted",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "order_direction",
          "in": "query",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {
          "page_size": 100
        },
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "items": {
              "$ref": "#/components/schemas/Inventory"
            },
            "type": "array"
          }
        }
      }
    },
    "POST /inventory_levels": {
      "method": "POST",
      "path": "/inventory_levels",
      "risk": "R",
      "description": "List inventory levels",
      "input_schema": {
        "type": "object",
        "properties": {
          "body": {
            "$ref": "#/$defs/InventoryLevelsRequest"
          }
        },
        "required": [],
        "additionalProperties": false,
        "description": "Returns a paginated list of inventory levels.\n\n🔒 Requires: `inventory:read` scope",
        "$defs": {
          "InventoryLevelsRequest": {
            "type": "object",
            "properties": {
              "group_variants": {
                "type": "boolean",
                "description": "If filtering by `root_product_ids` and `group_variants` is true, one aggregated level will be returned\nfor each variant family at each outlet.",
                "default": false
              },
              "include_composites": {
                "type": "boolean",
                "description": "Include composite products in the response.",
                "default": false
              },
              "include_inactive": {
                "type": "boolean",
                "description": "Include inactive products in the response.",
                "default": false
              },
              "location_ids": {
                "type": "array",
                "maxItems": 100,
                "description": "Optional outlet IDs to filter response by.",
                "items": {
                  "type": "string",
                  "maxLength": 262144,
                  "format": "uuid"
                }
              },
              "offset": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "How many inventory levels to skip.",
                "default": 0
              },
              "product_ids": {
                "type": "array",
                "maxItems": 100,
                "description": "Optional product IDs to filter response by. Mutually exclusive with `root_product_ids`. When omitted, returns inventory levels for all products.",
                "items": {
                  "type": "string",
                  "maxLength": 262144,
                  "format": "uuid"
                }
              },
              "root_product_ids": {
                "type": "array",
                "maxItems": 100,
                "description": "Optional root product IDs to filter response by. Mutually exclusive with `product_ids`. When omitted, returns inventory levels for all products.",
                "items": {
                  "type": "string",
                  "maxLength": 262144,
                  "format": "uuid"
                }
              },
              "size": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 100,
                "description": "How many inventory levels to return."
              },
              "sort_direction": {
                "type": "string",
                "enum": [
                  "asc",
                  "desc"
                ],
                "description": "Whether to sort the response ascending or descending.",
                "default": "desc",
                "maxLength": 262144
              },
              "sort_type": {
                "type": "string",
                "enum": [
                  "total_count",
                  "total_cost",
                  "average_cost",
                  "reorder_point",
                  "reorder_amount",
                  "product_name",
                  "created_at"
                ],
                "description": "Which response field to sort by.",
                "default": "total_count",
                "maxLength": 262144
              },
              "supplier_ids": {
                "type": "array",
                "maxItems": 100,
                "description": "Optional supplier IDs to filter response by.",
                "items": {
                  "type": "string",
                  "maxLength": 262144,
                  "format": "uuid"
                }
              },
              "to_be_procured_only": {
                "type": "boolean",
                "description": "Only include inventory with a positive quantity to procure.",
                "default": false
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [],
      "defaults": {
        "query": {},
        "body": {
          "size": 100
        }
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "items": {
              "$ref": "#/components/schemas/InventoryLevel"
            },
            "type": "array"
          }
        }
      }
    },
    "GET /inventory_levels/{product_id}": {
      "method": "GET",
      "path": "/inventory_levels/{product_id}",
      "risk": "R",
      "description": "List inventory levels for a single product.",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "product_id": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "The product to fetch inventory levels for."
              }
            },
            "required": [
              "product_id"
            ],
            "additionalProperties": false
          },
          "query": {
            "type": "object",
            "properties": {
              "include_inactive": {
                "type": "boolean",
                "default": false,
                "description": "Whether to include inactive products in the response."
              }
            },
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Returns a paginated list of inventory levels for a single product.\n\n🔒 Requires: `inventory:read` scope"
      },
      "wire": [
        {
          "name": "product_id",
          "in": "path",
          "style": "form",
          "explode": true
        },
        {
          "name": "include_inactive",
          "in": "query",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "items": {
              "$ref": "#/components/schemas/InventoryLevel"
            },
            "type": "array"
          }
        }
      }
    },
    "POST /loyalty/adjustments/bulk": {
      "method": "POST",
      "path": "/loyalty/adjustments/bulk",
      "risk": "H",
      "description": "Perform a Loyalty Adjustment bulk operation",
      "input_schema": {
        "type": "object",
        "properties": {
          "body": {
            "$ref": "#/$defs/LoyaltyAdjustmentCreateBody"
          }
        },
        "required": [
          "body"
        ],
        "additionalProperties": false,
        "description": "Performs an operation which updates loyalty balance for multiple customers\n\nRequires the `loyalty.transaction.write` permission.",
        "$defs": {
          "LoyaltyAdjustmentCreateBody": {
            "type": "object",
            "required": [
              "adjustments"
            ],
            "description": "Request body to perform loyalty balance adjustment",
            "properties": {
              "adjustments": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "customer_id"
                  ],
                  "description": "single customer loyalty adjustment item",
                  "properties": {
                    "credit": {
                      "type": "number",
                      "description": "how much loyalty to add to the balance (mutually exclusive with debit)"
                    },
                    "customer_id": {
                      "type": "string",
                      "description": "id of a customer to perform an adjustment",
                      "maxLength": 262144,
                      "format": "uuid"
                    },
                    "debit": {
                      "type": "number",
                      "description": "how much loyalty to subtract from the balance (mutually exclusive with credit)"
                    },
                    "reason": {
                      "type": "string",
                      "description": "Arbitrary note that would be associated with the transaction",
                      "maxLength": 262144
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 10
              },
              "session_id": {
                "type": "string",
                "description": "An unique ID that prevents double adjustment (same request sent twice will be only applied once)\nMust be an uuidv4",
                "maxLength": 262144,
                "format": "uuid"
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/LoyaltyAdjustmentResponse"
          }
        },
        "207": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/LoyaltyAdjustmentResponse"
          }
        }
      }
    },
    "GET /outlet_taxes": {
      "method": "GET",
      "path": "/outlet_taxes",
      "risk": "R",
      "description": "List outlet product taxes",
      "input_schema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "object",
            "properties": {
              "outlet_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The ID of the outlet for which the results should be returned."
              },
              "after": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The lower limit for the version numbers to be included in the response."
              },
              "before": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The upper limit for the version numbers to be included in the response."
              },
              "page_size": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 100,
                "description": "The maximum number of items to be returned in the response."
              },
              "deleted": {
                "type": "boolean",
                "description": "Indicates whether deleted items should be included in the response."
              }
            },
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [],
        "additionalProperties": false,
        "description": "Returns a paginated list of outlet-product-tax records.\n\n🔒 Requires: `outlets:read` scope"
      },
      "wire": [
        {
          "name": "outlet_id",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "after",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "before",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "page_size",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "deleted",
          "in": "query",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {
          "page_size": 100
        },
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/OutletTaxCollection"
          }
        }
      }
    },
    "GET /outlets": {
      "method": "GET",
      "path": "/outlets",
      "risk": "R",
      "description": "List outlets",
      "input_schema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "object",
            "properties": {
              "after": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The lower limit for the version numbers to be included in the response."
              },
              "before": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The upper limit for the version numbers to be included in the response."
              },
              "page_size": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 100,
                "description": "The maximum number of items to be returned in the response."
              },
              "deleted": {
                "type": "boolean",
                "description": "Indicates whether deleted items should be included in the response."
              }
            },
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [],
        "additionalProperties": false,
        "description": "Returns a collection of outlets.\n\n🔒 Requires: `outlets:read` scope"
      },
      "wire": [
        {
          "name": "after",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "before",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "page_size",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "deleted",
          "in": "query",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {
          "page_size": 100
        },
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/OutletCollection"
          }
        }
      }
    },
    "GET /outlets/{outlet_id}": {
      "method": "GET",
      "path": "/outlets/{outlet_id}",
      "risk": "R",
      "description": "Get a single outlet",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "outlet_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The outlet id"
              }
            },
            "required": [
              "outlet_id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Returns a single outlet with the requested ID.\n\n🔒 Requires: `outlets:read` scope"
      },
      "wire": [
        {
          "name": "outlet_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/OutletResponse"
          }
        }
      }
    },
    "GET /packing_slip/{fulfillment_id}": {
      "method": "GET",
      "path": "/packing_slip/{fulfillment_id}",
      "risk": "R",
      "description": "Render Packing Slip",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "fulfillment_id": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "x-integer-minimum": "1",
                "description": "The unique identifier of the fulfillment to render a packing slip for. Must be a positive integer."
              }
            },
            "required": [
              "fulfillment_id"
            ],
            "additionalProperties": false
          },
          "query": {
            "type": "object",
            "properties": {
              "lang": {
                "type": "string",
                "maxLength": 262144,
                "description": "BCP 47 language tag used to localize the static template strings on the packing slip. Defaults to `en-US` when omitted or unrecognized."
              }
            },
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Renders a packing slip for a fulfillment as an HTML document (which can be\nprinted or converted to PDF).\n\nA packing slip lists the items to be packed and shipped for a fulfillment, along with\nthe customer delivery address and any relevant serial number custom fields.\n\nUse the optional `lang` query parameter to control the language of the static template\nstrings (labels and headings). When omitted or invalid, the packing slip defaults to\n`en-US`.\n\n🔒 Requires: `sales:read` scope"
      },
      "wire": [
        {
          "name": "fulfillment_id",
          "in": "path",
          "style": "form",
          "explode": true
        },
        {
          "name": "lang",
          "in": "query",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "text/html",
          "schema": {
            "description": "The rendered packing slip as an HTML document.",
            "type": "string"
          }
        }
      }
    },
    "POST /partial_packing_slip/{fulfillment_id}": {
      "method": "POST",
      "path": "/partial_packing_slip/{fulfillment_id}",
      "risk": "R",
      "description": "Render Partial Packing Slip",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "fulfillment_id": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "x-integer-minimum": "1",
                "description": "The unique identifier of the fulfillment to render a partial packing slip for. Must be a positive integer."
              }
            },
            "required": [
              "fulfillment_id"
            ],
            "additionalProperties": false
          },
          "body": {
            "$ref": "#/$defs/PartialPackingSlipRequest"
          }
        },
        "required": [
          "path",
          "body"
        ],
        "additionalProperties": false,
        "description": "Renders a partial packing slip for a fulfillment as an HTML document (which can be\nprinted or converted to PDF).\n\nNote: although the path parameter is named `fulfillment_id`, this value is the\npick-list-group ID used by the packing-slip flow.\n\nUnlike the full packing slip, a partial packing slip includes only the specified subset\nof sale line items and the exact quantities being packed. This is useful when a\nfulfillment is shipped across multiple parcels or in multiple stages.\n\nEach entry in `packed_line_items` must reference a valid sale line item and specify a\npositive quantity that does not exceed the quantity already packed on the pick lists.\n\nUse the optional `lang` field to control the language of the static template strings.\nWhen omitted or invalid, the packing slip defaults to `en-US`.\n\n🔒 Requires: `sales:read` scope",
        "$defs": {
          "PartialPackingSlipRequest": {
            "type": "object",
            "required": [
              "packed_line_items"
            ],
            "description": "Request body describing the subset of line items and quantities to render on a partial packing slip",
            "properties": {
              "lang": {
                "type": "string",
                "description": "BCP 47 language tag used to localize the static template strings on the packing slip. Defaults to `en-US` when omitted or unrecognized.",
                "maxLength": 262144
              },
              "packed_line_items": {
                "type": "array",
                "minItems": 1,
                "description": "The sale line items and quantities to include on the partial packing slip. Must contain at least one item.",
                "items": {
                  "$ref": "#/$defs/PackedLineItem"
                },
                "maxItems": 100
              }
            },
            "additionalProperties": false
          },
          "PackedLineItem": {
            "type": "object",
            "required": [
              "sale_line_item_id",
              "quantity"
            ],
            "description": "A single sale line item and the quantity to include on the partial packing slip",
            "properties": {
              "quantity": {
                "type": "number",
                "description": "The quantity of this line item to pack. Must be a positive finite number and must not exceed the quantity already packed on the pick lists."
              },
              "sale_line_item_id": {
                "type": "string",
                "description": "The ID of the sale line item to include on the packing slip",
                "maxLength": 262144,
                "format": "uuid"
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [
        {
          "name": "fulfillment_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "text/html",
          "schema": {
            "description": "The rendered partial packing slip as an HTML document.",
            "type": "string"
          }
        }
      }
    },
    "GET /payment_types": {
      "method": "GET",
      "path": "/payment_types",
      "risk": "R",
      "description": "List payment types",
      "input_schema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "object",
            "properties": {
              "after": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The lower limit for the version numbers to be included in the response."
              },
              "before": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The upper limit for the version numbers to be included in the response."
              },
              "page_size": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 100,
                "description": "The maximum number of items to be returned in the response."
              },
              "deleted": {
                "type": "boolean",
                "description": "If true, includes deleted payment types in the response."
              },
              "outlet_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "Filters payment types by outlet. Only effective when the payment_type_controls feature is enabled."
              },
              "currency": {
                "type": "string",
                "maxLength": 262144,
                "description": "Filters payment types by currency code (ISO 4217, e.g. \"AUD\", \"USD\")."
              },
              "only_lspay": {
                "type": "boolean",
                "description": "If true, returns only LSPay payment types."
              }
            },
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [],
        "additionalProperties": false,
        "description": "Returns a paginated collection of payment types.\n\n🔒 Requires: `payment_types:read` scope"
      },
      "wire": [
        {
          "name": "after",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "before",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "page_size",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "deleted",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "outlet_id",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "currency",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "only_lspay",
          "in": "query",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {
          "page_size": 100
        },
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/PaymentTypeCollection"
          }
        }
      }
    },
    "GET /price_book_products": {
      "method": "GET",
      "path": "/price_book_products",
      "risk": "R",
      "description": "List price book products",
      "input_schema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "object",
            "properties": {
              "after": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The lower limit for the version numbers to be included in the response."
              },
              "before": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The upper limit for the version numbers to be included in the response."
              },
              "page_size": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 100,
                "description": "The maximum number of items to be returned in the response."
              }
            },
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [],
        "additionalProperties": false,
        "description": "Returns a paginated list of price book products.\n\n🔒 Requires: `products:read:price_books` scope"
      },
      "wire": [
        {
          "name": "after",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "before",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "page_size",
          "in": "query",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {
          "page_size": 100
        },
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/PriceBookProductCollection"
          }
        }
      }
    },
    "GET /price_books": {
      "method": "GET",
      "path": "/price_books",
      "risk": "R",
      "description": "List price books",
      "input_schema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "object",
            "properties": {
              "after": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The lower limit for the version numbers to be included in the response."
              },
              "before": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The upper limit for the version numbers to be included in the response."
              },
              "page_size": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 100,
                "description": "The maximum number of items to be returned in the response."
              },
              "order": {
                "type": "string",
                "maxLength": 262144,
                "description": "Field used to sort the results."
              },
              "direction": {
                "type": "string",
                "maxLength": 262144,
                "description": "Sort results direction. ASC or DESC."
              },
              "deleted": {
                "type": "boolean",
                "description": "Include (true) or exclude (false) deleted price books. Default value is false."
              },
              "customer_group_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "Filter the list and show only price books linked to the specified Customer Group."
              }
            },
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [],
        "additionalProperties": false,
        "description": "Returns a paginated list of price books.\n\n🔒 Requires: `products:read:price_books` `customers:read` `outlets:read` scopes"
      },
      "wire": [
        {
          "name": "after",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "before",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "page_size",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "order",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "direction",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "deleted",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "customer_group_id",
          "in": "query",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {
          "page_size": 100
        },
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/PriceBookCollection"
          }
        }
      }
    },
    "POST /price_books": {
      "method": "POST",
      "path": "/price_books",
      "risk": "H",
      "description": "Create a single price book",
      "input_schema": {
        "type": "object",
        "properties": {
          "body": {
            "$ref": "#/$defs/PriceBookCreateRequest"
          }
        },
        "required": [
          "body"
        ],
        "additionalProperties": false,
        "description": "Create a price book\n\n🔒 Requires: `products:write:price_books` `customers:read` scopes",
        "$defs": {
          "PriceBookCreateRequest": {
            "type": "object",
            "required": [
              "customer_group_ids",
              "outlet_ids",
              "name"
            ],
            "properties": {
              "customer_group_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "description": "The ID of the customer group.",
                  "maxLength": 262144
                },
                "maxItems": 10
              },
              "name": {
                "type": "string",
                "description": "Price Book name.",
                "maxLength": 262144
              },
              "outlet_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "description": "The ID of an outlet for which the Price Book should be used.",
                  "maxLength": 262144
                },
                "maxItems": 10
              },
              "restrict_to_platform": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "`\"0\"` - all platforms, `\"1\"` - in store, `\"2\"` - ecommerce.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "valid_from": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The date when the Price Book becomes valid (active).",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "valid_to": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The date when the Price Book becomes invalid (inactive).",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/PriceBookCreateResponse"
          }
        }
      }
    },
    "GET /price_books/{id}": {
      "method": "GET",
      "path": "/price_books/{id}",
      "risk": "R",
      "description": "Get a single price book",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The price book id"
              }
            },
            "required": [
              "id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Returns a single price book with a requested ID\n\n🔒 Requires: `products:read:price_books` `customers:read` `outlets:read` scopes"
      },
      "wire": [
        {
          "name": "id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/PriceBookResponse"
          }
        }
      }
    },
    "PUT /price_books/{id}": {
      "method": "PUT",
      "path": "/price_books/{id}",
      "risk": "H",
      "description": "Update a single price book",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The price book id"
              }
            },
            "required": [
              "id"
            ],
            "additionalProperties": false
          },
          "body": {
            "$ref": "#/$defs/PriceBookUpdateRequest"
          }
        },
        "required": [
          "path",
          "body"
        ],
        "additionalProperties": false,
        "description": "Update a price book by ID\n\n🔒 Requires: `products:write:price_books` `customers:read` scopes",
        "$defs": {
          "PriceBookUpdateRequest": {
            "type": "object",
            "required": [
              "customer_group_ids",
              "name",
              "outlet_ids"
            ],
            "properties": {
              "customer_group_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "description": "The ID of the customer group.",
                  "maxLength": 262144
                },
                "maxItems": 10
              },
              "name": {
                "type": "string",
                "description": "Price Book name.",
                "maxLength": 262144
              },
              "outlet_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "description": "The ID of an outlet for which the Price Book should be used.",
                  "maxLength": 262144
                },
                "maxItems": 10
              },
              "restrict_to_platform": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "`\"0\"` - all platforms, `\"1\"` - in store, `\"2\"` - ecommerce.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "valid_from": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The date when the Price Book becomes valid (active).",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "valid_to": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The date when the Price Book becomes invalid (inactive).",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [
        {
          "name": "id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/PriceBookCreateResponse"
          }
        }
      }
    },
    "DELETE /price_books/{price_book_id}/products": {
      "method": "DELETE",
      "path": "/price_books/{price_book_id}/products",
      "risk": "D",
      "description": "Delete some entries for a price book",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "price_book_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The price book id"
              }
            },
            "required": [
              "price_book_id"
            ],
            "additionalProperties": false
          },
          "body": {
            "$ref": "#/$defs/PriceBookProductIdCollection"
          }
        },
        "required": [
          "path",
          "body"
        ],
        "additionalProperties": false,
        "description": "Delete price book product entries.\n\n> **Note**: You may not delete more than 100 price book products at a time.\n\n> **Note**: The request body params can be used within request headers. Header key name is `data`\n\n🔒 Requires: `products:write:price_books` scope",
        "$defs": {
          "PriceBookProductIdCollection": {
            "type": "object",
            "properties": {
              "data": {
                "type": "object",
                "required": [
                  "price_book_product_ids"
                ],
                "description": "An array of Price Book ids",
                "properties": {
                  "price_book_product_ids": {
                    "type": "array",
                    "description": "An array of price book product ids to be deleted from the given Price Book.",
                    "items": {
                      "type": "string",
                      "maxLength": 262144
                    },
                    "maxItems": 10
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [
        {
          "name": "price_book_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/PriceBookProductsUpdateResponse"
          }
        }
      }
    },
    "GET /price_books/{price_book_id}/products": {
      "method": "GET",
      "path": "/price_books/{price_book_id}/products",
      "risk": "R",
      "description": "List price book products per price book",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "price_book_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The price book id"
              }
            },
            "required": [
              "price_book_id"
            ],
            "additionalProperties": false
          },
          "query": {
            "type": "object",
            "properties": {
              "product_ids": {
                "type": "string",
                "maxLength": 262144,
                "description": "The product ids"
              }
            },
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Returns a list of price book products for a given price book.\n\n> **Note**: The returned retail price is the tax exclusive price of the product.\n\n🔒 Requires: `products:read:price_books` scope"
      },
      "wire": [
        {
          "name": "price_book_id",
          "in": "path",
          "style": "form",
          "explode": true
        },
        {
          "name": "product_ids",
          "in": "query",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/PriceBookProductCollection"
          }
        }
      }
    },
    "PATCH /price_books/{price_book_id}/products": {
      "method": "PATCH",
      "path": "/price_books/{price_book_id}/products",
      "risk": "H",
      "description": "Update the products in a price book",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "price_book_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The price book id"
              }
            },
            "required": [
              "price_book_id"
            ],
            "additionalProperties": false
          },
          "body": {
            "$ref": "#/$defs/PriceBookProductCollection"
          }
        },
        "required": [
          "path",
          "body"
        ],
        "additionalProperties": false,
        "description": "Update price book products.\n\n> **Note**: When adding a product the retail price is the tax exclusive price of the product if your store is tax exclusive, and tax inclusive if your store is tax inclusive. The returned value is always tax exclusive.\n\n> **Note**: The request body may not contain more than 100 price book products.\n\n🔒 Requires: `products:write:price_books` `products:read` scopes",
        "$defs": {
          "PriceBookProductCollection": {
            "type": "object",
            "required": [
              "data"
            ],
            "properties": {
              "data": {
                "type": "array",
                "description": "An array of Price Book objects wrapped in a top level `data` object.",
                "items": {
                  "$ref": "#/$defs/PriceBookProduct"
                },
                "maxItems": 10
              }
            },
            "additionalProperties": false
          },
          "PriceBookProduct": {
            "type": "object",
            "required": [
              "price",
              "product_id",
              "tax_id"
            ],
            "properties": {
              "adjustment": {
                "anyOf": [
                  {
                    "type": "number",
                    "description": "The adjustment amount"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "adjustment_type": {
                "type": "string",
                "description": "The adjustment type",
                "maxLength": 262144
              },
              "created_at": {
                "type": "string",
                "description": "Creation timestamp in UTC.",
                "maxLength": 262144
              },
              "default_display_price": {
                "type": "number",
                "description": "The default display price"
              },
              "deleted_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Deletion timestamp in UTC.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "discount": {
                "anyOf": [
                  {
                    "type": "number",
                    "description": "The discount amount"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "id": {
                "type": "string",
                "description": "Auto-generated object ID.",
                "maxLength": 262144
              },
              "loyalty_value": {
                "anyOf": [
                  {
                    "type": "number",
                    "description": "Price Book defined loyalty value."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "max_units": {
                "anyOf": [
                  {
                    "type": "number",
                    "description": "The maximum number of items for which this price will be used."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "min_units": {
                "anyOf": [
                  {
                    "type": "number",
                    "description": "The minimum number of items for which this price will be used."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "price": {
                "type": "number",
                "description": "The Retail price of the product."
              },
              "price_book_id": {
                "type": "string",
                "description": "The ID of the Price Book this product belongs to.",
                "maxLength": 262144
              },
              "product_id": {
                "type": "string",
                "description": "The ID of the associated product.",
                "maxLength": 262144
              },
              "retail_tax": {
                "type": "number",
                "description": "The retail tax"
              },
              "rounding": {
                "type": "string",
                "description": "The format for the rounding",
                "maxLength": 262144
              },
              "tax_id": {
                "type": "string",
                "description": "The id for the tax rate",
                "maxLength": 262144
              },
              "updated_at": {
                "type": "string",
                "description": "Last update timestamp in UTC.",
                "maxLength": 262144
              },
              "version": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64"
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [
        {
          "name": "price_book_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/PriceBookProductsUpdateResponse"
          }
        }
      }
    },
    "POST /price_books/{price_book_id}/products": {
      "method": "POST",
      "path": "/price_books/{price_book_id}/products",
      "risk": "H",
      "description": "Add the products to a price book",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "price_book_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The price book id"
              }
            },
            "required": [
              "price_book_id"
            ],
            "additionalProperties": false
          },
          "body": {
            "$ref": "#/$defs/PriceBookProductCollection"
          }
        },
        "required": [
          "path",
          "body"
        ],
        "additionalProperties": false,
        "description": "Create price book products.\n\n> **Note**: When adding a product the retail price is the tax exclusive price of the product if your store is tax exclusive, and tax inclusive if your store is tax inclusive.  The returned value is always tax exclusive.\n\n> **Note**: The request body may not contain more than 100 price book products.\n\n🔒 Requires: `products:write:price_books` `products:read` scopes",
        "$defs": {
          "PriceBookProductCollection": {
            "type": "object",
            "required": [
              "data"
            ],
            "properties": {
              "data": {
                "type": "array",
                "description": "An array of Price Book objects wrapped in a top level `data` object.",
                "items": {
                  "$ref": "#/$defs/PriceBookProduct"
                },
                "maxItems": 10
              }
            },
            "additionalProperties": false
          },
          "PriceBookProduct": {
            "type": "object",
            "required": [
              "price",
              "product_id",
              "tax_id"
            ],
            "properties": {
              "adjustment": {
                "anyOf": [
                  {
                    "type": "number",
                    "description": "The adjustment amount"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "adjustment_type": {
                "type": "string",
                "description": "The adjustment type",
                "maxLength": 262144
              },
              "created_at": {
                "type": "string",
                "description": "Creation timestamp in UTC.",
                "maxLength": 262144
              },
              "default_display_price": {
                "type": "number",
                "description": "The default display price"
              },
              "deleted_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Deletion timestamp in UTC.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "discount": {
                "anyOf": [
                  {
                    "type": "number",
                    "description": "The discount amount"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "id": {
                "type": "string",
                "description": "Auto-generated object ID.",
                "maxLength": 262144
              },
              "loyalty_value": {
                "anyOf": [
                  {
                    "type": "number",
                    "description": "Price Book defined loyalty value."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "max_units": {
                "anyOf": [
                  {
                    "type": "number",
                    "description": "The maximum number of items for which this price will be used."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "min_units": {
                "anyOf": [
                  {
                    "type": "number",
                    "description": "The minimum number of items for which this price will be used."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "price": {
                "type": "number",
                "description": "The Retail price of the product."
              },
              "price_book_id": {
                "type": "string",
                "description": "The ID of the Price Book this product belongs to.",
                "maxLength": 262144
              },
              "product_id": {
                "type": "string",
                "description": "The ID of the associated product.",
                "maxLength": 262144
              },
              "retail_tax": {
                "type": "number",
                "description": "The retail tax"
              },
              "rounding": {
                "type": "string",
                "description": "The format for the rounding",
                "maxLength": 262144
              },
              "tax_id": {
                "type": "string",
                "description": "The id for the tax rate",
                "maxLength": 262144
              },
              "updated_at": {
                "type": "string",
                "description": "Last update timestamp in UTC.",
                "maxLength": 262144
              },
              "version": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64"
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [
        {
          "name": "price_book_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/PriceBookProductsUpdateResponse"
          }
        }
      }
    },
    "PUT /price_books/{price_book_id}/products": {
      "method": "PUT",
      "path": "/price_books/{price_book_id}/products",
      "risk": "H",
      "description": "Update the products in a price book",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "price_book_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The price book id"
              }
            },
            "required": [
              "price_book_id"
            ],
            "additionalProperties": false
          },
          "body": {
            "$ref": "#/$defs/PriceBookProductCollection"
          }
        },
        "required": [
          "path",
          "body"
        ],
        "additionalProperties": false,
        "description": "Update price book products.\n\n> **Note**: When adding a product the retail price is the tax exclusive price of the product if your store is tax exclusive, and tax inclusive if your store is tax inclusive. The returned value is always tax exclusive.\n\n> **Note**: The request body may not contain more than 100 price book products.\n\n🔒 Requires: `products:write:price_books` `products:read` scopes",
        "$defs": {
          "PriceBookProductCollection": {
            "type": "object",
            "required": [
              "data"
            ],
            "properties": {
              "data": {
                "type": "array",
                "description": "An array of Price Book objects wrapped in a top level `data` object.",
                "items": {
                  "$ref": "#/$defs/PriceBookProduct"
                },
                "maxItems": 10
              }
            },
            "additionalProperties": false
          },
          "PriceBookProduct": {
            "type": "object",
            "required": [
              "price",
              "product_id",
              "tax_id"
            ],
            "properties": {
              "adjustment": {
                "anyOf": [
                  {
                    "type": "number",
                    "description": "The adjustment amount"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "adjustment_type": {
                "type": "string",
                "description": "The adjustment type",
                "maxLength": 262144
              },
              "created_at": {
                "type": "string",
                "description": "Creation timestamp in UTC.",
                "maxLength": 262144
              },
              "default_display_price": {
                "type": "number",
                "description": "The default display price"
              },
              "deleted_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Deletion timestamp in UTC.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "discount": {
                "anyOf": [
                  {
                    "type": "number",
                    "description": "The discount amount"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "id": {
                "type": "string",
                "description": "Auto-generated object ID.",
                "maxLength": 262144
              },
              "loyalty_value": {
                "anyOf": [
                  {
                    "type": "number",
                    "description": "Price Book defined loyalty value."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "max_units": {
                "anyOf": [
                  {
                    "type": "number",
                    "description": "The maximum number of items for which this price will be used."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "min_units": {
                "anyOf": [
                  {
                    "type": "number",
                    "description": "The minimum number of items for which this price will be used."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "price": {
                "type": "number",
                "description": "The Retail price of the product."
              },
              "price_book_id": {
                "type": "string",
                "description": "The ID of the Price Book this product belongs to.",
                "maxLength": 262144
              },
              "product_id": {
                "type": "string",
                "description": "The ID of the associated product.",
                "maxLength": 262144
              },
              "retail_tax": {
                "type": "number",
                "description": "The retail tax"
              },
              "rounding": {
                "type": "string",
                "description": "The format for the rounding",
                "maxLength": 262144
              },
              "tax_id": {
                "type": "string",
                "description": "The id for the tax rate",
                "maxLength": 262144
              },
              "updated_at": {
                "type": "string",
                "description": "Last update timestamp in UTC.",
                "maxLength": 262144
              },
              "version": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64"
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [
        {
          "name": "price_book_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/PriceBookProductsUpdateResponse"
          }
        }
      }
    },
    "GET /product_categories": {
      "method": "GET",
      "path": "/product_categories",
      "risk": "R",
      "description": "List product categories",
      "input_schema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "object",
            "properties": {
              "parent": {
                "type": "string",
                "maxLength": 262144,
                "description": "If parent is an id, it filters the list of categories that belongs to the given category. If parent is \"none\", it filters  categories for root categories only."
              },
              "include": {
                "type": "string",
                "enum": [
                  "family",
                  "children"
                ],
                "maxLength": 262144,
                "description": "Defaults to \"family\" * `family` - Include all categories in the hierarchy. * `children` - Include only direct children.\n"
              },
              "page_size": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 100,
                "description": "The total number of categories to return. Default is 1000."
              },
              "after": {
                "type": "string",
                "maxLength": 262144,
                "description": "The category id to get the next set of paginated results."
              }
            },
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [],
        "additionalProperties": false,
        "description": "🔒 Requires: `products:read` scope"
      },
      "wire": [
        {
          "name": "parent",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "include",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "page_size",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "after",
          "in": "query",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {
          "page_size": 100
        },
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "properties": {
              "data": {
                "properties": {
                  "categories": {
                    "description": "The list of product categories, sorted by the full category path alphabetically ascending. In other words, by sorting category path, it will be sorted per category level in alphabetical order.",
                    "items": {
                      "$ref": "#/components/schemas/ProductCategory"
                    },
                    "type": "array"
                  }
                },
                "type": "object"
              },
              "page_info": {
                "properties": {
                  "has_next": {
                    "description": "True if there are more pages available in the next page.",
                    "type": "boolean"
                  },
                  "last_seen": {
                    "description": "If there are more results, this is the value to use as \"after\" to retrieve the next set of results.",
                    "type": "string"
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          }
        }
      }
    },
    "DELETE /product_categories/bulk": {
      "method": "DELETE",
      "path": "/product_categories/bulk",
      "risk": "D",
      "description": "Delete a list of product categories",
      "input_schema": {
        "type": "object",
        "properties": {
          "body": {
            "type": "object",
            "properties": {
              "category_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 262144
                },
                "maxItems": 10
              }
            },
            "additionalProperties": false
          }
        },
        "required": [],
        "additionalProperties": false,
        "description": "Delete a list of categories.\nIf the category is a parent or root, the descendent categories also get deleted.\nProducts associated to the deleted category are assigned to the parent, or if the deleted category is a root, the products are unassigned.\n\n🔒 Requires: `products:write` scope\n"
      },
      "wire": [],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "properties": {
              "data": {
                "properties": {
                  "categories": {
                    "description": "The list of categories deleted.",
                    "items": {
                      "properties": {
                        "ids": {
                          "description": "The id of the category deleted, and the subsequent descendent categories deleted.",
                          "items": {
                            "format": "uuid",
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "job_id": {
                          "description": "The id of the asynchronous job to move products to an either the parent category or unassign the product from the category.",
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "type": "array"
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          }
        }
      }
    },
    "POST /product_categories/bulk": {
      "method": "POST",
      "path": "/product_categories/bulk",
      "risk": "H",
      "description": "Create and update a product category hierarchy",
      "input_schema": {
        "type": "object",
        "properties": {
          "body": {
            "type": "object",
            "properties": {
              "categories": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "The category id to be updated.",
                      "maxLength": 262144,
                      "format": "uuid"
                    },
                    "name": {
                      "type": "string",
                      "description": "The category name to be updated, or added for new category.",
                      "maxLength": 262144
                    },
                    "parent_category_id": {
                      "type": "string",
                      "description": "Existing category that the new category will be a child of.",
                      "maxLength": 262144,
                      "format": "uuid"
                    },
                    "payload_id": {
                      "type": "string",
                      "description": "A temporary id to identify the category that don't exist yet. This can be used by other categories within this payload to refer to this category.",
                      "maxLength": 262144
                    },
                    "payload_parent_category_id": {
                      "type": "string",
                      "description": "The temporary id referring to the parent category which is also to be created in the same payload.",
                      "maxLength": 262144
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 10
              }
            },
            "additionalProperties": false
          }
        },
        "required": [],
        "additionalProperties": false,
        "description": "🔒 Requires: `products:write` scope"
      },
      "wire": [],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "properties": {
              "data": {
                "items": {
                  "description": "The categories created or updated",
                  "properties": {
                    "id": {
                      "description": "The category id. If updated, its existing, if created, it is the issued id.",
                      "format": "uuid",
                      "type": "string"
                    },
                    "name": {
                      "description": "The saved category name.",
                      "type": "string"
                    },
                    "parent_category_id": {
                      "description": "The parent category id, if the category is not a root. If the new category in the request was referencing pseudo parent, this refers to the created parent's real id.",
                      "format": "uuid",
                      "type": "string"
                    },
                    "payload_id": {
                      "description": "A reference back to the pseudo id given for this category in the request.",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "type": "array"
              }
            },
            "type": "object"
          }
        }
      }
    },
    "DELETE /product_images/{product_image_id}": {
      "method": "DELETE",
      "path": "/product_images/{product_image_id}",
      "risk": "D",
      "description": "Delete a product image",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "product_image_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The product image id"
              }
            },
            "required": [
              "product_image_id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Deletes the product image with the requested ID.\n\n🔒 Requires: `products:write` scope"
      },
      "wire": [
        {
          "name": "product_image_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "204": {
          "media": null,
          "schema": null
        }
      }
    },
    "GET /product_images/{product_image_id}": {
      "method": "GET",
      "path": "/product_images/{product_image_id}",
      "risk": "R",
      "description": "Get a single product image data",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "product_image_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The product image id"
              }
            },
            "required": [
              "product_image_id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Returns the metadata for a single product image with a given ID.\nThis method is useful for checking the status of an image after it was uploaded.\n\n🔒 Requires: `products:read` scope"
      },
      "wire": [
        {
          "name": "product_image_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/ImageResponse"
          }
        }
      }
    },
    "PUT /product_images/{product_image_id}": {
      "method": "PUT",
      "path": "/product_images/{product_image_id}",
      "risk": "H",
      "description": "Set image position",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "product_image_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The product image id"
              }
            },
            "required": [
              "product_image_id"
            ],
            "additionalProperties": false
          },
          "body": {
            "$ref": "#/$defs/ImagePosition"
          }
        },
        "required": [
          "path",
          "body"
        ],
        "additionalProperties": false,
        "description": "Allows for changing the image position in the list\n\n🔒 Requires: `products:write` scope",
        "$defs": {
          "ImagePosition": {
            "type": "object",
            "required": [
              "position"
            ],
            "properties": {
              "position": {
                "type": "number",
                "description": "New position for the image."
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [
        {
          "name": "product_image_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/ImageResponse"
          }
        }
      }
    },
    "GET /product_types/{product_type_id}": {
      "method": "GET",
      "path": "/product_types/{product_type_id}",
      "risk": "R",
      "description": "Get a single product type",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "product_type_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The product type id"
              }
            },
            "required": [
              "product_type_id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Returns a single product type with a given ID.\n\n🔒 Requires: `products:read` scope"
      },
      "wire": [
        {
          "name": "product_type_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/ProductTypeResponse"
          }
        }
      }
    },
    "GET /products": {
      "method": "GET",
      "path": "/products",
      "risk": "R",
      "description": "List products",
      "input_schema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "object",
            "properties": {
              "after": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The lower limit for the version numbers to be included in the response."
              },
              "before": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The upper limit for the version numbers to be included in the response."
              },
              "deleted": {
                "type": "boolean",
                "description": "Indicates whether deleted items should be included in the response."
              },
              "page_size": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 100,
                "description": "The maximum number of items to be returned in the response."
              },
              "sku": {
                "type": "string",
                "maxLength": 262144,
                "description": "Allows loading a product by one of its SKUs. Note that all other query params are ignored if this is provided."
              },
              "name": {
                "type": "string",
                "maxLength": 262144,
                "description": "Allows loading products with the name provided in this parameter. This query typically retrieves all products from the product family with the provided name. Note that all other query parameters are ignored if this is provided."
              },
              "family_name": {
                "type": "string",
                "maxLength": 262144,
                "description": "Alias for 'name'. Allows loading products that belong to the family with the name provided in this parameter. Note that all other query parameters are ignored if this is provided."
              },
              "includes[]": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 262144
                },
                "maxItems": 100,
                "description": "Side-load related entities. Supported value 'composite_products'."
              },
              "include_images": {
                "type": "boolean",
                "description": "Whether to include product image fields in the response. Defaults to true."
              }
            },
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [],
        "additionalProperties": false,
        "description": "Returns a paginated list of products.\n\nTo search for products, please have a look at our [Search endpoint](/reference/search-1) on what is supported.\n\n🔒 Requires: `products:read` scope"
      },
      "wire": [
        {
          "name": "after",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "before",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "deleted",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "page_size",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "sku",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "name",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "family_name",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "includes[]",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "include_images",
          "in": "query",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {
          "page_size": 100
        },
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/ProductCollection"
          }
        }
      }
    },
    "POST /products": {
      "method": "POST",
      "path": "/products",
      "risk": "H",
      "description": "Create product",
      "input_schema": {
        "type": "object",
        "properties": {
          "body": {
            "$ref": "#/$defs/ProductCreateBody"
          }
        },
        "required": [
          "body"
        ],
        "additionalProperties": false,
        "description": "Creates a new product.\n\n🔒 Requires: `products:write` scope",
        "$defs": {
          "ProductCreateBody": {
            "type": "object",
            "required": [
              "name"
            ],
            "properties": {
              "account_code_purchase": {
                "type": "string",
                "description": "The code used to attribute the purchase of the product to a specific account for the Xero integration.",
                "maxLength": 262144
              },
              "account_code_sale": {
                "type": "string",
                "description": "The code used to attribute the sales of the product to a specific account for the Xero integration.",
                "maxLength": 262144
              },
              "all_outlets_tax": {
                "type": "object",
                "description": "Only used for tax inclusive stores.",
                "properties": {
                  "is_default": {
                    "type": "boolean",
                    "description": "Is this the default tax."
                  },
                  "tax_id": {
                    "type": "string",
                    "description": "The tax id associated with this product.",
                    "maxLength": 262144,
                    "format": "uuid"
                  }
                },
                "additionalProperties": false
              },
              "attributes": {
                "$ref": "#/$defs/Attribute"
              },
              "brand_id": {
                "type": "string",
                "description": "The brand ID.",
                "maxLength": 262144,
                "format": "uuid"
              },
              "composite": {
                "type": "array",
                "description": "A list of composite components.",
                "items": {
                  "$ref": "#/$defs/Composite"
                },
                "maxItems": 10
              },
              "description": {
                "type": "string",
                "description": "A detailed description of the Product. **Note** Can contain HTML.",
                "maxLength": 262144
              },
              "dimensions_unit": {
                "type": "string",
                "enum": [
                  "IN",
                  "CM",
                  "MM",
                  "YD"
                ],
                "description": "Unit of measurement for product dimensions. These are used to calculate variable shipping rates for stores using Lightspeed eCom.",
                "maxLength": 262144
              },
              "handle": {
                "type": "string",
                "description": "Product handle.",
                "maxLength": 262144
              },
              "height": {
                "type": "number",
                "description": "Product height. These are used to calculate variable shipping rates for stores using Lightspeed eCom."
              },
              "images": {
                "type": "array",
                "description": "A list of image objects.",
                "items": {
                  "$ref": "#/$defs/ProductAddImage"
                },
                "maxItems": 10
              },
              "inventory": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/ProductAddInventoryPayload"
                },
                "maxItems": 10
              },
              "is_active": {
                "type": "boolean",
                "description": "Indicated whether the Product is active."
              },
              "length": {
                "type": "number",
                "description": "Product length. These are used to calculate variable shipping rates for stores using Lightspeed eCom."
              },
              "loyalty_amount": {
                "type": "number",
                "description": "The amount of loyalty the customer receives buying this item."
              },
              "name": {
                "type": "string",
                "description": "Product name. **Note:** Variants share the same name.",
                "maxLength": 262144
              },
              "outlet_taxes": {
                "type": "array",
                "description": "Only used for tax exclusive stores.",
                "items": {
                  "$ref": "#/$defs/ProductAddOutletTax"
                },
                "maxItems": 10
              },
              "price_excluding_tax": {
                "type": "number",
                "description": "The price before tax is added."
              },
              "price_including_tax": {
                "type": "number",
                "description": "The price including all the relevant taxes."
              },
              "product_category_id": {
                "type": "string",
                "description": "The product category.",
                "maxLength": 262144,
                "format": "uuid"
              },
              "product_codes": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/ProductCode"
                },
                "maxItems": 10
              },
              "product_suppliers": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/ProductSupplier"
                },
                "maxItems": 10
              },
              "product_type_id": {
                "type": "string",
                "description": "The product category. **Note** Product types are now product categories.",
                "maxLength": 262144,
                "format": "uuid"
              },
              "sku": {
                "type": "string",
                "description": "Product sku. **Note:** Should be unique.",
                "maxLength": 262144
              },
              "source": {
                "type": "string",
                "description": "Indicates the origin of the product. Can be USER, SHOPIFY.",
                "maxLength": 262144
              },
              "source_id": {
                "type": "string",
                "description": "External reference ID.",
                "maxLength": 262144
              },
              "source_variant_id": {
                "type": "string",
                "description": "Secondary external reference ID.",
                "maxLength": 262144
              },
              "supplier_code": {
                "type": "string",
                "description": "Supplier code.",
                "maxLength": 262144
              },
              "supplier_id": {
                "type": "string",
                "description": "The supplier ID.",
                "maxLength": 262144,
                "format": "uuid"
              },
              "supply_price": {
                "type": "number",
                "description": "Default supply price."
              },
              "tag_ids": {
                "type": "array",
                "description": "An array of tag IDs associated with this product.",
                "items": {
                  "type": "string",
                  "description": "A tag ID.",
                  "maxLength": 262144,
                  "format": "uuid"
                },
                "maxItems": 10
              },
              "variants": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/ProductAddVariantPayload"
                },
                "maxItems": 10
              },
              "weight": {
                "type": "number",
                "description": "Product weight. These are used to calculate variable shipping rates for stores using Lightspeed eCom."
              },
              "weight_unit": {
                "type": "string",
                "enum": [
                  "CT",
                  "G",
                  "OZ",
                  "LB",
                  "KG"
                ],
                "description": "Unit of measurement for product weight. These are used to calculate variable shipping rates for stores using Lightspeed eCom.",
                "maxLength": 262144
              },
              "width": {
                "type": "number",
                "description": "Product width. These are used to calculate variable shipping rates for stores using Lightspeed eCom."
              }
            },
            "additionalProperties": false
          },
          "Attribute": {
            "type": "object",
            "required": [
              "key",
              "value"
            ],
            "properties": {
              "key": {
                "type": "string",
                "description": "The key for the attribute.",
                "maxLength": 262144
              },
              "value": {
                "type": "string",
                "description": "The value for the attribute.",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          },
          "Composite": {
            "type": "object",
            "properties": {
              "product_id": {
                "type": "string",
                "description": "The ID of the component product.",
                "maxLength": 262144,
                "format": "uuid"
              },
              "quantity": {
                "type": "number",
                "description": "The quantity of the component product."
              }
            },
            "additionalProperties": false
          },
          "ProductAddImage": {
            "type": "object",
            "required": [
              "type",
              "location"
            ],
            "properties": {
              "index": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The position of the image in the list of images."
              },
              "location": {
                "type": "string",
                "description": "The location of the given file. Depending on the image provider type. s3 - The s3 key for s3 transfers. url - A full URL for url based images. product-image - the image id from an existing product image. sku-image - the image id from an existing variant image.\n",
                "maxLength": 262144
              },
              "type": {
                "type": "string",
                "enum": [
                  "s3",
                  "url",
                  "product-image",
                  "sku-image"
                ],
                "description": "The image provider type.",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          },
          "ProductAddInventoryPayload": {
            "type": "object",
            "required": [
              "outlet_id",
              "current_amount"
            ],
            "properties": {
              "current_amount": {
                "type": "number",
                "description": "Current inventory at a given outlet."
              },
              "outlet_id": {
                "type": "string",
                "description": "The outlet the inventory is for.",
                "maxLength": 262144,
                "format": "uuid"
              },
              "reorder_amount": {
                "type": "number",
                "description": "The default of the quantity for auto-filled inventory orders."
              },
              "reorder_point": {
                "type": "number",
                "description": "Quantity below which the product should be included in the auto-filled inventory orders. use -1 to clear the reorder point."
              }
            },
            "additionalProperties": false
          },
          "ProductAddOutletTax": {
            "type": "object",
            "required": [
              "outlet_id",
              "tax_id"
            ],
            "properties": {
              "outlet_id": {
                "type": "string",
                "description": "The outlet the tax is for.",
                "maxLength": 262144,
                "format": "uuid"
              },
              "tax_id": {
                "type": "string",
                "description": "The tax id associated with this outlet.",
                "maxLength": 262144,
                "format": "uuid"
              }
            },
            "additionalProperties": false
          },
          "ProductCode": {
            "type": "object",
            "required": [
              "code",
              "id"
            ],
            "properties": {
              "code": {
                "type": "string",
                "description": "The sku code being added.",
                "maxLength": 262144
              },
              "id": {
                "type": "string",
                "description": "Auto-generated object ID.",
                "maxLength": 262144
              },
              "type": {
                "type": "string",
                "enum": [
                  "CUSTOM",
                  "EAN",
                  "ISBN",
                  "ITF",
                  "JAN",
                  "UPC"
                ],
                "description": "The type of code being added.",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          },
          "ProductSupplier": {
            "type": "object",
            "required": [
              "id",
              "product_id",
              "supplier_id",
              "supplier_name"
            ],
            "properties": {
              "code": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The code associated with this supplier.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "id": {
                "type": "string",
                "description": "Auto-generated object ID.",
                "maxLength": 262144,
                "format": "uuid"
              },
              "price": {
                "anyOf": [
                  {
                    "type": "number",
                    "description": "The price associated with this supplier."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "product_id": {
                "type": "string",
                "description": "The ID of the product.",
                "maxLength": 262144,
                "format": "uuid"
              },
              "supplier_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The ID of the supplier.",
                    "maxLength": 262144,
                    "format": "uuid"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "supplier_name": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The name of the supplier.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": false
          },
          "ProductAddVariantPayload": {
            "type": "object",
            "properties": {
              "all_outlets_tax": {
                "type": "object",
                "description": "Only used for tax inclusive stores.",
                "properties": {
                  "is_default": {
                    "type": "boolean",
                    "description": "Is this the default tax."
                  },
                  "tax_id": {
                    "type": "string",
                    "description": "The tax id associated with this product.",
                    "maxLength": 262144,
                    "format": "uuid"
                  }
                },
                "additionalProperties": false
              },
              "dimensions_unit": {
                "type": "string",
                "enum": [
                  "IN",
                  "CM",
                  "MM",
                  "YD"
                ],
                "description": "Unit of measurement for product dimensions. These are used to calculate variable shipping rates for stores using Lightspeed eCom.",
                "maxLength": 262144
              },
              "height": {
                "type": "number",
                "description": "Product height. These are used to calculate variable shipping rates for stores using Lightspeed eCom."
              },
              "images": {
                "type": "array",
                "description": "A list of image objects.",
                "items": {
                  "$ref": "#/$defs/ProductAddImage"
                },
                "maxItems": 10
              },
              "inventory": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/ProductAddInventoryPayload"
                },
                "maxItems": 10
              },
              "length": {
                "type": "number",
                "description": "Product length. These are used to calculate variable shipping rates for stores using Lightspeed eCom."
              },
              "outlet_taxes": {
                "type": "array",
                "description": "Only used for tax exclusive stores.",
                "items": {
                  "$ref": "#/$defs/ProductAddOutletTax"
                },
                "maxItems": 10
              },
              "price_excluding_tax": {
                "type": "number",
                "description": "The price before tax is added."
              },
              "price_including_tax": {
                "type": "number",
                "description": "The price including all the relevant taxes."
              },
              "product_codes": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/ProductCode"
                },
                "maxItems": 10
              },
              "product_suppliers": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/ProductSupplier"
                },
                "maxItems": 10
              },
              "sku": {
                "type": "string",
                "description": "Product sku. This value should be included in the `product_codes` array. If it's not, it will be added automatically.",
                "maxLength": 262144
              },
              "supplier_code": {
                "type": "string",
                "description": "Supplier code.",
                "maxLength": 262144
              },
              "supply_price": {
                "type": "number",
                "description": "Default supply price."
              },
              "variant_definitions": {
                "type": "array",
                "description": "The attributes associated with this variant. e.g. Size.",
                "items": {
                  "$ref": "#/$defs/VariantAttribute"
                },
                "maxItems": 10
              },
              "weight": {
                "type": "number",
                "description": "Product weight. These are used to calculate variable shipping rates for stores using Lightspeed eCom."
              },
              "weight_unit": {
                "type": "string",
                "enum": [
                  "CT",
                  "G",
                  "OZ",
                  "LB",
                  "KG"
                ],
                "description": "Unit of measurement for product weight. These are used to calculate variable shipping rates for stores using Lightspeed eCom.",
                "maxLength": 262144
              },
              "width": {
                "type": "number",
                "description": "Product width. These are used to calculate variable shipping rates for stores using Lightspeed eCom."
              }
            },
            "additionalProperties": false
          },
          "VariantAttribute": {
            "type": "object",
            "properties": {
              "attribute_id": {
                "type": "string",
                "description": "The ID of the variant attribute.",
                "maxLength": 262144,
                "format": "uuid"
              },
              "value": {
                "type": "string",
                "description": "The value associated with the given attribute_id. e.g. Green.",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "properties": {
              "data": {
                "description": "An array containing the ID or IDs of the new products.",
                "items": {
                  "type": "string"
                },
                "type": "array"
              }
            },
            "type": "object"
          }
        }
      }
    },
    "DELETE /products/{product_id}": {
      "method": "DELETE",
      "path": "/products/{product_id}",
      "risk": "D",
      "description": "Delete a single product",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "product_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The product id"
              }
            },
            "required": [
              "product_id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Deletes a single product. If a variant ID is provided, that single variant is removed.\n\n🔒 Requires: `products:write` scope"
      },
      "wire": [
        {
          "name": "product_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": null,
          "schema": null
        }
      }
    },
    "GET /products/{product_id}": {
      "method": "GET",
      "path": "/products/{product_id}",
      "risk": "R",
      "description": "Get a single product",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "product_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The product id"
              }
            },
            "required": [
              "product_id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Returns a single product object with a given ID.\n\n🔒 Requires: `products:read` scope"
      },
      "wire": [
        {
          "name": "product_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/ProductResponse"
          }
        }
      }
    },
    "PUT /products/{product_id}": {
      "method": "PUT",
      "path": "/products/{product_id}",
      "risk": "H",
      "description": "Update a product",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "product_id": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "The object identifier of the Product to update."
              }
            },
            "required": [
              "product_id"
            ],
            "additionalProperties": false
          },
          "body": {
            "$ref": "#/$defs/ProductUpdate21Request"
          }
        },
        "required": [
          "path",
          "body"
        ],
        "additionalProperties": false,
        "description": "Update an existing product.\n\n🔒 Requires: `products:write` scope",
        "$defs": {
          "ProductUpdate21Request": {
            "type": "object",
            "properties": {
              "common": {
                "type": "object",
                "description": "Information to update to the product family. For variants, this will update the fields to all variants in the family.",
                "properties": {
                  "account_code_purchase": {
                    "type": "string",
                    "description": "The code used to attribute the purchase (cost) of the product to a specific account for the Xero integration.",
                    "maxLength": 262144
                  },
                  "account_code_sale": {
                    "type": "string",
                    "description": "The code used to attribute the sales of the product to a specific account for the Xero integration.",
                    "maxLength": 262144
                  },
                  "brand_id": {
                    "type": "string",
                    "description": "The brand ID that the product is associated to. To remove the brand from the product, please provide empty value \"\".",
                    "maxLength": 262144
                  },
                  "description": {
                    "type": "string",
                    "description": "Product description.",
                    "maxLength": 262144
                  },
                  "name": {
                    "type": "string",
                    "description": "Product name",
                    "maxLength": 262144
                  },
                  "product_category_id": {
                    "type": "string",
                    "description": "The product category ID tha the product is associated to. A product can only be associated to the last level (leaf) category.\nTo remove the product category from the product, please provide empty value \"\".\nProduct category was previously known as product types.\n",
                    "maxLength": 262144
                  },
                  "product_suppliers": {
                    "type": "array",
                    "description": "A full list of suppliers and its details that are associated to the product family.\nThe order of the supplier listed in this list will reflect the supplier's order in the product.\nThe first supplier is the default supplier.\nIf do not wish to override the code and price that may be custom per variant, just provide the id.\n",
                    "items": {
                      "$ref": "#/$defs/ProductUpdate21Supplier"
                    },
                    "maxItems": 10
                  },
                  "tag_ids": {
                    "type": "array",
                    "description": "The full list of tag ids that the product is associated to. To remove all tags, please provide empty list.",
                    "items": {
                      "type": "string",
                      "maxLength": 262144
                    },
                    "maxItems": 10
                  },
                  "track_inventory": {
                    "type": "boolean",
                    "description": "True to enable inventory tracking for product. This will updating of inventory details such as manual adjustments and reorder details."
                  },
                  "variant_attributes": {
                    "type": "array",
                    "description": "A full list of the variant attributes for the product family.\nThe order of the variant attributes in this list will reflect the order of the attribute on the variant. Maximum three attributes.\n",
                    "items": {
                      "type": "object",
                      "properties": {
                        "attribute_id": {
                          "type": "string",
                          "description": "The ID of attribute represented at the specified position in the list.",
                          "maxLength": 262144
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 10
                  }
                },
                "additionalProperties": false
              },
              "details": {
                "type": "object",
                "description": "Information to update to the product. For variants, this will update the fields for the individual variant product of this request only.",
                "properties": {
                  "all_outlets_tax": {
                    "type": "object",
                    "description": "Set the tax on a product for tax inclusive store.",
                    "properties": {
                      "tax_id": {
                        "type": "string",
                        "description": "The selected custom tax ID. Leave blank (\"\") to use the default tax.",
                        "maxLength": 262144
                      }
                    },
                    "additionalProperties": false
                  },
                  "composite_components": {
                    "type": "array",
                    "description": "A full list of composite components.",
                    "items": {
                      "type": "object",
                      "required": [
                        "product_id",
                        "quantity"
                      ],
                      "properties": {
                        "product_id": {
                          "type": "string",
                          "description": "The ID of the component product.",
                          "maxLength": 262144,
                          "format": "uuid"
                        },
                        "quantity": {
                          "type": "number",
                          "description": "The quantity of the component product."
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 10
                  },
                  "dimensions_unit": {
                    "type": "string",
                    "enum": [
                      "IN",
                      "CM",
                      "MM",
                      "YD"
                    ],
                    "description": "The unit for any height, width, or length provided.",
                    "maxLength": 262144
                  },
                  "height": {
                    "type": "number",
                    "description": "The height of the product. If provided, dimensions_unit for this value must also be provided."
                  },
                  "inventory": {
                    "type": "array",
                    "description": "A list of inventory outlet information to update.",
                    "items": {
                      "type": "object",
                      "required": [
                        "outlet_id"
                      ],
                      "properties": {
                        "current_amount": {
                          "type": "number",
                          "description": "Current inventory quantity of the product at the given outlet."
                        },
                        "outlet_id": {
                          "type": "string",
                          "description": "The outlet ID.",
                          "maxLength": 262144
                        },
                        "reorder_amount": {
                          "type": "number",
                          "description": "The default of the quantity for auto-filled inventory orders."
                        },
                        "reorder_point": {
                          "type": "number",
                          "description": "Quantity below which the product should be included in the auto-filled inventory orders. use -1 to clear the reorder point."
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 10
                  },
                  "is_active": {
                    "type": "boolean",
                    "description": "True to enable Sell on POS, false to disable."
                  },
                  "length": {
                    "type": "number",
                    "description": "The length of the product. If provided, dimensions_unit for this value must also be provided."
                  },
                  "loyalty_amount": {
                    "type": "number",
                    "description": "The custom loyalty amount. -1 to use the default loyalty amount."
                  },
                  "outlet_taxes": {
                    "type": "array",
                    "description": "A list of outlet taxes to update on a product for tax exclusive store.",
                    "items": {
                      "type": "object",
                      "properties": {
                        "outlet_id": {
                          "type": "string",
                          "description": "The outlet ID to apply the tax.",
                          "maxLength": 262144
                        },
                        "tax_id": {
                          "type": "string",
                          "description": "The selected custom tax ID. Leave blank (\"\") to use the default tax.",
                          "maxLength": 262144
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 10
                  },
                  "packaging": {
                    "type": "array",
                    "description": "Packaging this product belongs to.",
                    "items": {
                      "type": "object",
                      "properties": {
                        "amount": {
                          "type": "number"
                        },
                        "destination_product_id": {
                          "type": "string",
                          "maxLength": 262144,
                          "format": "uuid"
                        },
                        "source_product_id": {
                          "type": "string",
                          "maxLength": 262144,
                          "format": "uuid"
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 10
                  },
                  "price_excluding_tax": {
                    "type": "number",
                    "description": "Price exclusive of tax. For tax exclusive store."
                  },
                  "price_including_tax": {
                    "type": "number",
                    "description": "Price inclusive of tax. For tax inclusive store."
                  },
                  "product_codes": {
                    "type": "array",
                    "description": "A full list of product codes for the product. The first product code is used as the default product code.",
                    "items": {
                      "type": "object",
                      "required": [
                        "code"
                      ],
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "The product code value.",
                          "maxLength": 262144
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "CUSTOM",
                            "EAN",
                            "ISBN",
                            "ITF",
                            "JAN",
                            "UPC"
                          ],
                          "maxLength": 262144
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 10
                  },
                  "product_suppliers": {
                    "type": "array",
                    "description": "A list of suppliers and its details if the supplier needs updating. The supplier referenced by this subset must be a supplier associated to the product family.\n",
                    "items": {
                      "$ref": "#/$defs/ProductUpdate21Supplier"
                    },
                    "maxItems": 10
                  },
                  "variant_attribute_values": {
                    "type": "array",
                    "description": "A list of values for the variant attributes defined for the product. The attributes used here must match the product family.",
                    "items": {
                      "type": "object",
                      "required": [
                        "attribute_id",
                        "attribute_value"
                      ],
                      "properties": {
                        "attribute_id": {
                          "type": "string",
                          "description": "The variant attribute id. This variant attribute must be an attribute on the product family.",
                          "maxLength": 262144
                        },
                        "attribute_value": {
                          "type": "string",
                          "description": "The value for the variant attribute.",
                          "maxLength": 262144
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 10
                  },
                  "weight": {
                    "type": "number",
                    "description": "The weight of the product. If provided, weight_unit for this value must also be provided."
                  },
                  "weight_unit": {
                    "type": "string",
                    "enum": [
                      "CT",
                      "G",
                      "OZ",
                      "LB",
                      "KG"
                    ],
                    "description": "The unit for the weight provided.",
                    "maxLength": 262144
                  },
                  "width": {
                    "type": "number",
                    "description": "The width of the product. If provided, dimensions_unit for this value must also be provided."
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "ProductUpdate21Supplier": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "description": "The supplier's code or reference for the product. To remove the code, please provide empty value \"\".",
                "maxLength": 262144
              },
              "price": {
                "type": "number",
                "description": "The cost of supply for the product. -1 price will delete the price."
              },
              "supplier_id": {
                "type": "string",
                "description": "The supplier ID.",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [
        {
          "name": "product_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "type": "object"
          }
        }
      }
    },
    "DELETE /products/{product_id}/all": {
      "method": "DELETE",
      "path": "/products/{product_id}/all",
      "risk": "D",
      "description": "Delete a product family",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "product_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The product id of a family member"
              }
            },
            "required": [
              "product_id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Deletes a product family. The /all suffix is provided to delete an entire variant family.\n\n🔒 Requires: `products:write` scope"
      },
      "wire": [
        {
          "name": "product_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": null,
          "schema": null
        }
      }
    },
    "GET /products/{product_id}/price_book_products": {
      "method": "GET",
      "path": "/products/{product_id}/price_book_products",
      "risk": "R",
      "description": "Get a list of price books the given product is in",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "product_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The product id to find in the Price Books"
              }
            },
            "required": [
              "product_id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "This endpoint returns the list of price books the given product is in.\n\n🔒 Requires: `products:read:price_books` scope"
      },
      "wire": [
        {
          "name": "product_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/PriceBookProductCollection"
          }
        }
      }
    },
    "DELETE /promocode/bulk": {
      "method": "DELETE",
      "path": "/promocode/bulk",
      "risk": "D",
      "description": "Delete promo codes",
      "input_schema": {
        "type": "object",
        "properties": {
          "body": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 262144
            },
            "maxItems": 10
          }
        },
        "required": [
          "body"
        ],
        "additionalProperties": false,
        "description": "Delete promo codes, by promocode IDs\n\n🔒 Requires: `promotions:write` scope"
      },
      "wire": [],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/PromotionDeletePromoCodesResponse"
          }
        }
      }
    },
    "POST /promocode/bulk/active": {
      "method": "POST",
      "path": "/promocode/bulk/active",
      "risk": "R",
      "description": "Get the active status of promo codes",
      "input_schema": {
        "type": "object",
        "properties": {
          "body": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 262144
            },
            "maxItems": 100
          }
        },
        "required": [
          "body"
        ],
        "additionalProperties": false,
        "description": "Get promo codes, with their associated promotions.\n\n🔒 Requires: `promotions:read` scope"
      },
      "wire": [],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/PromoCodesMap"
          }
        }
      }
    },
    "GET /promotions": {
      "method": "GET",
      "path": "/promotions",
      "risk": "R",
      "description": "List promotions",
      "input_schema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "object",
            "properties": {
              "end_time_to": {
                "type": "string",
                "maxLength": 262144,
                "description": "Upper limit for the promotion end date as UTC timestamp. Format: `2020-08-08T12:00:00Z`."
              },
              "end_time_from": {
                "type": "string",
                "maxLength": 262144,
                "description": "Lower limit for the promotion end date as UTC timestamp. Format: `2020-08-08T12:00:00Z`."
              },
              "page_size": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 100,
                "description": "The maximum number of items to be returned in the response."
              }
            },
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [],
        "additionalProperties": false,
        "description": "This endpoint lists all promotions for a retailer.\n\nThere are optional query parameters that allow filtering promotions. They can't be combined:\n\n - `end_time_from` - only show promotions that have end\\_time after or equal to this time\n - `end_time_to` - only show promotions that have end\\_time before this time\n\nFor example. the time format for end\\_time\\_from and end\\_time\\_to are: `2047-06-21T13:00:00`\n\n🔒 Requires: `promotions:read` scope\n"
      },
      "wire": [
        {
          "name": "end_time_to",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "end_time_from",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "page_size",
          "in": "query",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {
          "page_size": 100
        },
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/PromotionCollection"
          }
        }
      }
    },
    "POST /promotions": {
      "method": "POST",
      "path": "/promotions",
      "risk": "H",
      "description": "Create a promotion",
      "input_schema": {
        "type": "object",
        "properties": {
          "body": {
            "$ref": "#/$defs/Promotion"
          }
        },
        "required": [
          "body"
        ],
        "additionalProperties": false,
        "description": "This endpoint creates a new promotion.\n\nIt responds with the newly-created promotion, including the promotion's ID.\n\n🔒 Requires: `promotions:write` scope",
        "$defs": {
          "Promotion": {
            "type": "object",
            "required": [
              "action",
              "condition",
              "name",
              "start_time",
              "use_promo_code"
            ],
            "description": "A Promotion defines rules and actions for discounting products as part of a sales promotion.",
            "properties": {
              "action": {
                "$ref": "#/$defs/Action"
              },
              "add_promo_code": {
                "type": "array",
                "description": "A list of promo codes to associate with this promotion.",
                "items": {
                  "$ref": "#/$defs/PromoCode"
                },
                "maxItems": 10
              },
              "channels": {
                "type": "array",
                "description": "A list of channels for the promotion. Can be `Register`, `Ecommerce`.",
                "items": {
                  "type": "string",
                  "maxLength": 262144
                },
                "maxItems": 10
              },
              "condition": {
                "$ref": "#/$defs/Condition"
              },
              "customer_group_ids": {
                "type": "array",
                "description": "A list of customer group IDs for the promotion.",
                "items": {
                  "type": "string",
                  "maxLength": 262144
                },
                "maxItems": 10
              },
              "description": {
                "type": "string",
                "description": "A short description for the promotion.",
                "maxLength": 262144
              },
              "end_time": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The time the promotion ends, in UTC, e.g. `2006-01-02T15:04:05` (no timezone suffix).",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "id": {
                "type": "string",
                "description": "Auto-generated object ID.",
                "maxLength": 262144
              },
              "loyalty_multiplier": {
                "type": "number",
                "description": "The loyalty multiplier for the promotion."
              },
              "name": {
                "type": "string",
                "description": "The name of the promotion.",
                "maxLength": 262144
              },
              "outlet_ids": {
                "type": "array",
                "description": "A list of outlet IDs for the promotion.",
                "items": {
                  "type": "string",
                  "maxLength": 262144
                },
                "maxItems": 10
              },
              "promo_code_summary": {
                "$ref": "#/$defs/PromotionPromoCodeSummary"
              },
              "start_time": {
                "type": "string",
                "description": "The time the promotion begins, in UTC, e.g. `2006-01-02T15:04:05` (no timezone suffix).",
                "maxLength": 262144
              },
              "status": {
                "type": "string",
                "description": "The status of the promotion.",
                "maxLength": 262144
              },
              "use_promo_code": {
                "type": "boolean",
                "description": "Whether or not this promotion uses promo codes."
              }
            },
            "additionalProperties": false
          },
          "Action": {
            "type": "object",
            "required": [
              "type",
              "value"
            ],
            "description": "Action triggered by a promotion.",
            "properties": {
              "exclude": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/Filter"
                },
                "maxItems": 10
              },
              "include": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/Filter"
                },
                "maxItems": 10
              },
              "max_quantity": {
                "type": "integer",
                "description": "Maximum quantity, if required by the action type.",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "min_quantity": {
                "type": "integer",
                "description": "Minimum quantity, if required by the action type.",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "quantity": {
                "type": "integer",
                "description": "Quantity, if required by the action type.",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "type": {
                "type": "string",
                "enum": [
                  "basic_percent_discount",
                  "basic_fixed_discount",
                  "fixed_discount",
                  "percent_discount",
                  "loyalty",
                  "fixed_price_discount",
                  "fixed_pool_discount",
                  "percent_pool_discount"
                ],
                "description": "The type of action.",
                "maxLength": 262144
              },
              "value": {
                "type": "number",
                "description": "Value associated with the action."
              }
            },
            "additionalProperties": false
          },
          "Filter": {
            "type": "object",
            "required": [
              "field",
              "value"
            ],
            "properties": {
              "field": {
                "type": "string",
                "enum": [
                  "brand_id",
                  "product_id",
                  "supplier_id",
                  "tag_id",
                  "type_id",
                  "variant_parent_id"
                ],
                "description": "name of the filter field",
                "maxLength": 262144
              },
              "value": {
                "type": "string",
                "description": "value of the filter field",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          },
          "PromoCode": {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "description": "Code for use in the promotion.",
                "maxLength": 262144
              },
              "created_at": {
                "type": "string",
                "description": "Time the code was created.",
                "maxLength": 262144
              },
              "created_user": {
                "$ref": "#/$defs/User"
              },
              "created_user_id": {
                "type": "string",
                "description": "Created User ID.",
                "maxLength": 262144
              },
              "group_name": {
                "type": "string",
                "description": "Name of the group.",
                "maxLength": 262144
              },
              "id": {
                "type": "string",
                "description": "Auto-generated object ID.",
                "maxLength": 262144
              },
              "limit": {
                "type": "integer",
                "description": "Redemption limit for this promotion.",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "promotion_id": {
                "type": "string",
                "description": "Promotion ID.",
                "maxLength": 262144
              },
              "redeemed": {
                "type": "integer",
                "description": "Number of times this code has been redeemed.",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              }
            },
            "additionalProperties": false
          },
          "User": {
            "type": "object",
            "required": [
              "account_type",
              "created_at",
              "id",
              "is_primary_user",
              "updated_at",
              "username",
              "version"
            ],
            "properties": {
              "account_type": {
                "type": "string",
                "enum": [
                  "cashier",
                  "manager",
                  "admin"
                ],
                "description": "User's account type.",
                "maxLength": 262144
              },
              "created_at": {
                "type": "string",
                "description": "Creation timestamp in UTC.",
                "maxLength": 262144
              },
              "deleted_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Deletion timestamp in UTC.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "display_name": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Full user's name to be used for display in the UI.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "email": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "User's email address.",
                    "maxLength": 262144,
                    "format": "email"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "email_verified_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The timestamp of users email verification.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "enabled": {
                "type": "boolean",
                "description": "Indicates whether the user is enabled."
              },
              "enabled_mfa": {
                "anyOf": [
                  {
                    "type": "object",
                    "description": "The user's enabled MFA factor, or null if MFA is not enabled.",
                    "properties": {
                      "created_at": {
                        "type": "string",
                        "description": "Timestamp when the MFA factor was created.",
                        "maxLength": 262144
                      },
                      "id": {
                        "type": "string",
                        "description": "Auto-generated MFA factor ID.",
                        "maxLength": 262144
                      },
                      "type": {
                        "type": "string",
                        "enum": [
                          "otp"
                        ],
                        "description": "The MFA factor type (e.g. \"otp\").",
                        "maxLength": 262144
                      }
                    },
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "id": {
                "type": "string",
                "description": "Auto-generated object ID.",
                "maxLength": 262144,
                "format": "uuid"
              },
              "image_source": {
                "type": "string",
                "description": "URL of the default-sized user's avatar.",
                "maxLength": 262144
              },
              "images": {
                "$ref": "#/$defs/UserImages"
              },
              "is_primary_user": {
                "type": "boolean",
                "description": "Indicated whether this user is the primary user for the account."
              },
              "permissions": {
                "anyOf": [
                  {
                    "type": "array",
                    "description": "The permissions assigned to the user.",
                    "items": {
                      "type": "string",
                      "maxLength": 262144
                    },
                    "maxItems": 10
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "require_password_change": {
                "type": "boolean",
                "description": "Indicates whether the user is required to change their password."
              },
              "restricted_outlet_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "**deprecated** Use the `restricted_outlet_ids` instead.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "restricted_outlet_ids": {
                "type": "array",
                "description": "A list of outlet IDs the user is associated with",
                "items": {
                  "type": "string",
                  "maxLength": 262144,
                  "format": "uuid"
                },
                "maxItems": 10
              },
              "roles": {
                "type": "array",
                "description": "The roles assigned to the user.",
                "items": {
                  "$ref": "#/$defs/Role"
                },
                "maxItems": 10
              },
              "rules": {
                "type": "object",
                "description": "The rules assigned to the user.",
                "additionalProperties": true
              },
              "seen_at": {
                "type": "string",
                "description": "The timestamp of the user's last activity in the system.",
                "maxLength": 262144
              },
              "switch_id": {
                "type": "string",
                "description": "The switch id for the user.",
                "maxLength": 262144
              },
              "target_daily": {
                "anyOf": [
                  {
                    "type": "number",
                    "description": "Daily sales target for the user."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "target_monthly": {
                "anyOf": [
                  {
                    "type": "number",
                    "description": "Monthly sales target for the user."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "target_weekly": {
                "anyOf": [
                  {
                    "type": "number",
                    "description": "Weekly sales target for the user."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "time_until_deletion": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The time until the user is deleted.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "updated_at": {
                "type": "string",
                "description": "Last update timestamp in UTC.",
                "maxLength": 262144
              },
              "username": {
                "type": "string",
                "description": "User's username used for login.",
                "maxLength": 262144
              },
              "version": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "Auto-incrementing object version number."
              }
            },
            "additionalProperties": false
          },
          "UserImages": {
            "anyOf": [
              {
                "type": "object",
                "description": "On object containing URLs for different sizes of the user’s avatar.",
                "properties": {
                  "original": {
                    "type": "string",
                    "maxLength": 262144
                  },
                  "sl": {
                    "type": "string",
                    "maxLength": 262144
                  },
                  "sm": {
                    "type": "string",
                    "maxLength": 262144
                  },
                  "ss": {
                    "type": "string",
                    "maxLength": 262144
                  },
                  "st": {
                    "type": "string",
                    "maxLength": 262144
                  },
                  "standard": {
                    "type": "string",
                    "maxLength": 262144
                  },
                  "thumb": {
                    "type": "string",
                    "maxLength": 262144
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "Role": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "Auto-generated object ID.",
                "maxLength": 262144
              },
              "name": {
                "type": "string",
                "description": "The Role name.",
                "maxLength": 262144
              },
              "system_role_id": {
                "type": "string",
                "description": "A system role id of the Role. Will be either '100', '200', or '300'.",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          },
          "Condition": {
            "type": "object",
            "required": [
              "type",
              "quantity"
            ],
            "description": "A condition to determine whether a promotion should apply to a sale.",
            "properties": {
              "exclude": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/Filter"
                },
                "maxItems": 10
              },
              "include": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/Filter"
                },
                "maxItems": 10
              },
              "max_quantity": {
                "type": "integer",
                "description": "Minimum quantity, if required by the condition type.",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "min_price": {
                "type": "number",
                "description": "Minimum price, if required by the condition type."
              },
              "min_quantity": {
                "type": "integer",
                "description": "Minimum quantity, if required by the condition type.",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "quantity": {
                "type": "integer",
                "minimum": 1,
                "description": "Quantity, if required by the condition type.",
                "maximum": 9007199254740991
              },
              "type": {
                "type": "string",
                "enum": [
                  "product_set",
                  "sale_price"
                ],
                "description": "Condition type.",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          },
          "PromotionPromoCodeSummary": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "redeemed_amount": {
                    "type": "integer",
                    "description": "The redeemed amount",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "total_promo_code": {
                    "type": "integer",
                    "description": "The total for the promo code",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "wire": [],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/PromotionResponse"
          }
        },
        "201": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/PromotionResponse"
          }
        }
      }
    },
    "GET /promotions/search": {
      "method": "GET",
      "path": "/promotions/search",
      "risk": "R",
      "description": "Search promotions",
      "input_schema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "object",
            "properties": {
              "scope": {
                "type": "string",
                "enum": [
                  "current_upcoming",
                  "past",
                  "all"
                ],
                "default": "all",
                "maxLength": 262144,
                "description": "Scope of the search"
              },
              "name": {
                "type": "string",
                "maxLength": 262144,
                "description": "Part of promotion's name being searched"
              },
              "start_time": {
                "type": "string",
                "maxLength": 262144,
                "description": "Only show promotions that have a start time after or equal to this"
              },
              "end_time": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Only show promotions that have an end time before or equal to this"
              },
              "outlet_id": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 262144
                },
                "maxItems": 100,
                "description": "Only show promotions linked to one or many of the outlets specified here"
              },
              "order_by": {
                "type": "string",
                "enum": [
                  "name",
                  "start_date",
                  "end_date"
                ],
                "default": "name",
                "maxLength": 262144,
                "description": "Sort the result by this field"
              },
              "direction": {
                "type": "string",
                "enum": [
                  "asc",
                  "desc"
                ],
                "default": "desc",
                "maxLength": 262144,
                "description": "Sort direction"
              },
              "offset": {
                "type": "integer",
                "default": 1,
                "minimum": -9007199254740991,
                "maximum": 9007199254740991,
                "description": "Offset"
              },
              "page_size": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 100,
                "description": "Number of results per page"
              }
            },
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [],
        "additionalProperties": false,
        "description": "This endpoint can be used to find promotions matching specific criteria.\n\n🔒 Requires: `promotions:read` scope\n"
      },
      "wire": [
        {
          "name": "scope",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "name",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "start_time",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "end_time",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "outlet_id",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "order_by",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "direction",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "offset",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "page_size",
          "in": "query",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {
          "page_size": 100
        },
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/PromotionCollection"
          }
        }
      }
    },
    "GET /promotions/{promotion_id}": {
      "method": "GET",
      "path": "/promotions/{promotion_id}",
      "risk": "R",
      "description": "Get a promotion by ID",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "promotion_id": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991,
                "description": "The promotion id"
              }
            },
            "required": [
              "promotion_id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "This will retrieve a single promotion using the given ID.\n\n🔒 Requires: `promotions:read` scope"
      },
      "wire": [
        {
          "name": "promotion_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "properties": {
              "data": {
                "$ref": "#/components/schemas/PromotionResponse"
              }
            },
            "type": "object"
          }
        }
      }
    },
    "PUT /promotions/{promotion_id}": {
      "method": "PUT",
      "path": "/promotions/{promotion_id}",
      "risk": "D",
      "description": "Update a promotion",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "promotion_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The promotion id"
              }
            },
            "required": [
              "promotion_id"
            ],
            "additionalProperties": false
          },
          "body": {
            "$ref": "#/$defs/Promotion"
          }
        },
        "required": [
          "path",
          "body"
        ],
        "additionalProperties": false,
        "description": "This endpoint updates an existing promotion by ID.\n\n * All of a promotion's fields except its id may be updated.\n * There are no partial updates.\n * All fields must be specified in the update.\n * The response contains the updated promotion object.\n\n🔒 Requires: `promotions:write` scope\n",
        "$defs": {
          "Promotion": {
            "type": "object",
            "required": [
              "action",
              "condition",
              "name",
              "start_time",
              "use_promo_code"
            ],
            "description": "A Promotion defines rules and actions for discounting products as part of a sales promotion.",
            "properties": {
              "action": {
                "$ref": "#/$defs/Action"
              },
              "add_promo_code": {
                "type": "array",
                "description": "A list of promo codes to associate with this promotion.",
                "items": {
                  "$ref": "#/$defs/PromoCode"
                },
                "maxItems": 10
              },
              "channels": {
                "type": "array",
                "description": "A list of channels for the promotion. Can be `Register`, `Ecommerce`.",
                "items": {
                  "type": "string",
                  "maxLength": 262144
                },
                "maxItems": 10
              },
              "condition": {
                "$ref": "#/$defs/Condition"
              },
              "customer_group_ids": {
                "type": "array",
                "description": "A list of customer group IDs for the promotion.",
                "items": {
                  "type": "string",
                  "maxLength": 262144
                },
                "maxItems": 10
              },
              "description": {
                "type": "string",
                "description": "A short description for the promotion.",
                "maxLength": 262144
              },
              "end_time": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The time the promotion ends, in UTC, e.g. `2006-01-02T15:04:05` (no timezone suffix).",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "id": {
                "type": "string",
                "description": "Auto-generated object ID.",
                "maxLength": 262144
              },
              "loyalty_multiplier": {
                "type": "number",
                "description": "The loyalty multiplier for the promotion."
              },
              "name": {
                "type": "string",
                "description": "The name of the promotion.",
                "maxLength": 262144
              },
              "outlet_ids": {
                "type": "array",
                "description": "A list of outlet IDs for the promotion.",
                "items": {
                  "type": "string",
                  "maxLength": 262144
                },
                "maxItems": 10
              },
              "promo_code_summary": {
                "$ref": "#/$defs/PromotionPromoCodeSummary"
              },
              "start_time": {
                "type": "string",
                "description": "The time the promotion begins, in UTC, e.g. `2006-01-02T15:04:05` (no timezone suffix).",
                "maxLength": 262144
              },
              "status": {
                "type": "string",
                "description": "The status of the promotion.",
                "maxLength": 262144
              },
              "use_promo_code": {
                "type": "boolean",
                "description": "Whether or not this promotion uses promo codes."
              }
            },
            "additionalProperties": false
          },
          "Action": {
            "type": "object",
            "required": [
              "type",
              "value"
            ],
            "description": "Action triggered by a promotion.",
            "properties": {
              "exclude": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/Filter"
                },
                "maxItems": 10
              },
              "include": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/Filter"
                },
                "maxItems": 10
              },
              "max_quantity": {
                "type": "integer",
                "description": "Maximum quantity, if required by the action type.",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "min_quantity": {
                "type": "integer",
                "description": "Minimum quantity, if required by the action type.",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "quantity": {
                "type": "integer",
                "description": "Quantity, if required by the action type.",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "type": {
                "type": "string",
                "enum": [
                  "basic_percent_discount",
                  "basic_fixed_discount",
                  "fixed_discount",
                  "percent_discount",
                  "loyalty",
                  "fixed_price_discount",
                  "fixed_pool_discount",
                  "percent_pool_discount"
                ],
                "description": "The type of action.",
                "maxLength": 262144
              },
              "value": {
                "type": "number",
                "description": "Value associated with the action."
              }
            },
            "additionalProperties": false
          },
          "Filter": {
            "type": "object",
            "required": [
              "field",
              "value"
            ],
            "properties": {
              "field": {
                "type": "string",
                "enum": [
                  "brand_id",
                  "product_id",
                  "supplier_id",
                  "tag_id",
                  "type_id",
                  "variant_parent_id"
                ],
                "description": "name of the filter field",
                "maxLength": 262144
              },
              "value": {
                "type": "string",
                "description": "value of the filter field",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          },
          "PromoCode": {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "description": "Code for use in the promotion.",
                "maxLength": 262144
              },
              "created_at": {
                "type": "string",
                "description": "Time the code was created.",
                "maxLength": 262144
              },
              "created_user": {
                "$ref": "#/$defs/User"
              },
              "created_user_id": {
                "type": "string",
                "description": "Created User ID.",
                "maxLength": 262144
              },
              "group_name": {
                "type": "string",
                "description": "Name of the group.",
                "maxLength": 262144
              },
              "id": {
                "type": "string",
                "description": "Auto-generated object ID.",
                "maxLength": 262144
              },
              "limit": {
                "type": "integer",
                "description": "Redemption limit for this promotion.",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "promotion_id": {
                "type": "string",
                "description": "Promotion ID.",
                "maxLength": 262144
              },
              "redeemed": {
                "type": "integer",
                "description": "Number of times this code has been redeemed.",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              }
            },
            "additionalProperties": false
          },
          "User": {
            "type": "object",
            "required": [
              "account_type",
              "created_at",
              "id",
              "is_primary_user",
              "updated_at",
              "username",
              "version"
            ],
            "properties": {
              "account_type": {
                "type": "string",
                "enum": [
                  "cashier",
                  "manager",
                  "admin"
                ],
                "description": "User's account type.",
                "maxLength": 262144
              },
              "created_at": {
                "type": "string",
                "description": "Creation timestamp in UTC.",
                "maxLength": 262144
              },
              "deleted_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Deletion timestamp in UTC.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "display_name": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Full user's name to be used for display in the UI.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "email": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "User's email address.",
                    "maxLength": 262144,
                    "format": "email"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "email_verified_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The timestamp of users email verification.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "enabled": {
                "type": "boolean",
                "description": "Indicates whether the user is enabled."
              },
              "enabled_mfa": {
                "anyOf": [
                  {
                    "type": "object",
                    "description": "The user's enabled MFA factor, or null if MFA is not enabled.",
                    "properties": {
                      "created_at": {
                        "type": "string",
                        "description": "Timestamp when the MFA factor was created.",
                        "maxLength": 262144
                      },
                      "id": {
                        "type": "string",
                        "description": "Auto-generated MFA factor ID.",
                        "maxLength": 262144
                      },
                      "type": {
                        "type": "string",
                        "enum": [
                          "otp"
                        ],
                        "description": "The MFA factor type (e.g. \"otp\").",
                        "maxLength": 262144
                      }
                    },
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "id": {
                "type": "string",
                "description": "Auto-generated object ID.",
                "maxLength": 262144,
                "format": "uuid"
              },
              "image_source": {
                "type": "string",
                "description": "URL of the default-sized user's avatar.",
                "maxLength": 262144
              },
              "images": {
                "$ref": "#/$defs/UserImages"
              },
              "is_primary_user": {
                "type": "boolean",
                "description": "Indicated whether this user is the primary user for the account."
              },
              "permissions": {
                "anyOf": [
                  {
                    "type": "array",
                    "description": "The permissions assigned to the user.",
                    "items": {
                      "type": "string",
                      "maxLength": 262144
                    },
                    "maxItems": 10
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "require_password_change": {
                "type": "boolean",
                "description": "Indicates whether the user is required to change their password."
              },
              "restricted_outlet_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "**deprecated** Use the `restricted_outlet_ids` instead.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "restricted_outlet_ids": {
                "type": "array",
                "description": "A list of outlet IDs the user is associated with",
                "items": {
                  "type": "string",
                  "maxLength": 262144,
                  "format": "uuid"
                },
                "maxItems": 10
              },
              "roles": {
                "type": "array",
                "description": "The roles assigned to the user.",
                "items": {
                  "$ref": "#/$defs/Role"
                },
                "maxItems": 10
              },
              "rules": {
                "type": "object",
                "description": "The rules assigned to the user.",
                "additionalProperties": true
              },
              "seen_at": {
                "type": "string",
                "description": "The timestamp of the user's last activity in the system.",
                "maxLength": 262144
              },
              "switch_id": {
                "type": "string",
                "description": "The switch id for the user.",
                "maxLength": 262144
              },
              "target_daily": {
                "anyOf": [
                  {
                    "type": "number",
                    "description": "Daily sales target for the user."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "target_monthly": {
                "anyOf": [
                  {
                    "type": "number",
                    "description": "Monthly sales target for the user."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "target_weekly": {
                "anyOf": [
                  {
                    "type": "number",
                    "description": "Weekly sales target for the user."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "time_until_deletion": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The time until the user is deleted.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "updated_at": {
                "type": "string",
                "description": "Last update timestamp in UTC.",
                "maxLength": 262144
              },
              "username": {
                "type": "string",
                "description": "User's username used for login.",
                "maxLength": 262144
              },
              "version": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "Auto-incrementing object version number."
              }
            },
            "additionalProperties": false
          },
          "UserImages": {
            "anyOf": [
              {
                "type": "object",
                "description": "On object containing URLs for different sizes of the user’s avatar.",
                "properties": {
                  "original": {
                    "type": "string",
                    "maxLength": 262144
                  },
                  "sl": {
                    "type": "string",
                    "maxLength": 262144
                  },
                  "sm": {
                    "type": "string",
                    "maxLength": 262144
                  },
                  "ss": {
                    "type": "string",
                    "maxLength": 262144
                  },
                  "st": {
                    "type": "string",
                    "maxLength": 262144
                  },
                  "standard": {
                    "type": "string",
                    "maxLength": 262144
                  },
                  "thumb": {
                    "type": "string",
                    "maxLength": 262144
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "Role": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "Auto-generated object ID.",
                "maxLength": 262144
              },
              "name": {
                "type": "string",
                "description": "The Role name.",
                "maxLength": 262144
              },
              "system_role_id": {
                "type": "string",
                "description": "A system role id of the Role. Will be either '100', '200', or '300'.",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          },
          "Condition": {
            "type": "object",
            "required": [
              "type",
              "quantity"
            ],
            "description": "A condition to determine whether a promotion should apply to a sale.",
            "properties": {
              "exclude": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/Filter"
                },
                "maxItems": 10
              },
              "include": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/Filter"
                },
                "maxItems": 10
              },
              "max_quantity": {
                "type": "integer",
                "description": "Minimum quantity, if required by the condition type.",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "min_price": {
                "type": "number",
                "description": "Minimum price, if required by the condition type."
              },
              "min_quantity": {
                "type": "integer",
                "description": "Minimum quantity, if required by the condition type.",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "quantity": {
                "type": "integer",
                "minimum": 1,
                "description": "Quantity, if required by the condition type.",
                "maximum": 9007199254740991
              },
              "type": {
                "type": "string",
                "enum": [
                  "product_set",
                  "sale_price"
                ],
                "description": "Condition type.",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          },
          "PromotionPromoCodeSummary": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "redeemed_amount": {
                    "type": "integer",
                    "description": "The redeemed amount",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "total_promo_code": {
                    "type": "integer",
                    "description": "The total for the promo code",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "wire": [
        {
          "name": "promotion_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/PromotionResponse"
          }
        }
      }
    },
    "GET /promotions/{promotion_id}/products": {
      "method": "GET",
      "path": "/promotions/{promotion_id}/products",
      "risk": "R",
      "description": "Get products for a promotion",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "promotion_id": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991,
                "description": "The promotion id"
              }
            },
            "required": [
              "promotion_id"
            ],
            "additionalProperties": false
          },
          "query": {
            "type": "object",
            "properties": {
              "page_size": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 100
              },
              "offset": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "name": {
                "type": "string",
                "maxLength": 262144,
                "description": "Filter products by product name."
              }
            },
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Get a list of products applicable for this promotion, and their discount price.\n\nIt takes in `page_size`, `offset` and `name` (use for searching product by product name) as query parameters.\n\nThe endpoint returns:\n * a list of products with discount for the condition product set, and\n * another list for the action product sets.\n\n🔒 Requires: `promotions:read` `products:read` scopes\n"
      },
      "wire": [
        {
          "name": "promotion_id",
          "in": "path",
          "style": "form",
          "explode": true
        },
        {
          "name": "page_size",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "offset",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "name",
          "in": "query",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {
          "page_size": 100
        },
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/PromotionProductsResponse"
          }
        }
      }
    },
    "GET /promotions/{promotion_id}/promocodes": {
      "method": "GET",
      "path": "/promotions/{promotion_id}/promocodes",
      "risk": "R",
      "description": "Get the promo codes for a promotion",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "promotion_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The promotion id"
              }
            },
            "required": [
              "promotion_id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Get the promo codes associated with this promotion.\n\n🔒 Requires: `promotions:read` scope"
      },
      "wire": [
        {
          "name": "promotion_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/PromotionPromoCodesResponse"
          }
        }
      }
    },
    "GET /purchase_orders": {
      "method": "GET",
      "path": "/purchase_orders",
      "risk": "R",
      "description": "List purchase orders",
      "input_schema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "object",
            "properties": {
              "after": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "x-integer-minimum": "0",
                "description": "The lower limit for the version numbers to be included in the response."
              },
              "before": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "x-integer-minimum": "0",
                "description": "The upper limit for the version numbers to be included in the response."
              },
              "page_size": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 100,
                "description": "The maximum number of items to return. Defaults to 100 and cannot exceed 1000."
              }
            },
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [],
        "additionalProperties": false,
        "description": "Returns a paginated list of purchase orders using version-based cursor pagination.\n\nThe response includes only purchase orders accessible to the authenticated user. Costs\nand discounts are included when available to the caller. Cost fields require the\n`products:read:costs` scope.\n\n🔒 Requires: `consignments:read` scope"
      },
      "wire": [
        {
          "name": "after",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "before",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "page_size",
          "in": "query",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {
          "page_size": 100
        },
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/PurchaseOrderCollectionResponse"
          }
        }
      }
    },
    "GET /purchase_orders/{purchase_order_id}": {
      "method": "GET",
      "path": "/purchase_orders/{purchase_order_id}",
      "risk": "R",
      "description": "Get purchase order by ID",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "purchase_order_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The unique identifier of the purchase order."
              }
            },
            "required": [
              "purchase_order_id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Returns a single purchase order with the requested ID.\n\nCost fields require the `products:read:costs` scope.\n\n🔒 Requires: `consignments:read` scope"
      },
      "wire": [
        {
          "name": "purchase_order_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/PurchaseOrderResponse"
          }
        }
      }
    },
    "GET /purchase_orders/{purchase_order_id}/deliveries": {
      "method": "GET",
      "path": "/purchase_orders/{purchase_order_id}/deliveries",
      "risk": "R",
      "description": "List purchase order deliveries",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "purchase_order_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The unique identifier of the purchase order."
              }
            },
            "required": [
              "purchase_order_id"
            ],
            "additionalProperties": false
          },
          "query": {
            "type": "object",
            "properties": {
              "after": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "x-integer-minimum": "0",
                "description": "The lower limit for the version numbers to be included in the response."
              },
              "before": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "x-integer-minimum": "0",
                "description": "The upper limit for the version numbers to be included in the response."
              },
              "page_size": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 100,
                "description": "The maximum number of items to return. Defaults to 100 and cannot exceed 1000."
              }
            },
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Returns a paginated list of deliveries belonging to a purchase order using version-based\ncursor pagination. Cost fields require the `products:read:costs` scope.\n\n🔒 Requires: `consignments:read` scope"
      },
      "wire": [
        {
          "name": "purchase_order_id",
          "in": "path",
          "style": "form",
          "explode": true
        },
        {
          "name": "after",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "before",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "page_size",
          "in": "query",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {
          "page_size": 100
        },
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/PurchaseOrderDeliveryCollectionResponse"
          }
        }
      }
    },
    "GET /purchase_orders/{purchase_order_id}/deliveries/{delivery_id}/line_items": {
      "method": "GET",
      "path": "/purchase_orders/{purchase_order_id}/deliveries/{delivery_id}/line_items",
      "risk": "R",
      "description": "List purchase order delivery line items",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "purchase_order_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The unique identifier of the purchase order."
              },
              "delivery_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The unique identifier of the purchase order delivery."
              }
            },
            "required": [
              "purchase_order_id",
              "delivery_id"
            ],
            "additionalProperties": false
          },
          "query": {
            "type": "object",
            "properties": {
              "after": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "x-integer-minimum": "0",
                "description": "The lower limit for the version numbers to be included in the response."
              },
              "before": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "x-integer-minimum": "0",
                "description": "The upper limit for the version numbers to be included in the response."
              },
              "page_size": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 100,
                "description": "The maximum number of items to return. Defaults to 100 and cannot exceed 1000."
              }
            },
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Returns a paginated list of line items belonging to a purchase order delivery using\nversion-based cursor pagination. Cost fields require the `products:read:costs` scope.\n\n🔒 Requires: `consignments:read` scope"
      },
      "wire": [
        {
          "name": "purchase_order_id",
          "in": "path",
          "style": "form",
          "explode": true
        },
        {
          "name": "delivery_id",
          "in": "path",
          "style": "form",
          "explode": true
        },
        {
          "name": "after",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "before",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "page_size",
          "in": "query",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {
          "page_size": 100
        },
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/PurchaseOrderDeliveryLineItemCollectionResponse"
          }
        }
      }
    },
    "GET /purchase_orders/{purchase_order_id}/line_items": {
      "method": "GET",
      "path": "/purchase_orders/{purchase_order_id}/line_items",
      "risk": "R",
      "description": "List purchase order line items",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "purchase_order_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The unique identifier of the purchase order."
              }
            },
            "required": [
              "purchase_order_id"
            ],
            "additionalProperties": false
          },
          "query": {
            "type": "object",
            "properties": {
              "after": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "x-integer-minimum": "0",
                "description": "The lower limit for the version numbers to be included in the response."
              },
              "before": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "x-integer-minimum": "0",
                "description": "The upper limit for the version numbers to be included in the response."
              },
              "page_size": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 100,
                "description": "The maximum number of items to return. Defaults to 100 and cannot exceed 1000."
              }
            },
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Returns a paginated list of line items belonging to a purchase order using version-based\ncursor pagination. Cost fields require the `products:read:costs` scope.\n\n🔒 Requires: `consignments:read` scope"
      },
      "wire": [
        {
          "name": "purchase_order_id",
          "in": "path",
          "style": "form",
          "explode": true
        },
        {
          "name": "after",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "before",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "page_size",
          "in": "query",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {
          "page_size": 100
        },
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/PurchaseOrderLineItemCollectionResponse"
          }
        }
      }
    },
    "GET /quotes": {
      "method": "GET",
      "path": "/quotes",
      "risk": "R",
      "description": "List Quotes",
      "input_schema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "object",
            "properties": {
              "after": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The lower limit for the quote id to be included in the response. For proper pagination, it needs to be the quote id of the last item in the response from your previous request."
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 100,
                "description": "The maximum number of items to be returned in the response."
              }
            },
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [],
        "additionalProperties": false,
        "description": "Returns a paginated list of quotes.\n\n🔒 Requires: `sales:read` scope"
      },
      "wire": [
        {
          "name": "after",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "limit",
          "in": "query",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {
          "limit": 100
        },
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/QuotesCollection"
          }
        }
      }
    },
    "GET /quotes/{quote_id}": {
      "method": "GET",
      "path": "/quotes/{quote_id}",
      "risk": "R",
      "description": "Get Quote",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "quote_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "ID of the quote to get"
              }
            },
            "required": [
              "quote_id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Returns a single quote with a given ID.\n\n🔒 Requires: `sales:read` scope"
      },
      "wire": [
        {
          "name": "quote_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/Quote"
          }
        }
      }
    },
    "GET /registers": {
      "method": "GET",
      "path": "/registers",
      "risk": "R",
      "description": "List registers",
      "input_schema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "object",
            "properties": {
              "after": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The lower limit for the version numbers to be included in the response."
              },
              "before": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The upper limit for the version numbers to be included in the response."
              },
              "deleted": {
                "type": "boolean",
                "description": "Indicates whether deleted items should be included in the response."
              },
              "page_size": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 100,
                "description": "The maximum number of items to be returned in the response."
              }
            },
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [],
        "additionalProperties": false,
        "description": "Returns a paginated list of registers.\n\n🔒 Requires: `registers:read` scope"
      },
      "wire": [
        {
          "name": "after",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "before",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "deleted",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "page_size",
          "in": "query",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {
          "page_size": 100
        },
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/RegisterCollection"
          }
        }
      }
    },
    "GET /registers/{register_id}": {
      "method": "GET",
      "path": "/registers/{register_id}",
      "risk": "R",
      "description": "Get a single register",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "register_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The register id"
              }
            },
            "required": [
              "register_id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Returns a single register with the requested ID.\n\n🔒 Requires: `registers:read` scope"
      },
      "wire": [
        {
          "name": "register_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/RegisterResponse"
          }
        }
      }
    },
    "PUT /registers/{register_id}/actions/close": {
      "method": "PUT",
      "path": "/registers/{register_id}/actions/close",
      "risk": "H",
      "description": "Close a single register",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "register_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The register id"
              }
            },
            "required": [
              "register_id"
            ],
            "additionalProperties": false
          },
          "body": {
            "$ref": "#/$defs/RegisterCloseRequest"
          }
        },
        "required": [
          "path",
          "body"
        ],
        "additionalProperties": false,
        "description": "Closes a single register with the requested ID.\n\n🔒 Requires: `register:close` `payment_types:read` scopes",
        "$defs": {
          "RegisterCloseRequest": {
            "type": "object",
            "properties": {
              "payments": {
                "type": "array",
                "description": "An array Register objects wrapped in a top level `data` object.",
                "items": {
                  "$ref": "#/$defs/RegisterClosePaymentType"
                },
                "maxItems": 10
              }
            },
            "additionalProperties": false
          },
          "RegisterClosePaymentType": {
            "type": "object",
            "properties": {
              "payment_type_id": {
                "type": "string",
                "description": "The ID of the Payment Type.",
                "maxLength": 262144
              },
              "total": {
                "type": "string",
                "description": "The Total amount for this Payment Type.",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [
        {
          "name": "register_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/RegisterResponse"
          }
        }
      }
    },
    "PUT /registers/{register_id}/actions/open": {
      "method": "PUT",
      "path": "/registers/{register_id}/actions/open",
      "risk": "H",
      "description": "Open a single register",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "register_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The register id"
              }
            },
            "required": [
              "register_id"
            ],
            "additionalProperties": false
          },
          "body": {
            "$ref": "#/$defs/RegisterOpenRequest"
          }
        },
        "required": [
          "path",
          "body"
        ],
        "additionalProperties": false,
        "description": "Opens a single register with the requested ID.\n\n🔒 Requires: `register:open` scope",
        "$defs": {
          "RegisterOpenRequest": {
            "type": "object",
            "properties": {
              "register_open_time": {
                "type": "string",
                "description": "Date/time when the register was open. Always in UTC.",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [
        {
          "name": "register_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/RegisterResponse"
          }
        }
      }
    },
    "GET /registers/{register_id}/payments_summary": {
      "method": "GET",
      "path": "/registers/{register_id}/payments_summary",
      "risk": "R",
      "description": "Get all the payments data associated with a single register.",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "register_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The register id"
              }
            },
            "required": [
              "register_id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Returns a payload containing payment totals for all payments types defined in the account for a single register.\n\n🔒 Requires: `payments:read` scope"
      },
      "wire": [
        {
          "name": "register_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/RegisterPaymentsSummaryResponse"
          }
        }
      }
    },
    "GET /retailer": {
      "method": "GET",
      "path": "/retailer",
      "risk": "R",
      "description": "Get information about this retailer",
      "input_schema": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false,
        "description": "This endpoint returns information about the retailer.\n\n🔒 Requires: `retailer:read` `payment_types:read` scopes"
      },
      "wire": [],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/RetailerResponse"
          }
        }
      }
    },
    "GET /sales": {
      "method": "GET",
      "path": "/sales",
      "risk": "R",
      "description": "List Sales",
      "input_schema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "object",
            "properties": {
              "after": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The lower limit for the version numbers to be included in the response."
              },
              "before": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The upper limit for the version numbers to be included in the response."
              },
              "page_size": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 100,
                "description": "The maximum number of items to be returned in the response."
              }
            },
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [],
        "additionalProperties": false,
        "description": "Returns a paginated list of sales.\n\nTo search for sales, please have a look at our [Search endpoint](/reference/search-1) on what is supported.\n\n🔒 Requires: `sales:read` scope"
      },
      "wire": [
        {
          "name": "after",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "before",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "page_size",
          "in": "query",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {
          "page_size": 100
        },
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/SaleCollection"
          }
        }
      }
    },
    "POST /sales": {
      "method": "POST",
      "path": "/sales",
      "risk": "H",
      "description": "Create a sale",
      "input_schema": {
        "type": "object",
        "properties": {
          "body": {
            "$ref": "#/$defs/SaleRequest"
          }
        },
        "required": [
          "body"
        ],
        "additionalProperties": false,
        "description": "Create a sale. Returns the ID of the created sale. See [Sales 101](/docs/sales_101) for usage information.\n\nMigrating from `v0.9`? See the [migration guide](/docs/sales_migration_guide).\n\n🔒 Requires: `sales:write` scope",
        "$defs": {
          "SaleRequest": {
            "type": "object",
            "required": [
              "source",
              "state"
            ],
            "description": "Editable attributes of the sale.",
            "properties": {
              "accounts_transaction_id": {
                "type": "string",
                "description": "Xero invoice reference ID. Only editable for `ONACCOUNT` sales.",
                "maxLength": 262144
              },
              "attributes": {
                "type": "array",
                "description": "An array of attributes",
                "items": {
                  "type": "string",
                  "description": "Attributes for this sale",
                  "maxLength": 262144
                },
                "maxItems": 10
              },
              "customer_id": {
                "type": "string",
                "description": "The ID of the customer associated with this sale.",
                "maxLength": 262144,
                "format": "uuid"
              },
              "date": {
                "type": "string",
                "description": "The date of the sale in RFC3339 format. If not provided will be added as the time the sale reached the server.",
                "maxLength": 262144
              },
              "fulfillment_details": {
                "type": "array",
                "description": "Fulfillment details for DISPATCH or PICKUP fulfillments.",
                "items": {
                  "$ref": "#/$defs/FulfillmentDetail"
                },
                "maxItems": 10
              },
              "fulfillment_outlet_id": {
                "type": "string",
                "description": "The default outlet that should fulfill this sale when a line item does not specify its own `fulfilment_outlet_id`. Mutually exclusive with pick lists created via `/sales/{sale_id}/pick_lists`.",
                "maxLength": 262144,
                "format": "uuid"
              },
              "invoice_number": {
                "type": "string",
                "description": "The invoice number for the sale. If left null it will be populated by Lightspeed with the next available invoice number.",
                "maxLength": 262144
              },
              "line_items": {
                "type": "array",
                "description": "Line items.",
                "items": {
                  "$ref": "#/$defs/SaleLineItem"
                },
                "maxItems": 10
              },
              "note": {
                "type": "string",
                "description": "A note on the sale entered by the cashier.",
                "maxLength": 262144
              },
              "payments": {
                "type": "array",
                "description": "Payments.",
                "items": {
                  "$ref": "#/$defs/SalePayment"
                },
                "maxItems": 10
              },
              "pricing": {
                "$ref": "#/$defs/SalePricing"
              },
              "service_fields": {
                "type": "object",
                "properties": {
                  "service_action": {
                    "type": "string",
                    "maxLength": 262144
                  },
                  "service_agenda": {
                    "$ref": "#/$defs/DailyAgenda"
                  },
                  "service_items": {
                    "$ref": "#/$defs/ServiceItems"
                  },
                  "service_line_items": {
                    "type": "array",
                    "description": "An array of service line items.",
                    "items": {
                      "$ref": "#/$defs/ServiceOrderLineItem"
                    },
                    "maxItems": 10
                  }
                },
                "additionalProperties": false
              },
              "short_code": {
                "type": "string",
                "description": "Short, unique code to be printed on the receipt for loyalty tracking purposes.",
                "maxLength": 262144
              },
              "source": {
                "$ref": "#/$defs/SaleRequestSource"
              },
              "state": {
                "type": "string",
                "enum": [
                  "parked",
                  "pending",
                  "voided",
                  "closed"
                ],
                "description": "State of the sale.",
                "maxLength": 262144
              },
              "id": {
                "type": "string",
                "description": "User-provided sale ID. If not included, one will be generated.",
                "maxLength": 262144,
                "format": "uuid"
              }
            },
            "additionalProperties": false
          },
          "FulfillmentDetail": {
            "type": "object",
            "properties": {
              "note": {
                "type": "string",
                "description": "The fulfillment note for fulfillments of the specified type.",
                "maxLength": 262144
              },
              "shipping_address_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The ID of the shipping address to use for DISPATCH fulfillments. Either this or shipping_address_token must be provided for DISPATCH.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "shipping_address_token": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The token of a newly created shipping address to use for DISPATCH fulfillments. Either this or shipping_address_id must be provided for DISPATCH.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "type": {
                "type": "string",
                "enum": [
                  "DISPATCH",
                  "PICKUP"
                ],
                "description": "The fulfillment type to which this fulfillment detail applies.",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          },
          "SaleLineItem": {
            "type": "object",
            "required": [
              "product",
              "quantity",
              "pricing",
              "tax"
            ],
            "properties": {
              "_metadata": {
                "$ref": "#/$defs/LineItemMetadata"
              },
              "attributes": {
                "type": "array",
                "description": "Additional line item attributes.",
                "items": {
                  "$ref": "#/$defs/LineItemAttribute"
                },
                "maxItems": 10
              },
              "fulfilment_outlet_id": {
                "type": "string",
                "description": "The outlet that should fulfill this line item. Mutually exclusive with pick lists created via `/sales/{sale_id}/pick_lists`.",
                "maxLength": 262144,
                "format": "uuid"
              },
              "id": {
                "type": "string",
                "description": "Existing line item ID. If included in the POST request it will cause an update instead of a creating a new object.",
                "maxLength": 262144,
                "format": "uuid"
              },
              "pricing": {
                "$ref": "#/$defs/LineItemPricing"
              },
              "product": {
                "$ref": "#/$defs/LineItemProduct"
              },
              "quantity": {
                "type": "number",
                "description": "Quantity of products for the line item."
              },
              "source": {
                "$ref": "#/$defs/LineItemSource"
              },
              "status": {
                "type": "string",
                "description": "If defined as `CONFIRMED` for pending sales, the line item will be added as **read-only**.",
                "maxLength": 262144
              },
              "tax": {
                "$ref": "#/$defs/LineItemTax"
              }
            },
            "additionalProperties": false
          },
          "LineItemMetadata": {
            "type": "object",
            "properties": {
              "fulfillment_method": {
                "type": "string",
                "enum": [
                  "DISPATCH",
                  "PICKUP"
                ],
                "description": "The fulfillment type for this line item. Only used when creating new sales, ignored when updating existing sales.",
                "maxLength": 262144
              },
              "is_price_override": {
                "type": "boolean",
                "description": "Indicates whether the price was overridden, preventing recalculation of the total price based on the price from the database."
              },
              "sequence": {
                "type": "integer",
                "description": "Order number of the line item.",
                "minimum": -2147483648,
                "maximum": 2147483647
              }
            },
            "additionalProperties": false
          },
          "LineItemAttribute": {
            "type": "object",
            "required": [
              "name",
              "value"
            ],
            "properties": {
              "name": {
                "type": "string",
                "description": "Attribute name. (`line_note` for a line item note.)",
                "maxLength": 262144
              },
              "value": {
                "type": "string",
                "description": "Attribute value. (For `line_note`, the string value of the line_item note.)",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          },
          "LineItemPricing": {
            "type": "object",
            "required": [
              "price"
            ],
            "properties": {
              "adjustments": {
                "type": "array",
                "description": "Adjustments.",
                "items": {
                  "$ref": "#/$defs/LineItemAdjustment"
                },
                "maxItems": 10
              },
              "cost": {
                "type": "number",
                "description": "Unit cost of the line item"
              },
              "discount": {
                "type": "number",
                "description": "Discount value of the line item."
              },
              "loyalty_amount": {
                "type": "number",
                "description": "The value of loyalty that will be incurred by the customer for this line item."
              },
              "price": {
                "type": "number",
                "description": "Unit price of the line item."
              }
            },
            "additionalProperties": false
          },
          "LineItemAdjustment": {
            "type": "object",
            "required": [
              "type",
              "target"
            ],
            "properties": {
              "amount": {
                "$ref": "#/$defs/AdjustmentAmount"
              },
              "name": {
                "type": "string",
                "description": "The name of the adjustment.",
                "maxLength": 262144
              },
              "source": {
                "$ref": "#/$defs/AdjustmentSource"
              },
              "target": {
                "$ref": "#/$defs/AdjustmentTarget"
              },
              "type": {
                "type": "string",
                "enum": [
                  "NON_CASH_FEE",
                  "DISCOUNT",
                  "TIP"
                ],
                "description": "The type of the adjustment.",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          },
          "AdjustmentAmount": {
            "type": "object",
            "required": [
              "type",
              "value"
            ],
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "FIXED",
                  "PERCENT"
                ],
                "description": "The value type of the adjustment.",
                "maxLength": 262144
              },
              "value": {
                "type": "string",
                "description": "The value of the adjustment.",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          },
          "AdjustmentSource": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "The ID of the source of the adjustment.",
                "maxLength": 262144,
                "format": "uuid"
              }
            },
            "additionalProperties": false
          },
          "AdjustmentTarget": {
            "type": "object",
            "required": [
              "method"
            ],
            "properties": {
              "ids": {
                "type": "array",
                "description": "An array of target IDs.",
                "items": {
                  "type": "string",
                  "maxLength": 262144,
                  "format": "uuid"
                },
                "maxItems": 10
              },
              "method": {
                "type": "string",
                "enum": [
                  "PROPORTIONED",
                  "EACH",
                  "SINGLE"
                ],
                "description": "The method of the adjustment.",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          },
          "LineItemProduct": {
            "type": "object",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "The ID of the product associated with this line item.",
                "maxLength": 262144,
                "format": "uuid"
              }
            },
            "additionalProperties": false
          },
          "LineItemSource": {
            "type": "object",
            "properties": {
              "author_id": {
                "type": "string",
                "description": "The ID of the salesperson associated with this line item. Salesperson IDs can be retrieved from the /api/{version}/users endpoint. Only needed when this line item is not sold by current login user.",
                "maxLength": 262144,
                "format": "uuid"
              },
              "register_id": {
                "type": "string",
                "description": "The ID of the register which was used to add this line item to the sale.",
                "maxLength": 262144,
                "format": "uuid"
              }
            },
            "additionalProperties": false
          },
          "LineItemTax": {
            "type": "object",
            "required": [
              "id",
              "amount"
            ],
            "properties": {
              "amount": {
                "type": "number",
                "description": "The unit tax value associated with this line item."
              },
              "id": {
                "type": "string",
                "description": "The ID of the tax associated with this line item. Tax IDs can be retrieved from the /api/2.0/taxes endpoint; for tax-free items, please use the ID of the tax named 'No Tax'",
                "maxLength": 262144,
                "format": "uuid"
              }
            },
            "additionalProperties": false
          },
          "SalePayment": {
            "type": "object",
            "required": [
              "amount",
              "type"
            ],
            "properties": {
              "amount": {
                "type": "number",
                "description": "Payment amount."
              },
              "billing_address_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The ID of the billing address to use for this payment. Either this or billing_address_token must be provided when billing address is required.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "billing_address_token": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The token of the billing address to use for this payment. Required when billing_address_id is provided.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "date": {
                "type": "string",
                "description": "The date and time of the payment.",
                "maxLength": 262144
              },
              "id": {
                "type": "string",
                "description": "Existing payment ID. If included in the POST request it will cause an update instead of a creating a new supplier.",
                "maxLength": 262144,
                "format": "uuid"
              },
              "source": {
                "$ref": "#/$defs/PaymentSource"
              },
              "type": {
                "$ref": "#/$defs/PaymentTypeConfig"
              }
            },
            "additionalProperties": false
          },
          "PaymentSource": {
            "type": "object",
            "properties": {
              "register_id": {
                "type": "string",
                "description": "The ID of the register used to add this payment to the sale.",
                "maxLength": 262144,
                "format": "uuid"
              }
            },
            "additionalProperties": false
          },
          "PaymentTypeConfig": {
            "type": "object",
            "required": [
              "config_id"
            ],
            "properties": {
              "config_id": {
                "type": "string",
                "description": "Payment type id to be used for the payment.",
                "maxLength": 262144,
                "format": "uuid"
              }
            },
            "additionalProperties": false
          },
          "SalePricing": {
            "type": "object",
            "properties": {
              "adjustments": {
                "type": "array",
                "description": "Adjustments.",
                "items": {
                  "$ref": "#/$defs/SaleAdjustment"
                },
                "maxItems": 10
              }
            },
            "additionalProperties": false
          },
          "SaleAdjustment": {
            "type": "object",
            "required": [
              "type"
            ],
            "properties": {
              "amount": {
                "$ref": "#/$defs/AdjustmentAmount"
              },
              "name": {
                "type": "string",
                "description": "The name of the adjustment.",
                "maxLength": 262144
              },
              "source": {
                "$ref": "#/$defs/AdjustmentSource"
              },
              "type": {
                "type": "string",
                "enum": [
                  "NON_CASH_FEE",
                  "DISCOUNT",
                  "TIP"
                ],
                "description": "The type of the adjustment.",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          },
          "DailyAgenda": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "date": {
                    "type": "string",
                    "maxLength": 262144
                  },
                  "minutes_scheduled": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "ServiceItems": {
            "type": "object",
            "properties": {
              "item_details": {
                "$ref": "#/$defs/ItemDetails"
              },
              "location": {
                "type": "string",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          },
          "ItemDetails": {
            "type": "object",
            "properties": {
              "description": {
                "type": "string",
                "maxLength": 262144
              },
              "initial_condition": {
                "type": "string",
                "maxLength": 262144
              },
              "item_id": {
                "type": "string",
                "maxLength": 262144
              },
              "item_name": {
                "type": "string",
                "maxLength": 262144
              },
              "serial_number": {
                "type": "string",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          },
          "ServiceOrderLineItem": {
            "type": "object",
            "required": [
              "product",
              "quantity",
              "pricing",
              "tax"
            ],
            "properties": {
              "_metadata": {
                "$ref": "#/$defs/LineItemMetadata"
              },
              "attributes": {
                "type": "array",
                "description": "Additional line item attributes.",
                "items": {
                  "$ref": "#/$defs/LineItemAttribute"
                },
                "maxItems": 10
              },
              "fulfilment_outlet_id": {
                "type": "string",
                "description": "The outlet that should fulfill this line item. Mutually exclusive with pick lists created via `/sales/{sale_id}/pick_lists`.",
                "maxLength": 262144,
                "format": "uuid"
              },
              "id": {
                "type": "string",
                "description": "Existing line item ID. If included in the POST request it will cause an update instead of a creating a new object.",
                "maxLength": 262144,
                "format": "uuid"
              },
              "pricing": {
                "$ref": "#/$defs/LineItemPricing"
              },
              "product": {
                "$ref": "#/$defs/LineItemProduct"
              },
              "quantity": {
                "type": "number",
                "description": "Quantity of products for the line item."
              },
              "source": {
                "$ref": "#/$defs/LineItemSource"
              },
              "status": {
                "type": "string",
                "description": "If defined as `CONFIRMED` for pending sales, the line item will be added as **read-only**.",
                "maxLength": 262144
              },
              "tax": {
                "$ref": "#/$defs/LineItemTax"
              },
              "promotions": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/PromotionDescription"
                },
                "maxItems": 10
              },
              "tax_component": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/LineItemTaxComponent"
                },
                "maxItems": 10
              }
            },
            "additionalProperties": false
          },
          "PromotionDescription": {
            "type": "object",
            "description": "Basic description for a Promotion.",
            "properties": {
              "description": {
                "type": "string",
                "description": "A short description for the promotion.",
                "maxLength": 262144
              },
              "id": {
                "type": "string",
                "description": "Auto-generated object ID.",
                "maxLength": 262144
              },
              "name": {
                "type": "string",
                "description": "The name of the promotion.",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          },
          "LineItemTaxComponent": {
            "type": "object",
            "required": [
              "rate_id",
              "total_tax"
            ],
            "properties": {
              "rate_id": {
                "type": "string",
                "description": "Tax rate ID.",
                "maxLength": 262144
              },
              "total_tax": {
                "type": "number",
                "description": "Tax total."
              }
            },
            "additionalProperties": false
          },
          "SaleRequestSource": {
            "type": "object",
            "required": [
              "author_id"
            ],
            "properties": {
              "author_id": {
                "type": "string",
                "description": "The ID of the user (cashier) who created the sale.",
                "maxLength": 262144,
                "format": "uuid"
              },
              "id": {
                "type": "string",
                "description": "The ID of the sale on the client side or another system where the sale was originally created.",
                "maxLength": 262144
              },
              "register_id": {
                "type": "string",
                "description": "The ID of the register where the sale was created.",
                "maxLength": 262144,
                "format": "uuid"
              },
              "type": {
                "type": "string",
                "description": "This is the identifier of the 3rd party system that the `source_id` is associated with. 'Xero' or 'Magento' would be examples.",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/SaleCreateResponse"
          }
        }
      }
    },
    "GET /sales/{sale_id}": {
      "method": "GET",
      "path": "/sales/{sale_id}",
      "risk": "R",
      "description": "Get a single sale",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "sale_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "A valid sale ID."
              }
            },
            "required": [
              "sale_id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Returns a single sale with a given ID.\n\n🔒 Requires: `sales:read` scope"
      },
      "wire": [
        {
          "name": "sale_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/SaleResponse"
          }
        }
      }
    },
    "PUT /sales/{sale_id}": {
      "method": "PUT",
      "path": "/sales/{sale_id}",
      "risk": "D",
      "description": "Update a sale",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "sale_id": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "A valid sale ID."
              }
            },
            "required": [
              "sale_id"
            ],
            "additionalProperties": false
          },
          "body": {
            "$ref": "#/$defs/SaleUpdateRequest"
          }
        },
        "required": [
          "path",
          "body"
        ],
        "additionalProperties": false,
        "description": "Update an existing sale by ID.\n\n🔒 Requires: `sales:write` scope",
        "$defs": {
          "SaleUpdateRequest": {
            "type": "object",
            "required": [
              "source",
              "state"
            ],
            "description": "Editable attributes of the sale for an update operation. The sale ID is provided in the URL.",
            "properties": {
              "accounts_transaction_id": {
                "type": "string",
                "description": "Xero invoice reference ID. Only editable for `ONACCOUNT` sales.",
                "maxLength": 262144
              },
              "attributes": {
                "type": "array",
                "description": "An array of attributes",
                "items": {
                  "type": "string",
                  "description": "Attributes for this sale",
                  "maxLength": 262144
                },
                "maxItems": 10
              },
              "customer_id": {
                "type": "string",
                "description": "The ID of the customer associated with this sale.",
                "maxLength": 262144,
                "format": "uuid"
              },
              "date": {
                "type": "string",
                "description": "The date of the sale in RFC3339 format. If not provided will be added as the time the sale reached the server.",
                "maxLength": 262144
              },
              "fulfillment_details": {
                "type": "array",
                "description": "Fulfillment details for DISPATCH or PICKUP fulfillments.",
                "items": {
                  "$ref": "#/$defs/FulfillmentDetail"
                },
                "maxItems": 10
              },
              "fulfillment_outlet_id": {
                "type": "string",
                "description": "The default outlet that should fulfill this sale when a line item does not specify its own `fulfilment_outlet_id`. Mutually exclusive with pick lists created via `/sales/{sale_id}/pick_lists`.",
                "maxLength": 262144,
                "format": "uuid"
              },
              "invoice_number": {
                "type": "string",
                "description": "The invoice number for the sale. If left null it will be populated by Lightspeed with the next available invoice number.",
                "maxLength": 262144
              },
              "line_items": {
                "type": "array",
                "description": "Line items.",
                "items": {
                  "$ref": "#/$defs/SaleLineItem"
                },
                "maxItems": 10
              },
              "note": {
                "type": "string",
                "description": "A note on the sale entered by the cashier.",
                "maxLength": 262144
              },
              "payments": {
                "type": "array",
                "description": "Payments.",
                "items": {
                  "$ref": "#/$defs/SalePayment"
                },
                "maxItems": 10
              },
              "pricing": {
                "$ref": "#/$defs/SalePricing"
              },
              "service_fields": {
                "type": "object",
                "properties": {
                  "service_action": {
                    "type": "string",
                    "maxLength": 262144
                  },
                  "service_agenda": {
                    "$ref": "#/$defs/DailyAgenda"
                  },
                  "service_items": {
                    "$ref": "#/$defs/ServiceItems"
                  },
                  "service_line_items": {
                    "type": "array",
                    "description": "An array of service line items.",
                    "items": {
                      "$ref": "#/$defs/ServiceOrderLineItem"
                    },
                    "maxItems": 10
                  }
                },
                "additionalProperties": false
              },
              "short_code": {
                "type": "string",
                "description": "Short, unique code to be printed on the receipt for loyalty tracking purposes.",
                "maxLength": 262144
              },
              "source": {
                "$ref": "#/$defs/SaleRequestSource"
              },
              "state": {
                "type": "string",
                "enum": [
                  "parked",
                  "pending",
                  "voided",
                  "closed"
                ],
                "description": "State of the sale.",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          },
          "FulfillmentDetail": {
            "type": "object",
            "properties": {
              "note": {
                "type": "string",
                "description": "The fulfillment note for fulfillments of the specified type.",
                "maxLength": 262144
              },
              "shipping_address_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The ID of the shipping address to use for DISPATCH fulfillments. Either this or shipping_address_token must be provided for DISPATCH.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "shipping_address_token": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The token of a newly created shipping address to use for DISPATCH fulfillments. Either this or shipping_address_id must be provided for DISPATCH.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "type": {
                "type": "string",
                "enum": [
                  "DISPATCH",
                  "PICKUP"
                ],
                "description": "The fulfillment type to which this fulfillment detail applies.",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          },
          "SaleLineItem": {
            "type": "object",
            "required": [
              "product",
              "quantity",
              "pricing",
              "tax"
            ],
            "properties": {
              "_metadata": {
                "$ref": "#/$defs/LineItemMetadata"
              },
              "attributes": {
                "type": "array",
                "description": "Additional line item attributes.",
                "items": {
                  "$ref": "#/$defs/LineItemAttribute"
                },
                "maxItems": 10
              },
              "fulfilment_outlet_id": {
                "type": "string",
                "description": "The outlet that should fulfill this line item. Mutually exclusive with pick lists created via `/sales/{sale_id}/pick_lists`.",
                "maxLength": 262144,
                "format": "uuid"
              },
              "id": {
                "type": "string",
                "description": "Existing line item ID. If included in the POST request it will cause an update instead of a creating a new object.",
                "maxLength": 262144,
                "format": "uuid"
              },
              "pricing": {
                "$ref": "#/$defs/LineItemPricing"
              },
              "product": {
                "$ref": "#/$defs/LineItemProduct"
              },
              "quantity": {
                "type": "number",
                "description": "Quantity of products for the line item."
              },
              "source": {
                "$ref": "#/$defs/LineItemSource"
              },
              "status": {
                "type": "string",
                "description": "If defined as `CONFIRMED` for pending sales, the line item will be added as **read-only**.",
                "maxLength": 262144
              },
              "tax": {
                "$ref": "#/$defs/LineItemTax"
              }
            },
            "additionalProperties": false
          },
          "LineItemMetadata": {
            "type": "object",
            "properties": {
              "fulfillment_method": {
                "type": "string",
                "enum": [
                  "DISPATCH",
                  "PICKUP"
                ],
                "description": "The fulfillment type for this line item. Only used when creating new sales, ignored when updating existing sales.",
                "maxLength": 262144
              },
              "is_price_override": {
                "type": "boolean",
                "description": "Indicates whether the price was overridden, preventing recalculation of the total price based on the price from the database."
              },
              "sequence": {
                "type": "integer",
                "description": "Order number of the line item.",
                "minimum": -2147483648,
                "maximum": 2147483647
              }
            },
            "additionalProperties": false
          },
          "LineItemAttribute": {
            "type": "object",
            "required": [
              "name",
              "value"
            ],
            "properties": {
              "name": {
                "type": "string",
                "description": "Attribute name. (`line_note` for a line item note.)",
                "maxLength": 262144
              },
              "value": {
                "type": "string",
                "description": "Attribute value. (For `line_note`, the string value of the line_item note.)",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          },
          "LineItemPricing": {
            "type": "object",
            "required": [
              "price"
            ],
            "properties": {
              "adjustments": {
                "type": "array",
                "description": "Adjustments.",
                "items": {
                  "$ref": "#/$defs/LineItemAdjustment"
                },
                "maxItems": 10
              },
              "cost": {
                "type": "number",
                "description": "Unit cost of the line item"
              },
              "discount": {
                "type": "number",
                "description": "Discount value of the line item."
              },
              "loyalty_amount": {
                "type": "number",
                "description": "The value of loyalty that will be incurred by the customer for this line item."
              },
              "price": {
                "type": "number",
                "description": "Unit price of the line item."
              }
            },
            "additionalProperties": false
          },
          "LineItemAdjustment": {
            "type": "object",
            "required": [
              "type",
              "target"
            ],
            "properties": {
              "amount": {
                "$ref": "#/$defs/AdjustmentAmount"
              },
              "name": {
                "type": "string",
                "description": "The name of the adjustment.",
                "maxLength": 262144
              },
              "source": {
                "$ref": "#/$defs/AdjustmentSource"
              },
              "target": {
                "$ref": "#/$defs/AdjustmentTarget"
              },
              "type": {
                "type": "string",
                "enum": [
                  "NON_CASH_FEE",
                  "DISCOUNT",
                  "TIP"
                ],
                "description": "The type of the adjustment.",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          },
          "AdjustmentAmount": {
            "type": "object",
            "required": [
              "type",
              "value"
            ],
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "FIXED",
                  "PERCENT"
                ],
                "description": "The value type of the adjustment.",
                "maxLength": 262144
              },
              "value": {
                "type": "string",
                "description": "The value of the adjustment.",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          },
          "AdjustmentSource": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "The ID of the source of the adjustment.",
                "maxLength": 262144,
                "format": "uuid"
              }
            },
            "additionalProperties": false
          },
          "AdjustmentTarget": {
            "type": "object",
            "required": [
              "method"
            ],
            "properties": {
              "ids": {
                "type": "array",
                "description": "An array of target IDs.",
                "items": {
                  "type": "string",
                  "maxLength": 262144,
                  "format": "uuid"
                },
                "maxItems": 10
              },
              "method": {
                "type": "string",
                "enum": [
                  "PROPORTIONED",
                  "EACH",
                  "SINGLE"
                ],
                "description": "The method of the adjustment.",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          },
          "LineItemProduct": {
            "type": "object",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "The ID of the product associated with this line item.",
                "maxLength": 262144,
                "format": "uuid"
              }
            },
            "additionalProperties": false
          },
          "LineItemSource": {
            "type": "object",
            "properties": {
              "author_id": {
                "type": "string",
                "description": "The ID of the salesperson associated with this line item. Salesperson IDs can be retrieved from the /api/{version}/users endpoint. Only needed when this line item is not sold by current login user.",
                "maxLength": 262144,
                "format": "uuid"
              },
              "register_id": {
                "type": "string",
                "description": "The ID of the register which was used to add this line item to the sale.",
                "maxLength": 262144,
                "format": "uuid"
              }
            },
            "additionalProperties": false
          },
          "LineItemTax": {
            "type": "object",
            "required": [
              "id",
              "amount"
            ],
            "properties": {
              "amount": {
                "type": "number",
                "description": "The unit tax value associated with this line item."
              },
              "id": {
                "type": "string",
                "description": "The ID of the tax associated with this line item. Tax IDs can be retrieved from the /api/2.0/taxes endpoint; for tax-free items, please use the ID of the tax named 'No Tax'",
                "maxLength": 262144,
                "format": "uuid"
              }
            },
            "additionalProperties": false
          },
          "SalePayment": {
            "type": "object",
            "required": [
              "amount",
              "type"
            ],
            "properties": {
              "amount": {
                "type": "number",
                "description": "Payment amount."
              },
              "billing_address_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The ID of the billing address to use for this payment. Either this or billing_address_token must be provided when billing address is required.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "billing_address_token": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The token of the billing address to use for this payment. Required when billing_address_id is provided.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "date": {
                "type": "string",
                "description": "The date and time of the payment.",
                "maxLength": 262144
              },
              "id": {
                "type": "string",
                "description": "Existing payment ID. If included in the POST request it will cause an update instead of a creating a new supplier.",
                "maxLength": 262144,
                "format": "uuid"
              },
              "source": {
                "$ref": "#/$defs/PaymentSource"
              },
              "type": {
                "$ref": "#/$defs/PaymentTypeConfig"
              }
            },
            "additionalProperties": false
          },
          "PaymentSource": {
            "type": "object",
            "properties": {
              "register_id": {
                "type": "string",
                "description": "The ID of the register used to add this payment to the sale.",
                "maxLength": 262144,
                "format": "uuid"
              }
            },
            "additionalProperties": false
          },
          "PaymentTypeConfig": {
            "type": "object",
            "required": [
              "config_id"
            ],
            "properties": {
              "config_id": {
                "type": "string",
                "description": "Payment type id to be used for the payment.",
                "maxLength": 262144,
                "format": "uuid"
              }
            },
            "additionalProperties": false
          },
          "SalePricing": {
            "type": "object",
            "properties": {
              "adjustments": {
                "type": "array",
                "description": "Adjustments.",
                "items": {
                  "$ref": "#/$defs/SaleAdjustment"
                },
                "maxItems": 10
              }
            },
            "additionalProperties": false
          },
          "SaleAdjustment": {
            "type": "object",
            "required": [
              "type"
            ],
            "properties": {
              "amount": {
                "$ref": "#/$defs/AdjustmentAmount"
              },
              "name": {
                "type": "string",
                "description": "The name of the adjustment.",
                "maxLength": 262144
              },
              "source": {
                "$ref": "#/$defs/AdjustmentSource"
              },
              "type": {
                "type": "string",
                "enum": [
                  "NON_CASH_FEE",
                  "DISCOUNT",
                  "TIP"
                ],
                "description": "The type of the adjustment.",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          },
          "DailyAgenda": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "date": {
                    "type": "string",
                    "maxLength": 262144
                  },
                  "minutes_scheduled": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "ServiceItems": {
            "type": "object",
            "properties": {
              "item_details": {
                "$ref": "#/$defs/ItemDetails"
              },
              "location": {
                "type": "string",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          },
          "ItemDetails": {
            "type": "object",
            "properties": {
              "description": {
                "type": "string",
                "maxLength": 262144
              },
              "initial_condition": {
                "type": "string",
                "maxLength": 262144
              },
              "item_id": {
                "type": "string",
                "maxLength": 262144
              },
              "item_name": {
                "type": "string",
                "maxLength": 262144
              },
              "serial_number": {
                "type": "string",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          },
          "ServiceOrderLineItem": {
            "type": "object",
            "required": [
              "product",
              "quantity",
              "pricing",
              "tax"
            ],
            "properties": {
              "_metadata": {
                "$ref": "#/$defs/LineItemMetadata"
              },
              "attributes": {
                "type": "array",
                "description": "Additional line item attributes.",
                "items": {
                  "$ref": "#/$defs/LineItemAttribute"
                },
                "maxItems": 10
              },
              "fulfilment_outlet_id": {
                "type": "string",
                "description": "The outlet that should fulfill this line item. Mutually exclusive with pick lists created via `/sales/{sale_id}/pick_lists`.",
                "maxLength": 262144,
                "format": "uuid"
              },
              "id": {
                "type": "string",
                "description": "Existing line item ID. If included in the POST request it will cause an update instead of a creating a new object.",
                "maxLength": 262144,
                "format": "uuid"
              },
              "pricing": {
                "$ref": "#/$defs/LineItemPricing"
              },
              "product": {
                "$ref": "#/$defs/LineItemProduct"
              },
              "quantity": {
                "type": "number",
                "description": "Quantity of products for the line item."
              },
              "source": {
                "$ref": "#/$defs/LineItemSource"
              },
              "status": {
                "type": "string",
                "description": "If defined as `CONFIRMED` for pending sales, the line item will be added as **read-only**.",
                "maxLength": 262144
              },
              "tax": {
                "$ref": "#/$defs/LineItemTax"
              },
              "promotions": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/PromotionDescription"
                },
                "maxItems": 10
              },
              "tax_component": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/LineItemTaxComponent"
                },
                "maxItems": 10
              }
            },
            "additionalProperties": false
          },
          "PromotionDescription": {
            "type": "object",
            "description": "Basic description for a Promotion.",
            "properties": {
              "description": {
                "type": "string",
                "description": "A short description for the promotion.",
                "maxLength": 262144
              },
              "id": {
                "type": "string",
                "description": "Auto-generated object ID.",
                "maxLength": 262144
              },
              "name": {
                "type": "string",
                "description": "The name of the promotion.",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          },
          "LineItemTaxComponent": {
            "type": "object",
            "required": [
              "rate_id",
              "total_tax"
            ],
            "properties": {
              "rate_id": {
                "type": "string",
                "description": "Tax rate ID.",
                "maxLength": 262144
              },
              "total_tax": {
                "type": "number",
                "description": "Tax total."
              }
            },
            "additionalProperties": false
          },
          "SaleRequestSource": {
            "type": "object",
            "required": [
              "author_id"
            ],
            "properties": {
              "author_id": {
                "type": "string",
                "description": "The ID of the user (cashier) who created the sale.",
                "maxLength": 262144,
                "format": "uuid"
              },
              "id": {
                "type": "string",
                "description": "The ID of the sale on the client side or another system where the sale was originally created.",
                "maxLength": 262144
              },
              "register_id": {
                "type": "string",
                "description": "The ID of the register where the sale was created.",
                "maxLength": 262144,
                "format": "uuid"
              },
              "type": {
                "type": "string",
                "description": "This is the identifier of the 3rd party system that the `source_id` is associated with. 'Xero' or 'Magento' would be examples.",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [
        {
          "name": "sale_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/SaleResponse"
          }
        }
      }
    },
    "POST /sales/{sale_id}/actions/return": {
      "method": "POST",
      "path": "/sales/{sale_id}/actions/return",
      "risk": "D",
      "description": "Return a sale",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "sale_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "A valid sale ID."
              }
            },
            "required": [
              "sale_id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Initializes a return for an existing closed sale and returns the newly created SAVED return sale. Use this endpoint to start the return workflow before adding refund payments or finalizing the returned items. See [the tutorial](/docs/sales_returns) for more information.\n\n🔒 Requires: `sales:write` `users:read` scopes"
      },
      "wire": [
        {
          "name": "sale_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/SaleResponse"
          }
        }
      }
    },
    "GET /search": {
      "method": "GET",
      "path": "/search",
      "risk": "R",
      "description": "Search for resources",
      "input_schema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "sales",
                  "products",
                  "customers"
                ],
                "maxLength": 262144,
                "description": "The entity type to search for."
              },
              "order_by": {
                "type": "string",
                "maxLength": 262144,
                "description": "The attribute used to sort items returned in the response. Supported values depend on the entity type."
              },
              "order_direction": {
                "type": "string",
                "enum": [
                  "asc",
                  "desc"
                ],
                "maxLength": 262144,
                "description": "Sorting direction."
              },
              "page_size": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 100,
                "description": "The maximum number of objects to be included in the response, currently limited to 1000. Specifying more than 1000 will result in 1000 objects being returned."
              },
              "offset": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991,
                "description": "The number of objects to be \"skipped\" for the response. Used for pagination."
              },
              "_id": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "The `id` of the object to be included in the response."
              },
              "-_id": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "The `id` of the object to be excluded from the response."
              },
              "deleted": {
                "type": "boolean",
                "description": "Indicated whether deleted objects should be included in the response."
              },
              "status": {
                "type": "string",
                "maxLength": 262144,
                "description": "**SALES** Status of the sale to find.\nCan be used multiple times to search for objects with different values of this parameter.\nDeprecated, please use state and attributes instead."
              },
              "state": {
                "type": "string",
                "maxLength": 262144,
                "description": "**SALES** State of the sale to find.\nCan be used multiple times to search for objects with different values of this parameter."
              },
              "attributes": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 262144
                },
                "maxItems": 100,
                "description": "**SALES** Attributes of the sale to find.\nCan be used multiple times to search for objects with different values of this parameter."
              },
              "invoice_number": {
                "type": "string",
                "maxLength": 262144,
                "description": "**SALES** Invoice number of the sale."
              },
              "customer_id": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "**SALES** The `ID` of the customer associated with the sales."
              },
              "user_id": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "**SALES** The `ID` of the user associated with the sales."
              },
              "outlet_id": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "**SALES** The `ID` of the outlet associated with the sales."
              },
              "date_from": {
                "type": "string",
                "maxLength": 262144,
                "description": "**SALES** Lower limit for the sale date as UTC timestamp. Format: `2016-08-08T12:00:00Z`."
              },
              "date_to": {
                "type": "string",
                "maxLength": 262144,
                "description": "**SALES** Upper limit for the sale date as UTC timestamp. Format: `2016-08-08T12:00:00Z`."
              },
              "time_from": {
                "type": "string",
                "maxLength": 262144,
                "description": "**SALES** Lower time-of-day limit (in local time) for filtering sales. Format: `H:MM` or `HH:MM` (e.g. `09:00`). Use with `timezone` for accurate local-time filtering. When only `time_from` is provided, `time_to` defaults to `24:00`."
              },
              "time_to": {
                "type": "string",
                "maxLength": 262144,
                "description": "**SALES** Upper time-of-day limit (in local time) for filtering sales. Format: `H:MM` or `HH:MM` (e.g. `17:00`). Use with `timezone` for accurate local-time filtering. When only `time_to` is provided, `time_from` defaults to `00:00`."
              },
              "timezone": {
                "type": "string",
                "maxLength": 262144,
                "description": "**SALES** IANA timezone identifier used to interpret `time_from` and `time_to` (e.g. `America/Toronto`). Defaults to UTC when omitted. See the [list of tz database time zones](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) for valid values."
              },
              "register_id": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "**SALES** The ID of the register associated with the sale.\nCan be used multiple times to search for objects with different values of this parameter."
              },
              "payment_type_id": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "**SALES** The ID of a payment type used in the sale.\nCan be used multiple times to search for objects with different values of this parameter."
              },
              "product_id": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "**SALES** The ID of a product included in the sale.\nCan be used multiple times to search for objects with different values of this parameter."
              },
              "sale_total": {
                "type": "number",
                "description": "**SALES** The exact total amount of the sale to find."
              },
              "customer_name": {
                "type": "string",
                "maxLength": 262144,
                "description": "**SALES** The name of the customer associated with the sale. Supports prefix matching."
              },
              "sku": {
                "type": "string",
                "maxLength": 262144,
                "description": "**PRODUCTS** The SKU of products to include in the search.\nCan be used multiple times to search for objects with different values of this parameter."
              },
              "-sku": {
                "type": "string",
                "maxLength": 262144,
                "description": "**PRODUCTS** The SKU of products to exclude from the search.\nCan be used multiple times to search for objects with different values of this parameter."
              },
              "supplier_id": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "**PRODUCTS** The ID of the supplier associated with the product to include in the search.\nCan be used multiple times to search for objects with different values of this parameter."
              },
              "-supplier_id": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "**PRODUCTS** The ID of the supplier associated with the product to exclude from the search.\nCan be used multiple times to search for objects with different values of this parameter."
              },
              "brand_id": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "**PRODUCTS** The ID of the brand associated with the product to include in the search.\nCan be used multiple times to search for objects with different values of this parameter."
              },
              "-brand_id": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "**PRODUCTS** The ID of the brand associated with the product to exclude from the search.\nCan be used multiple times to search for objects with different values of this parameter."
              },
              "tag_id": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "**PRODUCTS** The ID of the tag associated with the product to include in the search.\nCan be used multiple times to search for objects with different values of this parameter."
              },
              "-tag_id": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "**PRODUCTS** The ID of the brand associated with the product to exclude from the search.\nCan be used multiple times to search for objects with different values of this parameter."
              },
              "product_type_id": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "**PRODUCTS** The ID of the product type associated with the product to include in the search.\nCan be used multiple times to search for objects with different values of this parameter."
              },
              "-product_type_id": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "**PRODUCTS** The ID of the product type associated with the product to exclude from the search.\nCan be used multiple times to search for objects with different values of this parameter."
              },
              "variant_parent_id": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "**PRODUCTS** The ID of the variant parent product associated with the product to include in the search.\nCan be used multiple times to search for objects with different values of this parameter."
              },
              "-variant_parent_id": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "**PRODUCTS** The ID of the variant parent product associated with the product to exclude from the search.\nCan be used multiple times to search for objects with different values of this parameter."
              },
              "customer_code": {
                "type": "string",
                "maxLength": 262144,
                "description": "**CUSTOMERS** The `customer_code` associated with the customer to find."
              },
              "email": {
                "type": "string",
                "maxLength": 262144,
                "description": "**CUSTOMERS** The `email` address associated with the customer to find."
              },
              "first_name": {
                "type": "string",
                "maxLength": 262144,
                "description": "**CUSTOMERS** The `first_name` for the customers to find."
              },
              "last_name": {
                "type": "string",
                "maxLength": 262144,
                "description": "**CUSTOMERS** The `last_name` for the customers to find."
              },
              "company_name": {
                "type": "string",
                "maxLength": 262144,
                "description": "**CUSTOMERS** The `company_name` for the customers to find."
              },
              "mobile": {
                "type": "string",
                "maxLength": 262144,
                "description": "**CUSTOMERS** The `mobile number` for the customers to find."
              },
              "phone": {
                "type": "string",
                "maxLength": 262144,
                "description": "**CUSTOMERS** The `phone number` for the customers to find."
              }
            },
            "required": [
              "type"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "query"
        ],
        "additionalProperties": false,
        "description": "This endpoint allows integrators to search all of the most commonly used resources, **sales**, **products** and **customers**. Each type allowing search by a number of different parameters.\n### Supported resource types and attributes\n- **Sales**\n  - date_from\n  - date_to\n  - time_from\n  - time_to\n  - timezone\n  - status\n  - state\n  - attributes\n  - invoice_number\n  - customer_id\n  - user_id\n  - outlet_id\n  - register_id\n  - payment_type_id\n  - product_id\n  - sale_total\n  - customer_name\n- **Products**\n  - sku **_(values must be lowercased)_**\n  - supplier_id\n  - brand_id\n  - tag_id\n  - product_type_id\n  - variant_parent_id\n- **Customers**\n  - customer_code\n  - first_name\n  - last_name\n  - company_name\n  - mobile\n  - phone\n  - email\n### Sorting and pagination\nUnlike other endpoints, search results from this endpoint can be sorted by any of the attributes above. Because of that, the default [pagination](https://x-series-api.lightspeedhq.com/docs/pagination#api-20) mechanism is not appropriate for this endpoint. Instead, this endpoint uses `offset` and `page_size` attributes to handle search results spanning multiple pages.\n\n🔒 Requires one of the following:\n- `sales:read` scope when searching for sales\n- `products:read` scope when searching for products\n- `customers:read` scope when searching for customers\n"
      },
      "wire": [
        {
          "name": "type",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "order_by",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "order_direction",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "page_size",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "offset",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "_id",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "-_id",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "deleted",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "status",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "state",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "attributes",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "invoice_number",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "customer_id",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "user_id",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "outlet_id",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "date_from",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "date_to",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "time_from",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "time_to",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "timezone",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "register_id",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "payment_type_id",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "product_id",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "sale_total",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "customer_name",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "sku",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "-sku",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "supplier_id",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "-supplier_id",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "brand_id",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "-brand_id",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "tag_id",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "-tag_id",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "product_type_id",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "-product_type_id",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "variant_parent_id",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "-variant_parent_id",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "customer_code",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "email",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "first_name",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "last_name",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "company_name",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "mobile",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "phone",
          "in": "query",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {
          "page_size": 100
        },
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/SearchResponse"
          }
        }
      }
    },
    "GET /security_events": {
      "method": "GET",
      "path": "/security_events",
      "risk": "R",
      "description": "List security events for current user",
      "input_schema": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false,
        "description": "This API returns a list of all the security log events **for the current user**. If you want a list of all the security events for all users please use the auditlog_events with filter type == \"security\". See the auditlog_events API in the beta documentation for more information.\n\n🔒 Requires: `audit:read` scope"
      },
      "wire": [],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "properties": {
              "event": {
                "$ref": "#/components/schemas/AuditLogEvent"
              }
            },
            "type": "object"
          }
        }
      }
    },
    "GET /serialnumbers": {
      "method": "GET",
      "path": "/serialnumbers",
      "risk": "R",
      "description": "List serial numbers",
      "input_schema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "object",
            "properties": {
              "product_id": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "A product ID. This filters the serial numbers to only include ones on this product."
              },
              "outlet_id": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "An outlet ID. This filters the serial numbers to only include ones on this outlet."
              },
              "sale_id": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "A sale ID. This filters the serial numbers to only include ones that were sold in the specified sale."
              },
              "line_item_id": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "A line item ID. This filters the serial numbers to only include ones sold in the specified line item."
              },
              "after": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The lower limit for the version numbers to be included in the response."
              },
              "before": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The upper limit for the version numbers to be included in the response."
              },
              "page_size": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 100,
                "description": "The maximum number of items to be returned in the response."
              }
            },
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [],
        "additionalProperties": false,
        "description": "Returns a paginated list of serial numbers.\n\n🔒 Requires: `serial_numbers:read` scope"
      },
      "wire": [
        {
          "name": "product_id",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "outlet_id",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "sale_id",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "line_item_id",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "after",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "before",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "page_size",
          "in": "query",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {
          "page_size": 100
        },
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/SerialNumberCollection"
          }
        }
      }
    },
    "POST /serialnumbers": {
      "method": "POST",
      "path": "/serialnumbers",
      "risk": "W",
      "description": "Create a serial number",
      "input_schema": {
        "type": "object",
        "properties": {
          "body": {
            "$ref": "#/$defs/SerialNumberRequest"
          }
        },
        "required": [
          "body"
        ],
        "additionalProperties": false,
        "description": "Creates a serial number.\n\n🔒 Requires: `serial_numbers:write` scope",
        "$defs": {
          "SerialNumberRequest": {
            "type": "object",
            "required": [
              "code",
              "outlet_id",
              "product_id"
            ],
            "properties": {
              "code": {
                "type": "string",
                "description": "The actual serial number value.",
                "maxLength": 262144
              },
              "outlet_id": {
                "type": "string",
                "description": "The ID of the outlet where the serial number is located.",
                "maxLength": 262144,
                "format": "uuid"
              },
              "product_id": {
                "type": "string",
                "description": "The ID of the product associated with the serial number.",
                "maxLength": 262144,
                "format": "uuid"
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "201": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/SerialNumberResponse"
          }
        }
      }
    },
    "DELETE /serialnumbers/{serialnumber_id}": {
      "method": "DELETE",
      "path": "/serialnumbers/{serialnumber_id}",
      "risk": "D",
      "description": "Delete a serial number",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "serialnumber_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The serial number id"
              }
            },
            "required": [
              "serialnumber_id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Deletes a serial number.\n\n🔒 Requires: `serial_numbers:write` scope"
      },
      "wire": [
        {
          "name": "serialnumber_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "204": {
          "media": null,
          "schema": null
        }
      }
    },
    "GET /serialnumbers/{serialnumber_id}": {
      "method": "GET",
      "path": "/serialnumbers/{serialnumber_id}",
      "risk": "R",
      "description": "Get a single serial number",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "serialnumber_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The serial number id"
              }
            },
            "required": [
              "serialnumber_id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Returns a single serial number.\n\n🔒 Requires: `serial_numbers:read` scope"
      },
      "wire": [
        {
          "name": "serialnumber_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/SerialNumberResponse"
          }
        }
      }
    },
    "GET /service_items/customer/{customer_id}": {
      "method": "GET",
      "path": "/service_items/customer/{customer_id}",
      "risk": "R",
      "description": "List a customer's service items",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "customer_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The customer id"
              }
            },
            "required": [
              "customer_id"
            ],
            "additionalProperties": false
          },
          "query": {
            "type": "object",
            "properties": {
              "after": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The lower limit for the service id to be included in the response. For proper pagination, it needs to be the item id of the last item in the response from your previous request."
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 100,
                "description": "The maximum number of items to be returned in the response."
              }
            },
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Returns a paginated list of customer's service items.\n\n🔒 Requires: `services:read` scope"
      },
      "wire": [
        {
          "name": "customer_id",
          "in": "path",
          "style": "form",
          "explode": true
        },
        {
          "name": "after",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "limit",
          "in": "query",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {
          "limit": 100
        },
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "properties": {
              "has_next": {
                "type": "boolean"
              },
              "job_items": {
                "items": {
                  "properties": {
                    "created_at": {
                      "type": "string"
                    },
                    "created_by": {
                      "type": "string"
                    },
                    "initial_condition": {
                      "type": "string"
                    },
                    "item_details": {
                      "properties": {
                        "description": {
                          "type": "string"
                        },
                        "serial_number": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "item_id": {
                      "type": "string"
                    },
                    "item_name": {
                      "type": "string"
                    },
                    "updated_at": {
                      "type": "string"
                    },
                    "updated_by": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "type": "array"
              },
              "total_job_items": {
                "type": "integer"
              }
            },
            "type": "object"
          }
        }
      }
    },
    "GET /service_statuses": {
      "method": "GET",
      "path": "/service_statuses",
      "risk": "R",
      "description": "List service statuses",
      "input_schema": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false,
        "description": "Returns all service statuses for the retailer, including system defaults and custom ones.\n\n**Only available with the Service Orders module enabled.**\n\n🔒 Requires: `services:read` scope"
      },
      "wire": [],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "items": {
              "$ref": "#/components/schemas/ServiceStatusDetails"
            },
            "type": "array"
          }
        }
      }
    },
    "POST /service_statuses": {
      "method": "POST",
      "path": "/service_statuses",
      "risk": "W",
      "description": "Create a service status",
      "input_schema": {
        "type": "object",
        "properties": {
          "body": {
            "type": "object",
            "required": [
              "name"
            ],
            "properties": {
              "name": {
                "type": "string",
                "description": "Human-readable name for the status.",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          }
        },
        "required": [
          "body"
        ],
        "additionalProperties": false,
        "description": "Creates a new custom service status for the retailer. The new status is\nappended at the end of the display order. Use the PATCH endpoint to\nchange its position after creation.\n\n**Only available with the Service Orders module enabled.**\n\n🔒 Requires: `services:write` scope"
      },
      "wire": [],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "201": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/ServiceStatusDetails"
          }
        }
      }
    },
    "DELETE /service_statuses/{id}": {
      "method": "DELETE",
      "path": "/service_statuses/{id}",
      "risk": "D",
      "description": "Delete a service status",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "maxLength": 262144,
                "description": "ID of the service status"
              }
            },
            "required": [
              "id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Deletes a custom service status.\n\nSystem default statuses cannot be deleted. A status cannot be deleted if it is still assigned to one or more service orders.\n\n**Only available with the Service Orders module enabled.**\n\n🔒 Requires: `services:write` scope"
      },
      "wire": [
        {
          "name": "id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "204": {
          "media": null,
          "schema": null
        }
      }
    },
    "GET /service_statuses/{id}": {
      "method": "GET",
      "path": "/service_statuses/{id}",
      "risk": "R",
      "description": "Get a service status",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "maxLength": 262144,
                "description": "ID of the service status"
              }
            },
            "required": [
              "id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Returns a single service status by ID.\n\n**Only available with the Service Orders module enabled.**\n\n🔒 Requires: `services:read` scope"
      },
      "wire": [
        {
          "name": "id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/ServiceStatusDetails"
          }
        }
      }
    },
    "PATCH /service_statuses/{id}": {
      "method": "PATCH",
      "path": "/service_statuses/{id}",
      "risk": "W",
      "description": "Update a service status",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "maxLength": 262144,
                "description": "ID of the service status"
              }
            },
            "required": [
              "id"
            ],
            "additionalProperties": false
          },
          "body": {
            "type": "object",
            "properties": {
              "display_order": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "New display order. Can be set to null to clear it.",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "name": {
                "type": "string",
                "description": "New human-readable name for the status. If provided, must not be blank.",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          }
        },
        "required": [
          "path",
          "body"
        ],
        "additionalProperties": false,
        "description": "Partially updates a custom service status. Only provided fields are updated.\n\nSystem default statuses cannot be modified.\n\n**Only available with the Service Orders module enabled.**\n\n🔒 Requires: `services:write` scope"
      },
      "wire": [
        {
          "name": "id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/ServiceStatusDetails"
          }
        }
      }
    },
    "GET /services": {
      "method": "GET",
      "path": "/services",
      "risk": "R",
      "description": "List services",
      "input_schema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "object",
            "properties": {
              "after": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The lower limit for the service id to be included in the response. For proper pagination, it needs to be the service id of the last item in the response from your previous request."
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 100,
                "description": "The maximum number of items to be returned in the response."
              }
            },
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [],
        "additionalProperties": false,
        "description": "Returns a paginated list of services.\n\n🔒 Requires: `services:read` scope"
      },
      "wire": [
        {
          "name": "after",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "limit",
          "in": "query",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {
          "limit": 100
        },
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "properties": {
              "has_next": {
                "description": "Whether or not there are more pages available",
                "type": "boolean"
              },
              "jobs": {
                "items": {
                  "properties": {
                    "service": {
                      "$ref": "#/components/schemas/ServiceOrder"
                    },
                    "service_item": {
                      "nullable": true,
                      "type": "object"
                    }
                  },
                  "type": "object"
                },
                "type": "array"
              },
              "total_jobs": {
                "description": "Total number of jobs",
                "type": "integer"
              }
            },
            "type": "object"
          }
        }
      }
    },
    "POST /services": {
      "method": "POST",
      "path": "/services",
      "risk": "H",
      "description": "Create a service order",
      "input_schema": {
        "type": "object",
        "properties": {
          "body": {
            "$ref": "#/$defs/ServiceOrderRequest"
          }
        },
        "required": [
          "body"
        ],
        "additionalProperties": false,
        "description": "**Only available with the Service Orders module enabled.**\n\nCreates a new service order. This endpoint allows you to create service orders with a customer, a service item, note and location.\n\n🔒 Requires: `services:write` `sales:write` scopes",
        "$defs": {
          "ServiceOrderRequest": {
            "type": "object",
            "required": [
              "outlet_id",
              "register_id",
              "customer_id"
            ],
            "description": "Request payload for creating a service order",
            "properties": {
              "assigned_user_id": {
                "type": "string",
                "description": "The user assigned to work on the service order",
                "maxLength": 262144,
                "format": "uuid"
              },
              "customer_id": {
                "type": "string",
                "description": "The customer associated with the service",
                "maxLength": 262144,
                "format": "uuid"
              },
              "extra_fields": {
                "type": "object",
                "description": "Deprecated. Additional custom fields for the service order",
                "properties": {
                  "location": {
                    "type": "string",
                    "description": "Deprecated: Use top-level location field instead. Location where the service will be performed",
                    "maxLength": 262144
                  },
                  "note": {
                    "type": "string",
                    "description": "Deprecated: Use top-level Notes field instead. Additional note for the service order",
                    "maxLength": 262144
                  }
                },
                "additionalProperties": false
              },
              "item": {
                "type": "object",
                "description": "Service item and its details",
                "properties": {
                  "description": {
                    "type": "string",
                    "description": "Item description",
                    "maxLength": 262144
                  },
                  "initial_condition": {
                    "type": "string",
                    "description": "Item's initial condition",
                    "maxLength": 262144
                  },
                  "item_id": {
                    "type": "string",
                    "description": "ID of an already existing item",
                    "maxLength": 262144,
                    "format": "uuid"
                  },
                  "item_name": {
                    "type": "string",
                    "description": "Item name",
                    "maxLength": 262144
                  },
                  "serial_number": {
                    "type": "string",
                    "description": "Item serial number",
                    "maxLength": 262144
                  }
                },
                "additionalProperties": false
              },
              "job_status_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The ID of a custom service status to assign to this order. When provided, overrides the `status` field.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "location": {
                "type": "string",
                "description": "Location where the service will be performed",
                "maxLength": 262144
              },
              "notes": {
                "type": "array",
                "description": "Notes associated with the service order",
                "items": {
                  "type": "object",
                  "properties": {
                    "body": {
                      "type": "string",
                      "description": "The body of the note",
                      "maxLength": 262144
                    },
                    "created_at": {
                      "type": "string",
                      "description": "The date and time when the note was created (possible to pre-date the note)",
                      "maxLength": 262144,
                      "format": "date-time"
                    },
                    "is_visible_to_customer": {
                      "type": "boolean",
                      "description": "Whether the note is visible to customer (printed on the service receipt or not)",
                      "default": false
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 10
              },
              "outlet_id": {
                "type": "string",
                "description": "The outlet of the service order",
                "maxLength": 262144,
                "format": "uuid"
              },
              "register_id": {
                "type": "string",
                "description": "The register of the service order",
                "maxLength": 262144,
                "format": "uuid"
              },
              "status": {
                "type": "string",
                "description": "The status of the service order",
                "default": "NEW",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/DetailedService"
          }
        }
      }
    },
    "GET /services/{service_id}": {
      "method": "GET",
      "path": "/services/{service_id}",
      "risk": "R",
      "description": "Get service",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "service_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "ID of the service to get"
              }
            },
            "required": [
              "service_id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Get a single service order.\n\n🔒 Requires: `services:read` scope"
      },
      "wire": [
        {
          "name": "service_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/DetailedService"
          }
        }
      }
    },
    "GET /services_agenda/outlet/{outlet_id}": {
      "method": "GET",
      "path": "/services_agenda/outlet/{outlet_id}",
      "risk": "R",
      "description": "Get services agenda by outlet",
      "input_schema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "object",
            "properties": {
              "days": {
                "type": "integer",
                "default": 7,
                "minimum": -9007199254740991,
                "maximum": 9007199254740991,
                "description": "The size, in days, of the time window for which the agenda is requested."
              },
              "start_date": {
                "type": "string",
                "maxLength": 262144,
                "format": "date-time",
                "description": "The first date of the time window for which the agenda is requested."
              },
              "timezone": {
                "type": "string",
                "maxLength": 262144,
                "description": "The timezone in which the agenda is requested. When provided, the agenda returned will account for time changes like daylight savings."
              }
            },
            "required": [
              "start_date"
            ],
            "additionalProperties": false
          },
          "path": {
            "type": "object",
            "properties": {
              "outlet_id": {
                "type": "string",
                "maxLength": 262144
              }
            },
            "required": [
              "outlet_id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "query",
          "path"
        ],
        "additionalProperties": false,
        "description": "Returns the service agenda for the specified outlet within the given time window.\n\n🔒 Requires: `services:read` scope"
      },
      "wire": [
        {
          "name": "days",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "start_date",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "timezone",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "outlet_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "items": {
              "$ref": "#/components/schemas/DailyAgenda"
            },
            "type": "array"
          }
        }
      }
    },
    "GET /shifts": {
      "method": "GET",
      "path": "/shifts",
      "risk": "R",
      "description": "List shifts",
      "input_schema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "object",
            "properties": {
              "after": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The lower limit for the version numbers to be included in the response."
              },
              "before": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The upper limit for the version numbers to be included in the response."
              },
              "page_size": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 100,
                "description": "The maximum number of items to be returned in the response."
              }
            },
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [],
        "additionalProperties": false,
        "description": "Returns a paginated list of shifts."
      },
      "wire": [
        {
          "name": "after",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "before",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "page_size",
          "in": "query",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {
          "page_size": 100
        },
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/ShiftCollection"
          }
        }
      }
    },
    "GET /stock_adjustments": {
      "method": "GET",
      "path": "/stock_adjustments",
      "risk": "R",
      "description": "List stock adjustments",
      "input_schema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "object",
            "properties": {
              "page_size": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 100,
                "description": "The maximum number of items to be returned in the response."
              },
              "after": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "Return records with a version greater than this value."
              },
              "before": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "Return records with a version less than this value."
              }
            },
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [],
        "additionalProperties": false,
        "description": "Returns a paginated list of stock adjustments for the authenticated retailer.\n\n🔒 Requires: `inventory:write` scope"
      },
      "wire": [
        {
          "name": "page_size",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "after",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "before",
          "in": "query",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {
          "page_size": 100
        },
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/StockAdjustmentCollection"
          }
        }
      }
    },
    "POST /stock_adjustments": {
      "method": "POST",
      "path": "/stock_adjustments",
      "risk": "H",
      "description": "Create stock adjustments",
      "input_schema": {
        "type": "object",
        "properties": {
          "body": {
            "$ref": "#/$defs/CreateStockAdjustmentsRequest"
          }
        },
        "required": [
          "body"
        ],
        "additionalProperties": false,
        "description": "Creates one or more stock adjustments in a single batch (1–1000 items per request).\n\n🔒 Requires: `inventory:write` scope",
        "$defs": {
          "CreateStockAdjustmentsRequest": {
            "type": "object",
            "required": [
              "stock_adjustments"
            ],
            "description": "A batch of 1–1000 stock adjustments to create.",
            "properties": {
              "stock_adjustments": {
                "type": "array",
                "minItems": 1,
                "maxItems": 10,
                "description": "The stock adjustments to create.",
                "items": {
                  "$ref": "#/$defs/CreateStockAdjustmentItem"
                }
              }
            },
            "additionalProperties": false
          },
          "CreateStockAdjustmentItem": {
            "type": "object",
            "required": [
              "product_id",
              "outlet_id",
              "quantity",
              "reason"
            ],
            "description": "A single stock adjustment to create as part of a batch.",
            "properties": {
              "custom_inventory_adjustment_reason_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 36,
                "description": "Required when `reason` is `CUSTOM`; must be omitted otherwise.",
                "format": "uuid"
              },
              "outlet_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 36,
                "description": "The ID of the outlet where the adjustment is recorded.",
                "format": "uuid"
              },
              "product_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 36,
                "description": "The ID of the product to adjust.",
                "format": "uuid"
              },
              "quantity": {
                "type": "string",
                "maxLength": 32,
                "description": "Quantity to adjust. Must be a numeric string (e.g. `\"1\"` or `\"-3\"`). Negative for DAMAGE/EXPIRY/etc., positive for STOCK_FOUND/SAMPLE_FOR_SALE."
              },
              "reason": {
                "$ref": "#/$defs/StockAdjustmentReason"
              }
            },
            "additionalProperties": false
          },
          "StockAdjustmentReason": {
            "type": "string",
            "enum": [
              "DAMAGE",
              "EXPIRY",
              "INTERNAL_USE",
              "THEFT",
              "DONATION",
              "STOCK_FOUND",
              "SAMPLE_FOR_SALE",
              "CUSTOM"
            ],
            "description": "The reason for a stock adjustment.\n\nNegative reasons (require `quantity` < 0): `DAMAGE`, `EXPIRY`, `INTERNAL_USE`, `THEFT`, `DONATION`.\nPositive reasons (require `quantity` > 0): `STOCK_FOUND`, `SAMPLE_FOR_SALE`.\nFor `CUSTOM`, the sign must match the referenced custom reason's `type`.",
            "maxLength": 262144
          }
        }
      },
      "wire": [],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "201": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/StockAdjustmentBatchResponse"
          }
        }
      }
    },
    "GET /store_credits": {
      "method": "GET",
      "path": "/store_credits",
      "risk": "R",
      "description": "Get store credit usage for the store",
      "input_schema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "object",
            "properties": {
              "page_size": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 100,
                "description": "The maximum number of items to be returned in the response"
              },
              "includes[]": {
                "type": "string",
                "maxLength": 262144,
                "description": "Include supplementary data. The only valid value for includes[] is 'customer'."
              }
            },
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [],
        "additionalProperties": false,
        "description": "Returns all the store credit customers in a store with their store credit balance\nand a list of last store credit transactions for each customer\n\n🔒 Requires: `store_credits:read` scope"
      },
      "wire": [
        {
          "name": "page_size",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "includes[]",
          "in": "query",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {
          "page_size": 100
        },
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/StoreCreditBulkResponse"
          }
        }
      }
    },
    "POST /store_credits/balances-bulk": {
      "method": "POST",
      "path": "/store_credits/balances-bulk",
      "risk": "R",
      "description": "Bulk Store Credit customers balances",
      "input_schema": {
        "type": "object",
        "properties": {
          "body": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 262144,
              "format": "uuid"
            },
            "maxItems": 100
          }
        },
        "required": [
          "body"
        ],
        "additionalProperties": false,
        "description": "Returns all the store credit customers in a store with their store credit balance.\n\n🔒 Requires: `store_credits:read` scope"
      },
      "wire": [],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/StoreCreditBalancesBulkResponse"
          }
        }
      }
    },
    "POST /store_credits/bulk": {
      "method": "POST",
      "path": "/store_credits/bulk",
      "risk": "R",
      "description": "Bulk Store Credit customers",
      "input_schema": {
        "type": "object",
        "properties": {
          "body": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 262144,
              "format": "uuid"
            },
            "maxItems": 100
          }
        },
        "required": [
          "body"
        ],
        "additionalProperties": false,
        "description": "Returns all the store credit customers in a store with their store credit balance\nand a list of last store credit transactions for each customer\n\n🔒 Requires: `store_credits:read` scope"
      },
      "wire": [],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/StoreCreditBulkResponse"
          }
        }
      }
    },
    "GET /store_credits/report": {
      "method": "GET",
      "path": "/store_credits/report",
      "risk": "R",
      "description": "Store credit report",
      "input_schema": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false,
        "description": "Returns a report of store credits.\n\n🔒 Requires: `store_credits:read` scope"
      },
      "wire": [],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/StoreCreditReport"
          }
        }
      }
    },
    "GET /store_credits/{customerId}": {
      "method": "GET",
      "path": "/store_credits/{customerId}",
      "risk": "R",
      "description": "Store Credit operations and a balance of a customer",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "customerId": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "Customer id"
              }
            },
            "required": [
              "customerId"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Returns a balance and a history of store credit operations for the given customer id.\n\n🔒 Requires: `store_credits:read` scope"
      },
      "wire": [
        {
          "name": "customerId",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/StoreCreditCustomer"
          }
        }
      }
    },
    "GET /store_credits/{customerId}/balance": {
      "method": "GET",
      "path": "/store_credits/{customerId}/balance",
      "risk": "R",
      "description": "Store Credit balance of a customer",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "customerId": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "Customer id"
              }
            },
            "required": [
              "customerId"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Returns a balance for the given customer id.\n\n🔒 Requires: `store_credits:read` scope"
      },
      "wire": [
        {
          "name": "customerId",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/StoreCreditCustomerBalance"
          }
        }
      }
    },
    "POST /store_credits/{customerId}/hold": {
      "method": "POST",
      "path": "/store_credits/{customerId}/hold",
      "risk": "H",
      "description": "Create a store credit HOLD transaction",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "customerId": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "The customer id to create a hold for."
              }
            },
            "required": [
              "customerId"
            ],
            "additionalProperties": false
          },
          "body": {
            "$ref": "#/$defs/StoreCreditCreateHoldParams"
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Creates a transaction that represents temporary store credit redemption\nmeaning, that store credit points are spent on a Sale somewhere outside of X-Series.\nWhen that sale will be imported, X-Series (or a 3rd party integration) should do the following:\n- add a REVERSE transaction for the HOLD, to free the store credit points back for spending\n- add a REDEMPTION transaction to conclude the store credit spending on the X-Series side.\n\nSee [Create sale's store_credit_hold_id property](/reference/createsale)\n\n🔒 Requires: `store_credits:write:redeem`",
        "$defs": {
          "StoreCreditCreateHoldParams": {
            "type": "object",
            "required": [
              "amount"
            ],
            "properties": {
              "amount": {
                "type": "number",
                "description": "The amount of the transaction."
              },
              "client_id": {
                "type": "string",
                "description": "The client id is a unique transaction identifier. See StoreCreditTransactionParams\n",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [
        {
          "name": "customerId",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/StoreCreditHoldTransaction"
          }
        }
      }
    },
    "POST /store_credits/{customerId}/hold/reverse": {
      "method": "POST",
      "path": "/store_credits/{customerId}/hold/reverse",
      "risk": "D",
      "description": "Reverse a store credit HOLD transaction",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "customerId": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "The customer id of the hold owner"
              }
            },
            "required": [
              "customerId"
            ],
            "additionalProperties": false
          },
          "body": {
            "type": "object",
            "properties": {
              "reference_id": {
                "type": "string",
                "description": "id of a previous HOLD transaction",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Creates a transaction reverting a HOLD operation. Might be used when:\n- a customer decided not to use store credit for their sale/order\n- a customer discarded/forgot/lost their sale/order\n- a customer successfully imported a sale and must convert the HOLD operation into the REDEMPTION operation\n\n🔒 Requires: `store_credits:write:redeem`"
      },
      "wire": [
        {
          "name": "customerId",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": null,
          "schema": null
        }
      }
    },
    "POST /store_credits/{customerId}/transactions": {
      "method": "POST",
      "path": "/store_credits/{customerId}/transactions",
      "risk": "D",
      "description": "Create a store credit transaction",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "customerId": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "The customer id to apply the store transaction to."
              }
            },
            "required": [
              "customerId"
            ],
            "additionalProperties": false
          },
          "body": {
            "$ref": "#/$defs/StoreCreditTransactionParams"
          }
        },
        "required": [
          "path",
          "body"
        ],
        "additionalProperties": false,
        "description": "Creates a new store credit transaction. The type determines what sort of transaction it is.\n\n* \"REDEMPTION\" - Use this type when you want to redeem a certain amount from the store credit balance. The amount MUST be negative. If you want to add an amount to the balance use the \"ISSUE\" type.\n🔒 Requires: `store_credits:write:redeem`\n* \"ISSUE\" - Use this type when you issue store credit to a customer.\n🔒 Requires: `store_credits:write:issue`\n* \"REVERSE\" - Use this type when voiding an earlier ISSUE or REDEMPTION transaction.\n🔒 Requires: `store_credits:write:redeem`\n\nIf the customer account does not have enough credit to honour a REDEMPTION transaction a 422 HTTP status code will be returned.\n\n## Idempotency\n\n  Please populate the client_id field with a unique transaction identifier, to ensure that the transaction is safe from double-submit problems.\n  When creating an REVERSE operation, client_id must be equal to client_id of a reversed operation.\n  See [the tutorial](/docs/store_credit#idempotency) for more information.",
        "$defs": {
          "StoreCreditTransactionParams": {
            "type": "object",
            "required": [
              "amount",
              "client_id",
              "type"
            ],
            "description": "The store credit transaction parameters for a customer transaction.\nThe body might include hold_id parameter to indicate that a REDEMPTION is executed as a result of a\nHOLD operation. This typically happens when an external Sale is executed outside of X-Series\nWARNING: normally you don't need to pass hold_id, if you specify the store_credit_hold_id in the\n[POST /api/{date-version}/sales](/reference/createsale)\n",
            "properties": {
              "amount": {
                "type": "number",
                "description": "The amount of the transaction."
              },
              "client_id": {
                "type": "string",
                "description": "The client id is a unique transaction identifier. The client must provide this and is normally the transaction id from the client system.\n",
                "maxLength": 262144
              },
              "hold_id": {
                "type": "string",
                "description": "An ID of a previously created HOLD transaction",
                "maxLength": 262144,
                "format": "uuid"
              },
              "notes": {
                "type": "string",
                "description": "The notes associated with the transaction.",
                "maxLength": 262144
              },
              "type": {
                "type": "string",
                "enum": [
                  "ISSUE",
                  "REDEMPTION",
                  "REVERSE"
                ],
                "description": "The type of the transaction",
                "maxLength": 262144
              },
              "user_id": {
                "type": "string",
                "description": "The user id of the person who handled the transaction.",
                "maxLength": 262144,
                "format": "uuid"
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [
        {
          "name": "customerId",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/StoreCreditTransaction"
          }
        }
      }
    },
    "GET /suppliers": {
      "method": "GET",
      "path": "/suppliers",
      "risk": "R",
      "description": "List suppliers",
      "input_schema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "object",
            "properties": {
              "after": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The lower limit for the version numbers to be included in the response."
              },
              "before": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The upper limit for the version numbers to be included in the response."
              },
              "page_size": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 100,
                "description": "The maximum number of items to be returned in the response."
              },
              "deleted": {
                "type": "boolean",
                "description": "Indicates whether deleted items should be included in the response."
              }
            },
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [],
        "additionalProperties": false,
        "description": "Returns a paginated list of suppliers.\n\n🔒 Requires: `suppliers:read` scope"
      },
      "wire": [
        {
          "name": "after",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "before",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "page_size",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "deleted",
          "in": "query",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {
          "page_size": 100
        },
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/SupplierCollection"
          }
        }
      }
    },
    "POST /suppliers": {
      "method": "POST",
      "path": "/suppliers",
      "risk": "W",
      "description": "Create new supplier",
      "input_schema": {
        "type": "object",
        "properties": {
          "body": {
            "$ref": "#/$defs/CreateSupplierRequest"
          }
        },
        "required": [],
        "additionalProperties": false,
        "description": "Creates a new supplier.\n\n🔒 Requires: `suppliers:write` scope",
        "$defs": {
          "CreateSupplierRequest": {
            "type": "object",
            "required": [
              "name",
              "contact"
            ],
            "properties": {
              "contact": {
                "anyOf": [
                  {
                    "type": "object",
                    "description": "Contact information for the supplier.",
                    "properties": {
                      "company_name": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "The name of the supplier company. This field is defaulted to the supplier name if not provided.",
                            "maxLength": 262144
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "email": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "The contact email of the supplier.",
                            "maxLength": 262144
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "fax": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Fax number of the supplier.",
                            "maxLength": 262144
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "first_name": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "The firstname of the contact person.",
                            "maxLength": 262144
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "last_name": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "The last name of the contact person.",
                            "maxLength": 262144
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "mobile": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Mobile contact number of the supplier.",
                            "maxLength": 262144
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "phone": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Physical contact number of the supplier.",
                            "maxLength": 262144
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "physical_address1": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Line 1 address of the supplier's physical address.",
                            "maxLength": 262144
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "physical_address2": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Line 2 address of the supplier's physical address.",
                            "maxLength": 262144
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "physical_city": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "City of the supplier's physical address.",
                            "maxLength": 262144
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "physical_country_id": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "ID of the country of the supplier's physical address.",
                            "maxLength": 262144
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "physical_postcode": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Postcode of the supplier's physical address.",
                            "maxLength": 262144
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "physical_state": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "State of the supplier's physical address.",
                            "maxLength": 262144
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "physical_suburb": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Suburb of the supplier's physical address.",
                            "maxLength": 262144
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "postal_address1": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Line 1 address of the supplier's postal address.",
                            "maxLength": 262144
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "postal_address2": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Line 2 address of the supplier's postal address.",
                            "maxLength": 262144
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "postal_city": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "City of the supplier's postal address.",
                            "maxLength": 262144
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "postal_country_id": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "ID of the country of the supplier's postal address.",
                            "maxLength": 262144
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "postal_postcode": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Postcode of the supplier's postal address.",
                            "maxLength": 262144
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "postal_state": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "State of the supplier's postal address.",
                            "maxLength": 262144
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "postal_suburb": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Suburb of the supplier's postal address.",
                            "maxLength": 262144
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "twitter": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Twitter handle of the supplier contact.",
                            "maxLength": 262144
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "website": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "The website address of the supplier",
                            "maxLength": 262144
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "default_markup": {
                "type": "number",
                "description": "This is used for record-keeping purposes and it does not have any effect on your products."
              },
              "description": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The Supplier description.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "name": {
                "type": "string",
                "description": "The Supplier name.",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "properties": {
              "data": {
                "description": "The id of the supplier created.",
                "format": "uuid",
                "type": "string"
              }
            },
            "type": "object"
          }
        }
      }
    },
    "DELETE /suppliers/{supplier_id}": {
      "method": "DELETE",
      "path": "/suppliers/{supplier_id}",
      "risk": "D",
      "description": "Delete a single supplier",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "supplier_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The supplier id."
              }
            },
            "required": [
              "supplier_id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Deletes a supplier. If there are products associated with the supplier, the products will be disassociated from the supplier.\n\n🔒 Requires: `suppliers:write` scope"
      },
      "wire": [
        {
          "name": "supplier_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "properties": {
              "data": {
                "properties": {
                  "id": {
                    "description": "The id of the supplier deleted.",
                    "format": "uuid",
                    "type": "string"
                  },
                  "job_id": {
                    "description": "The id of the asynchronous job to disassociate products from the supplier.",
                    "type": "string"
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          }
        }
      }
    },
    "GET /suppliers/{supplier_id}": {
      "method": "GET",
      "path": "/suppliers/{supplier_id}",
      "risk": "R",
      "description": "Get a single supplier",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "supplier_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The supplier id"
              }
            },
            "required": [
              "supplier_id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Returns a single supplier with a given ID.\n\n🔒 Requires: `suppliers:read` scope"
      },
      "wire": [
        {
          "name": "supplier_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/SupplierResponse"
          }
        }
      }
    },
    "PUT /suppliers/{supplier_id}": {
      "method": "PUT",
      "path": "/suppliers/{supplier_id}",
      "risk": "W",
      "description": "Update a supplier",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "supplier_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The supplier id"
              }
            },
            "required": [
              "supplier_id"
            ],
            "additionalProperties": false
          },
          "body": {
            "$ref": "#/$defs/CreateSupplierRequest"
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Updates a supplier.\n\n🔒 Requires: `suppliers:write` scope",
        "$defs": {
          "CreateSupplierRequest": {
            "type": "object",
            "required": [
              "name",
              "contact"
            ],
            "properties": {
              "contact": {
                "anyOf": [
                  {
                    "type": "object",
                    "description": "Contact information for the supplier.",
                    "properties": {
                      "company_name": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "The name of the supplier company. This field is defaulted to the supplier name if not provided.",
                            "maxLength": 262144
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "email": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "The contact email of the supplier.",
                            "maxLength": 262144
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "fax": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Fax number of the supplier.",
                            "maxLength": 262144
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "first_name": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "The firstname of the contact person.",
                            "maxLength": 262144
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "last_name": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "The last name of the contact person.",
                            "maxLength": 262144
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "mobile": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Mobile contact number of the supplier.",
                            "maxLength": 262144
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "phone": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Physical contact number of the supplier.",
                            "maxLength": 262144
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "physical_address1": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Line 1 address of the supplier's physical address.",
                            "maxLength": 262144
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "physical_address2": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Line 2 address of the supplier's physical address.",
                            "maxLength": 262144
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "physical_city": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "City of the supplier's physical address.",
                            "maxLength": 262144
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "physical_country_id": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "ID of the country of the supplier's physical address.",
                            "maxLength": 262144
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "physical_postcode": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Postcode of the supplier's physical address.",
                            "maxLength": 262144
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "physical_state": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "State of the supplier's physical address.",
                            "maxLength": 262144
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "physical_suburb": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Suburb of the supplier's physical address.",
                            "maxLength": 262144
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "postal_address1": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Line 1 address of the supplier's postal address.",
                            "maxLength": 262144
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "postal_address2": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Line 2 address of the supplier's postal address.",
                            "maxLength": 262144
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "postal_city": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "City of the supplier's postal address.",
                            "maxLength": 262144
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "postal_country_id": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "ID of the country of the supplier's postal address.",
                            "maxLength": 262144
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "postal_postcode": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Postcode of the supplier's postal address.",
                            "maxLength": 262144
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "postal_state": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "State of the supplier's postal address.",
                            "maxLength": 262144
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "postal_suburb": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Suburb of the supplier's postal address.",
                            "maxLength": 262144
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "twitter": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Twitter handle of the supplier contact.",
                            "maxLength": 262144
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "website": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "The website address of the supplier",
                            "maxLength": 262144
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "default_markup": {
                "type": "number",
                "description": "This is used for record-keeping purposes and it does not have any effect on your products."
              },
              "description": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The Supplier description.",
                    "maxLength": 262144
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "name": {
                "type": "string",
                "description": "The Supplier name.",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [
        {
          "name": "supplier_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "properties": {
              "id": {
                "description": "The id of the supplier updated.",
                "format": "uuid",
                "type": "string"
              }
            },
            "type": "object"
          }
        }
      }
    },
    "GET /tags": {
      "method": "GET",
      "path": "/tags",
      "risk": "R",
      "description": "List tags",
      "input_schema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "object",
            "properties": {
              "after": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The lower limit for the version numbers to be included in the response."
              },
              "before": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The upper limit for the version numbers to be included in the response."
              },
              "page_size": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 100,
                "description": "The maximum number of items to be returned in the response."
              },
              "deleted": {
                "type": "boolean",
                "description": "Indicates whether deleted items should be included in the response."
              }
            },
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [],
        "additionalProperties": false,
        "description": "Returns a collection of tags.\n\n🔒 Requires: `products:read` scope"
      },
      "wire": [
        {
          "name": "after",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "before",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "page_size",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "deleted",
          "in": "query",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {
          "page_size": 100
        },
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/TagCollection"
          }
        }
      }
    },
    "POST /tags": {
      "method": "POST",
      "path": "/tags",
      "risk": "W",
      "description": "Create tag",
      "input_schema": {
        "type": "object",
        "properties": {
          "body": {
            "$ref": "#/$defs/CreateTagRequest"
          }
        },
        "required": [],
        "additionalProperties": false,
        "description": "Creates a new tag.\n\n🔒 Requires: `products:write` scope",
        "$defs": {
          "CreateTagRequest": {
            "type": "object",
            "required": [
              "name"
            ],
            "properties": {
              "name": {
                "type": "string",
                "description": "The Tag name.",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "properties": {
              "data": {
                "description": "The id of the created tag.",
                "format": "uuid",
                "type": "string"
              }
            },
            "type": "object"
          }
        }
      }
    },
    "DELETE /tags/{tag_id}": {
      "method": "DELETE",
      "path": "/tags/{tag_id}",
      "risk": "D",
      "description": "Delete a single tag",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "tag_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The tag id."
              }
            },
            "required": [
              "tag_id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Deletes a tag. If there are products associated with the tag, the products will be disassociated from the tag.\n\n🔒 Requires: `products:write` scope"
      },
      "wire": [
        {
          "name": "tag_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "properties": {
              "data": {
                "properties": {
                  "id": {
                    "description": "The id of the tag deleted.",
                    "format": "uuid",
                    "type": "string"
                  },
                  "job_id": {
                    "description": "The id of the asynchronous job to disassociate products from the tag.",
                    "type": "string"
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          }
        }
      }
    },
    "GET /tags/{tag_id}": {
      "method": "GET",
      "path": "/tags/{tag_id}",
      "risk": "R",
      "description": "Get a single tag",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "tag_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The tag id."
              }
            },
            "required": [
              "tag_id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Returns a single tag with a given ID.\n\n🔒 Requires: `products:read` scope"
      },
      "wire": [
        {
          "name": "tag_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/TagResponse"
          }
        }
      }
    },
    "PUT /tags/{tag_id}": {
      "method": "PUT",
      "path": "/tags/{tag_id}",
      "risk": "W",
      "description": "Update a single tag",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "tag_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The tag id"
              }
            },
            "required": [
              "tag_id"
            ],
            "additionalProperties": false
          },
          "body": {
            "$ref": "#/$defs/CreateTagRequest"
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Updates a tag.\n\n🔒 Requires: `products:write` scope",
        "$defs": {
          "CreateTagRequest": {
            "type": "object",
            "required": [
              "name"
            ],
            "properties": {
              "name": {
                "type": "string",
                "description": "The Tag name.",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [
        {
          "name": "tag_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "properties": {
              "data": {
                "properties": {
                  "id": {
                    "description": "The id of the tag updated.",
                    "format": "uuid",
                    "type": "string"
                  },
                  "job_id": {
                    "description": "The id of the asynchronous job to republish products associated with the tag.",
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "job_id"
                ],
                "type": "object"
              }
            },
            "type": "object"
          }
        }
      }
    },
    "GET /taxes": {
      "method": "GET",
      "path": "/taxes",
      "risk": "R",
      "description": "List taxes",
      "input_schema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "object",
            "properties": {
              "after": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The lower limit for the version numbers to be included in the response."
              },
              "before": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The upper limit for the version numbers to be included in the response."
              },
              "page_size": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 100,
                "description": "The maximum number of items to be returned in the response."
              }
            },
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [],
        "additionalProperties": false,
        "description": "Returns a paginated list of taxes.\n\n🔒 Requires: `taxes:read` scope"
      },
      "wire": [
        {
          "name": "after",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "before",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "page_size",
          "in": "query",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {
          "page_size": 100
        },
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/TaxCollection"
          }
        }
      }
    },
    "POST /taxes": {
      "method": "POST",
      "path": "/taxes",
      "risk": "H",
      "description": "Create tax",
      "input_schema": {
        "type": "object",
        "properties": {
          "body": {
            "$ref": "#/$defs/CreateTaxRequest"
          }
        },
        "required": [],
        "additionalProperties": false,
        "description": "Creates a new tax.\n\n🔒 Requires: `taxes:write` scope",
        "$defs": {
          "CreateTaxRequest": {
            "type": "object",
            "required": [
              "name",
              "rate"
            ],
            "properties": {
              "clothing_footwear_exemption": {
                "type": "boolean",
                "description": "Whether the tax is exempt for clothing and footwear. This is applicable for tax exclusive retailers only."
              },
              "clothing_footwear_threshold_value": {
                "type": "number",
                "description": "The threshold value for clothing and footwear exemption. This is applicable for tax exclusive retailers only."
              },
              "name": {
                "type": "string",
                "description": "The Tax name.",
                "maxLength": 262144
              },
              "rate": {
                "type": "number",
                "description": "The Tax rate percentage."
              },
              "tax_over_threshold": {
                "type": "boolean",
                "description": "Whether the tax applies over the threshold. This is applicable for tax exclusive retailers only."
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "201": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/TaxResponse"
          }
        }
      }
    },
    "GET /taxes/{tax_id}": {
      "method": "GET",
      "path": "/taxes/{tax_id}",
      "risk": "R",
      "description": "Get a single tax",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "tax_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The tax id."
              }
            },
            "required": [
              "tax_id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Returns a single tax with a given ID.\n\n🔒 Requires: `taxes:read` scope"
      },
      "wire": [
        {
          "name": "tax_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/TaxResponse"
          }
        }
      }
    },
    "GET /user": {
      "method": "GET",
      "path": "/user",
      "risk": "R",
      "description": "Get current user",
      "input_schema": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false,
        "description": "Returns the current user.\n\n🔒 Requires: `users:read` scope"
      },
      "wire": [],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/UserResponse"
          }
        }
      }
    },
    "GET /users": {
      "method": "GET",
      "path": "/users",
      "risk": "R",
      "description": "List users",
      "input_schema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "object",
            "properties": {
              "after": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The lower limit for the version numbers to be included in the response."
              },
              "before": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                    "maxLength": 20
                  }
                ],
                "x-integer-format": "int64",
                "description": "The upper limit for the version numbers to be included in the response."
              },
              "page_size": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 100,
                "description": "The maximum number of items to be returned in the response."
              }
            },
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [],
        "additionalProperties": false,
        "description": "Returns a paginated list of users.\n\n🔒 Requires: `users:read` scope"
      },
      "wire": [
        {
          "name": "after",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "before",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "page_size",
          "in": "query",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {
          "page_size": 100
        },
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/UserCollection"
          }
        }
      }
    },
    "POST /users/bulk": {
      "method": "POST",
      "path": "/users/bulk",
      "risk": "R",
      "description": "Get multiple users by id",
      "input_schema": {
        "type": "object",
        "properties": {
          "body": {
            "$ref": "#/$defs/GetUsersByIdsRequest"
          }
        },
        "required": [
          "body"
        ],
        "additionalProperties": false,
        "description": "Get multiple users by id.\n\n🔒 Requires: `users:read` scope",
        "$defs": {
          "GetUsersByIdsRequest": {
            "type": "array",
            "description": "An array of user IDs to retrieve.",
            "items": {
              "type": "string",
              "maxLength": 262144,
              "format": "uuid"
            },
            "maxItems": 100
          }
        }
      },
      "wire": [],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/UserCollection"
          }
        }
      }
    },
    "DELETE /users/{user_id}": {
      "method": "DELETE",
      "path": "/users/{user_id}",
      "risk": "D",
      "description": "Delete a single user",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "user_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "A valid user id that is not the current user nor a primary admin"
              }
            },
            "required": [
              "user_id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Returns the user that has been deleted."
      },
      "wire": [
        {
          "name": "user_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/UserResponse"
          }
        }
      }
    },
    "GET /users/{user_id}": {
      "method": "GET",
      "path": "/users/{user_id}",
      "risk": "R",
      "description": "Get a single user",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "user_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "A valid user id"
              }
            },
            "required": [
              "user_id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Returns a single user with the requested ID.\n\n🔒 Requires: `users:read` scope"
      },
      "wire": [
        {
          "name": "user_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/UserResponse"
          }
        }
      }
    },
    "GET /users/{user_id}/sale_totals": {
      "method": "GET",
      "path": "/users/{user_id}/sale_totals",
      "risk": "R",
      "description": "Get the sales totals for a single user",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "user_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "A valid user id"
              }
            },
            "required": [
              "user_id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Returns a single user's sales totals."
      },
      "wire": [
        {
          "name": "user_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/UserSaleTotalResponse"
          }
        }
      }
    },
    "DELETE /users/{user_id}/sessions": {
      "method": "DELETE",
      "path": "/users/{user_id}/sessions",
      "risk": "D",
      "description": "Delete user sessions",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "user_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "A valid user id"
              }
            },
            "required": [
              "user_id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Deletes all sessions and personal tokens of the given user.\n\n🔒 Requires: `users:write` scope"
      },
      "wire": [
        {
          "name": "user_id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": null,
          "schema": null
        }
      }
    },
    "GET /variant_attributes": {
      "method": "GET",
      "path": "/variant_attributes",
      "risk": "R",
      "description": "Retrieve all Variant Attributes",
      "input_schema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "object",
            "properties": {
              "deleted": {
                "type": "boolean",
                "description": "Indicates whether deleted items should be included in the response."
              }
            },
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [],
        "additionalProperties": false,
        "description": "Retrieve all Variant Attributes.\n\n🔒 Requires: `products:read` scope"
      },
      "wire": [
        {
          "name": "deleted",
          "in": "query",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/VariantAttributesListResponse"
          }
        }
      }
    },
    "POST /variant_attributes": {
      "method": "POST",
      "path": "/variant_attributes",
      "risk": "W",
      "description": "Create a Variant Attribute",
      "input_schema": {
        "type": "object",
        "properties": {
          "body": {
            "$ref": "#/$defs/VariantAttributeCreateUpdateBody"
          }
        },
        "required": [
          "body"
        ],
        "additionalProperties": false,
        "description": "Variant Attributes are required when creating variants. They are used to specify what properties make a particular SKU different to another. e.g. You may\nhave an attribute 'Size' that lets you differentiate variants based on their size.\n\n🔒 Requires: `products:write` scope",
        "$defs": {
          "VariantAttributeCreateUpdateBody": {
            "type": "object",
            "required": [
              "name"
            ],
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "201": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/VariantAttributeCreateResponse"
          }
        }
      }
    },
    "DELETE /variant_attributes/{attribute-id}": {
      "method": "DELETE",
      "path": "/variant_attributes/{attribute-id}",
      "risk": "D",
      "description": "Delete a variant attribute",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "attribute-id": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "The object identifier of the Variant Attribute to delete."
              }
            },
            "required": [
              "attribute-id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Note you can't delete a variant attribute that is currently being used by a family.\n\n🔒 Requires: `products:write` scope"
      },
      "wire": [
        {
          "name": "attribute-id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/VariantAttributeDeleteResponse"
          }
        }
      }
    },
    "GET /variant_attributes/{attribute-id}": {
      "method": "GET",
      "path": "/variant_attributes/{attribute-id}",
      "risk": "R",
      "description": "Retrieve a single Variant Attribute",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "attribute-id": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "The object identifier of the Variant Attribute to retrieve."
              }
            },
            "required": [
              "attribute-id"
            ],
            "additionalProperties": false
          },
          "query": {
            "type": "object",
            "properties": {
              "deleted": {
                "type": "boolean",
                "description": "Indicates whether deleted items should be included in the response."
              }
            },
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Retrieves a single Variant Attribute with the given id.\n\n🔒 Requires: `products:read` scope"
      },
      "wire": [
        {
          "name": "attribute-id",
          "in": "path",
          "style": "form",
          "explode": true
        },
        {
          "name": "deleted",
          "in": "query",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/VariantAttributeResponse"
          }
        }
      }
    },
    "PUT /variant_attributes/{attribute-id}": {
      "method": "PUT",
      "path": "/variant_attributes/{attribute-id}",
      "risk": "W",
      "description": "Update a Variant Attribute's",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "attribute-id": {
                "type": "string",
                "maxLength": 262144,
                "format": "uuid",
                "description": "The object identifier of the Variant Attribute to update."
              }
            },
            "required": [
              "attribute-id"
            ],
            "additionalProperties": false
          },
          "body": {
            "$ref": "#/$defs/VariantAttributeCreateUpdateBody"
          }
        },
        "required": [
          "path",
          "body"
        ],
        "additionalProperties": false,
        "description": "Updates a Variant Attribute's name.\n\n🔒 Requires: `products:write` scope",
        "$defs": {
          "VariantAttributeCreateUpdateBody": {
            "type": "object",
            "required": [
              "name"
            ],
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [
        {
          "name": "attribute-id",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/VariantAttributeUpdateResponse"
          }
        }
      }
    },
    "GET /webhooks": {
      "method": "GET",
      "path": "/webhooks",
      "risk": "R",
      "description": "List webhooks",
      "input_schema": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false,
        "description": "List all webhooks.\n\n🔒 Requires: `webhooks` scope"
      },
      "wire": [],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "properties": {
              "data": {
                "items": {
                  "$ref": "#/components/schemas/Webhook"
                },
                "type": "array"
              }
            },
            "type": "object"
          }
        }
      }
    },
    "POST /webhooks": {
      "method": "POST",
      "path": "/webhooks",
      "risk": "H",
      "description": "Create Webhook",
      "input_schema": {
        "type": "object",
        "properties": {
          "body": {
            "$ref": "#/$defs/WebhookRequest"
          }
        },
        "required": [
          "body"
        ],
        "additionalProperties": false,
        "description": "Create a webhook.\n\n🔒 Requires: `webhooks` scope",
        "$defs": {
          "WebhookRequest": {
            "type": "object",
            "required": [
              "active",
              "type",
              "url"
            ],
            "description": "Webhook create/update request data.",
            "properties": {
              "active": {
                "type": "boolean",
                "description": "Whether this webhook is enabled or not"
              },
              "type": {
                "$ref": "#/$defs/WebhookType"
              },
              "url": {
                "type": "string",
                "minLength": 3,
                "description": "The URL to send webhooks to",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          },
          "WebhookType": {
            "type": "string",
            "enum": [
              "sale.update",
              "product.update",
              "customer.update",
              "inventory.update",
              "register_closure.create",
              "consignment.send",
              "consignment.receive"
            ],
            "description": "The webhook type. These can be one of:\n- sale.update\n- product.update\n- customer.update\n- inventory.update\n- register_closure.create\n- consignment.send\n- consignment.receive\n",
            "maxLength": 262144
          }
        }
      },
      "wire": [],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "201": {
          "media": "application/json",
          "schema": {
            "properties": {
              "data": {
                "$ref": "#/components/schemas/Webhook"
              }
            },
            "type": "object"
          }
        }
      }
    },
    "DELETE /webhooks/{webhookId}": {
      "method": "DELETE",
      "path": "/webhooks/{webhookId}",
      "risk": "D",
      "description": "Delete Webhook",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "webhookId": {
                "type": "string",
                "maxLength": 262144
              }
            },
            "required": [
              "webhookId"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Delete a webhook\n\n🔒 Requires: `webhooks` scope"
      },
      "wire": [
        {
          "name": "webhookId",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": null,
          "schema": null
        }
      }
    },
    "GET /webhooks/{webhookId}": {
      "method": "GET",
      "path": "/webhooks/{webhookId}",
      "risk": "R",
      "description": "Get Webhook",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "webhookId": {
                "type": "string",
                "maxLength": 262144
              }
            },
            "required": [
              "webhookId"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Fetch a single webhook by its ID.\n\n🔒 Requires: `webhooks` scope"
      },
      "wire": [
        {
          "name": "webhookId",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "properties": {
              "data": {
                "$ref": "#/components/schemas/Webhook"
              }
            },
            "type": "object"
          }
        }
      }
    },
    "PUT /webhooks/{webhookId}": {
      "method": "PUT",
      "path": "/webhooks/{webhookId}",
      "risk": "H",
      "description": "Update Webhook",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "webhookId": {
                "type": "string",
                "maxLength": 262144
              }
            },
            "required": [
              "webhookId"
            ],
            "additionalProperties": false
          },
          "body": {
            "$ref": "#/$defs/WebhookRequest"
          }
        },
        "required": [
          "path",
          "body"
        ],
        "additionalProperties": false,
        "description": "Update an existing webhook\n\n🔒 Requires: `webhooks` scope",
        "$defs": {
          "WebhookRequest": {
            "type": "object",
            "required": [
              "active",
              "type",
              "url"
            ],
            "description": "Webhook create/update request data.",
            "properties": {
              "active": {
                "type": "boolean",
                "description": "Whether this webhook is enabled or not"
              },
              "type": {
                "$ref": "#/$defs/WebhookType"
              },
              "url": {
                "type": "string",
                "minLength": 3,
                "description": "The URL to send webhooks to",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          },
          "WebhookType": {
            "type": "string",
            "enum": [
              "sale.update",
              "product.update",
              "customer.update",
              "inventory.update",
              "register_closure.create",
              "consignment.send",
              "consignment.receive"
            ],
            "description": "The webhook type. These can be one of:\n- sale.update\n- product.update\n- customer.update\n- inventory.update\n- register_closure.create\n- consignment.send\n- consignment.receive\n",
            "maxLength": 262144
          }
        }
      },
      "wire": [
        {
          "name": "webhookId",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "properties": {
              "data": {
                "$ref": "#/components/schemas/Webhook"
              }
            },
            "type": "object"
          }
        }
      }
    },
    "GET /workflows/custom_fields": {
      "method": "GET",
      "path": "/workflows/custom_fields",
      "risk": "R",
      "description": "List custom field definitions",
      "input_schema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "object",
            "properties": {
              "entity": {
                "type": "string",
                "enum": [
                  "sale",
                  "line_item",
                  "customer",
                  "product"
                ],
                "maxLength": 262144,
                "description": "The entity type."
              }
            },
            "required": [
              "entity"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "query"
        ],
        "additionalProperties": false,
        "description": "Returns the custom field definitions for a given entity type.\n\n🔒 Requires: `custom_fields:read` scope"
      },
      "wire": [
        {
          "name": "entity",
          "in": "query",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/CustomFieldDefinitionCollection"
          }
        }
      }
    },
    "POST /workflows/custom_fields": {
      "method": "POST",
      "path": "/workflows/custom_fields",
      "risk": "W",
      "description": "Define a new custom field",
      "input_schema": {
        "type": "object",
        "properties": {
          "body": {
            "$ref": "#/$defs/CustomFieldDefinitionParams"
          }
        },
        "required": [
          "body"
        ],
        "additionalProperties": false,
        "description": "Create a new custom field definition for a given entity type.\n\n🔒 Requires: `custom_fields:write` scope",
        "$defs": {
          "CustomFieldDefinitionParams": {
            "type": "object",
            "required": [
              "entity",
              "name",
              "title",
              "type"
            ],
            "description": "The parameters that can be passed to the create custom field definition API.",
            "properties": {
              "editable_in_ui": {
                "type": "boolean",
                "description": "Should this custom field be editable in the UI.",
                "default": false
              },
              "entity": {
                "type": "string",
                "enum": [
                  "sale",
                  "line_item",
                  "customer",
                  "product"
                ],
                "description": "The type of entity.",
                "maxLength": 262144
              },
              "name": {
                "type": "string",
                "maxLength": 262144
              },
              "print_on_receipt": {
                "type": "boolean",
                "description": "Should this custom field be printed on receipts.",
                "default": false
              },
              "title": {
                "type": "string",
                "maxLength": 262144
              },
              "type": {
                "type": "string",
                "enum": [
                  "string",
                  "integer",
                  "boolean",
                  "date",
                  "product_id",
                  "qrcode",
                  "string_array"
                ],
                "description": "The type of the value to be stored using this custom field.",
                "maxLength": 262144
              },
              "visible_in_ui": {
                "type": "boolean",
                "description": "Should this custom field be visible in the UI.",
                "default": false
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "properties": {
              "data": {
                "$ref": "#/components/schemas/CustomFieldDefinition"
              }
            },
            "type": "object"
          }
        }
      }
    },
    "GET /workflows/custom_fields/values": {
      "method": "GET",
      "path": "/workflows/custom_fields/values",
      "risk": "R",
      "description": "List custom field values",
      "input_schema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "object",
            "properties": {
              "entity": {
                "type": "string",
                "enum": [
                  "sale",
                  "line_item",
                  "customer",
                  "product"
                ],
                "maxLength": 262144,
                "description": "The entity type."
              },
              "entity_id": {
                "type": "string",
                "maxLength": 262144,
                "description": "The entity ID."
              }
            },
            "required": [
              "entity",
              "entity_id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "query"
        ],
        "additionalProperties": false,
        "description": "Returns the custom field values for a given entity.\n\n🔒 Requires: `custom_fields:read` scope"
      },
      "wire": [
        {
          "name": "entity",
          "in": "query",
          "style": "form",
          "explode": true
        },
        {
          "name": "entity_id",
          "in": "query",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/CustomFieldValueCollection"
          }
        }
      }
    },
    "POST /workflows/custom_fields/values": {
      "method": "POST",
      "path": "/workflows/custom_fields/values",
      "risk": "W",
      "description": "Set new custom field values",
      "input_schema": {
        "type": "object",
        "properties": {
          "body": {
            "$ref": "#/$defs/CustomFieldValuesParams"
          }
        },
        "required": [
          "body"
        ],
        "additionalProperties": false,
        "description": "Set new custom field values on a given entity.\n\n🔒 Requires: `custom_fields:write` scope",
        "$defs": {
          "CustomFieldValuesParams": {
            "type": "object",
            "required": [
              "entity",
              "entity_id",
              "values"
            ],
            "description": "The parameters that can be passed to the set custom field values API.",
            "properties": {
              "entity": {
                "type": "string",
                "enum": [
                  "sale",
                  "line_item",
                  "customer",
                  "product"
                ],
                "description": "The entity type.",
                "maxLength": 262144
              },
              "entity_id": {
                "type": "string",
                "description": "The ID of entity.",
                "maxLength": 262144,
                "format": "uuid"
              },
              "values": {
                "type": "array",
                "description": "The values.",
                "items": {
                  "type": "object",
                  "required": [
                    "name",
                    "string_value"
                  ],
                  "properties": {
                    "boolean_value": {
                      "type": "boolean"
                    },
                    "integer_value": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "string",
                          "pattern": "^-?(0|[1-9][0-9]{0,18})$",
                          "maxLength": 20
                        }
                      ],
                      "x-integer-format": "int64"
                    },
                    "name": {
                      "type": "string",
                      "description": "The name of the custom field to set a value for. Must match an existing custom field name for the entity type.",
                      "maxLength": 262144
                    },
                    "string_value": {
                      "type": "string",
                      "maxLength": 262144
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 25
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "$ref": "#/components/schemas/CustomFieldValueCollection"
          }
        }
      }
    },
    "DELETE /workflows/custom_fields/{customFieldId}": {
      "method": "DELETE",
      "path": "/workflows/custom_fields/{customFieldId}",
      "risk": "D",
      "description": "Delete a custom field",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "customFieldId": {
                "type": "string",
                "maxLength": 262144,
                "description": "The ID of the custom field that you want deleted."
              }
            },
            "required": [
              "customFieldId"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Delete a custom field and all the values stored on that field.\n\n🔒 Requires: `custom_fields:write` scope"
      },
      "wire": [
        {
          "name": "customFieldId",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "204": {
          "media": null,
          "schema": null
        }
      }
    },
    "PUT /workflows/custom_fields/{customFieldId}": {
      "method": "PUT",
      "path": "/workflows/custom_fields/{customFieldId}",
      "risk": "W",
      "description": "Update a custom field",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "customFieldId": {
                "type": "string",
                "maxLength": 262144,
                "description": "The ID of the custom field that you want to update."
              }
            },
            "required": [
              "customFieldId"
            ],
            "additionalProperties": false
          },
          "body": {
            "$ref": "#/$defs/UpdateCustomFieldParams"
          }
        },
        "required": [
          "path",
          "body"
        ],
        "additionalProperties": false,
        "description": "Updates properties on a custom field.\n\n🔒 Requires: `custom_fields:write` scope",
        "$defs": {
          "UpdateCustomFieldParams": {
            "type": "object",
            "properties": {
              "editable_in_ui": {
                "type": "boolean",
                "description": "Should this custom field be editable in the UI."
              },
              "print_on_receipt": {
                "type": "boolean",
                "description": "Should this custom field be printed on receipts."
              },
              "title": {
                "type": "string",
                "maxLength": 262144
              },
              "visible_in_ui": {
                "type": "boolean",
                "description": "Should this custom field be visible in the UI."
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [
        {
          "name": "customFieldId",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "properties": {
              "data": {
                "$ref": "#/components/schemas/CustomFieldDefinition"
              }
            },
            "type": "object"
          }
        }
      }
    },
    "GET /workflows/remote_rules": {
      "method": "GET",
      "path": "/workflows/remote_rules",
      "risk": "R",
      "description": "List remote rules",
      "input_schema": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false,
        "description": "Returns the remote business rules registered on the retailer.\n\n🔒 Requires: `remote_rules:read` scope"
      },
      "wire": [],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "properties": {
              "data": {
                "items": {
                  "$ref": "#/components/schemas/RemoteBusinessRule"
                },
                "type": "array"
              }
            },
            "required": [
              "data"
            ],
            "type": "object"
          }
        }
      }
    },
    "POST /workflows/remote_rules": {
      "method": "POST",
      "path": "/workflows/remote_rules",
      "risk": "H",
      "description": "Create remote rule",
      "input_schema": {
        "type": "object",
        "properties": {
          "body": {
            "$ref": "#/$defs/RemoteBusinessRuleParams"
          }
        },
        "required": [
          "body"
        ],
        "additionalProperties": false,
        "description": "Register a new remote rule for the retailer.\n\n🔒 Requires: `remote_rules:write` scope",
        "$defs": {
          "RemoteBusinessRuleParams": {
            "type": "object",
            "required": [
              "url"
            ],
            "description": "The parameters that can be passed to the create remote rule API.",
            "properties": {
              "url": {
                "type": "string",
                "maxLength": 262144,
                "format": "uri"
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "properties": {
              "data": {
                "$ref": "#/components/schemas/RemoteBusinessRule"
              }
            },
            "type": "object"
          }
        }
      }
    },
    "DELETE /workflows/remote_rules/{remoteRuleId}": {
      "method": "DELETE",
      "path": "/workflows/remote_rules/{remoteRuleId}",
      "risk": "D",
      "description": "Delete a remote rule",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "remoteRuleId": {
                "type": "string",
                "maxLength": 262144,
                "description": "The ID of the remote business rules that you want deleted."
              }
            },
            "required": [
              "remoteRuleId"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Delete a remote business rule.\n\n🔒 Requires: `remote_rules:write` scope"
      },
      "wire": [
        {
          "name": "remoteRuleId",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "204": {
          "media": null,
          "schema": null
        }
      }
    },
    "GET /workflows/rules": {
      "method": "GET",
      "path": "/workflows/rules",
      "risk": "R",
      "description": "List rules",
      "input_schema": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false,
        "description": "Returns the business rules for the retailer.\n\n🔒 Requires: `business_rules:read` scope"
      },
      "wire": [],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "properties": {
              "data": {
                "items": {
                  "$ref": "#/components/schemas/BusinessRule"
                },
                "type": "array"
              }
            },
            "type": "object"
          }
        }
      }
    },
    "POST /workflows/rules": {
      "method": "POST",
      "path": "/workflows/rules",
      "risk": "H",
      "description": "Create rule",
      "input_schema": {
        "type": "object",
        "properties": {
          "body": {
            "$ref": "#/$defs/BusinessRuleParams"
          }
        },
        "required": [
          "body"
        ],
        "additionalProperties": false,
        "description": "Create a rule for the retailer.\n\n🔒 Requires: `business_rules:write` scope",
        "$defs": {
          "BusinessRuleParams": {
            "type": "object",
            "required": [
              "event_type",
              "remote_rule_id"
            ],
            "description": "The parameters that can be passed to the create rule API.",
            "properties": {
              "event_type": {
                "type": "string",
                "enum": [
                  "sale.ready_for_payment",
                  "sale.line_items.added",
                  "sale.customer.changed",
                  "sale.created",
                  "sale.updated"
                ],
                "maxLength": 262144
              },
              "remote_rule_id": {
                "type": "string",
                "maxLength": 262144
              }
            },
            "additionalProperties": false
          }
        }
      },
      "wire": [],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "200": {
          "media": "application/json",
          "schema": {
            "properties": {
              "data": {
                "$ref": "#/components/schemas/BusinessRule"
              }
            },
            "type": "object"
          }
        }
      }
    },
    "DELETE /workflows/rules/{ruleId}": {
      "method": "DELETE",
      "path": "/workflows/rules/{ruleId}",
      "risk": "D",
      "description": "Delete a business rule",
      "input_schema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "object",
            "properties": {
              "ruleId": {
                "type": "string",
                "maxLength": 262144,
                "description": "The ID of the business rules that you want deleted."
              }
            },
            "required": [
              "ruleId"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "description": "Delete a business rule.\n\n🔒 Requires: `business_rules:write` scope"
      },
      "wire": [
        {
          "name": "ruleId",
          "in": "path",
          "style": "form",
          "explode": true
        }
      ],
      "defaults": {
        "query": {},
        "body": {}
      },
      "responses": {
        "204": {
          "media": null,
          "schema": null
        }
      }
    }
  },
  "response_schemas": {
    "Action": {
      "description": "Action triggered by a promotion.",
      "properties": {
        "exclude": {
          "items": {
            "$ref": "#/components/schemas/Filter"
          },
          "type": "array"
        },
        "include": {
          "items": {
            "$ref": "#/components/schemas/Filter"
          },
          "type": "array"
        },
        "max_quantity": {
          "description": "Maximum quantity, if required by the action type.",
          "type": "integer"
        },
        "min_quantity": {
          "description": "Minimum quantity, if required by the action type.",
          "type": "integer"
        },
        "quantity": {
          "description": "Quantity, if required by the action type.",
          "type": "integer"
        },
        "type": {
          "description": "The type of action.",
          "enum": [
            "basic_percent_discount",
            "basic_fixed_discount",
            "fixed_discount",
            "percent_discount",
            "loyalty",
            "fixed_price_discount",
            "fixed_pool_discount",
            "percent_pool_discount"
          ],
          "type": "string"
        },
        "value": {
          "description": "Value associated with the action.",
          "format": "double",
          "type": "number"
        }
      },
      "required": [
        "type",
        "value"
      ],
      "title": "Action",
      "type": "object"
    },
    "Adjustment": {
      "description": "An adjustment contains a modification to the sale price. For example, it can be a service fee (fee when the customer pays by credit card) or a discount.\nThe types defined here are the one used so far, but we reserve the right to add others.",
      "properties": {
        "adjustment_type": {
          "description": "Type of the adjustment.",
          "enum": [
            "NON_CASH_FEE",
            "DISCOUNT",
            "TIP",
            "SURCHARGE",
            "ECOM_CUSTOM_CHARGE"
          ],
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "tax_components": {
          "description": "Collection of aggregated tax components associated with the adjustment.",
          "items": {
            "$ref": "#/components/schemas/LineItemTaxComponent"
          },
          "type": "array"
        },
        "value": {
          "description": "Aggregated total value of the adjustment.",
          "type": "number"
        }
      },
      "required": [
        "name",
        "type",
        "value"
      ],
      "title": "Adjustment",
      "type": "object"
    },
    "AdjustmentAmount": {
      "properties": {
        "type": {
          "description": "The value type of the adjustment.",
          "enum": [
            "FIXED",
            "PERCENT"
          ],
          "type": "string"
        },
        "value": {
          "description": "The value of the adjustment.",
          "type": "string"
        }
      },
      "required": [
        "type",
        "value"
      ],
      "title": "Adjustment Amount",
      "type": "object"
    },
    "AdjustmentSource": {
      "properties": {
        "id": {
          "description": "The ID of the source of the adjustment.",
          "format": "uuid",
          "type": "string"
        }
      },
      "title": "Adjustment Source",
      "type": "object"
    },
    "AdjustmentTarget": {
      "properties": {
        "ids": {
          "description": "An array of target IDs.",
          "items": {
            "format": "uuid",
            "type": "string"
          },
          "type": "array"
        },
        "method": {
          "description": "The method of the adjustment.",
          "enum": [
            "PROPORTIONED",
            "EACH",
            "SINGLE"
          ],
          "type": "string"
        }
      },
      "required": [
        "method"
      ],
      "title": "Adjustment Target",
      "type": "object"
    },
    "Attribute": {
      "properties": {
        "key": {
          "description": "The key for the attribute.",
          "type": "string"
        },
        "value": {
          "description": "The value for the attribute.",
          "type": "string"
        }
      },
      "required": [
        "key",
        "value"
      ],
      "title": "Attribute",
      "type": "object"
    },
    "AuditLogEvent": {
      "description": "The structure of the event and security event model",
      "properties": {
        "action": {
          "description": "The type of the action performed on the object.",
          "enum": [
            "insert",
            "update",
            "delete"
          ],
          "type": "string"
        },
        "created_at": {
          "description": "The timestamp indicating when the event was persisted to the audit log.",
          "format": "date-time",
          "type": "string"
        },
        "data": {
          "description": "An object in JSON format representing the new values of the attributes that were changed by the event.",
          "oneOf": [
            {
              "type": "object"
            },
            {
              "items": {
                "type": "object"
              },
              "type": "array"
            }
          ]
        },
        "entity_id": {
          "description": "The id of the object involved in the event",
          "maxLength": 36,
          "type": "string"
        },
        "id": {
          "description": "Autogenerated object identifier.",
          "type": "string"
        },
        "ip_address": {
          "description": "The ip address from which the request causing the event originated.",
          "format": "ipv4",
          "maxLength": 64,
          "type": "string"
        },
        "occurred_at": {
          "description": "The timestamp indicating when the action causing the event occurred.",
          "format": "date-time",
          "type": "string"
        },
        "old_data": {
          "description": "An object in JSON format representing the old values of the attributes that were changed by the event.",
          "type": "object"
        },
        "type": {
          "description": "The type of the object involved in the event. This may be something like \"security\" for security events or the name of the table the action was performed on, like \"vend_customer\".",
          "maxLength": 64,
          "type": "string"
        },
        "user_agent": {
          "description": "User agent of the http client which submitted the request.",
          "maxLength": 500,
          "type": "string"
        },
        "user_id": {
          "description": "The `id` of the user executing the action registered by this event.",
          "maxLength": 36,
          "type": "string"
        }
      },
      "title": "Audit Log Event",
      "type": "object",
      "x-examples": {
        "example-1": {
          "action": "insert",
          "created_at": "2019-08-24T14:15:22Z",
          "data": {},
          "entity_id": "string",
          "id": "string",
          "ip_address": "192.168.0.1",
          "occurred_at": "2019-08-24T14:15:22Z",
          "old_data": {},
          "type": "string",
          "user_agent": "string",
          "user_id": "string"
        }
      }
    },
    "BaseSupplier": {
      "properties": {
        "contact": {
          "description": "Contact information for the supplier.",
          "nullable": true,
          "properties": {
            "company_name": {
              "description": "The name of the supplier company. This field is defaulted to the supplier name if not provided.",
              "nullable": true,
              "type": "string"
            },
            "email": {
              "description": "The contact email of the supplier.",
              "nullable": true,
              "type": "string"
            },
            "fax": {
              "description": "Fax number of the supplier.",
              "nullable": true,
              "type": "string"
            },
            "first_name": {
              "description": "The firstname of the contact person.",
              "nullable": true,
              "type": "string"
            },
            "last_name": {
              "description": "The last name of the contact person.",
              "nullable": true,
              "type": "string"
            },
            "mobile": {
              "description": "Mobile contact number of the supplier.",
              "nullable": true,
              "type": "string"
            },
            "phone": {
              "description": "Physical contact number of the supplier.",
              "nullable": true,
              "type": "string"
            },
            "physical_address1": {
              "description": "Line 1 address of the supplier's physical address.",
              "nullable": true,
              "type": "string"
            },
            "physical_address2": {
              "description": "Line 2 address of the supplier's physical address.",
              "nullable": true,
              "type": "string"
            },
            "physical_city": {
              "description": "City of the supplier's physical address.",
              "nullable": true,
              "type": "string"
            },
            "physical_country_id": {
              "description": "ID of the country of the supplier's physical address.",
              "nullable": true,
              "type": "string"
            },
            "physical_postcode": {
              "description": "Postcode of the supplier's physical address.",
              "nullable": true,
              "type": "string"
            },
            "physical_state": {
              "description": "State of the supplier's physical address.",
              "nullable": true,
              "type": "string"
            },
            "physical_suburb": {
              "description": "Suburb of the supplier's physical address.",
              "nullable": true,
              "type": "string"
            },
            "postal_address1": {
              "description": "Line 1 address of the supplier's postal address.",
              "nullable": true,
              "type": "string"
            },
            "postal_address2": {
              "description": "Line 2 address of the supplier's postal address.",
              "nullable": true,
              "type": "string"
            },
            "postal_city": {
              "description": "City of the supplier's postal address.",
              "nullable": true,
              "type": "string"
            },
            "postal_country_id": {
              "description": "ID of the country of the supplier's postal address.",
              "nullable": true,
              "type": "string"
            },
            "postal_postcode": {
              "description": "Postcode of the supplier's postal address.",
              "nullable": true,
              "type": "string"
            },
            "postal_state": {
              "description": "State of the supplier's postal address.",
              "nullable": true,
              "type": "string"
            },
            "postal_suburb": {
              "description": "Suburb of the supplier's postal address.",
              "nullable": true,
              "type": "string"
            },
            "twitter": {
              "description": "Twitter handle of the supplier contact.",
              "nullable": true,
              "type": "string"
            },
            "website": {
              "description": "The website address of the supplier",
              "nullable": true,
              "type": "string"
            }
          },
          "type": "object"
        },
        "default_markup": {
          "description": "This is used for record-keeping purposes and it does not have any effect on your products.",
          "type": "number"
        },
        "description": {
          "description": "The Supplier description.",
          "nullable": true,
          "type": "string"
        },
        "name": {
          "description": "The Supplier name.",
          "type": "string"
        }
      },
      "required": [
        "name",
        "contact"
      ],
      "title": "BaseSupplier",
      "type": "object"
    },
    "BasketProductResponse": {
      "description": "Per-line-item product pricing result returned by the basket endpoint.",
      "properties": {
        "adjustments": {
          "description": "List of price adjustments applied to this product.",
          "items": {
            "properties": {
              "amount": {
                "description": "Monetary amount of the adjustment (decimal string).",
                "type": "string"
              },
              "description": {
                "description": "Human-readable description of the adjustment.",
                "type": "string"
              },
              "id": {
                "description": "The adjustment ID.",
                "type": "string"
              },
              "label": {
                "description": "Short label for the adjustment.",
                "type": "string"
              },
              "type": {
                "description": "The adjustment type (e.g. promotion, discount).",
                "type": "string"
              },
              "value": {
                "description": "Adjustment rate or value (decimal string).",
                "type": "string"
              }
            },
            "required": [
              "type",
              "id",
              "label",
              "description",
              "value",
              "amount"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "final_price": {
          "description": "Final unit price after all adjustments (decimal string).",
          "type": "string"
        },
        "final_tax": {
          "description": "Final unit tax after all adjustments (decimal string).",
          "type": "string"
        },
        "id": {
          "description": "The product ID.",
          "type": "string"
        },
        "loyalty_value": {
          "description": "Loyalty value earned for this product (decimal string).",
          "type": "string"
        },
        "original_price": {
          "description": "Original unit price before adjustments (decimal string).",
          "type": "string"
        },
        "original_tax": {
          "description": "Original unit tax before adjustments (decimal string).",
          "type": "string"
        }
      },
      "required": [
        "id",
        "original_price",
        "original_tax",
        "final_price",
        "final_tax",
        "adjustments",
        "loyalty_value"
      ],
      "title": "BasketProductResponse",
      "type": "object"
    },
    "BasketRequest": {
      "properties": {
        "conditions": {
          "description": "Contextual conditions affecting pricing and promotions.\n",
          "items": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "items": {
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "object"
              }
            ],
            "properties": {
              "type": {
                "description": "Condition type.",
                "enum": [
                  "channel",
                  "customer_group",
                  "customer_id",
                  "promo_code",
                  "outlet_id",
                  "tax_removal",
                  "sale_discount",
                  "price_overrides",
                  "line_item_discount_percentages",
                  "credit_redemption"
                ],
                "type": "string"
              },
              "value": {
                "description": "Value shape depends on `type`: - `channel`: string (channel ID) - `customer_group`: string (customer group ID) - `customer_id`: string (customer ID) - `promo_code`: string (promo code) - `outlet_id`: string (outlet ID) - `tax_removal`: array of TaxRemoval objects - `sale_discount`: SaleDiscountCondition object - `price_overrides`: array of PriceOverride objects - `line_item_discount_percentages`: array of LineItemDiscountPercentage objects - `credit_redemption`: array of CreditRedemption objects\n"
              }
            },
            "required": [
              "type",
              "value"
            ],
            "type": "object"
          },
          "minItems": 1,
          "type": "array"
        },
        "config": {
          "properties": {
            "advanced_promotion": {
              "default": false,
              "description": "Enable advanced promotion engine.",
              "type": "boolean"
            },
            "disable_promotions": {
              "default": false,
              "description": "Disable all promotion calculations.",
              "type": "boolean"
            },
            "resolve_tax": {
              "default": false,
              "description": "Resolve tax rates from the outlet configuration instead of requiring tax_rate on each product. Requires an outlet_id condition.\n",
              "type": "boolean"
            }
          },
          "type": "object"
        },
        "items": {
          "description": "Line items in the basket. At least one required.",
          "items": {
            "properties": {
              "id": {
                "description": "Unique line item ID within this basket.",
                "type": "string"
              },
              "product": {
                "properties": {
                  "id": {
                    "description": "Product ID.",
                    "type": "string"
                  },
                  "quantity": {
                    "description": "Quantity (decimal string). Must be positive.\n",
                    "example": "2.000",
                    "type": "string"
                  },
                  "tax_rate": {
                    "description": "Tax rate as a decimal (e.g. \"0.15\" for 15%). Required unless config.resolve_tax=true. Must be positive.\n",
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "quantity"
                ],
                "type": "object"
              }
            },
            "required": [
              "id",
              "product"
            ],
            "type": "object"
          },
          "minItems": 1,
          "type": "array"
        },
        "request_id": {
          "description": "Optional client-supplied idempotency ID. Echoed back in the response.",
          "type": "string"
        },
        "sale_channel": {
          "description": "Sale channel. `Register` = in-store, `Ecommerce` = online. Null if not applicable.\n",
          "enum": [
            "Register",
            "Ecommerce"
          ],
          "nullable": true,
          "type": "string"
        }
      },
      "required": [
        "items",
        "conditions"
      ],
      "type": "object"
    },
    "BasketResponse": {
      "properties": {
        "credit_redemption": {
          "nullable": true,
          "properties": {
            "loyalty_points_spent": {
              "description": "Loyalty points redeemed (decimal string).",
              "type": "string"
            },
            "store_credit_spent": {
              "description": "Store credit redeemed (decimal string).",
              "type": "string"
            },
            "warnings": {
              "items": {
                "additionalProperties": true,
                "description": "Non-fatal warning about an item or discount calculation.",
                "type": "object"
              },
              "type": "array"
            }
          },
          "type": "object"
        },
        "items": {
          "items": {
            "properties": {
              "id": {
                "type": "string"
              },
              "product": {
                "$ref": "#/components/schemas/BasketProductResponse"
              },
              "quantity": {
                "description": "Decimal string.",
                "type": "string"
              },
              "tax_components": {
                "items": {
                  "properties": {
                    "rate_id": {
                      "type": "string"
                    },
                    "total": {
                      "description": "Tax amount for this component (decimal string).",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "type": "array"
              },
              "tax_id": {
                "type": "string"
              },
              "total_discount": {
                "description": "Total discount applied (decimal string).",
                "type": "string"
              },
              "total_price": {
                "description": "Total price after adjustments (decimal string).",
                "type": "string"
              },
              "total_tax": {
                "description": "Total tax amount (decimal string).",
                "type": "string"
              },
              "warning": {
                "additionalProperties": true,
                "description": "Non-fatal warning about an item or discount calculation.",
                "nullable": true,
                "type": "object"
              }
            },
            "required": [
              "id",
              "product",
              "quantity",
              "total_price",
              "total_tax",
              "total_discount",
              "tax_id",
              "tax_components"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "potential_promotions": {
          "description": "Promotions that could apply if additional conditions were met.",
          "items": {
            "properties": {
              "action": {
                "description": "Action applied when the promotion triggers.",
                "nullable": true,
                "type": "object"
              },
              "condition": {
                "description": "Criteria that must be met to trigger this promotion.",
                "type": "object"
              },
              "description": {
                "type": "string"
              },
              "end_time": {
                "format": "date-time",
                "nullable": true,
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "start_time": {
                "format": "date-time",
                "type": "string"
              }
            },
            "type": "object"
          },
          "type": "array"
        },
        "promo_code_validations": {
          "description": "Validation result for each promo_code condition supplied.",
          "items": {
            "$ref": "#/components/schemas/PromoCodeValidation"
          },
          "type": "array"
        },
        "request_id": {
          "description": "Echoed from the request.",
          "type": "string"
        },
        "sale_discount": {
          "nullable": true,
          "properties": {
            "amount": {
              "description": "Discount amount applied (decimal string).",
              "type": "string"
            },
            "discount_product_id": {
              "type": "string"
            },
            "tax": {
              "description": "Tax portion of the discount (decimal string).",
              "type": "string"
            },
            "tax_components": {
              "items": {
                "properties": {
                  "rate_id": {
                    "type": "string"
                  },
                  "total": {
                    "description": "Tax amount for this component (decimal string).",
                    "type": "string"
                  }
                },
                "type": "object"
              },
              "type": "array"
            },
            "tax_id": {
              "type": "string"
            },
            "warning": {
              "additionalProperties": true,
              "description": "Non-fatal warning about an item or discount calculation.",
              "nullable": true,
              "type": "object"
            }
          },
          "type": "object"
        },
        "taxes": {
          "description": "Aggregated tax breakdown across the basket.",
          "items": {
            "$ref": "#/components/schemas/BasketTaxResponse"
          },
          "type": "array"
        },
        "totals": {
          "properties": {
            "amount": {
              "description": "Total amount payable (decimal string).",
              "type": "string"
            },
            "remaining_sale_balance": {
              "description": "Remaining balance after credit/loyalty redemptions (decimal string).\n",
              "type": "string"
            },
            "tax": {
              "description": "Total tax across all items (decimal string).",
              "type": "string"
            }
          },
          "required": [
            "tax",
            "amount",
            "remaining_sale_balance"
          ],
          "type": "object"
        }
      },
      "required": [
        "items",
        "potential_promotions",
        "promo_code_validations",
        "taxes",
        "totals"
      ],
      "type": "object"
    },
    "BasketTaxResponse": {
      "description": "Aggregated tax entry in the basket response.",
      "properties": {
        "id": {
          "description": "The tax ID.",
          "type": "string"
        },
        "name": {
          "description": "Tax name.",
          "type": "string"
        },
        "rate": {
          "description": "Tax rate (decimal string, e.g. \"0.15\" for 15%).",
          "type": "string"
        },
        "tax": {
          "description": "Total tax amount for this tax group (decimal string).",
          "type": "string"
        }
      },
      "required": [
        "id",
        "tax",
        "name",
        "rate"
      ],
      "title": "BasketTaxResponse",
      "type": "object"
    },
    "Brand": {
      "properties": {
        "deleted_at": {
          "description": "Deletion timestamp in UTC.",
          "nullable": true,
          "type": "string"
        },
        "description": {
          "description": "The brand description.",
          "nullable": true,
          "type": "string"
        },
        "id": {
          "description": "Auto-generated object ID.",
          "type": "string"
        },
        "name": {
          "description": "The brand name.",
          "type": "string"
        },
        "version": {
          "description": "Auto-incrementing object version number.",
          "format": "int64",
          "type": "integer"
        }
      },
      "required": [
        "name",
        "id"
      ],
      "title": "Brand",
      "type": "object"
    },
    "BrandBase": {
      "properties": {
        "description": {
          "description": "The brand description.",
          "type": "string"
        },
        "name": {
          "description": "The Brand name.",
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "title": "Brand",
      "type": "object"
    },
    "BrandCollection": {
      "properties": {
        "data": {
          "description": "An array of Brand objects wrapped in top level `data` object.",
          "items": {
            "$ref": "#/components/schemas/Brand"
          },
          "type": "array"
        },
        "version": {
          "$ref": "#/components/schemas/Version"
        }
      },
      "required": [
        "data",
        "version"
      ],
      "title": "Brand Collection",
      "type": "object"
    },
    "BrandResponse": {
      "properties": {
        "data": {
          "$ref": "#/components/schemas/Brand"
        }
      },
      "title": "Brand Response",
      "type": "object"
    },
    "BrandSample": {
      "nullable": true,
      "properties": {
        "deleted_at": {
          "description": "Deletion timestamp in UTC.",
          "nullable": true,
          "type": "string"
        },
        "id": {
          "description": "Auto-generated object ID.",
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "version": {
          "description": "Auto-incrementing object version number.",
          "format": "int64",
          "type": "integer"
        }
      },
      "title": "Brand Sample",
      "type": "object"
    },
    "BusinessRule": {
      "properties": {
        "created_at": {
          "description": "The creation timestamp in UTC.",
          "format": "date-time",
          "readOnly": true,
          "type": "string"
        },
        "event_type": {
          "enum": [
            "sale.ready_for_payment",
            "sale.line_items.added",
            "sale.customer.changed",
            "sale.created",
            "sale.updated"
          ],
          "type": "string"
        },
        "id": {
          "example": "1239349747718000640",
          "readOnly": true,
          "type": "string"
        },
        "remote_rule_id": {
          "example": "1239349157873029120",
          "type": "string"
        }
      },
      "required": [
        "event_type",
        "remote_rule_id"
      ],
      "title": "Business Rule",
      "type": "object"
    },
    "BusinessRuleParams": {
      "description": "The parameters that can be passed to the create rule API.",
      "properties": {
        "event_type": {
          "enum": [
            "sale.ready_for_payment",
            "sale.line_items.added",
            "sale.customer.changed",
            "sale.created",
            "sale.updated"
          ],
          "type": "string"
        },
        "remote_rule_id": {
          "example": "1239349157873029120",
          "type": "string"
        }
      },
      "required": [
        "event_type",
        "remote_rule_id"
      ],
      "title": "Rule Parameters",
      "type": "object"
    },
    "ButtonLayout": {
      "properties": {
        "deletedAt": {
          "format": "date-time",
          "nullable": true,
          "type": "string"
        },
        "id": {
          "description": "Autogenerated object identifier.",
          "type": "string"
        },
        "name": {
          "description": "The name of the button layout.",
          "type": "string"
        },
        "nodes": {
          "description": "The nodes that make up the button layout.",
          "items": {
            "$ref": "#/components/schemas/ButtonLayoutNode"
          },
          "type": "array"
        },
        "version": {
          "description": "Auto-incrementing object version number.",
          "format": "int64",
          "type": "integer"
        }
      },
      "required": [
        "id",
        "name",
        "nodes",
        "version"
      ],
      "type": "object"
    },
    "ButtonLayoutCollection": {
      "properties": {
        "data": {
          "items": {
            "$ref": "#/components/schemas/ButtonLayout"
          },
          "type": "array"
        },
        "pagination": {
          "$ref": "#/components/schemas/PaginationMetadata"
        },
        "version": {
          "$ref": "#/components/schemas/Version"
        }
      },
      "required": [
        "data",
        "version"
      ],
      "type": "object"
    },
    "ButtonLayoutNode": {
      "properties": {
        "attributes": {
          "description": "The attributes associated with this node.",
          "items": {
            "$ref": "#/components/schemas/ButtonLayoutNodeAttribute"
          },
          "type": "array"
        },
        "id": {
          "description": "Autogenerated object identifier.",
          "type": "string"
        },
        "parentNodeId": {
          "description": "The ID of the parent node, if applicable.",
          "format": "uuid",
          "nullable": true,
          "type": "string"
        },
        "position": {
          "description": "The position of the node within its parent.",
          "type": "integer"
        },
        "productId": {
          "description": "The product ID associated with this node, if applicable.",
          "nullable": true,
          "type": "string"
        }
      },
      "required": [
        "id",
        "position",
        "attributes"
      ],
      "type": "object"
    },
    "ButtonLayoutNodeAttribute": {
      "properties": {
        "key": {
          "description": "The attribute key.",
          "type": "string"
        },
        "value": {
          "description": "The attribute value.",
          "type": "string"
        }
      },
      "required": [
        "key",
        "value"
      ],
      "type": "object"
    },
    "Card": {
      "properties": {
        "brand": {
          "type": "string"
        },
        "fingerprint": {
          "type": "string"
        },
        "last_four": {
          "type": "string"
        },
        "type": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "CardDetails": {
      "properties": {
        "auth_code": {
          "type": "string"
        },
        "auth_result": {
          "type": "string"
        },
        "card": {
          "$ref": "#/components/schemas/Card"
        },
        "entry_method": {
          "enum": [
            "SWIPED",
            "KEYED",
            "CONTACTLESS",
            "EMV",
            "UNKNOWN",
            "CHIP",
            "FALLBACK",
            "CONTACTLESSMSD"
          ],
          "type": "string"
        }
      },
      "type": "object"
    },
    "Channel": {
      "description": "An object representing a single channel.",
      "properties": {
        "channel_type": {
          "description": "The type of channel this is.",
          "enum": [
            "woocommerce"
          ],
          "type": "string"
        },
        "created_at": {
          "description": "An RFC3339 representation of the time at which the channel was created.",
          "format": "date-time",
          "type": "string"
        },
        "id": {
          "description": "Auto-generated object ID.",
          "type": "string"
        },
        "inventory_outlet_ids": {
          "description": "IDs of the outlets that count towards inventory.",
          "items": {
            "minLength": 1,
            "type": "string"
          },
          "type": "array"
        },
        "payment_type_id": {
          "description": "The payment type id that sale payments will be associated to.",
          "type": "string"
        },
        "products_last_imported_at": {
          "description": "An RFC3339 representation of the time at which products were last imported.",
          "format": "date-time",
          "type": "string"
        },
        "register_id": {
          "description": "The register id that sales will be associated to.",
          "type": "string"
        },
        "sales_last_imported_at": {
          "description": "An RFC3339 representation of the time at which sales were last imported.",
          "format": "date-time",
          "type": "string"
        },
        "store_url": {
          "description": "The store identifier.",
          "type": "string"
        }
      },
      "required": [
        "channel_type",
        "id",
        "inventory_outlet_ids",
        "payment_type_id",
        "products_last_imported_at",
        "register_id",
        "sales_last_imported_at",
        "store_url"
      ],
      "title": "Channel",
      "type": "object"
    },
    "ChannelCollectionResponse": {
      "description": "A collection of channel records wrapped in a top-level data object.",
      "properties": {
        "data": {
          "items": {
            "$ref": "#/components/schemas/Channel"
          },
          "type": "array"
        }
      },
      "title": "Channels response",
      "type": "object"
    },
    "Composite": {
      "properties": {
        "product_id": {
          "description": "The ID of the component product.",
          "format": "uuid",
          "type": "string"
        },
        "quantity": {
          "description": "The quantity of the component product.",
          "type": "number"
        }
      },
      "title": "Composite",
      "type": "object"
    },
    "Condition": {
      "description": "A condition to determine whether a promotion should apply to a sale.",
      "properties": {
        "exclude": {
          "items": {
            "$ref": "#/components/schemas/Filter"
          },
          "type": "array"
        },
        "include": {
          "items": {
            "$ref": "#/components/schemas/Filter"
          },
          "type": "array"
        },
        "max_quantity": {
          "description": "Minimum quantity, if required by the condition type.",
          "type": "integer"
        },
        "min_price": {
          "description": "Minimum price, if required by the condition type.",
          "format": "double",
          "type": "number"
        },
        "min_quantity": {
          "description": "Minimum quantity, if required by the condition type.",
          "type": "integer"
        },
        "quantity": {
          "description": "Quantity, if required by the condition type.",
          "minimum": 1,
          "type": "integer"
        },
        "type": {
          "description": "Condition type.",
          "enum": [
            "product_set",
            "sale_price"
          ],
          "type": "string"
        }
      },
      "required": [
        "type",
        "quantity"
      ],
      "title": "Condition",
      "type": "object"
    },
    "Consignment": {
      "properties": {
        "consignment_date": {
          "description": "11-28T19:02:15+00:00 (timestamp) - Consignment creation date.",
          "nullable": true,
          "type": "string"
        },
        "created_at": {
          "description": "Creation timestamp in UTC.",
          "nullable": true,
          "type": "string"
        },
        "deleted_at": {
          "description": "Deletion timestamp in UTC.",
          "nullable": true,
          "type": "string"
        },
        "due_at": {
          "description": "11-30T19:08:541+00:00 (timestamp) - Due date.",
          "nullable": true,
          "type": "string"
        },
        "id": {
          "description": "Auto-generated object ID.",
          "format": "uuid",
          "type": "string"
        },
        "name": {
          "description": "Tue 29 Nov 2016 (string) - Consignment name. For orders, the note field in the UI will be the name value.",
          "type": "string"
        },
        "outlet_id": {
          "description": "A valid ID of an outlet where stock will be received.",
          "format": "uuid",
          "type": "string"
        },
        "received_at": {
          "description": "11-30T19:08:541+00:00 (timestamp) - The date when consignment was received.",
          "nullable": true,
          "type": "string"
        },
        "reference": {
          "description": "Order number.+ `total_count_gain` (number)",
          "nullable": true,
          "type": "string"
        },
        "source_outlet_id": {
          "description": "A valid ID of an outlet where stock will come from. **Stock transfers only**.",
          "format": "uuid",
          "nullable": true,
          "type": "string"
        },
        "status": {
          "description": "* Supplier Order: One of `OPEN`, `SENT`, `DISPATCHED`, `RECEIVED`, `CANCELLED`\n* Outlet Transfer: One of `OPEN`, `SENT`, `RECEIVED`, `CANCELLED`\n* Return Order: One of `OPEN`, `SENT`, `CANCELLED`\n* Stocktake: One of `STOCKTAKE_SCHEDULED`, `STOCKTAKE_IN_PROGRESS`, `STOCKTAKE_IN_PROGRESS_PROCESSED`, `STOCKTAKE_COMPLETE`, `CLOSED`, `CANCELLED`\nThis is not a definitive list and may be extended in future\n",
          "enum": [
            "OPEN",
            "SENT",
            "DISPATCHED",
            "RECEIVED",
            "STOCKTAKE_IN_PROGRESS",
            "STOCKTAKE_SCHEDULED",
            "STOCKTAKE_IN_PROGRESS_PROCESSED",
            "STOCKTAKE_COMPLETE",
            "CLOSED",
            "CANCELLED"
          ],
          "type": "string"
        },
        "supplier_id": {
          "description": "a valid supplier ID.",
          "format": "uuid",
          "nullable": true,
          "type": "string"
        },
        "supplier_invoice": {
          "description": "Supplier invoice number.",
          "nullable": true,
          "type": "string"
        },
        "total_cost_gain": {
          "description": "The cost of items over the expected level.",
          "format": "double",
          "nullable": true,
          "type": "number"
        },
        "total_cost_loss": {
          "description": "The cost of items below the expected level.",
          "format": "double",
          "nullable": true,
          "type": "number"
        },
        "total_count_gain": {
          "description": "The number of items over the expected level.",
          "format": "double",
          "nullable": true,
          "type": "number"
        },
        "total_count_loss": {
          "description": "The number of items below the expected level.",
          "format": "double",
          "nullable": true,
          "type": "number"
        },
        "type": {
          "description": "One of `SUPPLIER`, `OUTLET`, `STOCKTAKE`, `RETURN`.",
          "enum": [
            "SUPPLIER",
            "OUTLET",
            "STOCKTAKE",
            "RETURN"
          ],
          "type": "string"
        },
        "updated_at": {
          "description": "Last update timestamp in UTC.",
          "type": "string"
        },
        "version": {
          "description": "Auto-incrementing object version number.",
          "format": "int64",
          "type": "integer"
        }
      },
      "required": [
        "name",
        "outlet_id",
        "type"
      ],
      "title": "Consignment",
      "type": "object"
    },
    "ConsignmentCollection": {
      "properties": {
        "data": {
          "description": "An array of Consignment objects.",
          "items": {
            "$ref": "#/components/schemas/Consignment"
          },
          "type": "array"
        },
        "version": {
          "$ref": "#/components/schemas/Version"
        }
      },
      "title": "Consignment Collection",
      "type": "object"
    },
    "ConsignmentProduct": {
      "properties": {
        "cost": {
          "description": "The cost of the item.",
          "nullable": true,
          "type": "string"
        },
        "count": {
          "description": "Expected item count.",
          "nullable": true,
          "type": "string"
        },
        "created_at": {
          "description": "The creation timestamp in UTC.",
          "type": "string"
        },
        "deleted_at": {
          "description": "The deletion timestamp in UTC.",
          "nullable": true,
          "type": "string"
        },
        "is_included": {
          "description": "Indicated whether the item was included via a filter. Can be `null`. For full count (no filters) always `true`.",
          "type": "boolean"
        },
        "product_id": {
          "description": "The ID of the product.",
          "format": "uuid",
          "type": "string"
        },
        "product_sku": {
          "description": "The SKU of the product.",
          "nullable": true,
          "type": "string"
        },
        "received": {
          "description": "Observed item count.",
          "type": "string"
        },
        "status": {
          "description": "The status of the item. One of: `PENDING`, `SUCCESS`.",
          "type": "string"
        },
        "updated_at": {
          "description": "Last update timestamp in UTC.",
          "type": "string"
        },
        "version": {
          "description": "Auto-incrementing object version number.",
          "format": "int64",
          "type": "integer"
        }
      },
      "required": [
        "product_id"
      ],
      "title": "Consignment Product",
      "type": "object"
    },
    "ConsignmentProductCollection": {
      "properties": {
        "data": {
          "description": "An array of consignment products.",
          "items": {
            "$ref": "#/components/schemas/ConsignmentProduct"
          },
          "type": "array"
        }
      },
      "title": "Consignment Product Collection",
      "type": "object"
    },
    "ConsignmentProductRequest": {
      "properties": {
        "data": {
          "$ref": "#/components/schemas/ConsignmentProduct"
        }
      },
      "required": [
        "data"
      ],
      "title": "Consignment Product Request",
      "type": "object"
    },
    "ConsignmentProductResponse": {
      "properties": {
        "data": {
          "$ref": "#/components/schemas/ConsignmentProductCollection"
        }
      },
      "required": [
        "data"
      ],
      "title": "Consignment Product Response",
      "type": "object"
    },
    "ConsignmentRequest": {
      "properties": {
        "data": {
          "$ref": "#/components/schemas/Consignment"
        }
      },
      "required": [
        "data"
      ],
      "title": "Consignment Request",
      "type": "object"
    },
    "ConsignmentResponse": {
      "properties": {
        "data": {
          "$ref": "#/components/schemas/Consignment"
        }
      },
      "title": "Consignment Response",
      "type": "object"
    },
    "ConsignmentTotalsResponse": {
      "properties": {
        "data": {
          "items": {
            "properties": {
              "total_received_cost": {
                "type": "string"
              },
              "total_received_count": {
                "type": "string"
              },
              "total_sent_cost": {
                "type": "string"
              },
              "total_sent_count": {
                "type": "string"
              }
            },
            "type": "object"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "CreateCustomInventoryAdjustmentReasonRequest": {
      "description": "Parameters for creating a new custom inventory adjustment reason.",
      "properties": {
        "enabled": {
          "description": "Whether the reason can be selected when creating stock adjustments.",
          "type": "boolean"
        },
        "name": {
          "description": "Display name of the reason. Must be unique within the retailer. Max 30 characters.",
          "maxLength": 30,
          "type": "string"
        },
        "type": {
          "description": "Whether the reason applies to positive (stock-in) or negative (stock-out) adjustments.",
          "enum": [
            "POSITIVE",
            "NEGATIVE"
          ],
          "type": "string"
        }
      },
      "required": [
        "name",
        "enabled",
        "type"
      ],
      "title": "Create Custom Inventory Adjustment Reason Request",
      "type": "object"
    },
    "CreateStockAdjustmentItem": {
      "additionalProperties": false,
      "description": "A single stock adjustment to create as part of a batch.",
      "properties": {
        "custom_inventory_adjustment_reason_id": {
          "description": "Required when `reason` is `CUSTOM`; must be omitted otherwise.",
          "format": "uuid",
          "maxLength": 36,
          "minLength": 1,
          "type": "string"
        },
        "outlet_id": {
          "description": "The ID of the outlet where the adjustment is recorded.",
          "format": "uuid",
          "maxLength": 36,
          "minLength": 1,
          "type": "string"
        },
        "product_id": {
          "description": "The ID of the product to adjust.",
          "format": "uuid",
          "maxLength": 36,
          "minLength": 1,
          "type": "string"
        },
        "quantity": {
          "description": "Quantity to adjust. Must be a numeric string (e.g. `\"1\"` or `\"-3\"`). Negative for DAMAGE/EXPIRY/etc., positive for STOCK_FOUND/SAMPLE_FOR_SALE.",
          "example": "1",
          "maxLength": 32,
          "type": "string"
        },
        "reason": {
          "$ref": "#/components/schemas/StockAdjustmentReason"
        }
      },
      "required": [
        "product_id",
        "outlet_id",
        "quantity",
        "reason"
      ],
      "title": "Create Stock Adjustment Item",
      "type": "object"
    },
    "CreateStockAdjustmentsRequest": {
      "additionalProperties": false,
      "description": "A batch of 1–1000 stock adjustments to create.",
      "properties": {
        "stock_adjustments": {
          "description": "The stock adjustments to create.",
          "items": {
            "$ref": "#/components/schemas/CreateStockAdjustmentItem"
          },
          "maxItems": 1000,
          "minItems": 1,
          "type": "array"
        }
      },
      "required": [
        "stock_adjustments"
      ],
      "title": "Create Stock Adjustments Request",
      "type": "object"
    },
    "CreateSupplierRequest": {
      "allOf": [
        {
          "$ref": "#/components/schemas/BaseSupplier"
        }
      ],
      "required": [
        "name"
      ],
      "title": "CreateSupplierRequest"
    },
    "CreateTagRequest": {
      "properties": {
        "name": {
          "description": "The Tag name.",
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "title": "CreateTagRequest",
      "type": "object"
    },
    "CreateTaxRequest": {
      "properties": {
        "clothing_footwear_exemption": {
          "description": "Whether the tax is exempt for clothing and footwear. This is applicable for tax exclusive retailers only.",
          "type": "boolean"
        },
        "clothing_footwear_threshold_value": {
          "description": "The threshold value for clothing and footwear exemption. This is applicable for tax exclusive retailers only.",
          "format": "double",
          "type": "number"
        },
        "name": {
          "description": "The Tax name.",
          "type": "string"
        },
        "rate": {
          "description": "The Tax rate percentage.",
          "example": 0.1,
          "format": "double",
          "type": "number"
        },
        "tax_over_threshold": {
          "description": "Whether the tax applies over the threshold. This is applicable for tax exclusive retailers only.",
          "type": "boolean"
        }
      },
      "required": [
        "name",
        "rate"
      ],
      "title": "CreateTaxRequest",
      "type": "object"
    },
    "CustomFieldDefinition": {
      "description": "The type, name, and configuration of a custom field.",
      "properties": {
        "created_at": {
          "description": "The creation timestamp in UTC.",
          "format": "date-time",
          "readOnly": true,
          "type": "string"
        },
        "editable_in_ui": {
          "description": "Is this custom field be editable in the UI.",
          "type": "boolean"
        },
        "entity": {
          "description": "The type of entity.",
          "enum": [
            "sale",
            "line_item",
            "customer",
            "product"
          ],
          "type": "string"
        },
        "id": {
          "example": "1239349157873029120",
          "readOnly": true,
          "type": "string"
        },
        "name": {
          "example": "my_custom_field",
          "type": "string"
        },
        "title": {
          "example": "My Custom Field",
          "type": "string"
        },
        "type": {
          "description": "The type of the value to be stored using this custom field.",
          "enum": [
            "string",
            "integer",
            "boolean",
            "date",
            "product_id",
            "qrcode",
            "string_array"
          ],
          "type": "string"
        },
        "visible_in_ui": {
          "description": "Is this custom field visible in the UI.",
          "type": "boolean"
        }
      },
      "title": "Custom Field Definition",
      "type": "object"
    },
    "CustomFieldDefinitionCollection": {
      "description": "The fields returned by the custom fields definition list API.",
      "properties": {
        "data": {
          "description": "An array of Custom Field Definitions.",
          "items": {
            "$ref": "#/components/schemas/CustomFieldDefinition"
          },
          "type": "array"
        }
      },
      "required": [
        "data"
      ],
      "title": "Custom Field Definition Collection",
      "type": "object"
    },
    "CustomFieldDefinitionParams": {
      "description": "The parameters that can be passed to the create custom field definition API.",
      "properties": {
        "editable_in_ui": {
          "default": false,
          "description": "Should this custom field be editable in the UI.",
          "type": "boolean"
        },
        "entity": {
          "description": "The type of entity.",
          "enum": [
            "sale",
            "line_item",
            "customer",
            "product"
          ],
          "type": "string"
        },
        "name": {
          "example": "my_custom_field",
          "type": "string"
        },
        "print_on_receipt": {
          "default": false,
          "description": "Should this custom field be printed on receipts.",
          "type": "boolean"
        },
        "title": {
          "example": "My Custom Field",
          "type": "string"
        },
        "type": {
          "description": "The type of the value to be stored using this custom field.",
          "enum": [
            "string",
            "integer",
            "boolean",
            "date",
            "product_id",
            "qrcode",
            "string_array"
          ],
          "type": "string"
        },
        "visible_in_ui": {
          "default": false,
          "description": "Should this custom field be visible in the UI.",
          "type": "boolean"
        }
      },
      "required": [
        "entity",
        "name",
        "title",
        "type"
      ],
      "title": "Custom Field Definition Parameters",
      "type": "object"
    },
    "CustomFieldValue": {
      "description": "The value of a custom field on an entity.",
      "properties": {
        "boolean_value": {
          "type": "boolean"
        },
        "definition_id": {
          "description": "The ID of the custom field definition associated with this value.",
          "example": "1239349157873029120",
          "readOnly": true,
          "type": "string"
        },
        "integer_value": {
          "format": "int64",
          "type": "integer"
        },
        "name": {
          "example": "my_custom_field",
          "type": "string"
        },
        "string_value": {
          "type": "string"
        },
        "title": {
          "example": "My Custom Field",
          "type": "string"
        },
        "type": {
          "description": "The type of the value to be stored using this custom field.",
          "enum": [
            "string",
            "integer",
            "boolean",
            "date"
          ],
          "type": "string"
        }
      },
      "title": "Custom Field Value",
      "type": "object"
    },
    "CustomFieldValueCollection": {
      "description": "The fields returned by the custom field value list API.",
      "properties": {
        "data": {
          "description": "An array of Custom Field Values.",
          "items": {
            "$ref": "#/components/schemas/CustomFieldValue"
          },
          "type": "array"
        }
      },
      "required": [
        "data"
      ],
      "title": "Custom Field Value Collection",
      "type": "object"
    },
    "CustomFieldValuesParams": {
      "description": "The parameters that can be passed to the set custom field values API.",
      "properties": {
        "entity": {
          "description": "The entity type.",
          "enum": [
            "sale",
            "line_item",
            "customer",
            "product"
          ],
          "type": "string"
        },
        "entity_id": {
          "description": "The ID of entity.",
          "format": "uuid",
          "type": "string"
        },
        "values": {
          "description": "The values.",
          "items": {
            "properties": {
              "boolean_value": {
                "type": "boolean"
              },
              "integer_value": {
                "format": "int64",
                "type": "integer"
              },
              "name": {
                "description": "The name of the custom field to set a value for. Must match an existing custom field name for the entity type.",
                "example": "my_custom_field",
                "type": "string"
              },
              "string_value": {
                "example": "spec-test-value",
                "type": "string"
              }
            },
            "required": [
              "name",
              "string_value"
            ],
            "type": "object"
          },
          "type": "array"
        }
      },
      "required": [
        "entity",
        "entity_id",
        "values"
      ],
      "title": "Custom Field Value Parameters",
      "type": "object"
    },
    "CustomInventoryAdjustmentReason": {
      "description": "A custom inventory adjustment reason that retailers can use when creating stock adjustments.",
      "properties": {
        "created_at": {
          "description": "The creation timestamp in RFC 3339 format.",
          "format": "date-time",
          "type": "string"
        },
        "enabled": {
          "description": "Whether the reason can be selected when creating stock adjustments.",
          "type": "boolean"
        },
        "id": {
          "description": "Auto-generated object ID.",
          "format": "uuid",
          "type": "string"
        },
        "is_from_external_source": {
          "description": "`true` when the reason was created via the API; `false` when created via the X-Series UI.",
          "type": "boolean"
        },
        "name": {
          "description": "Display name of the reason. Unique within the retailer. Max 30 characters.",
          "maxLength": 30,
          "type": "string"
        },
        "type": {
          "description": "Whether the reason can be used for positive (stock-in) or negative (stock-out) adjustments.",
          "enum": [
            "POSITIVE",
            "NEGATIVE"
          ],
          "type": "string"
        },
        "updated_at": {
          "description": "The last update timestamp in RFC 3339 format.",
          "format": "date-time",
          "type": "string"
        },
        "version": {
          "description": "Auto-incrementing object version number.",
          "format": "int64",
          "type": "integer"
        }
      },
      "required": [
        "id",
        "name",
        "enabled",
        "type",
        "is_from_external_source",
        "version",
        "created_at",
        "updated_at"
      ],
      "title": "Custom Inventory Adjustment Reason",
      "type": "object"
    },
    "CustomInventoryAdjustmentReasonCollection": {
      "description": "A paginated list of custom inventory adjustment reasons.",
      "properties": {
        "data": {
          "description": "An array of custom inventory adjustment reasons.",
          "items": {
            "$ref": "#/components/schemas/CustomInventoryAdjustmentReason"
          },
          "type": "array"
        },
        "version": {
          "$ref": "#/components/schemas/Version"
        }
      },
      "required": [
        "data",
        "version"
      ],
      "title": "Custom Inventory Adjustment Reason Collection",
      "type": "object"
    },
    "CustomInventoryAdjustmentReasonSingleton": {
      "description": "A single custom inventory adjustment reason response.",
      "properties": {
        "data": {
          "$ref": "#/components/schemas/CustomInventoryAdjustmentReason"
        }
      },
      "required": [
        "data"
      ],
      "title": "Custom Inventory Adjustment Reason Response",
      "type": "object"
    },
    "Customer": {
      "properties": {
        "balance": {
          "description": "Customer's unpaid balance.",
          "format": "double",
          "type": "number"
        },
        "company_name": {
          "description": "Company name.",
          "nullable": true,
          "type": "string"
        },
        "created_at": {
          "description": "Creation timestamp in UTC.",
          "type": "string"
        },
        "custom_field_1": {
          "description": "Custom field 1. Can be used to store random data.",
          "nullable": true,
          "type": "string"
        },
        "custom_field_2": {
          "description": "Custom field 2.",
          "nullable": true,
          "type": "string"
        },
        "custom_field_3": {
          "description": "Custom field 3.",
          "nullable": true,
          "type": "string"
        },
        "custom_field_4": {
          "description": "Custom field 4.",
          "nullable": true,
          "type": "string"
        },
        "customer_code": {
          "description": "Customer code used for claiming loyalty.",
          "type": "string"
        },
        "customer_group_id": {
          "description": "Customer group ID.",
          "type": "string"
        },
        "date_of_birth": {
          "description": "Birthday.",
          "nullable": true,
          "type": "string"
        },
        "deleted_at": {
          "description": "Deletion timestamp in UTC.",
          "nullable": true,
          "type": "string"
        },
        "do_not_email": {
          "default": false,
          "description": "Indicates whether the customer opted out of email communications.",
          "type": "boolean"
        },
        "email": {
          "description": "Customer's email address.",
          "nullable": true,
          "type": "string"
        },
        "enable_loyalty": {
          "type": "boolean"
        },
        "enable_promotional_sms": {
          "default": false,
          "description": "Indicates whether the customer opted in to SMS communications.",
          "type": "boolean"
        },
        "fax": {
          "description": "Fax no.",
          "nullable": true,
          "type": "string"
        },
        "first_name": {
          "description": "Customer's first name.",
          "nullable": true,
          "type": "string"
        },
        "gender": {
          "description": "Customer's gender. Can be `M`, `F` or null.",
          "nullable": true,
          "type": "string"
        },
        "id": {
          "description": "Auto-generated object ID.",
          "type": "string"
        },
        "last_name": {
          "description": "Customer 's last name.",
          "nullable": true,
          "type": "string"
        },
        "loyalty_balance": {
          "description": "Customer's loyalty balance.",
          "format": "double",
          "type": "number"
        },
        "mobile": {
          "description": "Mobile phone no.",
          "nullable": true,
          "type": "string"
        },
        "name": {
          "deprecated": true,
          "description": "Customers full name. **deprecated**",
          "nullable": true,
          "type": "string"
        },
        "note": {
          "description": "Customer note.",
          "nullable": true,
          "type": "string"
        },
        "on_account_limit": {
          "description": "Customer's OnAccount Limit.",
          "format": "double",
          "nullable": true,
          "type": "number"
        },
        "phone": {
          "description": "Phone no.",
          "nullable": true,
          "type": "string"
        },
        "physical_address_1": {
          "description": "Physical address, line 1.",
          "nullable": true,
          "type": "string"
        },
        "physical_address_2": {
          "description": "Physical address, line 2.",
          "nullable": true,
          "type": "string"
        },
        "physical_city": {
          "description": "Physical address, city.",
          "nullable": true,
          "type": "string"
        },
        "physical_country_id": {
          "description": "Physical address, country code.",
          "nullable": true,
          "type": "string"
        },
        "physical_postcode": {
          "description": "Physical address, post code.",
          "nullable": true,
          "type": "string"
        },
        "physical_state": {
          "description": "Physical address, state.",
          "nullable": true,
          "type": "string"
        },
        "physical_suburb": {
          "description": "Physical address, suburb.",
          "nullable": true,
          "type": "string"
        },
        "postal_address_1": {
          "description": "Postal address, line 1.",
          "nullable": true,
          "type": "string"
        },
        "postal_address_2": {
          "description": "Postal address, line 2.",
          "nullable": true,
          "type": "string"
        },
        "postal_city": {
          "description": "Postal address, city.",
          "nullable": true,
          "type": "string"
        },
        "postal_country_id": {
          "description": "Postal address, country code.",
          "nullable": true,
          "type": "string"
        },
        "postal_postcode": {
          "description": "Postal address, post code.",
          "nullable": true,
          "type": "string"
        },
        "postal_state": {
          "description": "Postal address, state.",
          "nullable": true,
          "type": "string"
        },
        "postal_suburb": {
          "description": "Postal address, suburb.",
          "nullable": true,
          "type": "string"
        },
        "tax_id": {
          "description": "Customer's tax ID.",
          "nullable": true,
          "type": "string"
        },
        "twitter": {
          "description": "Twitter handle.",
          "nullable": true,
          "type": "string"
        },
        "updated_at": {
          "description": "Last update timestamp in UTC.",
          "type": "string"
        },
        "version": {
          "description": "Auto-incrementing object version number.",
          "format": "int64",
          "type": "integer"
        },
        "website": {
          "description": "Website URL.",
          "nullable": true,
          "type": "string"
        },
        "year_to_date": {
          "description": "Customer's spending this year.",
          "format": "double",
          "type": "number"
        }
      },
      "required": [
        "first_name",
        "last_name"
      ],
      "title": "Customer",
      "type": "object"
    },
    "CustomerAddress": {
      "properties": {
        "address_line_1": {
          "description": "Primary address line (street address, P.O. box, etc.).",
          "maxLength": 50,
          "type": "string"
        },
        "address_line_2": {
          "description": "Secondary address line (apartment, suite, unit, building, floor, etc.).",
          "maxLength": 50,
          "nullable": true,
          "type": "string"
        },
        "city": {
          "description": "City or town name.",
          "maxLength": 28,
          "type": "string"
        },
        "country_code": {
          "description": "ISO 3166-1 alpha-2 country code (e.g., US, NZ, AU).",
          "type": "string"
        },
        "country_name": {
          "description": "Full country name derived from the country code.",
          "type": "string"
        },
        "created_at": {
          "description": "Creation timestamp in UTC.",
          "format": "date-time",
          "type": "string"
        },
        "customer_id": {
          "description": "The unique identifier of the customer this address belongs to.",
          "format": "uuid",
          "type": "string"
        },
        "id": {
          "description": "Auto-generated address ID.",
          "format": "int64",
          "type": "integer"
        },
        "postcode": {
          "description": "Postal code or ZIP code.",
          "type": "string"
        },
        "state": {
          "description": "State, province, or region name.",
          "maxLength": 35,
          "nullable": true,
          "type": "string"
        },
        "state_code": {
          "description": "State or province code. Required for US and CA.",
          "nullable": true,
          "type": "string"
        },
        "suburb": {
          "description": "Suburb or district.",
          "nullable": true,
          "type": "string"
        },
        "type": {
          "description": "The type of address.",
          "enum": [
            "BILLING",
            "SHIPPING"
          ],
          "type": "string"
        },
        "updated_at": {
          "description": "Last update timestamp in UTC.",
          "format": "date-time",
          "type": "string"
        }
      },
      "required": [
        "id",
        "customer_id",
        "address_line_1",
        "city",
        "postcode",
        "country_code",
        "type",
        "created_at",
        "updated_at"
      ],
      "title": "Customer Address",
      "type": "object"
    },
    "CustomerAddressBase": {
      "properties": {
        "address_line_1": {
          "description": "Primary address line (street address, P.O. box, etc.).",
          "maxLength": 50,
          "type": "string"
        },
        "address_line_2": {
          "description": "Secondary address line (apartment, suite, unit, building, floor, etc.).",
          "maxLength": 50,
          "nullable": true,
          "type": "string"
        },
        "city": {
          "description": "City or town name.",
          "maxLength": 28,
          "type": "string"
        },
        "country_code": {
          "description": "ISO 3166-1 alpha-2 country code (e.g., US, NZ, AU).",
          "type": "string"
        },
        "postcode": {
          "description": "Postal code or ZIP code.",
          "type": "string"
        },
        "state": {
          "description": "State, province, or region name.",
          "maxLength": 35,
          "nullable": true,
          "type": "string"
        },
        "state_code": {
          "description": "State or province code. Required for US and CA.",
          "nullable": true,
          "type": "string"
        },
        "suburb": {
          "description": "Suburb or district.",
          "nullable": true,
          "type": "string"
        },
        "type": {
          "description": "The type of address.",
          "enum": [
            "BILLING",
            "SHIPPING"
          ],
          "type": "string"
        }
      },
      "required": [
        "address_line_1",
        "city",
        "postcode",
        "country_code",
        "type"
      ],
      "title": "Customer Address Base",
      "type": "object"
    },
    "CustomerAddressCollection": {
      "properties": {
        "data": {
          "description": "An array of customer address objects.",
          "items": {
            "$ref": "#/components/schemas/CustomerAddress"
          },
          "type": "array"
        }
      },
      "title": "Customer Address Collection",
      "type": "object"
    },
    "CustomerAddressCreateResponse": {
      "properties": {
        "data": {
          "allOf": [
            {
              "$ref": "#/components/schemas/CustomerAddress"
            },
            {
              "properties": {
                "id_token": {
                  "description": "Token to be used when associating this address with a sale.",
                  "type": "string"
                }
              },
              "type": "object"
            }
          ]
        }
      },
      "title": "Customer Address Create Response",
      "type": "object"
    },
    "CustomerAddressResponse": {
      "properties": {
        "data": {
          "$ref": "#/components/schemas/CustomerAddress"
        }
      },
      "title": "Customer Address Response",
      "type": "object"
    },
    "CustomerBase": {
      "properties": {
        "company_name": {
          "description": "Company name.",
          "nullable": true,
          "type": "string"
        },
        "custom_field_1": {
          "description": "Custom field 1. Can be used to store random data.",
          "nullable": true,
          "type": "string"
        },
        "custom_field_2": {
          "description": "Custom field 2.",
          "nullable": true,
          "type": "string"
        },
        "custom_field_3": {
          "description": "Custom field 3.",
          "nullable": true,
          "type": "string"
        },
        "custom_field_4": {
          "description": "Custom field 4.",
          "nullable": true,
          "type": "string"
        },
        "customer_code": {
          "description": "Customer code used for claiming loyalty.",
          "type": "string"
        },
        "customer_group_id": {
          "description": "Customer group ID.",
          "type": "string"
        },
        "date_of_birth": {
          "description": "Birthday.",
          "type": "string"
        },
        "do_not_email": {
          "default": false,
          "description": "Indicates whether the customer opted out of email communications.",
          "type": "boolean"
        },
        "email": {
          "description": "Customer's email address.",
          "nullable": true,
          "type": "string"
        },
        "enable_loyalty": {
          "type": "boolean"
        },
        "enable_promotional_sms": {
          "default": false,
          "description": "Indicates whether the customer opted in to SMS communications.",
          "type": "boolean"
        },
        "fax": {
          "description": "Fax no.",
          "nullable": true,
          "type": "string"
        },
        "first_name": {
          "description": "Customer's first name.",
          "nullable": true,
          "type": "string"
        },
        "gender": {
          "description": "Customer's gender. Can be `M`, `F` or null.",
          "nullable": true,
          "type": "string"
        },
        "last_name": {
          "description": "Customer 's last name.",
          "nullable": true,
          "type": "string"
        },
        "mobile": {
          "description": "Mobile phone no.",
          "nullable": true,
          "type": "string"
        },
        "note": {
          "description": "Customer note.",
          "nullable": true,
          "type": "string"
        },
        "on_account_limit": {
          "description": "Customer's OnAccount Limit.",
          "format": "double",
          "nullable": true,
          "type": "number"
        },
        "phone": {
          "description": "Phone no.",
          "nullable": true,
          "type": "string"
        },
        "physical_address_1": {
          "description": "Physical address, line 1.",
          "nullable": true,
          "type": "string"
        },
        "physical_address_2": {
          "description": "Physical address, line 2.",
          "nullable": true,
          "type": "string"
        },
        "physical_city": {
          "description": "Physical address, city.",
          "nullable": true,
          "type": "string"
        },
        "physical_country_id": {
          "description": "Physical address, country code.",
          "nullable": true,
          "type": "string"
        },
        "physical_postcode": {
          "description": "Physical address, post code.",
          "nullable": true,
          "type": "string"
        },
        "physical_state": {
          "description": "Physical address, state.",
          "nullable": true,
          "type": "string"
        },
        "physical_suburb": {
          "description": "Physical address, suburb.",
          "nullable": true,
          "type": "string"
        },
        "postal_address_1": {
          "description": "Postal address, line 1.",
          "nullable": true,
          "type": "string"
        },
        "postal_address_2": {
          "description": "Postal address, line 2.",
          "nullable": true,
          "type": "string"
        },
        "postal_city": {
          "description": "Postal address, city.",
          "nullable": true,
          "type": "string"
        },
        "postal_country_id": {
          "description": "Postal address, country code.",
          "nullable": true,
          "type": "string"
        },
        "postal_postcode": {
          "description": "Postal address, post code.",
          "nullable": true,
          "type": "string"
        },
        "postal_state": {
          "description": "Postal address, state.",
          "nullable": true,
          "type": "string"
        },
        "postal_suburb": {
          "description": "Postal address, suburb.",
          "nullable": true,
          "type": "string"
        },
        "tax_id": {
          "description": "Customer's tax ID.",
          "nullable": true,
          "type": "string"
        },
        "twitter": {
          "description": "Twitter handle.",
          "nullable": true,
          "type": "string"
        },
        "website": {
          "description": "Website URL.",
          "nullable": true,
          "type": "string"
        }
      },
      "required": [
        "first_name",
        "last_name"
      ],
      "title": "Customer Base",
      "type": "object"
    },
    "CustomerCollection": {
      "properties": {
        "data": {
          "description": "An array of Customer objects.",
          "items": {
            "$ref": "#/components/schemas/Customer"
          },
          "type": "array"
        },
        "version": {
          "$ref": "#/components/schemas/Version"
        }
      },
      "title": "Customer Collection",
      "type": "object"
    },
    "CustomerGroup": {
      "properties": {
        "created_at": {
          "description": "Creation timestamp in UTC.",
          "type": "string"
        },
        "deleted_at": {
          "description": "Deletion timestamp in UTC.",
          "nullable": true,
          "type": "string"
        },
        "group_id": {
          "description": "The customer group identifier.",
          "type": "string"
        },
        "id": {
          "description": "Auto-generated object ID.",
          "type": "string"
        },
        "name": {
          "description": "The customer group name.",
          "type": "string"
        },
        "retailer_id": {
          "description": "The retailer identifier",
          "type": "string"
        },
        "updated_at": {
          "description": "Last update timestamp in UTC.",
          "type": "string"
        },
        "version": {
          "description": "Auto-incrementing object version number.",
          "format": "int64",
          "type": "integer"
        }
      },
      "required": [
        "name"
      ],
      "title": "Customer Group",
      "type": "object",
      "x-examples": {
        "All customers": {
          "created_at": "2023-04-16T12:44:54+00:00",
          "deleted_at": null,
          "group_id": "1111111111",
          "id": "28020918-a068-aae4-11e9-cad0d053ea28",
          "name": "All Customers",
          "retailer_id": "00000000-0001-0001-0001-000000000001",
          "updated_at": "2023-04-16T12:44:54+00:00",
          "version": 150547
        }
      }
    },
    "CustomerGroupCollection": {
      "properties": {
        "data": {
          "description": "An array of customer group objects wrapped in top level `data` object.",
          "items": {
            "$ref": "#/components/schemas/CustomerGroup"
          },
          "type": "array"
        },
        "version": {
          "$ref": "#/components/schemas/Version"
        }
      },
      "title": "Customer Group Collection",
      "type": "object"
    },
    "CustomerGroupResponse": {
      "properties": {
        "data": {
          "$ref": "#/components/schemas/CustomerGroup"
        }
      },
      "title": "Customer Group Response",
      "type": "object"
    },
    "CustomerResponse": {
      "properties": {
        "data": {
          "$ref": "#/components/schemas/Customer"
        }
      },
      "title": "Customer Response",
      "type": "object"
    },
    "CustomerTax": {
      "properties": {
        "customer_id": {
          "description": "The ID of the customer assigned to this tax.",
          "format": "uuid",
          "type": "string"
        },
        "deleted_at": {
          "description": "The time at which the assignment was deleted, if it has been deleted.",
          "format": "date-time",
          "nullable": true,
          "type": "string"
        },
        "tax_id": {
          "description": "The ID of the assigned tax, or `null` when the assignment has been deleted.",
          "format": "uuid",
          "nullable": true,
          "type": "string"
        },
        "tax_note": {
          "description": "An optional note associated with the tax assignment.",
          "nullable": true,
          "type": "string"
        },
        "version": {
          "description": "Auto-incrementing version number for the assignment.",
          "format": "int64",
          "type": "integer"
        }
      },
      "required": [
        "customer_id",
        "version"
      ],
      "title": "Customer Tax",
      "type": "object"
    },
    "CustomerTaxBulkResponse": {
      "properties": {
        "data": {
          "properties": {
            "results": {
              "properties": {
                "failed": {
                  "description": "Array of failed items",
                  "items": {
                    "properties": {
                      "customer_id": {
                        "description": "Customer UUID from request",
                        "format": "uuid",
                        "nullable": true,
                        "type": "string"
                      },
                      "errors": {
                        "description": "Array of error objects",
                        "items": {
                          "properties": {
                            "code": {
                              "description": "Error code identifier",
                              "enum": [
                                "VALIDATION_ERROR",
                                "INVALID_CUSTOMER_ID",
                                "INVALID_TAX_ID",
                                "CUSTOMER_TAX_UPDATE_ERROR"
                              ],
                              "type": "string"
                            },
                            "messages": {
                              "description": "Array of error messages",
                              "items": {
                                "type": "string"
                              },
                              "type": "array"
                            }
                          },
                          "type": "object"
                        },
                        "type": "array"
                      },
                      "index": {
                        "description": "Original position in the request array",
                        "type": "integer"
                      },
                      "tax_id": {
                        "description": "Tax UUID from request",
                        "format": "uuid",
                        "nullable": true,
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "type": "array"
                },
                "successful": {
                  "description": "Array of successfully processed items",
                  "items": {
                    "properties": {
                      "created_at": {
                        "description": "Creation timestamp (if available)",
                        "nullable": true,
                        "type": "string"
                      },
                      "customer_id": {
                        "description": "Customer UUID",
                        "format": "uuid",
                        "type": "string"
                      },
                      "index": {
                        "description": "Original position in the request array",
                        "type": "integer"
                      },
                      "tax_id": {
                        "description": "Tax UUID or null if removed",
                        "format": "uuid",
                        "nullable": true,
                        "type": "string"
                      },
                      "updated_at": {
                        "description": "Last update timestamp (if available)",
                        "nullable": true,
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "type": "object"
            },
            "summary": {
              "description": "Processing summary",
              "properties": {
                "error_count": {
                  "description": "Number of failed updates",
                  "type": "integer"
                },
                "success_count": {
                  "description": "Number of successful updates",
                  "type": "integer"
                },
                "total_processed": {
                  "description": "Total number of items processed",
                  "type": "integer"
                }
              },
              "type": "object"
            }
          },
          "type": "object"
        }
      },
      "title": "Customer Tax Bulk Response",
      "type": "object"
    },
    "CustomerTaxCollection": {
      "properties": {
        "data": {
          "description": "Customer tax assignments.",
          "items": {
            "$ref": "#/components/schemas/CustomerTax"
          },
          "type": "array"
        },
        "version": {
          "$ref": "#/components/schemas/Version"
        }
      },
      "required": [
        "data",
        "version"
      ],
      "title": "Customer Tax Collection",
      "type": "object"
    },
    "CustomizationFile": {
      "properties": {
        "filename": {
          "description": "The name of the file.",
          "type": "string"
        },
        "id": {
          "description": "The ID of the file.",
          "type": "string"
        },
        "provider": {
          "description": "Storage provider of the file.",
          "type": "string"
        },
        "size": {
          "description": "Size of the file in bytes.",
          "type": "integer"
        }
      },
      "title": "Customization File",
      "type": "object"
    },
    "DailyAgenda": {
      "nullable": true,
      "properties": {
        "date": {
          "type": "string"
        },
        "minutes_scheduled": {
          "type": "integer"
        }
      },
      "title": "DailyAgenda",
      "type": "object"
    },
    "DetailedService": {
      "properties": {
        "notes": {
          "description": "An array of service notes, or null if no notes exist.",
          "items": {
            "$ref": "#/components/schemas/ServiceNote"
          },
          "nullable": true,
          "type": "array"
        },
        "service": {
          "$ref": "#/components/schemas/ServiceOrder"
        },
        "serviceItems": {
          "$ref": "#/components/schemas/ServiceItems"
        }
      },
      "title": "DetailedService",
      "type": "object"
    },
    "DiscountCustomerParam": {
      "properties": {
        "customer_group_id": {
          "description": "Customer group ID",
          "type": "string"
        }
      },
      "title": "Customer applicable to a discount",
      "type": "object"
    },
    "DiscountLineItem": {
      "properties": {
        "confirmed": {
          "description": "Whether the line item is confirmed as part of a layby or on account sale.",
          "type": "boolean"
        },
        "explicit_loyalty_value": {
          "description": "Whether loyalty was explicitly set in the product or it just uses the default outlet ratio.",
          "type": "boolean"
        },
        "handle": {
          "description": "Handle.",
          "type": "string"
        },
        "id": {
          "description": "Line item ID.",
          "type": "string"
        },
        "loyalty_value": {
          "description": "The line item's loyalty value",
          "format": "double",
          "type": "number"
        },
        "price_adjusted": {
          "description": "Indicator to suggest that the price has been adjusted manually, such as through a discount.",
          "type": "boolean"
        },
        "product_brand_id": {
          "description": "Product Brand ID.",
          "type": "string"
        },
        "product_id": {
          "description": "Product ID",
          "type": "string"
        },
        "product_supplier_id": {
          "description": "Product Supplier ID.",
          "type": "string"
        },
        "product_tag_ids": {
          "description": "Product Tag IDs.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "product_type_id": {
          "description": "Product Type ID.",
          "type": "string"
        },
        "promotion_ids": {
          "description": "List of promotion IDs applied to this line item.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "quantity": {
          "description": "Quantity of the line item.",
          "type": "integer"
        },
        "unit_discount": {
          "description": "The line item's unit discount",
          "format": "double",
          "type": "number"
        },
        "unit_price": {
          "description": "The unit price for the line item.",
          "format": "double",
          "type": "number"
        },
        "unit_tax_discount": {
          "description": "The line item's unit tax discount",
          "format": "double",
          "type": "number"
        },
        "variant_parent_id": {
          "description": "Product variant parent ID",
          "type": "string"
        }
      },
      "required": [
        "handle",
        "product_brand_id",
        "product_id",
        "product_supplier_id",
        "product_tag_ids",
        "product_type_id",
        "quantity",
        "unit_price",
        "unit_tax_discount"
      ],
      "title": "Line Item, for use while applying a discount",
      "type": "object"
    },
    "DiscountParam": {
      "properties": {
        "channel": {
          "description": "The channel where the sale is coming from",
          "type": "string"
        },
        "customer": {
          "$ref": "#/components/schemas/DiscountCustomerParam"
        },
        "is_tax_inclusive": {
          "description": "Indication whether the sale is tax inclusive or tax exclusive",
          "type": "boolean"
        },
        "outlet_id": {
          "description": "The outlet ID for this sale",
          "type": "string"
        },
        "promo_code": {
          "description": "The promo code to apply to this sale",
          "type": "string"
        },
        "sale": {
          "$ref": "#/components/schemas/DiscountSaleParam"
        }
      },
      "required": [
        "channel",
        "customer",
        "outlet_id",
        "sale"
      ],
      "title": "DiscountParam consists of a Sale, and related information to check if a promotion applies, and to calculate the discount",
      "type": "object"
    },
    "DiscountResponse": {
      "properties": {
        "data": {
          "$ref": "#/components/schemas/DiscountResponseParam"
        }
      },
      "title": "DiscountParam consists of a Sale, and related information to check if a promotion applies, and to calculate the discount",
      "type": "object"
    },
    "DiscountResponseParam": {
      "properties": {
        "promo_code_validation": {
          "$ref": "#/components/schemas/PromoCodeValidation"
        },
        "promotions": {
          "items": {
            "$ref": "#/components/schemas/PromotionDescription"
          },
          "type": "array"
        },
        "sale": {
          "$ref": "#/components/schemas/DiscountSaleParam"
        }
      },
      "title": "DiscountParam consists of a Sale, and related information to check if a promotion applies, and to calculate the discount",
      "type": "object"
    },
    "DiscountSaleParam": {
      "properties": {
        "line_items": {
          "description": "Collection of line items.",
          "items": {
            "$ref": "#/components/schemas/DiscountLineItem"
          },
          "type": "array"
        },
        "sale_date": {
          "description": "Sale timestamp in UTC, e.g. `2006-01-02T15:04:05` (no timezone suffix).",
          "type": "string"
        },
        "total_price": {
          "description": "Total (tax exclusive) price of the sale",
          "format": "double",
          "type": "number"
        },
        "total_tax": {
          "description": "Total tax.",
          "format": "double",
          "type": "number"
        }
      },
      "required": [
        "line_items",
        "sale_date",
        "total_price",
        "total_tax"
      ],
      "title": "Sale object for use in a Discount request",
      "type": "object"
    },
    "EMV": {
      "properties": {
        "aid": {
          "type": "string"
        },
        "application_label": {
          "type": "string"
        },
        "application_preferred_name": {
          "type": "string"
        },
        "cryptogram": {
          "type": "string"
        },
        "cryptogram_type": {
          "type": "string"
        },
        "pin_statement": {
          "type": "string"
        },
        "tags": {
          "items": {
            "properties": {
              "key": {
                "type": "string"
              },
              "value": {
                "type": "string"
              }
            },
            "type": "object"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "EcomCustomCharge": {
      "properties": {
        "name": {
          "description": "Display name of eCom custom charge.",
          "type": "string"
        },
        "source_id": {
          "description": "Unique identifier of eCom custom charge type.",
          "type": "string"
        },
        "tax_components": {
          "description": "Collection of tax components associated with specific eCom custom charge.",
          "items": {
            "$ref": "#/components/schemas/EcomCustomChargeTaxComponent"
          },
          "type": "array"
        },
        "total": {
          "description": "Tax exclusive amount for specific eCom custom charge.",
          "format": "double",
          "type": "number"
        },
        "total_incl": {
          "description": "Tax inclusive amount for specific eCom custom charge.",
          "format": "double",
          "type": "number"
        },
        "total_tax": {
          "description": "Total tax for specific eCom custom charge.",
          "format": "double",
          "type": "number"
        }
      },
      "required": [
        "total",
        "total_tax",
        "total_incl",
        "name",
        "tax_components",
        "source_id"
      ],
      "title": "Ecom Custom Charges",
      "type": "object"
    },
    "EcomCustomChargeTaxComponent": {
      "properties": {
        "rate_id": {
          "description": "Tax rate ID.",
          "type": "string"
        },
        "total_tax": {
          "description": "Tax total.",
          "type": "string"
        }
      },
      "required": [
        "rate_id",
        "total_tax"
      ],
      "title": "Ecom Custom Charge Tax Component",
      "type": "object"
    },
    "FeatureResolution": {
      "properties": {
        "context": {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        },
        "editable_features": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "features": {
          "additionalProperties": {
            "type": "boolean"
          },
          "example": {
            "another_feature": false,
            "cool_feature": true
          },
          "type": "object"
        }
      },
      "required": [
        "features"
      ],
      "type": "object"
    },
    "Filter": {
      "properties": {
        "field": {
          "description": "name of the filter field",
          "enum": [
            "brand_id",
            "product_id",
            "supplier_id",
            "tag_id",
            "type_id",
            "variant_parent_id"
          ],
          "type": "string"
        },
        "value": {
          "description": "value of the filter field",
          "type": "string"
        }
      },
      "required": [
        "field",
        "value"
      ],
      "title": "Condition Filter",
      "type": "object"
    },
    "FulfillLineItemSourceBreakdown": {
      "description": "Specifies how a fulfillment quantity should be sourced. When provided, all three fields are required and must sum to the parent quantity.",
      "properties": {
        "quantity_from_not_started": {
          "description": "Quantity to source from the not-started state.",
          "format": "double",
          "type": "number"
        },
        "quantity_from_packed": {
          "description": "Quantity to source from the packed state.",
          "format": "double",
          "type": "number"
        },
        "quantity_from_picked": {
          "description": "Quantity to source from the picked state.",
          "format": "double",
          "type": "number"
        }
      },
      "required": [
        "quantity_from_picked",
        "quantity_from_packed",
        "quantity_from_not_started"
      ],
      "type": "object"
    },
    "FulfillLineItemsRequest": {
      "properties": {
        "line_items": {
          "description": "The line items to be fulfilled",
          "items": {
            "$ref": "#/components/schemas/FulfillmentLineItemRequest"
          },
          "type": "array"
        },
        "version": {
          "description": "The current version number of the fulfillment.",
          "example": 5,
          "format": "int32",
          "type": "integer"
        }
      },
      "required": [
        "version",
        "line_items"
      ],
      "type": "object"
    },
    "FulfillLineItemsResponse": {
      "properties": {
        "data": {
          "properties": {
            "id": {
              "description": "The unique identifier of the fulfillment.",
              "example": "7428951063847291856",
              "type": "string"
            },
            "version": {
              "description": "The new version number of the fulfillment after the update.",
              "example": 3,
              "format": "int32",
              "type": "integer"
            }
          },
          "type": "object"
        }
      },
      "type": "object"
    },
    "FulfillSaleRequest": {
      "properties": {
        "sale_id": {
          "description": "The unique identifier of the sale to be fulfilled.",
          "example": "075bbd4b-302a-a27c-11f0-6d3a98056287",
          "format": "uuid",
          "type": "string"
        }
      },
      "required": [
        "sale_id"
      ],
      "type": "object"
    },
    "FulfillSaleResponse": {
      "properties": {
        "data": {
          "description": "A list of the updated fulfillments.",
          "items": {
            "$ref": "#/components/schemas/FulfillmentResponse"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "Fulfillment": {
      "properties": {
        "created_at": {
          "description": "Creation timestamp in UTC.",
          "type": "string"
        },
        "id": {
          "description": "Auto-generated object ID.",
          "format": "uuid",
          "type": "string"
        },
        "line_items": {
          "description": "The line items that were fulfilled.",
          "items": {
            "$ref": "#/components/schemas/FulfillmentLineItem"
          },
          "type": "array"
        },
        "outlet_id": {
          "description": "The ID of the outlet that the sale was fulfilled from.",
          "format": "uuid",
          "type": "string"
        },
        "sale_id": {
          "description": "The ID of the sale that was fulfilled.",
          "format": "uuid",
          "type": "string"
        },
        "shipping_address_id": {
          "description": "ID of the shipping address associated with this fulfillment. Only present for SHIPPED fulfillments with a shipping address.",
          "nullable": true,
          "type": "string"
        },
        "status": {
          "description": "Status of the fulfillment.",
          "enum": [
            "SHIPPED",
            "PICKED_UP"
          ],
          "type": "string"
        },
        "user_id": {
          "description": "The ID of the user who fulfilled the sale.",
          "format": "uuid",
          "type": "string"
        }
      },
      "title": "Fulfillment",
      "type": "object"
    },
    "FulfillmentDetail": {
      "properties": {
        "note": {
          "description": "The fulfillment note for fulfillments of the specified type.",
          "type": "string"
        },
        "shipping_address_id": {
          "description": "The ID of the shipping address to use for DISPATCH fulfillments. Either this or shipping_address_token must be provided for DISPATCH.",
          "nullable": true,
          "type": "string"
        },
        "shipping_address_token": {
          "description": "The token of a newly created shipping address to use for DISPATCH fulfillments. Either this or shipping_address_id must be provided for DISPATCH.",
          "nullable": true,
          "type": "string"
        },
        "type": {
          "description": "The fulfillment type to which this fulfillment detail applies.",
          "enum": [
            "DISPATCH",
            "PICKUP"
          ],
          "type": "string"
        }
      },
      "type": "object"
    },
    "FulfillmentHistoryEntry": {
      "description": "A single state-change event in the fulfillment history ledger",
      "properties": {
        "created_at": {
          "description": "Timestamp when the event was recorded",
          "example": "2025-01-15T10:30:00Z",
          "format": "date-time",
          "type": "string"
        },
        "event_type": {
          "description": "The type of state-change event",
          "enum": [
            "CREATED",
            "QUANTITY_UPDATED",
            "REMOVED",
            "PICKED",
            "PACKED",
            "FULFILLED",
            "VOIDED",
            "UNVOIDED",
            "RETURNED",
            "RETURN_VOIDED",
            "SPLIT"
          ],
          "type": "string"
        },
        "fulfilled_delta": {
          "description": "Change in fulfilled quantity for this line item",
          "example": "0",
          "type": "string"
        },
        "packed_quantity_delta": {
          "description": "Change in packed quantity for this line item",
          "example": "0",
          "type": "string"
        },
        "picked_quantity_delta": {
          "description": "Change in picked quantity for this line item",
          "example": "0",
          "type": "string"
        },
        "product_id": {
          "description": "The ID of the product associated with the line item",
          "example": "e058ea02-c565-405f-be27-cefaeeca1f92",
          "format": "uuid",
          "type": "string"
        },
        "quantity_delta": {
          "description": "Change in total quantity for this line item",
          "example": "5",
          "type": "string"
        },
        "sale_line_item_id": {
          "description": "The ID of the sale line item this event relates to",
          "example": "81b37e5f-aa50-4fe3-95d3-a3cec73a7e2c",
          "format": "uuid",
          "type": "string"
        },
        "source_sale_id": {
          "description": "The ID of the source sale (present for RETURNED and SPLIT events)",
          "example": "81d2fc44-e4d4-4180-8f1e-b36de2acf438",
          "format": "uuid",
          "type": "string"
        }
      },
      "required": [
        "sale_line_item_id",
        "product_id",
        "event_type",
        "quantity_delta",
        "picked_quantity_delta",
        "packed_quantity_delta",
        "fulfilled_delta",
        "created_at"
      ],
      "type": "object"
    },
    "FulfillmentHistoryResponse": {
      "description": "Paginated response containing fulfillment history entries",
      "properties": {
        "data": {
          "description": "List of history entries ordered oldest-first",
          "items": {
            "$ref": "#/components/schemas/FulfillmentHistoryEntry"
          },
          "type": "array"
        },
        "next_cursor": {
          "description": "Opaque cursor for fetching the next page. Empty when no more pages exist.",
          "type": "string"
        }
      },
      "required": [
        "data"
      ],
      "type": "object"
    },
    "FulfillmentLineItem": {
      "properties": {
        "id": {
          "description": "Auto-generated object ID.",
          "format": "uuid",
          "type": "string"
        },
        "product_id": {
          "description": "The ID of a product that was fulfilled.",
          "format": "uuid",
          "type": "string"
        },
        "quantity": {
          "description": "Quantity of product units included in the fulfillment.",
          "type": "string"
        }
      },
      "title": "Fulfillment Line Item",
      "type": "object"
    },
    "FulfillmentLineItemRequest": {
      "properties": {
        "quantity": {
          "description": "The quantity to be fulfilled",
          "example": 1,
          "format": "double",
          "type": "number"
        },
        "sale_line_item_id": {
          "description": "The unique identifier of the sale line item to be fulfilled.",
          "example": "f3a8d2c1-9b7e-4f56-8a12-3e4d5c6b7a89",
          "format": "uuid",
          "type": "string"
        },
        "source_breakdown": {
          "$ref": "#/components/schemas/FulfillLineItemSourceBreakdown"
        }
      },
      "required": [
        "sale_line_item_id",
        "quantity"
      ],
      "type": "object"
    },
    "FulfillmentResponse": {
      "properties": {
        "id": {
          "description": "The unique identifier of the fulfillment.",
          "example": "1950523126384443392",
          "type": "string"
        },
        "version": {
          "description": "The new version number of the fulfillment after the update.",
          "example": 2,
          "format": "int32",
          "type": "integer"
        }
      },
      "type": "object"
    },
    "FulfillmentSummaryItem": {
      "properties": {
        "created_at": {
          "description": "Timestamp when the item was created",
          "example": "2024-01-15T10:30:00Z",
          "format": "date-time",
          "type": "string"
        },
        "id": {
          "description": "Unique identifier for the fulfillment summary item",
          "example": "1947700198720344064",
          "type": "string"
        },
        "line_items": {
          "items": {
            "$ref": "#/components/schemas/FulfillmentSummaryLineItem"
          },
          "type": "array"
        },
        "note": {
          "description": "Combined notes with newline separators",
          "example": "Customer requested specific pickup time\nHandle with care",
          "type": "string"
        },
        "outlet_id": {
          "description": "Identifier of the outlet",
          "example": "e058ea02-c565-405f-be27-cefaeeca1f92",
          "type": "string"
        },
        "sale_id": {
          "description": "Identifier of the sale",
          "example": "81b37e5f-aa50-4fe3-95d3-a3cec73a7e2c",
          "type": "string"
        },
        "shipping_address_id": {
          "description": "ID of the shipping address associated with this fulfillment. Only present for DISPATCH type fulfillments.",
          "example": "12345678901234567",
          "nullable": true,
          "type": "string"
        },
        "state": {
          "description": "Current state of the fulfillment",
          "enum": [
            "OPEN",
            "STARTED",
            "PICKED",
            "PACKED",
            "FULFILLED"
          ],
          "example": "OPEN",
          "type": "string"
        },
        "type": {
          "description": "Type of fulfillment",
          "enum": [
            "PICKUP",
            "DISPATCH",
            "SERVICE"
          ],
          "example": "PICKUP",
          "type": "string"
        },
        "updated_at": {
          "description": "Timestamp when the item was last updated",
          "example": "2024-01-15T14:20:00Z",
          "format": "date-time",
          "type": "string"
        },
        "user_ids": {
          "description": "List of user IDs associated with this fulfillment",
          "example": [
            "cca2eff2-9d4a-403b-a045-af953b6572b0"
          ],
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "version": {
          "description": "Version number for optimistic locking",
          "example": 1,
          "format": "int32",
          "type": "integer"
        }
      },
      "required": [
        "id",
        "outlet_id",
        "sale_id",
        "type",
        "state",
        "user_ids",
        "note",
        "created_at",
        "updated_at",
        "version",
        "line_items"
      ],
      "type": "object"
    },
    "FulfillmentSummaryLineItem": {
      "properties": {
        "fulfilled_quantity": {
          "description": "Quantity that has been fulfilled.",
          "nullable": true,
          "type": "number"
        },
        "packed_quantity": {
          "description": "Quantity that has been packed.",
          "nullable": true,
          "type": "number"
        },
        "picked_quantity": {
          "description": "Quantity that has been picked.",
          "nullable": true,
          "type": "number"
        },
        "product_id": {
          "description": "Identifier of the product",
          "example": "e9d7d1b3-0561-45f5-9e40-c7bfa81db394",
          "type": "string"
        },
        "quantity": {
          "description": "Total quantity.",
          "nullable": true,
          "type": "number"
        },
        "sale_line_item_id": {
          "description": "Identifier of the sale line item",
          "example": "460e1119-2f41-42a3-bd61-3f9639e2e265",
          "type": "string"
        }
      },
      "required": [
        "sale_line_item_id",
        "product_id",
        "quantity",
        "picked_quantity",
        "packed_quantity",
        "fulfilled_quantity"
      ],
      "type": "object"
    },
    "FulfillmentSummaryResponse": {
      "properties": {
        "data": {
          "items": {
            "$ref": "#/components/schemas/FulfillmentSummaryItem"
          },
          "type": "array"
        }
      },
      "required": [
        "data"
      ],
      "type": "object"
    },
    "FulfillmentsResponse": {
      "properties": {
        "data": {
          "items": {
            "$ref": "#/components/schemas/Fulfillment"
          },
          "type": "array"
        }
      },
      "title": "Fulfillments Response",
      "type": "object"
    },
    "GenerateTokenResponse": {
      "properties": {
        "location": {
          "description": "The Stripe Terminal location ID associated with the outlet.",
          "type": "string"
        },
        "on_behalf_of": {
          "description": "The Stripe connected account ID the token is issued on behalf of.",
          "type": "string"
        },
        "token": {
          "description": "The Stripe Terminal connection token.",
          "type": "string"
        }
      },
      "required": [
        "location",
        "token"
      ],
      "type": "object"
    },
    "GetUsersByIdsRequest": {
      "description": "An array of user IDs to retrieve.",
      "items": {
        "format": "uuid",
        "type": "string"
      },
      "title": "GetUsersByIdsRequest",
      "type": "array"
    },
    "GiftCard": {
      "description": "A gift card with monetary values represented as strings for precision.",
      "properties": {
        "balance": {
          "description": "The balance of the gift card, represented as a string for precision.",
          "type": "string"
        },
        "created_at": {
          "description": "The creation timestamp in UTC.",
          "type": "string"
        },
        "expires_at": {
          "description": "The expiry timestamp in UTC.",
          "nullable": true,
          "type": "string"
        },
        "gift_card_transactions": {
          "description": "An array of Gift Card Transactions.",
          "items": {
            "$ref": "#/components/schemas/GiftCardTransaction"
          },
          "type": "array"
        },
        "id": {
          "description": "Auto-generated object ID.",
          "type": "string"
        },
        "number": {
          "description": "The gift card number.",
          "type": "string"
        },
        "sale_id": {
          "description": "The ID of the sale associated with the gift card creation, if it was created through a register sale. Null if the gift card was created directly via the API.",
          "format": "uuid",
          "nullable": true,
          "type": "string"
        },
        "sale_source": {
          "description": "The source system where the gift card was created (e.g. x-series, e-series).",
          "type": "string"
        },
        "status": {
          "description": "The gift card status.",
          "enum": [
            "ACTIVE",
            "INACTIVE",
            "REDEEMED",
            "VOIDED",
            "EXPIRED"
          ],
          "type": "string"
        },
        "total_redeemed": {
          "description": "The amount redeemed with this gift card, represented as a string for precision.",
          "type": "string"
        },
        "total_sold": {
          "description": "The amount loaded onto this gift card during activation or reloading, represented as a string for precision.",
          "type": "string"
        }
      },
      "title": "Gift Card",
      "type": "object"
    },
    "GiftCardActivationParams": {
      "description": "The parameters for creating and activating a new gift card.",
      "properties": {
        "amount": {
          "description": "The initial balance to be loaded onto the gift card (e.g. 10.00).",
          "example": 10,
          "format": "double",
          "type": "number"
        },
        "expires_at": {
          "description": "The expiry date of the gift card in YYYY-MM-DD format. If omitted, the expiry will be calculated based on the validity period configured in the Lightspeed Retail UI, or will be null if expiry is not enabled.",
          "type": "string"
        },
        "number": {
          "description": "The unique number to assign to the gift card.",
          "type": "string"
        },
        "time_zone": {
          "description": "The timezone to use when interpreting the `expires_at` date (e.g. \"Pacific/Auckland\"). See the list of tz database time zones for valid values.",
          "type": "string"
        },
        "user_id": {
          "description": "The ID of the user creating the gift card. If omitted, the authenticated user will be used.",
          "format": "uuid",
          "type": "string"
        }
      },
      "required": [
        "amount",
        "number"
      ],
      "title": "Gift Card Activation Parameters",
      "type": "object"
    },
    "GiftCardCollection": {
      "description": "A paginated list of gift cards.",
      "properties": {
        "data": {
          "description": "An array of Gift Cards.",
          "items": {
            "$ref": "#/components/schemas/GiftCard"
          },
          "type": "array"
        }
      },
      "required": [
        "data"
      ],
      "title": "Gift Card Collection",
      "type": "object"
    },
    "GiftCardSingleton": {
      "description": "A single gift card response.",
      "properties": {
        "data": {
          "$ref": "#/components/schemas/GiftCard"
        }
      },
      "required": [
        "data"
      ],
      "title": "Gift Card Response",
      "type": "object"
    },
    "GiftCardTransaction": {
      "description": "A gift card transaction with the amount represented as a string for precision.",
      "properties": {
        "amount": {
          "description": "The transaction amount, represented as a string for precision.",
          "type": "string"
        },
        "client_id": {
          "description": "The client id is a unique transaction identifier. The client must provide this and is normally the transaction id from the client system.",
          "nullable": true,
          "type": "string"
        },
        "created_at": {
          "description": "The creation timestamp in UTC.",
          "type": "string"
        },
        "id": {
          "description": "Auto-generated object ID.",
          "type": "string"
        },
        "source": {
          "description": "The source of the transaction.",
          "nullable": true,
          "type": "string"
        },
        "source_id": {
          "description": "The source id is a unique identifier for the transaction in the source system.",
          "nullable": true,
          "type": "string"
        },
        "type": {
          "description": "The type of transaction.",
          "enum": [
            "ACTIVATION",
            "REDEEMING",
            "IMPORTING",
            "VOIDING",
            "EXPIRING",
            "REVERSING",
            "RELOADING"
          ],
          "type": "string"
        },
        "user_id": {
          "description": "The user id associated with the transaction.",
          "format": "uuid",
          "type": "string"
        }
      },
      "title": "Gift Card Transaction",
      "type": "object"
    },
    "GiftCardTransactionParams": {
      "description": "The parameters for creating a new gift card transaction.",
      "properties": {
        "amount": {
          "description": "The transaction amount. Must be negative for REDEEMING transactions and positive for RELOADING transactions.",
          "format": "double",
          "type": "number"
        },
        "client_id": {
          "description": "A unique transaction identifier for idempotency. The client must provide this and is normally the transaction id from the client system.",
          "type": "string"
        },
        "expires_at": {
          "description": "Optional new expiry date for the gift card in YYYY-MM-DD format. Can be used to extend the gift card's expiry when reloading.",
          "type": "string"
        },
        "time_zone": {
          "description": "The timezone to use when interpreting the `expires_at` date (e.g. \"Pacific/Auckland\"). See the list of tz database time zones for valid values.",
          "type": "string"
        },
        "type": {
          "description": "The type of the transaction.",
          "enum": [
            "REDEEMING",
            "RELOADING"
          ],
          "type": "string"
        },
        "user_id": {
          "description": "The ID of the user creating the transaction. If omitted, the authenticated user will be used.",
          "format": "uuid",
          "type": "string"
        }
      },
      "required": [
        "amount",
        "client_id",
        "type"
      ],
      "title": "Gift Card Transaction Parameters",
      "type": "object"
    },
    "GiftCardTransactionSingleton": {
      "description": "A single gift card transaction response.",
      "properties": {
        "data": {
          "$ref": "#/components/schemas/GiftCardTransaction"
        }
      },
      "required": [
        "data"
      ],
      "title": "Gift Card Transaction Response",
      "type": "object"
    },
    "GlobalPaymentType": {
      "description": "The global (platform-level) payment type definition associated with a retailer payment type.",
      "properties": {
        "badge": {
          "description": "URL of the payment type badge image.",
          "nullable": true,
          "type": "string"
        },
        "category": {
          "description": "The category of the payment type.",
          "type": "string"
        },
        "configuration_url": {
          "description": "URL for configuring this payment type.",
          "nullable": true,
          "type": "string"
        },
        "description": {
          "description": "A description of the payment type.",
          "nullable": true,
          "type": "string"
        },
        "header": {
          "description": "The display header for the payment type.",
          "nullable": true,
          "type": "string"
        },
        "id": {
          "description": "The global payment type ID.",
          "format": "int64",
          "type": "integer"
        },
        "internal": {
          "description": "Indicates if this is an internal payment type.",
          "type": "boolean"
        },
        "logo": {
          "description": "URL of the payment type logo.",
          "nullable": true,
          "type": "string"
        },
        "name": {
          "description": "The name of the global payment type.",
          "type": "string"
        },
        "online_only": {
          "description": "Indicates if this payment type is available online only.",
          "type": "boolean"
        },
        "platforms": {
          "description": "The platforms on which this payment type is supported.",
          "items": {
            "type": "string"
          },
          "nullable": true,
          "type": "array"
        },
        "referred_inactive": {
          "description": "Indicates if the payment type was referred but is inactive.",
          "type": "boolean"
        },
        "show_banner": {
          "description": "Indicates if a banner should be shown for this payment type.",
          "type": "boolean"
        },
        "subcategory": {
          "description": "The subcategory of the payment type.",
          "type": "string"
        },
        "subtext": {
          "description": "Additional display text shown below the payment type name.",
          "nullable": true,
          "type": "string"
        }
      },
      "required": [
        "id",
        "name",
        "internal",
        "platforms",
        "category",
        "subcategory",
        "referred_inactive",
        "show_banner",
        "online_only"
      ],
      "type": "object"
    },
    "Image": {
      "properties": {
        "id": {
          "description": "Auto-generated object ID.",
          "format": "uuid",
          "type": "string"
        },
        "position": {
          "description": "Position of the image in collection of images associated with a product.",
          "format": "double",
          "type": "number"
        },
        "product_id": {
          "description": "The ID of the product this image is associated with.",
          "format": "uuid",
          "type": "string"
        },
        "status": {
          "description": "Status if the image upload processing. Can be `processing`, `uploaded`, `error`.",
          "type": "string"
        },
        "version": {
          "description": "Auto-incrementing object version number.",
          "format": "int64",
          "type": "integer"
        }
      },
      "title": "Image",
      "type": "object"
    },
    "ImagePosition": {
      "properties": {
        "position": {
          "description": "New position for the image.",
          "format": "double",
          "type": "number"
        }
      },
      "required": [
        "position"
      ],
      "title": "Image Position",
      "type": "object"
    },
    "ImageResponse": {
      "properties": {
        "data": {
          "$ref": "#/components/schemas/Image"
        }
      },
      "title": "Image Response",
      "type": "object"
    },
    "ImageSample": {
      "properties": {
        "id": {
          "description": "Auto-generated object ID.",
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "version": {
          "description": "Auto-incrementing object version number.",
          "format": "int64",
          "type": "integer"
        }
      },
      "title": "Image Sample",
      "type": "object"
    },
    "IntegrationSource": {
      "properties": {
        "id": {
          "description": "Integration source ID.",
          "type": "string"
        },
        "type": {
          "description": "Integration source type.",
          "type": "string"
        }
      },
      "title": "Integration Source",
      "type": "object"
    },
    "Inventory": {
      "properties": {
        "average_cost": {
          "description": "The average cost of inventory available to sell.",
          "format": "double",
          "nullable": true,
          "type": "number"
        },
        "current_inventory_level": {
          "description": "Current inventory level.",
          "format": "double",
          "type": "number"
        },
        "deleted_at": {
          "description": "The deletion timestamp in UTC, or null if not deleted.",
          "format": "date-time",
          "nullable": true,
          "type": "string"
        },
        "id": {
          "description": "Auto-generated object ID.",
          "type": "string"
        },
        "outlet_id": {
          "description": "The ID of the outlet associated with this inventory record.",
          "type": "string"
        },
        "product_id": {
          "description": "The ID of the product associated with this inventory record.",
          "type": "string"
        },
        "quantity_to_procure": {
          "description": "Quantity of stock to procure in order to satisfy current fulfilments and service orders.",
          "format": "double",
          "type": "number"
        },
        "reorder_amount": {
          "description": "The quantity to order to reach the desired stock level. For the `FIXED` method, this is a static amount that was set when the reorder method was configured. For `MIN_MAX`, this is dynamically computed as the difference between reorder_target and current_inventory_level, or zero if current stock exceeds the target. This computation is independent of reorder_point and may produce a non-zero value even when current_inventory_level is above the reorder point. It is null if no reorder method is configured.",
          "format": "double",
          "nullable": true,
          "type": "number"
        },
        "reorder_method": {
          "description": "The reorder strategy in use. Either `FIXED` or `MIN_MAX`. Null if no reorder method is configured.",
          "enum": [
            "FIXED",
            "MIN_MAX",
            null
          ],
          "nullable": true,
          "type": "string"
        },
        "reorder_point": {
          "description": "The inventory level at which a product should be automatically included in stock orders.",
          "format": "double",
          "nullable": true,
          "type": "number"
        },
        "reorder_target": {
          "description": "The desired stock level to restore to when reordering. For reorder_method `MIN_MAX`, this is the target the reorder amount is computed against. For `FIXED`, this equals reorder_point + reorder_amount. Null if no reorder method is configured.",
          "format": "double",
          "nullable": true,
          "type": "number"
        },
        "version": {
          "description": "Auto-incrementing object version number.",
          "format": "int64",
          "type": "integer"
        }
      },
      "title": "Inventory",
      "type": "object"
    },
    "InventoryCollection": {
      "properties": {
        "data": {
          "description": "An array of Inventory records wrapped in top level `data` object.",
          "items": {
            "$ref": "#/components/schemas/Inventory"
          },
          "type": "array"
        },
        "version": {
          "$ref": "#/components/schemas/Version"
        }
      },
      "title": "Inventory Collection",
      "type": "object"
    },
    "InventoryCountItem": {
      "properties": {
        "cost": {
          "description": "The cost of the item.",
          "type": "string"
        },
        "count": {
          "description": "Expected item count.",
          "type": "string"
        },
        "created_at": {
          "description": "The creation timestamp in UTC.",
          "type": "string"
        },
        "deleted_at": {
          "description": "The deletion timestamp in UTC.",
          "type": "string"
        },
        "is_included": {
          "description": "Indicated whether the item was included via a filter. Can be `null`. For full count (no filters) always `true`.",
          "type": "boolean"
        },
        "product_id": {
          "description": "The ID of the product associated with this count item.",
          "format": "uuid",
          "type": "string"
        },
        "product_sku": {
          "type": "string"
        },
        "received": {
          "description": "Observed item count.",
          "type": "string"
        },
        "status": {
          "description": "The status of the item. One of: `PENDING`, `SUCCESS`.",
          "type": "string"
        },
        "updated_at": {
          "description": "Last update timestamp in UTC.",
          "type": "string"
        },
        "version": {
          "description": "Auto-incrementing object version number.",
          "format": "int64",
          "type": "integer"
        }
      },
      "required": [
        "cost",
        "count",
        "created_at",
        "deleted_at",
        "product_id",
        "received",
        "status",
        "updated_at",
        "version"
      ],
      "title": "Inventory Count Item",
      "type": "object"
    },
    "InventoryCountItemResponse": {
      "properties": {
        "data": {
          "$ref": "#/components/schemas/InventoryCountItem"
        }
      },
      "required": [
        "data"
      ],
      "title": "Inventory Count Item Response",
      "type": "object"
    },
    "InventoryLevel": {
      "properties": {
        "average_cost": {
          "description": "The average cost of inventory available to sell.\n\n🔒 Requires: `product:cost:view` scope",
          "format": "double",
          "type": "number"
        },
        "brand_id": {
          "format": "uuid",
          "type": "string"
        },
        "current_inventory_level": {
          "description": "Total inventory available to sell.",
          "format": "double",
          "type": "number"
        },
        "location_id": {
          "format": "uuid",
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "product_id": {
          "format": "uuid",
          "type": "string"
        },
        "product_type_id": {
          "format": "uuid",
          "type": "string"
        },
        "quantity_to_procure": {
          "description": "Quantity of stock to procure in order to satisfy current fulfilments and service orders.",
          "format": "double",
          "type": "number"
        },
        "reorder_amount": {
          "description": "The quantity of stock to reorder. For `FIXED`, this is the static amount configured when the reorder method was set up. For `MIN_MAX`, this is dynamically computed as `reorder_target` minus `current_inventory_level` (or zero if current stock already meets or exceeds the target). Omitted if no reorder method is configured.",
          "format": "double",
          "type": "number"
        },
        "reorder_method": {
          "description": "The reorder strategy in use. `FIXED` uses a static reorder amount each time the threshold is reached. `MIN_MAX` dynamically computes the reorder amount to bring stock up to the configured maximum. Omitted if no reorder method is configured.",
          "enum": [
            "FIXED",
            "MIN_MAX",
            null
          ],
          "nullable": true,
          "type": "string"
        },
        "reorder_target": {
          "description": "The target inventory level for replenishment. For `FIXED`, this equals `reorder_threshold` + `reorder_amount`. For `MIN_MAX`, this is the maximum inventory level to restock to. Omitted if no reorder method is configured.",
          "format": "double",
          "type": "number"
        },
        "reorder_threshold": {
          "description": "The inventory level at which reordering is triggered. For `FIXED`, this is the reorder point below which a reorder is suggested. For `MIN_MAX`, this is the minimum inventory level. Omitted if no reorder method is configured.",
          "format": "double",
          "type": "number"
        },
        "root_product_id": {
          "description": "The root product ID of the product's variant family.",
          "format": "uuid",
          "type": "string"
        },
        "supplier_id": {
          "format": "uuid",
          "type": "string"
        },
        "total_cost": {
          "description": "The total cost of inventory available to sell.",
          "format": "double",
          "type": "number"
        }
      }
    },
    "InventoryLevelsRequest": {
      "properties": {
        "group_variants": {
          "default": false,
          "description": "If filtering by `root_product_ids` and `group_variants` is true, one aggregated level will be returned\nfor each variant family at each outlet.",
          "type": "boolean"
        },
        "include_composites": {
          "default": false,
          "description": "Include composite products in the response.",
          "type": "boolean"
        },
        "include_inactive": {
          "default": false,
          "description": "Include inactive products in the response.",
          "type": "boolean"
        },
        "location_ids": {
          "description": "Optional outlet IDs to filter response by.",
          "items": {
            "format": "uuid",
            "type": "string"
          },
          "maxItems": 1000,
          "type": "array"
        },
        "offset": {
          "default": 0,
          "description": "How many inventory levels to skip.",
          "format": "int64",
          "type": "integer"
        },
        "product_ids": {
          "description": "Optional product IDs to filter response by. Mutually exclusive with `root_product_ids`. When omitted, returns inventory levels for all products.",
          "items": {
            "format": "uuid",
            "type": "string"
          },
          "maxItems": 1000,
          "type": "array"
        },
        "root_product_ids": {
          "description": "Optional root product IDs to filter response by. Mutually exclusive with `product_ids`. When omitted, returns inventory levels for all products.",
          "items": {
            "format": "uuid",
            "type": "string"
          },
          "maxItems": 1000,
          "type": "array"
        },
        "size": {
          "default": 100,
          "description": "How many inventory levels to return.",
          "format": "int64",
          "maximum": 10000,
          "type": "integer"
        },
        "sort_direction": {
          "default": "desc",
          "description": "Whether to sort the response ascending or descending.",
          "enum": [
            "asc",
            "desc"
          ],
          "type": "string"
        },
        "sort_type": {
          "default": "total_count",
          "description": "Which response field to sort by.",
          "enum": [
            "total_count",
            "total_cost",
            "average_cost",
            "reorder_point",
            "reorder_amount",
            "product_name",
            "created_at"
          ],
          "type": "string"
        },
        "supplier_ids": {
          "description": "Optional supplier IDs to filter response by.",
          "items": {
            "format": "uuid",
            "type": "string"
          },
          "maxItems": 1000,
          "type": "array"
        },
        "to_be_procured_only": {
          "default": false,
          "description": "Only include inventory with a positive quantity to procure.",
          "type": "boolean"
        }
      }
    },
    "InventoryRequest": {
      "properties": {
        "after": {
          "description": "The lower limit for the version numbers to be included in the response.",
          "format": "int64",
          "type": "integer"
        },
        "before": {
          "description": "The upper limit for the version numbers to be included in the response.",
          "format": "int64",
          "type": "integer"
        },
        "include_deleted": {
          "default": false,
          "description": "Whether to include inventory records for deleted products.",
          "type": "boolean"
        },
        "product_id": {
          "description": "Optional filter to restrict results to the specified product. When combined with variants: true, it's \ntreated as a root product ID and matches all variants of that product; otherwise it matches the exact \nproduct.",
          "format": "uuid",
          "type": "string"
        },
        "size": {
          "default": 1000,
          "description": "The maximum number of inventory records to return.",
          "format": "int64",
          "maximum": 5000,
          "type": "integer"
        },
        "sort_direction": {
          "default": "desc",
          "description": "Whether to sort the response by ascending or descending.",
          "enum": [
            "asc",
            "desc"
          ],
          "type": "string"
        },
        "variants": {
          "default": false,
          "description": "When true (and product_id is set), matches all variant products sharing the same root_product_id, rather\nthan just the exact product.",
          "type": "boolean"
        }
      }
    },
    "InvoiceMetadata": {
      "properties": {
        "resolve_number": {
          "description": "Whether to resolve the invoice number automatically.",
          "type": "boolean"
        },
        "sequence": {
          "description": "Invoice sequence number.",
          "format": "int32",
          "type": "integer"
        }
      },
      "title": "Invoice Metadata",
      "type": "object"
    },
    "ItemDetails": {
      "properties": {
        "description": {
          "type": "string"
        },
        "initial_condition": {
          "type": "string"
        },
        "item_id": {
          "type": "string"
        },
        "item_name": {
          "type": "string"
        },
        "serial_number": {
          "type": "string"
        }
      },
      "title": "ItemDetails",
      "type": "object"
    },
    "LineItem": {
      "properties": {
        "cost": {
          "description": "Unit cost for the line item.",
          "format": "double",
          "type": "number"
        },
        "cost_total": {
          "description": "Total cost for the line item.",
          "format": "double",
          "type": "number"
        },
        "discount": {
          "description": "Discount value of the line item.",
          "format": "double",
          "type": "number"
        },
        "discount_total": {
          "description": "Total discount for the line item.",
          "format": "double",
          "type": "number"
        },
        "id": {
          "description": "The ID of this line item.",
          "format": "uuid",
          "type": "string"
        },
        "is_return": {
          "description": "Indicates whether this line item is a return from another sale (referenced by `return_for` on the main sale object).",
          "type": "boolean"
        },
        "loyalty_value": {
          "description": "The value that should be added to associated customer's loyalty balance.",
          "format": "double",
          "type": "number"
        },
        "note": {
          "description": "Line item note.",
          "nullable": true,
          "type": "string"
        },
        "price": {
          "description": "Unit price of the line item.",
          "format": "double",
          "type": "number"
        },
        "price_set": {
          "description": "Indicates whether the price was set manually. Using `true` means that the value will never be refreshed from the Price Book when reloaded (sale retrieved from parked sales).",
          "type": "boolean"
        },
        "price_total": {
          "description": "Total price for the line item.",
          "format": "double",
          "type": "number"
        },
        "product_id": {
          "description": "The ID of the product associated with this line item.",
          "format": "uuid",
          "type": "string"
        },
        "quantity": {
          "description": "Quantity of products for the line item.",
          "format": "double",
          "type": "number"
        },
        "salesperson_id": {
          "description": "The ID of the salesperson associated with this line item. Salesperson IDs can be retrieved from the /api/{version}/users endpoint. Only needed when this line item is not sold by current login user.",
          "format": "uuid",
          "type": "string"
        },
        "sequence": {
          "description": "Order of the line item in the sale.",
          "format": "double",
          "type": "number"
        },
        "status": {
          "description": "Status of the line item.",
          "enum": [
            "SAVED",
            "VOIDED",
            "CONFIRMED"
          ],
          "type": "string"
        },
        "surcharges": {
          "description": "Collection of surcharges associated with the line item.",
          "items": {
            "$ref": "#/components/schemas/LineItemSurcharge"
          },
          "type": "array"
        },
        "tax": {
          "deprecated": true,
          "description": "The unit tax value associated with this line item. **deprecated**",
          "format": "double",
          "type": "number"
        },
        "tax_components": {
          "description": "Collection of tax components associated with the line item.",
          "items": {
            "$ref": "#/components/schemas/LineItemTaxComponent"
          },
          "type": "array"
        },
        "tax_id": {
          "description": "The ID of the tax associated with this line item.",
          "format": "uuid",
          "type": "string"
        },
        "tax_total": {
          "description": "Total tax value.",
          "format": "double",
          "type": "number"
        }
      },
      "title": "Line Item",
      "type": "object"
    },
    "LineItemAdjustment": {
      "properties": {
        "amount": {
          "$ref": "#/components/schemas/AdjustmentAmount"
        },
        "name": {
          "description": "The name of the adjustment.",
          "type": "string"
        },
        "source": {
          "$ref": "#/components/schemas/AdjustmentSource"
        },
        "target": {
          "$ref": "#/components/schemas/AdjustmentTarget"
        },
        "type": {
          "description": "The type of the adjustment.",
          "enum": [
            "NON_CASH_FEE",
            "DISCOUNT",
            "TIP"
          ],
          "type": "string"
        }
      },
      "required": [
        "type",
        "target"
      ],
      "title": "Line Item Adjustment",
      "type": "object"
    },
    "LineItemAttribute": {
      "properties": {
        "name": {
          "description": "Attribute name. (`line_note` for a line item note.)",
          "type": "string"
        },
        "value": {
          "description": "Attribute value. (For `line_note`, the string value of the line_item note.)",
          "type": "string"
        }
      },
      "required": [
        "name",
        "value"
      ],
      "title": "Line Item Attribute",
      "type": "object"
    },
    "LineItemCustomization": {
      "properties": {
        "field_type": {
          "description": "The field type of the customization.",
          "type": "string"
        },
        "files": {
          "description": "Files attached to this customization.",
          "items": {
            "$ref": "#/components/schemas/CustomizationFile"
          },
          "type": "array"
        },
        "id": {
          "description": "The ID of the customization.",
          "type": "string"
        },
        "name": {
          "description": "The name of the customization.",
          "type": "string"
        },
        "value": {
          "description": "The value of the customization.",
          "type": "string"
        }
      },
      "title": "Line Item Customization",
      "type": "object"
    },
    "LineItemMetadata": {
      "properties": {
        "fulfillment_method": {
          "description": "The fulfillment type for this line item. Only used when creating new sales, ignored when updating existing sales.",
          "enum": [
            "DISPATCH",
            "PICKUP"
          ],
          "type": "string"
        },
        "is_price_override": {
          "description": "Indicates whether the price was overridden, preventing recalculation of the total price based on the price from the database.",
          "type": "boolean"
        },
        "sequence": {
          "description": "Order number of the line item.",
          "format": "int32",
          "type": "integer"
        }
      },
      "title": "Line Item Metadata",
      "type": "object"
    },
    "LineItemPricing": {
      "properties": {
        "adjustments": {
          "description": "Adjustments.",
          "items": {
            "$ref": "#/components/schemas/LineItemAdjustment"
          },
          "type": "array"
        },
        "cost": {
          "description": "Unit cost of the line item",
          "format": "double",
          "type": "number"
        },
        "discount": {
          "description": "Discount value of the line item.",
          "format": "double",
          "type": "number"
        },
        "loyalty_amount": {
          "description": "The value of loyalty that will be incurred by the customer for this line item.",
          "format": "double",
          "type": "number"
        },
        "price": {
          "description": "Unit price of the line item.",
          "format": "double",
          "type": "number"
        }
      },
      "required": [
        "price"
      ],
      "title": "Line Item Pricing",
      "type": "object"
    },
    "LineItemProduct": {
      "properties": {
        "id": {
          "description": "The ID of the product associated with this line item.",
          "format": "uuid",
          "type": "string"
        }
      },
      "required": [
        "id"
      ],
      "title": "Line Item Product",
      "type": "object"
    },
    "LineItemProductDetails": {
      "properties": {
        "handle": {
          "description": "The handle of the product associated with this line item.",
          "type": "string"
        },
        "id": {
          "description": "The ID of the product associated with this line item.",
          "format": "uuid",
          "type": "string"
        },
        "name": {
          "description": "The name of the product associated with this line item.",
          "type": "string"
        },
        "sku": {
          "description": "The SKU of the product associated with this line item.",
          "type": "string"
        }
      },
      "title": "Line Item Product Details",
      "type": "object"
    },
    "LineItemPromotion": {
      "properties": {
        "amount": {
          "description": "Promotion discount amount.",
          "format": "double",
          "type": "number"
        },
        "id": {
          "description": "Promotion ID.",
          "type": "string"
        },
        "name": {
          "description": "Promotion name.",
          "type": "string"
        },
        "promo_code": {
          "description": "Promo code used.",
          "type": "string"
        },
        "promo_code_id": {
          "description": "Promo code ID.",
          "type": "string"
        }
      },
      "title": "Line Item Promotion",
      "type": "object"
    },
    "LineItemResponseMetadata": {
      "properties": {
        "is_price_override": {
          "description": "Indicates whether the price was overridden, preventing recalculation of the total price based on the price from the database.",
          "type": "boolean"
        },
        "is_retail_price_tax_inclusive": {
          "description": "Indicates whether the retail price is tax inclusive.",
          "type": "boolean"
        },
        "sequence": {
          "description": "Order of the line item in the sale.",
          "nullable": true,
          "type": "number"
        },
        "tax_components": {
          "description": "Tax components for this line item.",
          "items": {
            "$ref": "#/components/schemas/LineItemTaxComponentResponse"
          },
          "type": "array"
        }
      },
      "title": "Line Item Response Metadata",
      "type": "object"
    },
    "LineItemResponsePricing": {
      "properties": {
        "cost": {
          "description": "Unit cost for the line item.",
          "format": "double",
          "type": "number"
        },
        "cost_total": {
          "description": "Total cost for the line item (`cost` × `quantity`).",
          "format": "double",
          "type": "number"
        },
        "discount": {
          "description": "Discount value of the line item.",
          "format": "double",
          "type": "number"
        },
        "discount_total": {
          "description": "Total discount for the line item (`discount` × `quantity`).",
          "format": "double",
          "type": "number"
        },
        "loyalty_amount": {
          "description": "The value that should be added to associated customer's loyalty balance.",
          "format": "double",
          "type": "number"
        },
        "loyalty_amount_total": {
          "description": "Total loyalty value for the line item (`loyalty_amount` × `quantity`).",
          "format": "double",
          "type": "number"
        },
        "price": {
          "description": "Unit price of the line item.",
          "format": "double",
          "type": "number"
        },
        "total": {
          "description": "Total price for the line item.",
          "format": "double",
          "type": "number"
        }
      },
      "title": "Line Item Response Pricing",
      "type": "object"
    },
    "LineItemResponseSource": {
      "properties": {
        "register_id": {
          "description": "The ID of the register which was used to add this line item to the sale.",
          "format": "uuid",
          "type": "string"
        }
      },
      "title": "Line Item Response Source",
      "type": "object"
    },
    "LineItemResponseTax": {
      "properties": {
        "amount": {
          "description": "The unit tax value associated with this line item.",
          "format": "double",
          "type": "number"
        },
        "id": {
          "description": "The ID of the tax associated with this line item.",
          "format": "uuid",
          "type": "string"
        },
        "name": {
          "description": "The name of the tax associated with this line item.",
          "type": "string"
        },
        "rate": {
          "description": "The rate of the tax associated with this line item.",
          "format": "double",
          "type": "number"
        },
        "total": {
          "description": "Total tax value.",
          "format": "double",
          "type": "number"
        }
      },
      "title": "Line Item Response Tax",
      "type": "object"
    },
    "LineItemReturn": {
      "properties": {
        "is_return": {
          "description": "Indicates whether this line item is a return.",
          "type": "boolean"
        },
        "reason": {
          "description": "Return reason.",
          "nullable": true,
          "type": "string"
        }
      },
      "title": "Line Item Return",
      "type": "object"
    },
    "LineItemSource": {
      "properties": {
        "author_id": {
          "description": "The ID of the salesperson associated with this line item. Salesperson IDs can be retrieved from the /api/{version}/users endpoint. Only needed when this line item is not sold by current login user.",
          "format": "uuid",
          "type": "string"
        },
        "register_id": {
          "description": "The ID of the register which was used to add this line item to the sale.",
          "format": "uuid",
          "type": "string"
        }
      },
      "title": "Line Item Source",
      "type": "object"
    },
    "LineItemSurcharge": {
      "properties": {
        "tax_components": {
          "description": "Collection of tax components associated with the surcharge.",
          "items": {
            "$ref": "#/components/schemas/LineItemTaxComponentResponse"
          },
          "type": "array"
        },
        "value": {
          "description": "Tax exclusive surcharge amount for a specific payment.",
          "format": "double",
          "type": "number"
        }
      },
      "required": [
        "value",
        "tax_components"
      ],
      "title": "Line Item Surcharge",
      "type": "object"
    },
    "LineItemTax": {
      "properties": {
        "amount": {
          "description": "The unit tax value associated with this line item.",
          "format": "double",
          "type": "number"
        },
        "id": {
          "description": "The ID of the tax associated with this line item. Tax IDs can be retrieved from the /api/2.0/taxes endpoint; for tax-free items, please use the ID of the tax named 'No Tax'",
          "format": "uuid",
          "type": "string"
        }
      },
      "required": [
        "id",
        "amount"
      ],
      "title": "Line Item Tax",
      "type": "object"
    },
    "LineItemTaxComponent": {
      "properties": {
        "rate_id": {
          "description": "Tax rate ID.",
          "type": "string"
        },
        "total_tax": {
          "description": "Tax total.",
          "format": "double",
          "type": "number"
        }
      },
      "required": [
        "rate_id",
        "total_tax"
      ],
      "title": "Line Item Tax Component",
      "type": "object"
    },
    "LineItemTaxComponentResponse": {
      "properties": {
        "rate_id": {
          "description": "Tax rate ID.",
          "type": "string"
        },
        "total_tax": {
          "description": "Tax total.",
          "format": "double",
          "type": "number"
        }
      },
      "required": [
        "rate_id",
        "total_tax"
      ],
      "title": "Line Item Tax Component",
      "type": "object"
    },
    "LoyaltyAdjustmentCreateBody": {
      "description": "Request body to perform loyalty balance adjustment",
      "properties": {
        "adjustments": {
          "items": {
            "description": "single customer loyalty adjustment item",
            "properties": {
              "credit": {
                "description": "how much loyalty to add to the balance (mutually exclusive with debit)",
                "type": "number"
              },
              "customer_id": {
                "description": "id of a customer to perform an adjustment",
                "format": "uuid",
                "type": "string"
              },
              "debit": {
                "description": "how much loyalty to subtract from the balance (mutually exclusive with credit)",
                "type": "number"
              },
              "reason": {
                "description": "Arbitrary note that would be associated with the transaction",
                "type": "string"
              }
            },
            "required": [
              "customer_id"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "session_id": {
          "description": "An unique ID that prevents double adjustment (same request sent twice will be only applied once)\nMust be an uuidv4",
          "format": "uuid",
          "type": "string"
        }
      },
      "required": [
        "adjustments"
      ],
      "type": "object"
    },
    "LoyaltyAdjustmentResponse": {
      "description": "Response for the loyalty balance adjustment request",
      "properties": {
        "applied": {
          "description": "adjustments that were successful",
          "items": {
            "properties": {
              "balance": {
                "description": "updated customer balance",
                "type": "number"
              },
              "customer_id": {
                "type": "string"
              }
            },
            "type": "object"
          },
          "type": "array"
        },
        "errors": {
          "description": "adjustments that failed",
          "items": {
            "properties": {
              "customer_id": {
                "type": "string"
              },
              "error": {
                "description": "update error",
                "type": "string"
              }
            },
            "type": "object"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "LspayCNPConfigResponse": {
      "properties": {
        "client_key": {
          "description": "The client key for card-not-present payment processing.",
          "type": "string"
        },
        "currency": {
          "description": "The currency configured for card-not-present payments.",
          "type": "string"
        }
      },
      "required": [
        "currency",
        "client_key"
      ],
      "title": "LspayCNPConfigResponse",
      "type": "object"
    },
    "LspayNewTransactionRequest": {
      "properties": {
        "amount": {
          "description": "The transaction amount as a decimal string.",
          "type": "string"
        },
        "currency": {
          "description": "The ISO 4217 currency code.",
          "type": "string"
        },
        "metadata": {
          "$ref": "#/components/schemas/LspayTransactionMetadata"
        },
        "payment_start_time_ms": {
          "description": "The Unix timestamp in milliseconds when payment was initiated.",
          "format": "int64",
          "type": "integer"
        },
        "register_sale_payment_id": {
          "description": "The register sale payment ID to associate with this transaction.",
          "type": "string"
        },
        "retailer_payment_type_id": {
          "description": "The retailer payment type ID configured for LSPay.",
          "type": "string"
        },
        "tip_eligible_amount": {
          "description": "The tip-eligible portion of the amount as a decimal string.",
          "type": "string"
        },
        "with_surcharge": {
          "description": "Whether to apply a surcharge to this transaction.",
          "type": "boolean"
        }
      },
      "required": [
        "amount",
        "currency",
        "register_sale_payment_id",
        "retailer_payment_type_id",
        "metadata"
      ],
      "title": "LspayNewTransactionRequest",
      "type": "object"
    },
    "LspayPairingAttemptRequest": {
      "properties": {
        "source": {
          "description": "The source of the pairing attempt.",
          "type": "string"
        }
      },
      "title": "LspayPairingAttemptRequest",
      "type": "object"
    },
    "LspayPaymentIntentRequest": {
      "properties": {
        "payment_intent_id": {
          "description": "The Stripe payment intent ID.",
          "type": "string"
        }
      },
      "required": [
        "payment_intent_id"
      ],
      "title": "LspayPaymentIntentRequest",
      "type": "object"
    },
    "LspayReprocessTransactionRequest": {
      "properties": {
        "currency": {
          "description": "The ISO 4217 currency code. Required when with_surcharge is true.",
          "type": "string"
        },
        "payment_intent_id": {
          "description": "The Stripe payment intent ID.",
          "type": "string"
        },
        "payment_start_time_ms": {
          "description": "The Unix timestamp in milliseconds when payment was initiated.",
          "format": "int64",
          "type": "integer"
        },
        "tip_eligible_amount": {
          "description": "The tip-eligible portion of the amount as a decimal string.",
          "type": "string"
        },
        "with_surcharge": {
          "description": "Whether to apply a surcharge to the reprocessed transaction.",
          "type": "boolean"
        }
      },
      "required": [
        "payment_intent_id"
      ],
      "title": "LspayReprocessTransactionRequest",
      "type": "object"
    },
    "LspayRetailerFeaturesResponse": {
      "additionalProperties": {
        "type": "string"
      },
      "description": "A map of LSPay feature flag keys to their string values (e.g. \"pmof_enabled\" → \"true\").",
      "title": "LspayRetailerFeaturesResponse",
      "type": "object"
    },
    "LspaySetupIntentResponse": {
      "properties": {
        "client_secret": {
          "description": "The Stripe setup intent client secret.",
          "type": "string"
        }
      },
      "required": [
        "client_secret"
      ],
      "title": "LspaySetupIntentResponse",
      "type": "object"
    },
    "LspayTender": {
      "properties": {
        "amount": {
          "description": "The tender amount.",
          "type": "number"
        },
        "card_details": {
          "additionalProperties": true,
          "description": "Card-specific details returned by the provider.",
          "type": "object"
        },
        "created_at": {
          "description": "The time the tender was created.",
          "format": "date-time",
          "type": "string"
        },
        "currency": {
          "description": "The ISO 4217 currency code.",
          "type": "string"
        },
        "emv": {
          "additionalProperties": true,
          "description": "EMV chip data returned by the provider.",
          "type": "object"
        },
        "external_transaction_id": {
          "description": "The external (provider) transaction ID.",
          "type": "string"
        },
        "id": {
          "description": "The tender ID.",
          "type": "string"
        },
        "provider_fields": {
          "additionalProperties": true,
          "description": "Provider-specific fields.",
          "type": "object"
        },
        "status": {
          "description": "The tender status.",
          "enum": [
            "APPROVED",
            "APPROVED_PIN",
            "APPROVED_SIGNATURE",
            "CANCELLED",
            "DECLINED",
            "REFUNDED",
            "REVERSED",
            "UNKNOWN"
          ],
          "type": "string"
        },
        "transaction_id": {
          "description": "The transaction ID this tender belongs to.",
          "type": "string"
        },
        "type": {
          "description": "The tender type.",
          "enum": [
            "SALE",
            "REFUND",
            "REVERSAL",
            "TIP",
            "SURCHARGE"
          ],
          "type": "string"
        }
      },
      "required": [
        "id",
        "transaction_id",
        "created_at",
        "currency",
        "amount",
        "type",
        "status"
      ],
      "title": "LspayTender",
      "type": "object"
    },
    "LspayTokenResponse": {
      "properties": {
        "location": {
          "description": "The Stripe Terminal location ID.",
          "type": "string"
        },
        "on_behalf_of": {
          "description": "The Stripe account ID on behalf of which the token is issued.",
          "type": "string"
        },
        "serial_number": {
          "description": "The terminal serial number. Only present when pairingData=true.",
          "type": "string"
        },
        "token": {
          "description": "The Stripe Terminal connection token.",
          "type": "string"
        }
      },
      "required": [
        "token",
        "location"
      ],
      "title": "LspayTokenResponse",
      "type": "object"
    },
    "LspayTransaction": {
      "properties": {
        "created_at": {
          "description": "The time the transaction was created.",
          "format": "date-time",
          "type": "string"
        },
        "id": {
          "description": "The transaction ID.",
          "type": "string"
        },
        "payment_type_id": {
          "description": "The payment type ID.",
          "type": "string"
        },
        "provider_fields": {
          "additionalProperties": true,
          "description": "Provider-specific fields.",
          "type": "object"
        },
        "register_id": {
          "description": "The register ID.",
          "type": "string"
        },
        "register_sale_payment_id": {
          "description": "The register sale payment ID.",
          "type": "string"
        },
        "retailer_id": {
          "description": "The retailer ID.",
          "type": "string"
        },
        "retailer_payment_type_id": {
          "description": "The retailer payment type ID.",
          "type": "string"
        },
        "status": {
          "description": "The transaction status.",
          "enum": [
            "CANCELLED",
            "CANCELLED_BAD_CARD",
            "CANCELLED_BUSY",
            "COMPLETED",
            "DECLINED",
            "REFUNDED",
            "REVERSED",
            "TIMEOUT",
            "UNKNOWN",
            "PROCESSING"
          ],
          "type": "string"
        },
        "tenders": {
          "description": "The tenders associated with this transaction.",
          "items": {
            "$ref": "#/components/schemas/LspayTender"
          },
          "type": "array"
        },
        "updated_at": {
          "description": "The time the transaction was last updated.",
          "format": "date-time",
          "type": "string"
        }
      },
      "required": [
        "id",
        "register_sale_payment_id",
        "retailer_id",
        "created_at",
        "updated_at",
        "status",
        "tenders",
        "register_id",
        "retailer_payment_type_id",
        "provider_fields"
      ],
      "title": "LspayTransaction",
      "type": "object"
    },
    "LspayTransactionMetadata": {
      "properties": {
        "product_version": {
          "description": "The version of the POS product initiating the transaction.",
          "type": "string"
        },
        "register_sale_id": {
          "description": "The register sale ID associated with this transaction.",
          "type": "string"
        }
      },
      "required": [
        "register_sale_id",
        "product_version"
      ],
      "title": "LspayTransactionMetadata",
      "type": "object"
    },
    "LspayTransactionResponse": {
      "properties": {
        "payment_intent_id": {
          "description": "The Stripe payment intent ID.",
          "type": "string"
        },
        "reason": {
          "description": "The reason for the transaction status.",
          "enum": [
            "TERMINAL_BUSY",
            "TERMINAL_TIMEOUT",
            "TERMINAL_UNAVAILABLE",
            "TERMINAL_ERROR",
            "UNKNOWN",
            "CARD_DECLINED",
            "EXPIRED_CARD",
            "INSUFFICIENT_FUNDS",
            "INVALID_AMOUNT",
            "INVALID_ACCOUNT",
            "STRIPE_INVALID_REQUEST_ERROR",
            "STRIPE_API_ERROR",
            "TRANSACTION_NOT_ALLOWED",
            "INCORRECT_PIN",
            "PIN_TRY_EXCEEDED",
            "INTENT_CANCELLED",
            "OVERRIDE_CANCELLED",
            "CUSTOMER_CANCELED",
            "PAYMENT_INTENT_NOT_FOUND",
            "PAYMENT_METHOD_NOT_AVAILABLE",
            "MOBILE_DEVICE_AUTHENTICATION_REQUIRED",
            "MISMATCH_INTENT",
            "MISSING_PAYMENT_METHOD",
            "WRONG_RSPI",
            "SETUP_INTENT_NOT_FOUND",
            "SETUP_INTENT_NOT_FAILED",
            "TERMINAL_ACTION_FAILED",
            "CARD_PRESENTED_MISMATCH_ORIGINAL_CARD"
          ],
          "type": "string"
        },
        "register_sale_payment_id": {
          "description": "The register sale payment ID.",
          "type": "string"
        },
        "status": {
          "description": "The cached transaction status.",
          "enum": [
            "CANCELLED",
            "COMPLETED",
            "DECLINED",
            "PROCESSING",
            "AUTHORISED",
            "UNKNOWN",
            "CARD_PRESENTED"
          ],
          "type": "string"
        },
        "transaction": {
          "$ref": "#/components/schemas/LspayTransaction"
        }
      },
      "required": [
        "register_sale_payment_id",
        "payment_intent_id",
        "status"
      ],
      "title": "LspayTransactionResponse",
      "type": "object"
    },
    "Outlet": {
      "properties": {
        "attributes": {
          "description": "The outlet attributes such as `low_stock_warning`, `order_reference`, `order_reference_prefix`, `return_reference`, `return_reference_prefix`.",
          "items": {
            "$ref": "#/components/schemas/Attribute"
          },
          "type": "array"
        },
        "currency": {
          "description": "Currency name.",
          "type": "string"
        },
        "currency_symbol": {
          "description": "Currency symbol.",
          "type": "string"
        },
        "default_tax_id": {
          "deprecated": true,
          "description": "Default tax id used for sales in this outlet. **deprecated**",
          "type": "string"
        },
        "deleted_at": {
          "description": "Deletion timestamp in UTC.",
          "nullable": true,
          "type": "string"
        },
        "display_prices": {
          "description": "Indicates whether prices in this outlet should be displayed as tax-inclusive.",
          "enum": [
            "inclusive",
            "exclusive"
          ],
          "type": "string"
        },
        "email": {
          "description": "Specified email for the outlet.",
          "nullable": true,
          "type": "string"
        },
        "id": {
          "description": "Auto-generated object ID.",
          "type": "string"
        },
        "latitude": {
          "description": "Geographical latitude of the outlet.",
          "nullable": true,
          "type": "string"
        },
        "longitude": {
          "description": "Geographical longitude of the outlet.",
          "nullable": true,
          "type": "string"
        },
        "name": {
          "description": "The outlet name.",
          "type": "string"
        },
        "phone": {
          "description": "Contact phone number for the outlet.",
          "nullable": true,
          "type": "string"
        },
        "physical_address_1": {
          "description": "Physical address, line 1.",
          "nullable": true,
          "type": "string"
        },
        "physical_address_2": {
          "description": "Physical address, line 2.",
          "nullable": true,
          "type": "string"
        },
        "physical_city": {
          "description": "Physical address, city.",
          "nullable": true,
          "type": "string"
        },
        "physical_country_id": {
          "description": "Physical address, country code.",
          "nullable": true,
          "type": "string"
        },
        "physical_postcode": {
          "description": "Physical address, post code.",
          "nullable": true,
          "type": "string"
        },
        "physical_state": {
          "description": "Physical address, state.",
          "nullable": true,
          "type": "string"
        },
        "physical_suburb": {
          "description": "Physical address, suburb.",
          "nullable": true,
          "type": "string"
        },
        "time_zone": {
          "description": "Outlet timezone. **read only**",
          "nullable": true,
          "type": "string"
        },
        "version": {
          "description": "Auto-incrementing object version number.",
          "format": "int64",
          "type": "integer"
        }
      },
      "required": [
        "id",
        "name",
        "default_tax_id",
        "currency",
        "display_prices",
        "time_zone",
        "currency_symbol",
        "attributes",
        "version"
      ],
      "title": "Outlet",
      "type": "object"
    },
    "OutletCollection": {
      "properties": {
        "data": {
          "description": "An array of Outlet objects  wrapped in top level `data` object.",
          "items": {
            "$ref": "#/components/schemas/Outlet"
          },
          "type": "array"
        },
        "version": {
          "$ref": "#/components/schemas/Version"
        }
      },
      "required": [
        "data",
        "version"
      ],
      "title": "Outlet Collection",
      "type": "object"
    },
    "OutletResponse": {
      "properties": {
        "data": {
          "$ref": "#/components/schemas/Outlet"
        }
      },
      "title": "Outlet Response",
      "type": "object"
    },
    "OutletTax": {
      "properties": {
        "deleted_at": {
          "description": "Deletion timestamp in UTC.",
          "nullable": true,
          "type": "string"
        },
        "outlet_id": {
          "description": "The ID of the outlet this record is associated with.",
          "format": "uuid",
          "type": "string"
        },
        "product_id": {
          "description": "The ID of the product this record is associated with.",
          "format": "uuid",
          "type": "string"
        },
        "tax_id": {
          "description": "The ID of the tax this record is associated with.",
          "format": "uuid",
          "type": "string"
        },
        "version": {
          "description": "Auto-incrementing object version number.",
          "format": "int64",
          "type": "integer"
        }
      },
      "required": [
        "outlet_id",
        "product_id",
        "tax_id",
        "version"
      ],
      "title": "Outlet Product Tax",
      "type": "object"
    },
    "OutletTaxCollection": {
      "properties": {
        "data": {
          "description": "An array of outlet-product-tax records.",
          "items": {
            "$ref": "#/components/schemas/OutletTax"
          },
          "type": "array"
        },
        "version": {
          "$ref": "#/components/schemas/Version"
        }
      },
      "type": "object"
    },
    "PackLineItemRequest": {
      "properties": {
        "quantity": {
          "description": "The quantity to be packed",
          "example": 1,
          "format": "double",
          "type": "number"
        },
        "sale_line_item_id": {
          "description": "The unique identifier of the sale line item to be packed.",
          "example": "f3a8d2c1-9b7e-4f56-8a12-3e4d5c6b7a89",
          "format": "uuid",
          "type": "string"
        },
        "source_breakdown": {
          "$ref": "#/components/schemas/PackLineItemSourceBreakdown"
        }
      },
      "required": [
        "sale_line_item_id",
        "quantity"
      ],
      "type": "object"
    },
    "PackLineItemSourceBreakdown": {
      "description": "Specifies how a packing quantity should be sourced. When provided, both fields are required and must sum to the parent quantity. Source breakdown is not allowed when the parent quantity is negative (unpacking).",
      "properties": {
        "quantity_from_not_started": {
          "description": "Quantity to source from the not-started state.",
          "format": "double",
          "type": "number"
        },
        "quantity_from_picked": {
          "description": "Quantity to source from the picked state.",
          "format": "double",
          "type": "number"
        }
      },
      "required": [
        "quantity_from_picked",
        "quantity_from_not_started"
      ],
      "type": "object"
    },
    "PackLineItemsRequest": {
      "properties": {
        "line_items": {
          "description": "The line items to be packed",
          "items": {
            "$ref": "#/components/schemas/PackLineItemRequest"
          },
          "type": "array"
        },
        "version": {
          "description": "The current version number of the fulfillment.",
          "example": 5,
          "format": "int32",
          "type": "integer"
        }
      },
      "required": [
        "version",
        "line_items"
      ],
      "type": "object"
    },
    "PackLineItemsResponse": {
      "properties": {
        "data": {
          "properties": {
            "id": {
              "description": "The unique identifier of the fulfillment.",
              "example": "7428951063847291856",
              "type": "string"
            },
            "version": {
              "description": "The new version number of the fulfillment after the update.",
              "example": 3,
              "format": "int32",
              "type": "integer"
            }
          },
          "type": "object"
        }
      },
      "type": "object"
    },
    "PackedLineItem": {
      "description": "A single sale line item and the quantity to include on the partial packing slip",
      "properties": {
        "quantity": {
          "description": "The quantity of this line item to pack. Must be a positive finite number and must not exceed the quantity already packed on the pick lists.",
          "example": 2,
          "format": "double",
          "type": "number"
        },
        "sale_line_item_id": {
          "description": "The ID of the sale line item to include on the packing slip",
          "example": "81b37e5f-aa50-4fe3-95d3-a3cec73a7e2c",
          "format": "uuid",
          "type": "string"
        }
      },
      "required": [
        "sale_line_item_id",
        "quantity"
      ],
      "title": "Packed Line Item",
      "type": "object"
    },
    "PaginationMetadata": {
      "properties": {
        "page": {
          "type": "integer"
        },
        "pageSize": {
          "type": "integer"
        },
        "results": {
          "type": "integer"
        }
      },
      "type": "object"
    },
    "Pairing": {
      "description": "A terminal pairing record associating a register with a payment terminal.",
      "properties": {
        "created_at": {
          "description": "When the pairing was created.",
          "format": "date-time",
          "type": "string"
        },
        "pairing_key": {
          "description": "The pairing key identifying the terminal.",
          "type": "string"
        },
        "pairing_value": {
          "description": "The pairing value (e.g. serial number or location).",
          "type": "string"
        },
        "register_id": {
          "description": "The register ID associated with this pairing.",
          "type": "string"
        },
        "retailer_id": {
          "description": "The retailer ID associated with this pairing.",
          "type": "string"
        },
        "updated_at": {
          "description": "When the pairing was last updated.",
          "format": "date-time",
          "type": "string"
        }
      },
      "required": [
        "register_id",
        "retailer_id",
        "pairing_key",
        "pairing_value",
        "created_at",
        "updated_at"
      ],
      "title": "Pairing",
      "type": "object"
    },
    "PartialPackingSlipRequest": {
      "description": "Request body describing the subset of line items and quantities to render on a partial packing slip",
      "properties": {
        "lang": {
          "description": "BCP 47 language tag used to localize the static template strings on the packing slip. Defaults to `en-US` when omitted or unrecognized.",
          "example": "en-US",
          "type": "string"
        },
        "packed_line_items": {
          "description": "The sale line items and quantities to include on the partial packing slip. Must contain at least one item.",
          "items": {
            "$ref": "#/components/schemas/PackedLineItem"
          },
          "minItems": 1,
          "type": "array"
        }
      },
      "required": [
        "packed_line_items"
      ],
      "title": "Partial Packing Slip Request",
      "type": "object"
    },
    "PartnerSubscription": {
      "description": "PartnerSubscription contains all the subscription under one partner application",
      "properties": {
        "application_id": {
          "type": "string"
        },
        "application_name": {
          "example": "Partner Application",
          "type": "string"
        },
        "partner_subscription_info": {
          "items": {
            "$ref": "#/components/schemas/PartnerSubscriptionInfo"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "PartnerSubscriptionInfo": {
      "properties": {
        "charge_interval": {
          "example": 1,
          "format": "int64",
          "type": "integer"
        },
        "charge_interval_unit": {
          "example": "month",
          "type": "string"
        },
        "components": {
          "items": {
            "$ref": "#/components/schemas/ProductInfoComponent"
          },
          "type": "array"
        },
        "currency": {
          "example": "nzd",
          "type": "string"
        },
        "id": {
          "example": "1348730086846538752",
          "type": "string"
        },
        "next_assessment_at": {
          "example": "2021-02-11T20:34:42Z",
          "type": "string"
        },
        "price_in_cents": {
          "example": "5000",
          "type": "string"
        },
        "product_family_name": {
          "example": "Marshmallow Production Subscription",
          "type": "string"
        },
        "product_name": {
          "example": "Marshmallow Lite Subscription",
          "type": "string"
        },
        "product_price_point_name": {
          "example": "marshmallow-product-price-point",
          "type": "string"
        },
        "state": {
          "example": "canceled",
          "type": "string"
        }
      },
      "type": "object"
    },
    "PartnerSubscriptionToken": {
      "description": "PartnerSubscriptionToken repreasent a partner subscription token",
      "properties": {
        "components": {
          "example": "{components: [{\"component_handle\": \"additional_registers\", \"component_price_point_handle\": \"basic\", \"quantity\": 2}]}",
          "type": "string"
        },
        "created_at": {
          "example": "2020-10-06T05:07:26Z",
          "format": "date-time",
          "type": "string"
        },
        "is_used": {
          "example": true,
          "type": "boolean"
        },
        "product_handle": {
          "example": "lite",
          "type": "string"
        },
        "product_price_point_handle": {
          "example": "marshmallow-lite",
          "type": "string"
        },
        "retailer_id": {
          "example": "0242ac12-001c-11eb-fa07-0f585c3d42ee",
          "type": "string"
        },
        "return_url": {
          "example": "https://example.com/redirect",
          "type": "string"
        },
        "subscription_id": {
          "example": 1316881562803438000,
          "format": "int64",
          "type": "integer"
        },
        "token": {
          "description": "Token is a randomly generated string that is a required parameter for consent page",
          "example": "0a7e36eb05a94bf1a4d3daeff0f561f9",
          "maxLength": 32,
          "minLength": 32,
          "type": "string"
        },
        "used_at": {
          "example": "2020-10-06T07:00:38Z",
          "format": "date-time",
          "type": "string"
        },
        "vend_application_id": {
          "example": "iYsePmZaddtZRNYQrr7g3Eg2ItSkTiFx",
          "type": "string"
        }
      },
      "type": "object"
    },
    "PartnerSubscriptionTokenComponent": {
      "description": "PartnerSubscriptionTokenComponent represents a component to be added to a subscription",
      "properties": {
        "component_handle": {
          "description": "Unique reference to the component to be included in the new subscription",
          "example": "additional_registers",
          "type": "string"
        },
        "component_price_handle": {
          "description": "Unique reference to the component price point",
          "example": "lite",
          "type": "string"
        },
        "quantity": {
          "description": "How many components should be added",
          "example": 1,
          "format": "int64",
          "type": "integer"
        }
      },
      "required": [
        "component_handle",
        "component_price_handle",
        "quantity"
      ],
      "type": "object"
    },
    "PartnerSubscriptionTokenRequest": {
      "description": "PartnerSubscriptionTokenRequest represents the request's body for subscription token API",
      "properties": {
        "components": {
          "description": "Components is a list of components to add on to the plan",
          "items": {
            "$ref": "#/components/schemas/PartnerSubscriptionTokenComponent"
          },
          "type": "array"
        },
        "coupon_code": {
          "description": "CouponCode is the coupon code to be attached to the activation",
          "example": "TEST10POFFFORLIFE",
          "type": "string"
        },
        "price_handle": {
          "description": "ProductPricePointHandle is the product price point handle",
          "example": "small-v1",
          "type": "string"
        },
        "product_handle": {
          "description": "ProductHandle is the product handle",
          "example": "small-v1",
          "type": "string"
        },
        "return_url": {
          "description": "ReturnURL is the URL to which the user is redirected to after giving his/her consent",
          "example": "https://www.example.com/return",
          "type": "string"
        }
      },
      "required": [
        "price_handle",
        "product_handle",
        "return_url"
      ],
      "type": "object"
    },
    "PartnerSubscriptionTokenResponse": {
      "description": "PartnerSubscriptionTokenResponse contains the token and its expiration time",
      "properties": {
        "expires_at": {
          "description": "ExpiresAt is the exact time of token expiry in UTC timezone and displayed in RFC3339 format",
          "example": "2020-10-06T05:07:26Z",
          "type": "string"
        },
        "expires_in": {
          "description": "ExpiresIn is the number of seconds till the token is expired",
          "example": "86400",
          "type": "string"
        },
        "token": {
          "description": "Token is a randomly generated string that is a required parameter for consent page",
          "example": "0a7e36eb05a94bf1a4d3daeff0f561f9",
          "maxLength": 32,
          "minLength": 32,
          "type": "string"
        }
      },
      "type": "object"
    },
    "PartnerSubscriptions": {
      "description": "PartnerSubscriptions contains all the subscriptions of the retailer from all the partners",
      "items": {
        "$ref": "#/components/schemas/PartnerSubscription"
      },
      "nullable": true,
      "type": "array"
    },
    "PartnerUpdateSubscriptionTokenComponent": {
      "description": "PartnerUpdateSubscriptionTokenComponent represents a component to be added to an updated subscription",
      "properties": {
        "component_handle": {
          "description": "Unique reference for the component to be updated",
          "example": "additional_registers",
          "type": "string"
        },
        "component_price_handle": {
          "description": "Unique reference for the component price point to be updated to",
          "example": "lite",
          "type": "string"
        },
        "quantity": {
          "description": "How many components should be there after the update",
          "example": 1,
          "format": "int64",
          "type": "integer"
        }
      },
      "required": [
        "component_handle",
        "quantity"
      ],
      "type": "object"
    },
    "PartnerUpdateSubscriptionTokenRequest": {
      "description": "PartnerUpdateSubscriptionTokenRequest represents the request's body for updating a subscription via token API",
      "properties": {
        "components": {
          "description": "Components is a list of components to add on to the plan",
          "items": {
            "$ref": "#/components/schemas/PartnerUpdateSubscriptionTokenComponent"
          },
          "type": "array"
        },
        "price_handle": {
          "description": "ProductPricePointHandle is the product price point handle, required if `product_handle` is specified",
          "example": "small-v1",
          "type": "string"
        },
        "product_handle": {
          "description": "ProductHandle is the product handle to update",
          "example": "small-v1",
          "type": "string"
        },
        "return_url": {
          "description": "ReturnURL is the URL to which the user is redirected to after giving his/her consent",
          "example": "https://www.example.com/return",
          "type": "string"
        }
      },
      "required": [
        "return_url"
      ],
      "type": "object"
    },
    "Payment": {
      "properties": {
        "amount": {
          "description": "Payment amount.",
          "format": "double",
          "type": "number"
        },
        "id": {
          "description": "Auto-generated payment ID.",
          "format": "uuid",
          "type": "string"
        },
        "name": {
          "description": "Payment type name.",
          "type": "string"
        },
        "outlet_id": {
          "description": "A valid outlet ID.",
          "format": "uuid",
          "type": "string"
        },
        "payment_date": {
          "description": "Payment date in UTC.",
          "type": "string"
        },
        "payment_type_id": {
          "deprecated": true,
          "description": "A payment type associated with the retailer payment type. **deprecated**",
          "type": "string"
        },
        "register_id": {
          "description": "A valid register ID.",
          "format": "uuid",
          "type": "string"
        },
        "retailer_payment_type_id": {
          "description": "A valid retailer payment type ID.",
          "format": "uuid",
          "type": "string"
        },
        "surcharge": {
          "$ref": "#/components/schemas/SaleSurcharge"
        }
      },
      "title": "Payment",
      "type": "object"
    },
    "PaymentErrorResponse": {
      "properties": {
        "error": {
          "properties": {
            "code": {
              "type": "integer"
            },
            "message": {
              "description": "Human-readable error description.",
              "type": "string"
            }
          },
          "required": [
            "code",
            "message"
          ],
          "type": "object"
        }
      },
      "required": [
        "error"
      ],
      "type": "object"
    },
    "PaymentExternalApplication": {
      "properties": {
        "application_id": {
          "description": "ID of the external application.",
          "type": "string"
        },
        "created_at": {
          "description": "Creation timestamp in UTC.",
          "type": "string"
        },
        "external_id": {
          "description": "ID from the external application.",
          "type": "string"
        },
        "updated_at": {
          "description": "Last update timestamp in UTC.",
          "type": "string"
        }
      },
      "title": "Payment External Application",
      "type": "object"
    },
    "PaymentExternalAttribute": {
      "additionalProperties": true,
      "description": "External attributes for the payment. Additional dynamic keys may be present.",
      "properties": {
        "card_last_four_digits": {
          "description": "Last 4 digits of the card.",
          "type": "string"
        },
        "source": {
          "description": "Source of the external attribute.",
          "type": "string"
        },
        "transaction_id": {
          "description": "Transaction ID from the external system.",
          "type": "string"
        }
      },
      "title": "Payment External Attribute",
      "type": "object"
    },
    "PaymentIntegration": {
      "properties": {
        "card_last4": {
          "description": "Last 4 digits of the card.",
          "type": "string"
        },
        "is_authorized": {
          "description": "Whether the payment is authorized.",
          "type": "boolean"
        },
        "receipt_number": {
          "description": "Receipt number from the payment integration.",
          "type": "string"
        },
        "source": {
          "$ref": "#/components/schemas/IntegrationSource"
        },
        "transaction_id": {
          "description": "Transaction ID from the payment integration.",
          "type": "string"
        }
      },
      "title": "Payment Integration",
      "type": "object"
    },
    "PaymentIntentMetadata": {
      "properties": {
        "order_id": {
          "description": "Payment ID / register_sale_payment_id.",
          "type": "string"
        },
        "product_version": {
          "description": "Version of the POS product.",
          "type": "string"
        },
        "register_name": {
          "description": "Name of the register. If omitted, swiper will resolve it via the Vend API using register_id.\n",
          "type": "string"
        },
        "register_sale_id": {
          "description": "The register sale ID associated with this payment.",
          "type": "string"
        },
        "terminal_label": {
          "description": "Device name / terminal label.",
          "type": "string"
        },
        "terminal_serial_number": {
          "description": "Device serial number / ID.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "PaymentIntentRequest": {
      "properties": {
        "amount": {
          "description": "Payment amount in the store's currency units.",
          "example": 10.5,
          "format": "double",
          "type": "number"
        },
        "currency": {
          "description": "ISO 4217 currency code.",
          "example": "AUD",
          "type": "string"
        },
        "metadata": {
          "$ref": "#/components/schemas/PaymentIntentMetadata"
        },
        "outlet_id": {
          "description": "The outlet identifier. Required to derive the Stripe connected account (PLI).",
          "type": "string"
        },
        "support_interac": {
          "default": false,
          "description": "When true and currency is CAD, adds Interac as a supported payment method.\n",
          "type": "boolean"
        }
      },
      "required": [
        "amount",
        "currency",
        "outlet_id"
      ],
      "type": "object"
    },
    "PaymentIntentResponse": {
      "properties": {
        "capture_method": {
          "description": "Stripe capture method. Determined by currency: - `automatic` for AUD - `manual` for all other currencies\n",
          "enum": [
            "automatic",
            "manual"
          ],
          "type": "string"
        },
        "client_secret": {
          "description": "Client secret for completing the payment on the client side.",
          "example": "pi_3Abc123_secret_xyz",
          "type": "string"
        },
        "id": {
          "description": "Stripe payment intent ID.",
          "example": "pi_3Abc123",
          "type": "string"
        },
        "on_behalf_of": {
          "description": "Stripe connected account ID. Present when the payment is on behalf of a connected account.",
          "type": "string"
        },
        "status": {
          "description": "Stripe payment intent status.",
          "example": "requires_payment_method",
          "type": "string"
        }
      },
      "required": [
        "id",
        "client_secret",
        "capture_method",
        "status"
      ],
      "type": "object"
    },
    "PaymentResponseMetadata": {
      "properties": {
        "register_open_sequence_id": {
          "description": "Register open sequence ID.",
          "format": "uuid",
          "type": "string"
        }
      },
      "title": "Payment Response Metadata",
      "type": "object"
    },
    "PaymentResponseSource": {
      "properties": {
        "id": {
          "description": "Integrator-derived payment source ID. Non-null when the integrator provides a transaction ID.",
          "type": "string"
        },
        "outlet_id": {
          "description": "A valid outlet ID.",
          "format": "uuid",
          "type": "string"
        },
        "register_id": {
          "description": "The ID of the register used to add this payment to the sale.",
          "format": "uuid",
          "type": "string"
        }
      },
      "title": "Payment Response Source",
      "type": "object"
    },
    "PaymentSource": {
      "properties": {
        "register_id": {
          "description": "The ID of the register used to add this payment to the sale.",
          "format": "uuid",
          "type": "string"
        }
      },
      "title": "Payment Source",
      "type": "object"
    },
    "PaymentSurcharge": {
      "properties": {
        "amount": {
          "description": "Surcharge amount.",
          "format": "double",
          "type": "number"
        },
        "rule": {
          "description": "Specifies the rule of the surcharge to be applied.",
          "type": "string"
        }
      },
      "title": "Payment Surcharge",
      "type": "object"
    },
    "PaymentType": {
      "properties": {
        "config": {
          "additionalProperties": true,
          "description": "Payment type configuration. Shape varies by payment type.",
          "nullable": true,
          "type": "object"
        },
        "created_at": {
          "description": "The creation timestamp.",
          "format": "date-time",
          "nullable": true,
          "type": "string"
        },
        "deleted_at": {
          "description": "The deletion timestamp.",
          "format": "date-time",
          "nullable": true,
          "type": "string"
        },
        "disabled": {
          "description": "Indicates if the payment type is disabled.",
          "type": "boolean"
        },
        "gateway": {
          "description": "Indicates if the payment type is a gateway type.",
          "type": "boolean"
        },
        "id": {
          "description": "Auto-generated object ID.",
          "type": "string"
        },
        "internal": {
          "description": "Indicates if the payment type is for internal use only.",
          "type": "boolean"
        },
        "is_editable": {
          "description": "Indicates if the payment type can be edited. Omitted when not applicable.",
          "nullable": true,
          "type": "boolean"
        },
        "name": {
          "description": "The name of the payment type.",
          "type": "string"
        },
        "name_changed_by_user": {
          "description": "Indicates if the name was customised by the retailer.",
          "type": "boolean"
        },
        "outlet_ids": {
          "description": "The list of outlet IDs this payment type is associated with.",
          "items": {
            "type": "string"
          },
          "nullable": true,
          "type": "array"
        },
        "payment_type": {
          "$ref": "#/components/schemas/GlobalPaymentType"
        },
        "type_id": {
          "description": "The ID of the global payment type. It shouldn't be used to identify the payment type - there may be multiple payment types with the same `type_id`.",
          "type": "integer"
        },
        "version": {
          "description": "Auto-incrementing object version number.",
          "format": "int64",
          "type": "integer"
        }
      },
      "required": [
        "id",
        "name",
        "type_id",
        "version",
        "disabled",
        "internal"
      ],
      "type": "object"
    },
    "PaymentTypeCollection": {
      "properties": {
        "data": {
          "description": "An array of payment types.",
          "items": {
            "$ref": "#/components/schemas/PaymentType"
          },
          "type": "array"
        },
        "version": {
          "$ref": "#/components/schemas/Version"
        }
      },
      "required": [
        "data",
        "version"
      ],
      "type": "object"
    },
    "PaymentTypeConfig": {
      "properties": {
        "config_id": {
          "description": "Payment type id to be used for the payment.",
          "format": "uuid",
          "type": "string"
        }
      },
      "required": [
        "config_id"
      ],
      "title": "Payment Type Config",
      "type": "object"
    },
    "PaymentTypeDetails": {
      "properties": {
        "config_id": {
          "description": "Payment type id to be used for the payment.",
          "format": "uuid",
          "type": "string"
        },
        "id": {
          "description": "**internal** Global payment type ID. Irrelevant for external use.",
          "type": "string"
        },
        "label": {
          "description": "The label of the payment type.",
          "type": "string"
        },
        "name": {
          "description": "The name of the payment type.",
          "type": "string"
        }
      },
      "title": "Payment Type Details",
      "type": "object"
    },
    "PickLineItemRequest": {
      "properties": {
        "quantity": {
          "description": "The quantity to be picked",
          "example": 1,
          "format": "double",
          "type": "number"
        },
        "sale_line_item_id": {
          "description": "The unique identifier of the sale line item to be picked.",
          "example": "f3a8d2c1-9b7e-4f56-8a12-3e4d5c6b7a89",
          "format": "uuid",
          "type": "string"
        }
      },
      "required": [
        "sale_line_item_id",
        "quantity"
      ],
      "type": "object"
    },
    "PickLineItemsRequest": {
      "properties": {
        "line_items": {
          "description": "The line items to be picked",
          "items": {
            "$ref": "#/components/schemas/PickLineItemRequest"
          },
          "type": "array"
        },
        "version": {
          "description": "The current version number of the fulfillment.",
          "example": 5,
          "format": "int32",
          "type": "integer"
        }
      },
      "required": [
        "version",
        "line_items"
      ],
      "type": "object"
    },
    "PickLineItemsResponse": {
      "properties": {
        "data": {
          "properties": {
            "id": {
              "description": "The unique identifier of the fulfillment.",
              "example": "7428951063847291856",
              "type": "string"
            },
            "version": {
              "description": "The new version number of the fulfillment after the update.",
              "example": 3,
              "format": "int32",
              "type": "integer"
            }
          },
          "type": "object"
        }
      },
      "type": "object"
    },
    "PickList": {
      "properties": {
        "created_at": {
          "description": "Creation timestamp in UTC.",
          "type": "string"
        },
        "id": {
          "description": "Auto-generated object ID.",
          "format": "uuid",
          "type": "string"
        },
        "line_items": {
          "description": "The line items that are awaiting fulfillment.",
          "items": {
            "$ref": "#/components/schemas/PickListLineItem"
          },
          "type": "array"
        },
        "note": {
          "description": "The fulfillment note associated with the pick list.",
          "type": "string"
        },
        "outlet_id": {
          "description": "The ID of the outlet that the sale originates from.",
          "format": "uuid",
          "type": "string"
        },
        "sale_id": {
          "description": "The ID of the sale that is awaiting fulfillment.",
          "format": "uuid",
          "type": "string"
        },
        "status": {
          "description": "Status of the pick list.",
          "type": "string"
        },
        "type": {
          "description": "Fulfillment Type of the pick list.",
          "enum": [
            "SHIPPED",
            "PICKED_UP"
          ],
          "nullable": true,
          "type": "string"
        },
        "user_id": {
          "description": "The ID of the user who started the sale.",
          "format": "uuid",
          "type": "string"
        }
      },
      "title": "PickList",
      "type": "object"
    },
    "PickListLineItem": {
      "properties": {
        "id": {
          "description": "Auto-generated object ID.",
          "format": "uuid",
          "type": "string"
        },
        "note": {
          "description": "Line item note.",
          "nullable": true,
          "type": "string"
        },
        "picked_quantity": {
          "description": "Number of units that are picked so far for this line item in the pick list.",
          "format": "double",
          "type": "number"
        },
        "product_id": {
          "description": "The ID of a product in the pick list.",
          "format": "uuid",
          "type": "string"
        },
        "quantity": {
          "description": "Number of units that need to be picked for this line item before satisfying the pick list.",
          "format": "double",
          "type": "number"
        },
        "sale_line_item_id": {
          "description": "The ID of the line item associated to the sale",
          "format": "uuid",
          "type": "string"
        }
      },
      "title": "Pick List Line Item",
      "type": "object"
    },
    "PickListsResponse": {
      "properties": {
        "data": {
          "items": {
            "$ref": "#/components/schemas/PickList"
          },
          "type": "array"
        }
      },
      "title": "Pick Lists Response",
      "type": "object"
    },
    "PriceBook": {
      "properties": {
        "created_at": {
          "description": "Created timestamp in UTC.",
          "type": "string"
        },
        "customer_group_ids": {
          "description": "The IDs of the customer groups associated with this price book.",
          "items": {
            "format": "uuid",
            "type": "string"
          },
          "nullable": true,
          "type": "array"
        },
        "customer_groups": {
          "items": {
            "$ref": "#/components/schemas/CustomerGroup"
          },
          "nullable": true,
          "type": "array"
        },
        "deleted_at": {
          "description": "Deletion timestamp in UTC.",
          "nullable": true,
          "type": "string"
        },
        "id": {
          "description": "Auto-generated object ID.",
          "type": "string"
        },
        "name": {
          "description": "Price Book name.",
          "type": "string"
        },
        "outlets": {
          "items": {
            "$ref": "#/components/schemas/Outlet"
          },
          "nullable": true,
          "type": "array"
        },
        "restrict_to_platform_key": {
          "description": "`\"0\"` - all platforms, `\"1\"` - in store, `\"2\"` - ecommerce.",
          "nullable": true,
          "type": "string"
        },
        "restrict_to_platform_label": {
          "description": "One of `In Store`, `Ecommerce`, `All Platforms`.",
          "nullable": true,
          "type": "string"
        },
        "type": {
          "description": "Type of price book",
          "type": "string"
        },
        "updated_at": {
          "description": "Updated timestamp in UTC.",
          "type": "string"
        },
        "valid_from": {
          "description": "The date when the Price Book becomes valid (active).",
          "nullable": true,
          "type": "string"
        },
        "valid_to": {
          "description": "The date when the Price Book becomes invalid (inactive).",
          "nullable": true,
          "type": "string"
        },
        "version": {
          "description": "Auto-incrementing object version number.",
          "format": "int64",
          "type": "integer"
        }
      },
      "required": [
        "name"
      ],
      "title": "Price Book",
      "type": "object"
    },
    "PriceBookCollection": {
      "properties": {
        "data": {
          "description": "An array of Price Book objects wrapped in a top level `data` object.",
          "items": {
            "$ref": "#/components/schemas/PriceBook"
          },
          "type": "array"
        }
      },
      "title": "Price Book Collection",
      "type": "object"
    },
    "PriceBookCreateRequest": {
      "properties": {
        "customer_group_ids": {
          "items": {
            "description": "The ID of the customer group.",
            "type": "string"
          },
          "type": "array"
        },
        "name": {
          "description": "Price Book name.",
          "type": "string"
        },
        "outlet_ids": {
          "items": {
            "description": "The ID of an outlet for which the Price Book should be used.",
            "type": "string"
          },
          "type": "array"
        },
        "restrict_to_platform": {
          "description": "`\"0\"` - all platforms, `\"1\"` - in store, `\"2\"` - ecommerce.",
          "nullable": true,
          "type": "string"
        },
        "valid_from": {
          "description": "The date when the Price Book becomes valid (active).",
          "nullable": true,
          "type": "string"
        },
        "valid_to": {
          "description": "The date when the Price Book becomes invalid (inactive).",
          "nullable": true,
          "type": "string"
        }
      },
      "required": [
        "customer_group_ids",
        "outlet_ids",
        "name"
      ],
      "title": "Price Book Create Request",
      "type": "object"
    },
    "PriceBookCreateResponse": {
      "properties": {
        "data": {
          "$ref": "#/components/schemas/PriceBookCreateResponseData"
        }
      },
      "title": "Price Book Create Response",
      "type": "object"
    },
    "PriceBookCreateResponseData": {
      "properties": {
        "customer_groups": {
          "items": {
            "$ref": "#/components/schemas/CustomerGroup"
          },
          "type": "array"
        },
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "outlets": {
          "items": {
            "$ref": "#/components/schemas/Outlet"
          },
          "nullable": true,
          "type": "array"
        },
        "restrict_to_platform": {
          "type": "string"
        },
        "retailer_id": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "valid_from": {
          "nullable": true,
          "type": "string"
        },
        "valid_to": {
          "nullable": true,
          "type": "string"
        }
      },
      "title": "Price Book Create Response Data"
    },
    "PriceBookProduct": {
      "properties": {
        "adjustment": {
          "description": "The adjustment amount",
          "format": "double",
          "nullable": true,
          "type": "number"
        },
        "adjustment_type": {
          "description": "The adjustment type",
          "type": "string"
        },
        "created_at": {
          "description": "Creation timestamp in UTC.",
          "type": "string"
        },
        "default_display_price": {
          "description": "The default display price",
          "format": "double",
          "type": "number"
        },
        "deleted_at": {
          "description": "Deletion timestamp in UTC.",
          "nullable": true,
          "type": "string"
        },
        "discount": {
          "description": "The discount amount",
          "format": "double",
          "nullable": true,
          "type": "number"
        },
        "id": {
          "description": "Auto-generated object ID.",
          "type": "string"
        },
        "loyalty_value": {
          "description": "Price Book defined loyalty value.",
          "format": "double",
          "nullable": true,
          "type": "number"
        },
        "max_units": {
          "description": "The maximum number of items for which this price will be used.",
          "format": "double",
          "nullable": true,
          "type": "number"
        },
        "min_units": {
          "description": "The minimum number of items for which this price will be used.",
          "format": "double",
          "nullable": true,
          "type": "number"
        },
        "price": {
          "description": "The Retail price of the product.",
          "format": "double",
          "type": "number"
        },
        "price_book_id": {
          "description": "The ID of the Price Book this product belongs to.",
          "type": "string"
        },
        "product_id": {
          "description": "The ID of the associated product.",
          "type": "string"
        },
        "retail_tax": {
          "description": "The retail tax",
          "format": "double",
          "type": "number"
        },
        "rounding": {
          "description": "The format for the rounding",
          "type": "string"
        },
        "tax_id": {
          "description": "The id for the tax rate",
          "type": "string"
        },
        "updated_at": {
          "description": "Last update timestamp in UTC.",
          "type": "string"
        },
        "version": {
          "format": "int64",
          "type": "integer"
        }
      },
      "required": [
        "price",
        "product_id",
        "tax_id"
      ],
      "title": "Price Book Product",
      "type": "object",
      "x-examples": {
        "example-1": {
          "adjustment": -1.7976931348623157e+308,
          "adjustment_type": "string",
          "created_at": "string",
          "default_display_price": -1.7976931348623157e+308,
          "deleted_at": "string",
          "discount": -1.7976931348623157e+308,
          "id": "string",
          "loyalty_value": -1.7976931348623157e+308,
          "max_units": -1.7976931348623157e+308,
          "min_units": -1.7976931348623157e+308,
          "price": -1.7976931348623157e+308,
          "price_book_id": "string",
          "product_id": "string",
          "retail_tax": -1.7976931348623157e+308,
          "rounding": "string",
          "tax_id": "string",
          "updated_at": "string",
          "version": 123
        }
      }
    },
    "PriceBookProductCollection": {
      "properties": {
        "data": {
          "description": "An array of Price Book objects wrapped in a top level `data` object.",
          "items": {
            "$ref": "#/components/schemas/PriceBookProduct"
          },
          "type": "array"
        }
      },
      "required": [
        "data"
      ],
      "title": "Price Book Product Collection",
      "type": "object"
    },
    "PriceBookProductIdCollection": {
      "properties": {
        "data": {
          "description": "An array of Price Book ids",
          "properties": {
            "price_book_product_ids": {
              "description": "An array of price book product ids to be deleted from the given Price Book.",
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          "required": [
            "price_book_product_ids"
          ],
          "type": "object"
        }
      },
      "title": "Price Book Product ID Collection",
      "type": "object"
    },
    "PriceBookProductsUpdateResponse": {
      "properties": {
        "data": {
          "properties": {
            "message": {
              "description": "Confirmation message that the request to add/update/delete PriceBookProducts was successful.",
              "type": "string"
            }
          },
          "type": "object"
        }
      },
      "title": "Price Book Products Update Response",
      "type": "object"
    },
    "PriceBookResponse": {
      "properties": {
        "data": {
          "$ref": "#/components/schemas/PriceBook"
        }
      },
      "title": "Price Book Response",
      "type": "object"
    },
    "PriceBookUpdateRequest": {
      "properties": {
        "customer_group_ids": {
          "items": {
            "description": "The ID of the customer group.",
            "type": "string"
          },
          "type": "array"
        },
        "name": {
          "description": "Price Book name.",
          "type": "string"
        },
        "outlet_ids": {
          "items": {
            "description": "The ID of an outlet for which the Price Book should be used.",
            "type": "string"
          },
          "type": "array"
        },
        "restrict_to_platform": {
          "description": "`\"0\"` - all platforms, `\"1\"` - in store, `\"2\"` - ecommerce.",
          "nullable": true,
          "type": "string"
        },
        "valid_from": {
          "description": "The date when the Price Book becomes valid (active).",
          "nullable": true,
          "type": "string"
        },
        "valid_to": {
          "description": "The date when the Price Book becomes invalid (inactive).",
          "nullable": true,
          "type": "string"
        }
      },
      "required": [
        "customer_group_ids",
        "name",
        "outlet_ids"
      ],
      "title": "Price Book Update Request",
      "type": "object"
    },
    "Product": {
      "properties": {
        "account_code": {
          "description": "???",
          "nullable": true,
          "type": "string"
        },
        "account_code_purchase": {
          "description": "???",
          "nullable": true,
          "type": "string"
        },
        "active": {
          "description": "Indicated whether the Product is active.",
          "type": "boolean"
        },
        "attributes": {
          "description": "A list of attributes",
          "items": {
            "$ref": "#/components/schemas/ProductAttribute"
          },
          "type": "array"
        },
        "brand": {
          "$ref": "#/components/schemas/BrandSample"
        },
        "brand_id": {
          "description": "The brand ID.",
          "format": "UUID",
          "nullable": true,
          "type": "string"
        },
        "button_order": {
          "description": "???",
          "type": "integer"
        },
        "categories": {
          "description": "A list of tag objects.",
          "items": {
            "$ref": "#/components/schemas/Tag"
          },
          "type": "array"
        },
        "composite_bom": {
          "description": "A bill of materials object. This field is only relevant for composite products. It is a map of product ids to the quantity of each product that is needed to make up the composite product.",
          "type": "object"
        },
        "created_at": {
          "description": "Creation timestamp in UTC.",
          "type": "string"
        },
        "customizations": {
          "description": "A list of product family customization input fields.",
          "items": {
            "type": "object"
          },
          "type": "array"
        },
        "deleted_at": {
          "description": "Deletion timestamp in UTC.",
          "nullable": true,
          "type": "string"
        },
        "description": {
          "description": "A detailed description of the Product. **Note** Can contain HTML.",
          "nullable": true,
          "type": "string"
        },
        "dimensions_unit": {
          "description": "Unit of measurement for product dimensions. These are used to calculate variable shipping rates for stores using Lightspeed eCom.",
          "enum": [
            "IN",
            "CM",
            "MM",
            "YD",
            null
          ],
          "nullable": true,
          "type": "string"
        },
        "family_id": {
          "description": "This is a family identifier. All members of a product family will have the same identifier. In the future, this will replace the variant_parent_id as the family group identifier. This field is currently read-only.",
          "format": "UUID",
          "type": "string"
        },
        "handle": {
          "description": "Product handle. **Note:** Variants share the same handle.",
          "type": "string"
        },
        "has_inventory": {
          "description": "Indicates whether inventory is being tracked for the Product.",
          "type": "boolean"
        },
        "has_variants": {
          "description": "Indicated whether product has variants.",
          "type": "boolean"
        },
        "height": {
          "description": "Product height. These are used to calculate variable shipping rates for stores using Lightspeed eCom.",
          "nullable": true,
          "type": "number"
        },
        "id": {
          "description": "Auto-generated object ID.",
          "format": "UUID",
          "type": "string"
        },
        "image_thumbnail_url": {
          "type": "string"
        },
        "image_url": {
          "type": "string"
        },
        "images": {
          "description": "A list of image objects.",
          "items": {
            "$ref": "#/components/schemas/ImageSample"
          },
          "type": "array"
        },
        "is_composite": {
          "description": "Indicates whether the Product is a composite one.",
          "type": "boolean"
        },
        "length": {
          "description": "Product length. These are used to calculate variable shipping rates for stores using Lightspeed eCom.",
          "nullable": true,
          "type": "number"
        },
        "loyalty_amount": {
          "description": "The amount of loyalty the customer receives buying this item.",
          "nullable": true,
          "type": "number"
        },
        "name": {
          "description": "Product name.",
          "type": "string"
        },
        "outlet_taxes": {
          "description": "A list of outlet-specific tax overrides. Only present when non-empty.",
          "items": {
            "type": "object"
          },
          "type": "array"
        },
        "packaging": {
          "description": "Packaging relationships for this product.",
          "properties": {
            "breaks_into": {
              "description": "Packages this product can be broken into.",
              "items": {
                "$ref": "#/components/schemas/ProductPackage"
              },
              "type": "array"
            },
            "made_from": {
              "description": "Packages this product can be made from.",
              "items": {
                "$ref": "#/components/schemas/ProductPackage"
              },
              "type": "array"
            }
          },
          "type": "object"
        },
        "price_excluding_tax": {
          "description": "The price before tax is added.",
          "nullable": true,
          "type": "number"
        },
        "price_including_tax": {
          "description": "The price including all the relevant taxes.",
          "nullable": true,
          "type": "number"
        },
        "product_category": {
          "anyOf": [
            {
              "$ref": "#/components/schemas/ProductCategory"
            },
            {
              "nullable": true,
              "type": "object"
            }
          ],
          "description": "The product category this product belongs to."
        },
        "product_codes": {
          "description": "A list of product code objects.",
          "items": {
            "$ref": "#/components/schemas/ProductCode"
          },
          "type": "array"
        },
        "product_suppliers": {
          "description": "A list of product supplier objects.",
          "items": {
            "$ref": "#/components/schemas/ProductSupplier"
          },
          "type": "array"
        },
        "product_type_id": {
          "description": "The product type.",
          "format": "UUID",
          "nullable": true,
          "type": "string"
        },
        "sku": {
          "description": "Product sku. **Note:** Should be unique.",
          "type": "string"
        },
        "skuImages": {
          "description": "A list of variant-level image objects.",
          "items": {
            "$ref": "#/components/schemas/ImageSample"
          },
          "type": "array"
        },
        "source": {
          "description": "Indicates the origin of the product. Can be USER, SHOPIFY.",
          "type": "string"
        },
        "source_id": {
          "description": "External reference ID.",
          "nullable": true,
          "type": "string"
        },
        "source_variant_id": {
          "description": "Secondary external reference ID.",
          "nullable": true,
          "type": "string"
        },
        "supplier": {
          "$ref": "#/components/schemas/SupplierSample"
        },
        "supplier_code": {
          "description": "Supplier code.",
          "nullable": true,
          "type": "string"
        },
        "supplier_id": {
          "description": "The supplier ID.",
          "format": "UUID",
          "nullable": true,
          "type": "string"
        },
        "supply_price": {
          "description": "Default supply price,",
          "format": "double",
          "type": "number"
        },
        "tag_ids": {
          "description": "An array of tag IDs associated with this product.",
          "items": {
            "description": "A tag ID.",
            "format": "UUID",
            "type": "string"
          },
          "type": "array"
        },
        "tax_category": {
          "description": "Tax category identifier for the product.",
          "nullable": true,
          "type": "string"
        },
        "type": {
          "$ref": "#/components/schemas/ProductTypeSample"
        },
        "updated_at": {
          "description": "Last update timestamp in UTC.",
          "type": "string"
        },
        "variant_count": {
          "description": "The number of variants for this product.",
          "nullable": true,
          "type": "integer"
        },
        "variant_name": {
          "description": "The name of the variant product.",
          "nullable": true,
          "type": "string"
        },
        "variant_options": {
          "description": "A list of variant option objects.",
          "items": {
            "$ref": "#/components/schemas/VariantOption"
          },
          "type": "array"
        },
        "variant_parent_id": {
          "description": "This value is set if a Product is a variant of another Product.",
          "format": "UUID",
          "nullable": true,
          "type": "string"
        },
        "version": {
          "description": "Auto-incrementing object version number.",
          "format": "int64",
          "type": "integer"
        },
        "weight": {
          "description": "Product weight. These are used to calculate variable shipping rates for stores using Lightspeed eCom.",
          "nullable": true,
          "type": "number"
        },
        "weight_unit": {
          "description": "Unit of measurement for product weight. These are used to calculate variable shipping rates for stores using Lightspeed eCom.",
          "enum": [
            "CT",
            "G",
            "OZ",
            "LB",
            "KG",
            null
          ],
          "nullable": true,
          "type": "string"
        },
        "width": {
          "description": "Product width. These are used to calculate variable shipping rates for stores using Lightspeed eCom.",
          "nullable": true,
          "type": "number"
        }
      },
      "required": [
        "id",
        "handle",
        "name",
        "sku",
        "active",
        "is_composite",
        "has_inventory",
        "has_variants",
        "version",
        "variant_options",
        "categories",
        "tag_ids",
        "images",
        "skuImages",
        "attributes",
        "product_codes",
        "product_suppliers",
        "packaging",
        "customizations",
        "price_including_tax",
        "price_excluding_tax"
      ],
      "title": "Product",
      "type": "object",
      "x-examples": {
        "Example": {
          "data": [
            {
              "active": true,
              "attributes": [],
              "button_order": 0,
              "categories": [
                {
                  "id": "0242ac11-0002-11ea-e346-ec1fed46e828",
                  "name": "Tag1",
                  "version": 150517
                }
              ],
              "created_at": "2020-09-01T06:54:03+00:00",
              "description": "Variant Product",
              "dimensions_unit": "CM",
              "handle": "Variant8",
              "has_inventory": true,
              "has_variants": false,
              "height": 4,
              "id": "0242ac12-0002-11e9-e8c4-659494e33101",
              "image_thumbnail_url": "https://local-demo.dev.vendhq.works/images/placeholder/product/no-image-white-thumb.png",
              "image_url": "https://local-demo.dev.vendhq.works/images/placeholder/product/no-image-white-standard.png",
              "images": [],
              "is_active": true,
              "is_composite": false,
              "length": 2,
              "name": "Variant + Tag",
              "price_excluding_tax": 34.78261,
              "price_including_tax": 40,
              "sku": "1000033",
              "source": "USER",
              "supply_price": 10,
              "tag_ids": [
                "0242ac11-0002-11ea-e346-ec1fed46e828"
              ],
              "updated_at": "2020-09-01T06:54:23+00:00",
              "variant_name": "Variant + Tag / L / Green / Silk",
              "variant_options": [
                {
                  "id": "0242ac11-0002-11ea-e346-ec1feb758875",
                  "name": "Size",
                  "value": "L"
                },
                {
                  "id": "0242ac11-0002-11ea-e346-ec1feb761422",
                  "name": "Colour",
                  "value": "Green"
                },
                {
                  "id": "0242ac11-0002-11ea-e346-ec1feb7696a4",
                  "name": "Fabric",
                  "value": "Silk"
                }
              ],
              "variant_parent_id": "0242ac12-0002-11e9-e8c4-659494e33138",
              "version": 150578,
              "weight": 1,
              "weight_unit": "KG",
              "width": 3
            }
          ]
        }
      }
    },
    "ProductAddImage": {
      "properties": {
        "index": {
          "description": "The position of the image in the list of images.",
          "format": "int64",
          "type": "integer"
        },
        "location": {
          "description": "The location of the given file. Depending on the image provider type. s3 - The s3 key for s3 transfers. url - A full URL for url based images. product-image - the image id from an existing product image. sku-image - the image id from an existing variant image.\n",
          "type": "string"
        },
        "type": {
          "description": "The image provider type.",
          "enum": [
            "s3",
            "url",
            "product-image",
            "sku-image"
          ],
          "type": "string"
        }
      },
      "required": [
        "type",
        "location"
      ],
      "title": "Add Image",
      "type": "object"
    },
    "ProductAddInventoryPayload": {
      "properties": {
        "current_amount": {
          "description": "Current inventory at a given outlet.",
          "format": "double",
          "type": "number"
        },
        "outlet_id": {
          "description": "The outlet the inventory is for.",
          "format": "UUID",
          "type": "string"
        },
        "reorder_amount": {
          "description": "The default of the quantity for auto-filled inventory orders.",
          "type": "number"
        },
        "reorder_point": {
          "description": "Quantity below which the product should be included in the auto-filled inventory orders. use -1 to clear the reorder point.",
          "type": "number"
        }
      },
      "required": [
        "outlet_id",
        "current_amount"
      ],
      "title": "Product Add Inventory Payload",
      "type": "object"
    },
    "ProductAddOutletTax": {
      "properties": {
        "outlet_id": {
          "description": "The outlet the tax is for.",
          "format": "UUID",
          "type": "string"
        },
        "tax_id": {
          "description": "The tax id associated with this outlet.",
          "format": "UUID",
          "type": "string"
        }
      },
      "required": [
        "outlet_id",
        "tax_id"
      ],
      "title": "Product Add Outlet Tax",
      "type": "object"
    },
    "ProductAddVariantPayload": {
      "properties": {
        "all_outlets_tax": {
          "description": "Only used for tax inclusive stores.",
          "properties": {
            "is_default": {
              "description": "Is this the default tax.",
              "type": "boolean"
            },
            "tax_id": {
              "description": "The tax id associated with this product.",
              "format": "UUID",
              "type": "string"
            }
          },
          "type": "object"
        },
        "dimensions_unit": {
          "description": "Unit of measurement for product dimensions. These are used to calculate variable shipping rates for stores using Lightspeed eCom.",
          "enum": [
            "IN",
            "CM",
            "MM",
            "YD"
          ],
          "type": "string"
        },
        "height": {
          "description": "Product height. These are used to calculate variable shipping rates for stores using Lightspeed eCom.",
          "type": "number"
        },
        "images": {
          "description": "A list of image objects.",
          "items": {
            "$ref": "#/components/schemas/ProductAddImage"
          },
          "type": "array"
        },
        "inventory": {
          "items": {
            "$ref": "#/components/schemas/ProductAddInventoryPayload"
          },
          "type": "array"
        },
        "length": {
          "description": "Product length. These are used to calculate variable shipping rates for stores using Lightspeed eCom.",
          "type": "number"
        },
        "outlet_taxes": {
          "description": "Only used for tax exclusive stores.",
          "items": {
            "$ref": "#/components/schemas/ProductAddOutletTax"
          },
          "type": "array"
        },
        "price_excluding_tax": {
          "description": "The price before tax is added.",
          "type": "number"
        },
        "price_including_tax": {
          "description": "The price including all the relevant taxes.",
          "type": "number"
        },
        "product_codes": {
          "items": {
            "$ref": "#/components/schemas/ProductCode"
          },
          "type": "array"
        },
        "product_suppliers": {
          "items": {
            "$ref": "#/components/schemas/ProductSupplier"
          },
          "type": "array"
        },
        "sku": {
          "description": "Product sku. This value should be included in the `product_codes` array. If it's not, it will be added automatically.",
          "type": "string"
        },
        "supplier_code": {
          "description": "Supplier code.",
          "type": "string"
        },
        "supply_price": {
          "description": "Default supply price.",
          "format": "double",
          "type": "number"
        },
        "variant_definitions": {
          "description": "The attributes associated with this variant. e.g. Size.",
          "items": {
            "$ref": "#/components/schemas/VariantAttribute"
          },
          "type": "array"
        },
        "weight": {
          "description": "Product weight. These are used to calculate variable shipping rates for stores using Lightspeed eCom.",
          "type": "number"
        },
        "weight_unit": {
          "description": "Unit of measurement for product weight. These are used to calculate variable shipping rates for stores using Lightspeed eCom.",
          "enum": [
            "CT",
            "G",
            "OZ",
            "LB",
            "KG"
          ],
          "type": "string"
        },
        "width": {
          "description": "Product width. These are used to calculate variable shipping rates for stores using Lightspeed eCom.",
          "type": "number"
        }
      },
      "title": "Add Product Variant Payload",
      "type": "object"
    },
    "ProductAttribute": {
      "properties": {
        "name": {
          "description": "The key for the attribute.",
          "type": "string"
        },
        "value": {
          "description": "The value for the attribute.",
          "type": "string"
        }
      },
      "required": [
        "name",
        "value"
      ],
      "title": "Attribute",
      "type": "object"
    },
    "ProductCategory": {
      "properties": {
        "category_path": {
          "items": {
            "$ref": "#/components/schemas/ProductCategoryPath"
          },
          "type": "array"
        },
        "id": {
          "description": "The category id",
          "format": "uuid",
          "type": "string"
        },
        "leaf_category": {
          "description": "True if the category does not have any more children (i.e. leaf).",
          "type": "boolean"
        },
        "name": {
          "description": "The name of the category",
          "type": "string"
        },
        "parent_category_id": {
          "description": "The parent category id, or null if its root category.",
          "format": "uuid",
          "type": "string"
        },
        "root_category_id": {
          "description": "The category id of the root of the category tree. If category is a root, this will be itself.",
          "format": "uuid",
          "type": "string"
        }
      },
      "type": "object"
    },
    "ProductCategoryPath": {
      "properties": {
        "id": {
          "description": "Object id of the Product Type in the path.",
          "type": "string"
        },
        "name": {
          "description": "The Product Type name.",
          "type": "string"
        }
      },
      "required": [
        "id",
        "name"
      ],
      "title": "Product Category Path",
      "type": "object"
    },
    "ProductCode": {
      "properties": {
        "code": {
          "description": "The sku code being added.",
          "type": "string"
        },
        "id": {
          "description": "Auto-generated object ID.",
          "type": "string"
        },
        "type": {
          "description": "The type of code being added.",
          "enum": [
            "CUSTOM",
            "EAN",
            "ISBN",
            "ITF",
            "JAN",
            "UPC"
          ],
          "type": "string"
        }
      },
      "required": [
        "code",
        "id"
      ],
      "title": "ProductCode",
      "type": "object"
    },
    "ProductCollection": {
      "properties": {
        "data": {
          "description": "An array of Product objects wrapped in top level `data` object.",
          "items": {
            "$ref": "#/components/schemas/Product"
          },
          "type": "array"
        },
        "version": {
          "$ref": "#/components/schemas/Version"
        }
      },
      "required": [
        "data",
        "version"
      ],
      "title": "Product Collection",
      "type": "object"
    },
    "ProductCreateBody": {
      "properties": {
        "account_code_purchase": {
          "description": "The code used to attribute the purchase of the product to a specific account for the Xero integration.",
          "type": "string"
        },
        "account_code_sale": {
          "description": "The code used to attribute the sales of the product to a specific account for the Xero integration.",
          "type": "string"
        },
        "all_outlets_tax": {
          "description": "Only used for tax inclusive stores.",
          "properties": {
            "is_default": {
              "description": "Is this the default tax.",
              "type": "boolean"
            },
            "tax_id": {
              "description": "The tax id associated with this product.",
              "format": "UUID",
              "type": "string"
            }
          },
          "type": "object"
        },
        "attributes": {
          "$ref": "#/components/schemas/Attribute"
        },
        "brand_id": {
          "description": "The brand ID.",
          "format": "UUID",
          "type": "string"
        },
        "composite": {
          "description": "A list of composite components.",
          "items": {
            "$ref": "#/components/schemas/Composite"
          },
          "type": "array"
        },
        "description": {
          "description": "A detailed description of the Product. **Note** Can contain HTML.",
          "type": "string"
        },
        "dimensions_unit": {
          "description": "Unit of measurement for product dimensions. These are used to calculate variable shipping rates for stores using Lightspeed eCom.",
          "enum": [
            "IN",
            "CM",
            "MM",
            "YD"
          ],
          "type": "string"
        },
        "handle": {
          "description": "Product handle.",
          "type": "string"
        },
        "height": {
          "description": "Product height. These are used to calculate variable shipping rates for stores using Lightspeed eCom.",
          "type": "number"
        },
        "images": {
          "description": "A list of image objects.",
          "items": {
            "$ref": "#/components/schemas/ProductAddImage"
          },
          "type": "array"
        },
        "inventory": {
          "items": {
            "$ref": "#/components/schemas/ProductAddInventoryPayload"
          },
          "type": "array"
        },
        "is_active": {
          "description": "Indicated whether the Product is active.",
          "type": "boolean"
        },
        "length": {
          "description": "Product length. These are used to calculate variable shipping rates for stores using Lightspeed eCom.",
          "type": "number"
        },
        "loyalty_amount": {
          "description": "The amount of loyalty the customer receives buying this item.",
          "type": "number"
        },
        "name": {
          "description": "Product name. **Note:** Variants share the same name.",
          "type": "string"
        },
        "outlet_taxes": {
          "description": "Only used for tax exclusive stores.",
          "items": {
            "$ref": "#/components/schemas/ProductAddOutletTax"
          },
          "type": "array"
        },
        "price_excluding_tax": {
          "description": "The price before tax is added.",
          "type": "number"
        },
        "price_including_tax": {
          "description": "The price including all the relevant taxes.",
          "type": "number"
        },
        "product_category_id": {
          "description": "The product category.",
          "format": "UUID",
          "type": "string"
        },
        "product_codes": {
          "items": {
            "$ref": "#/components/schemas/ProductCode"
          },
          "type": "array"
        },
        "product_suppliers": {
          "items": {
            "$ref": "#/components/schemas/ProductSupplier"
          },
          "type": "array"
        },
        "product_type_id": {
          "description": "The product category. **Note** Product types are now product categories.",
          "format": "UUID",
          "type": "string"
        },
        "sku": {
          "description": "Product sku. **Note:** Should be unique.",
          "type": "string"
        },
        "source": {
          "description": "Indicates the origin of the product. Can be USER, SHOPIFY.",
          "type": "string"
        },
        "source_id": {
          "description": "External reference ID.",
          "type": "string"
        },
        "source_variant_id": {
          "description": "Secondary external reference ID.",
          "type": "string"
        },
        "supplier_code": {
          "description": "Supplier code.",
          "type": "string"
        },
        "supplier_id": {
          "description": "The supplier ID.",
          "format": "UUID",
          "type": "string"
        },
        "supply_price": {
          "description": "Default supply price.",
          "format": "double",
          "type": "number"
        },
        "tag_ids": {
          "description": "An array of tag IDs associated with this product.",
          "items": {
            "description": "A tag ID.",
            "format": "UUID",
            "type": "string"
          },
          "type": "array"
        },
        "variants": {
          "items": {
            "$ref": "#/components/schemas/ProductAddVariantPayload"
          },
          "type": "array"
        },
        "weight": {
          "description": "Product weight. These are used to calculate variable shipping rates for stores using Lightspeed eCom.",
          "type": "number"
        },
        "weight_unit": {
          "description": "Unit of measurement for product weight. These are used to calculate variable shipping rates for stores using Lightspeed eCom.",
          "enum": [
            "CT",
            "G",
            "OZ",
            "LB",
            "KG"
          ],
          "type": "string"
        },
        "width": {
          "description": "Product width. These are used to calculate variable shipping rates for stores using Lightspeed eCom.",
          "type": "number"
        }
      },
      "required": [
        "name"
      ],
      "title": "Product",
      "type": "object"
    },
    "ProductInfoComponent": {
      "properties": {
        "charge_interval_unit": {
          "example": "month",
          "type": "string"
        },
        "component_name": {
          "example": "Additional Register(s) Support",
          "type": "string"
        },
        "quantity": {
          "example": 2,
          "format": "int64",
          "type": "integer"
        },
        "unit_price": {
          "example": 20,
          "format": "double",
          "type": "number"
        }
      },
      "title": "ProductInfoComponent contain partner product component info.",
      "type": "object"
    },
    "ProductPackage": {
      "properties": {
        "amount": {
          "description": "The quantity involved in the packaging relationship.",
          "type": "number"
        },
        "destination_product_id": {
          "description": "The ID of the destination product (present in breaks_into entries).",
          "format": "UUID",
          "type": "string"
        },
        "package_id": {
          "description": "Auto-generated package ID.",
          "format": "UUID",
          "type": "string"
        },
        "source_product_id": {
          "description": "The ID of the source product (present in made_from entries).",
          "format": "UUID",
          "type": "string"
        }
      },
      "required": [
        "package_id",
        "amount"
      ],
      "type": "object"
    },
    "ProductResponse": {
      "properties": {
        "data": {
          "$ref": "#/components/schemas/Product"
        }
      },
      "required": [
        "data"
      ],
      "title": "Product Response",
      "type": "object"
    },
    "ProductSupplier": {
      "properties": {
        "code": {
          "description": "The code associated with this supplier.",
          "nullable": true,
          "type": "string"
        },
        "id": {
          "description": "Auto-generated object ID.",
          "format": "UUID",
          "type": "string"
        },
        "price": {
          "description": "The price associated with this supplier.",
          "format": "double",
          "nullable": true,
          "type": "number"
        },
        "product_id": {
          "description": "The ID of the product.",
          "format": "UUID",
          "type": "string"
        },
        "supplier_id": {
          "description": "The ID of the supplier.",
          "format": "UUID",
          "nullable": true,
          "type": "string"
        },
        "supplier_name": {
          "description": "The name of the supplier.",
          "nullable": true,
          "type": "string"
        }
      },
      "required": [
        "id",
        "product_id",
        "supplier_id",
        "supplier_name"
      ],
      "title": "Product Supplier",
      "type": "object"
    },
    "ProductType": {
      "properties": {
        "category_path": {
          "description": "The path of this product type (now product category) in the hierarchy.",
          "items": {
            "$ref": "#/components/schemas/ProductCategoryPath"
          },
          "type": "array"
        },
        "deleted_at": {
          "description": "Deletion timestamp in UTC.",
          "nullable": true,
          "type": "string"
        },
        "id": {
          "description": "Auto-generated object ID.",
          "type": "string"
        },
        "leaf_category": {
          "description": "Is this product type (now product category) at the bottom of the hierarchy.",
          "type": "boolean"
        },
        "name": {
          "description": "The Product Type name.",
          "type": "string"
        },
        "version": {
          "description": "Auto-incrementing object version number.",
          "format": "int64",
          "type": "integer"
        }
      },
      "required": [
        "name",
        "id",
        "leaf_category"
      ],
      "title": "Product Type",
      "type": "object"
    },
    "ProductTypeCollection": {
      "properties": {
        "data": {
          "description": "An array of Product Type objects wrapped in top level `data` object.",
          "items": {
            "$ref": "#/components/schemas/ProductType"
          },
          "type": "array"
        },
        "version": {
          "$ref": "#/components/schemas/Version"
        }
      },
      "required": [
        "data",
        "version"
      ],
      "title": "Product Type Collection",
      "type": "object"
    },
    "ProductTypeResponse": {
      "properties": {
        "data": {
          "$ref": "#/components/schemas/ProductType"
        }
      },
      "title": "Product Type Response",
      "type": "object"
    },
    "ProductTypeSample": {
      "nullable": true,
      "properties": {
        "category_path": {
          "description": "The path of this product type (now product category) in the hierarchy.",
          "items": {
            "$ref": "#/components/schemas/ProductCategoryPath"
          },
          "type": "array"
        },
        "deleted_at": {
          "description": "Deletion timestamp in UTC.",
          "nullable": true,
          "type": "string"
        },
        "id": {
          "description": "Auto-generated object ID.",
          "type": "string"
        },
        "leaf_category": {
          "description": "Is this product type (now product category) at the bottom of the hierarchy.",
          "type": "boolean"
        },
        "name": {
          "type": "string"
        },
        "version": {
          "description": "Auto-incrementing object version number.",
          "format": "int64",
          "type": "integer"
        }
      },
      "title": "Product Type Sample",
      "type": "object"
    },
    "ProductUpdate21Request": {
      "properties": {
        "common": {
          "description": "Information to update to the product family. For variants, this will update the fields to all variants in the family.",
          "properties": {
            "account_code_purchase": {
              "description": "The code used to attribute the purchase (cost) of the product to a specific account for the Xero integration.",
              "type": "string"
            },
            "account_code_sale": {
              "description": "The code used to attribute the sales of the product to a specific account for the Xero integration.",
              "type": "string"
            },
            "brand_id": {
              "description": "The brand ID that the product is associated to. To remove the brand from the product, please provide empty value \"\".",
              "type": "string"
            },
            "description": {
              "description": "Product description.",
              "type": "string"
            },
            "name": {
              "description": "Product name",
              "type": "string"
            },
            "product_category_id": {
              "description": "The product category ID tha the product is associated to. A product can only be associated to the last level (leaf) category.\nTo remove the product category from the product, please provide empty value \"\".\nProduct category was previously known as product types.\n",
              "type": "string"
            },
            "product_suppliers": {
              "description": "A full list of suppliers and its details that are associated to the product family.\nThe order of the supplier listed in this list will reflect the supplier's order in the product.\nThe first supplier is the default supplier.\nIf do not wish to override the code and price that may be custom per variant, just provide the id.\n",
              "items": {
                "$ref": "#/components/schemas/ProductUpdate21Supplier"
              },
              "type": "array"
            },
            "tag_ids": {
              "description": "The full list of tag ids that the product is associated to. To remove all tags, please provide empty list.",
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "track_inventory": {
              "description": "True to enable inventory tracking for product. This will updating of inventory details such as manual adjustments and reorder details.",
              "type": "boolean"
            },
            "variant_attributes": {
              "description": "A full list of the variant attributes for the product family.\nThe order of the variant attributes in this list will reflect the order of the attribute on the variant. Maximum three attributes.\n",
              "items": {
                "properties": {
                  "attribute_id": {
                    "description": "The ID of attribute represented at the specified position in the list.",
                    "type": "string"
                  }
                },
                "type": "object"
              },
              "type": "array"
            }
          },
          "type": "object"
        },
        "details": {
          "description": "Information to update to the product. For variants, this will update the fields for the individual variant product of this request only.",
          "properties": {
            "all_outlets_tax": {
              "description": "Set the tax on a product for tax inclusive store.",
              "properties": {
                "tax_id": {
                  "description": "The selected custom tax ID. Leave blank (\"\") to use the default tax.",
                  "type": "string"
                }
              },
              "type": "object"
            },
            "composite_components": {
              "description": "A full list of composite components.",
              "items": {
                "properties": {
                  "product_id": {
                    "description": "The ID of the component product.",
                    "format": "uuid",
                    "type": "string"
                  },
                  "quantity": {
                    "description": "The quantity of the component product.",
                    "type": "number"
                  }
                },
                "required": [
                  "product_id",
                  "quantity"
                ],
                "type": "object"
              },
              "type": "array"
            },
            "dimensions_unit": {
              "description": "The unit for any height, width, or length provided.",
              "enum": [
                "IN",
                "CM",
                "MM",
                "YD"
              ],
              "type": "string"
            },
            "height": {
              "description": "The height of the product. If provided, dimensions_unit for this value must also be provided.",
              "type": "number"
            },
            "inventory": {
              "description": "A list of inventory outlet information to update.",
              "items": {
                "properties": {
                  "current_amount": {
                    "description": "Current inventory quantity of the product at the given outlet.",
                    "type": "number"
                  },
                  "outlet_id": {
                    "description": "The outlet ID.",
                    "type": "string"
                  },
                  "reorder_amount": {
                    "description": "The default of the quantity for auto-filled inventory orders.",
                    "type": "number"
                  },
                  "reorder_point": {
                    "description": "Quantity below which the product should be included in the auto-filled inventory orders. use -1 to clear the reorder point.",
                    "type": "number"
                  }
                },
                "required": [
                  "outlet_id"
                ],
                "type": "object"
              },
              "type": "array"
            },
            "is_active": {
              "description": "True to enable Sell on POS, false to disable.",
              "type": "boolean"
            },
            "length": {
              "description": "The length of the product. If provided, dimensions_unit for this value must also be provided.",
              "type": "number"
            },
            "loyalty_amount": {
              "description": "The custom loyalty amount. -1 to use the default loyalty amount.",
              "type": "number"
            },
            "outlet_taxes": {
              "description": "A list of outlet taxes to update on a product for tax exclusive store.",
              "items": {
                "properties": {
                  "outlet_id": {
                    "description": "The outlet ID to apply the tax.",
                    "type": "string"
                  },
                  "tax_id": {
                    "description": "The selected custom tax ID. Leave blank (\"\") to use the default tax.",
                    "type": "string"
                  }
                },
                "type": "object"
              },
              "type": "array"
            },
            "packaging": {
              "description": "Packaging this product belongs to.",
              "items": {
                "properties": {
                  "amount": {
                    "type": "number"
                  },
                  "destination_product_id": {
                    "format": "uuid",
                    "type": "string"
                  },
                  "source_product_id": {
                    "format": "uuid",
                    "type": "string"
                  }
                },
                "type": "object"
              },
              "type": "array"
            },
            "price_excluding_tax": {
              "description": "Price exclusive of tax. For tax exclusive store.",
              "type": "number"
            },
            "price_including_tax": {
              "description": "Price inclusive of tax. For tax inclusive store.",
              "type": "number"
            },
            "product_codes": {
              "description": "A full list of product codes for the product. The first product code is used as the default product code.",
              "items": {
                "properties": {
                  "code": {
                    "description": "The product code value.",
                    "type": "string"
                  },
                  "type": {
                    "enum": [
                      "CUSTOM",
                      "EAN",
                      "ISBN",
                      "ITF",
                      "JAN",
                      "UPC"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "code"
                ],
                "type": "object"
              },
              "type": "array"
            },
            "product_suppliers": {
              "description": "A list of suppliers and its details if the supplier needs updating. The supplier referenced by this subset must be a supplier associated to the product family.\n",
              "items": {
                "$ref": "#/components/schemas/ProductUpdate21Supplier"
              },
              "type": "array"
            },
            "variant_attribute_values": {
              "description": "A list of values for the variant attributes defined for the product. The attributes used here must match the product family.",
              "items": {
                "properties": {
                  "attribute_id": {
                    "description": "The variant attribute id. This variant attribute must be an attribute on the product family.",
                    "type": "string"
                  },
                  "attribute_value": {
                    "description": "The value for the variant attribute.",
                    "type": "string"
                  }
                },
                "required": [
                  "attribute_id",
                  "attribute_value"
                ],
                "type": "object"
              },
              "type": "array"
            },
            "weight": {
              "description": "The weight of the product. If provided, weight_unit for this value must also be provided.",
              "type": "number"
            },
            "weight_unit": {
              "description": "The unit for the weight provided.",
              "enum": [
                "CT",
                "G",
                "OZ",
                "LB",
                "KG"
              ],
              "type": "string"
            },
            "width": {
              "description": "The width of the product. If provided, dimensions_unit for this value must also be provided.",
              "type": "number"
            }
          },
          "type": "object"
        }
      },
      "title": "Product Update 2.1 Request",
      "type": "object"
    },
    "ProductUpdate21Supplier": {
      "properties": {
        "code": {
          "description": "The supplier's code or reference for the product. To remove the code, please provide empty value \"\".",
          "type": "string"
        },
        "price": {
          "description": "The cost of supply for the product. -1 price will delete the price.",
          "type": "number"
        },
        "supplier_id": {
          "description": "The supplier ID.",
          "type": "string"
        }
      },
      "title": "Product Update 2.1 Product Supplier Request",
      "type": "object"
    },
    "PromoCode": {
      "properties": {
        "code": {
          "description": "Code for use in the promotion.",
          "type": "string"
        },
        "created_at": {
          "description": "Time the code was created.",
          "type": "string"
        },
        "created_user": {
          "$ref": "#/components/schemas/User"
        },
        "created_user_id": {
          "description": "Created User ID.",
          "type": "string"
        },
        "group_name": {
          "description": "Name of the group.",
          "type": "string"
        },
        "id": {
          "description": "Auto-generated object ID.",
          "type": "string"
        },
        "limit": {
          "description": "Redemption limit for this promotion.",
          "type": "integer"
        },
        "promotion_id": {
          "description": "Promotion ID.",
          "type": "string"
        },
        "redeemed": {
          "description": "Number of times this code has been redeemed.",
          "type": "integer"
        }
      },
      "required": [
        "code"
      ],
      "title": "Promotion Code",
      "type": "object",
      "x-examples": {
        "example-1": {
          "code": "string",
          "created_at": "string",
          "created_user": {
            "account_type": "cashier",
            "created_at": "string",
            "deleted_at": "string",
            "display_name": "string",
            "email": "[email protected]",
            "email_verified_at": "string",
            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
            "image_source": "string",
            "images": {
              "original": "string",
              "sl": "string",
              "sm": "string",
              "ss": "string",
              "st": "string",
              "standard": "string",
              "thumb": "string"
            },
            "is_primary_user": true,
            "permissions": [
              "string"
            ],
            "restricted_outlet_id": "string",
            "restricted_outlet_ids": [
              "497f6eca-6276-4993-bfeb-53cbbbba6f08"
            ],
            "seen_at": "string",
            "target_daily": 0,
            "target_monthly": 0,
            "target_weekly": 0,
            "updated_at": "string",
            "username": "string",
            "version": 0
          },
          "created_user_id": "string",
          "group_name": "string",
          "id": "string",
          "limit": 0,
          "promotion_id": "string",
          "redeemed": 0
        }
      }
    },
    "PromoCodeValidation": {
      "properties": {
        "promo_code": {
          "description": "The promo code itself.",
          "type": "string"
        },
        "promo_code_id": {
          "description": "ID for the promo code.",
          "nullable": true,
          "type": "string"
        },
        "promotion_id": {
          "description": "ID for the promotion.",
          "nullable": true,
          "type": "string"
        },
        "status": {
          "description": "Status field for the promo code.",
          "type": "string"
        }
      },
      "required": [
        "promo_code",
        "status"
      ],
      "title": "Promo Code validation result",
      "type": "object"
    },
    "PromoCodesMap": {
      "additionalProperties": {
        "description": "A map of promo codes to booleans.",
        "type": "boolean"
      },
      "title": "Map of Promo Codes to booleans",
      "type": "object"
    },
    "Promotion": {
      "description": "A Promotion defines rules and actions for discounting products as part of a sales promotion.",
      "properties": {
        "action": {
          "$ref": "#/components/schemas/Action"
        },
        "add_promo_code": {
          "description": "A list of promo codes to associate with this promotion.",
          "items": {
            "$ref": "#/components/schemas/PromoCode"
          },
          "type": "array"
        },
        "channels": {
          "description": "A list of channels for the promotion. Can be `Register`, `Ecommerce`.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "condition": {
          "$ref": "#/components/schemas/Condition"
        },
        "customer_group_ids": {
          "description": "A list of customer group IDs for the promotion.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "description": {
          "description": "A short description for the promotion.",
          "type": "string"
        },
        "end_time": {
          "description": "The time the promotion ends, in UTC, e.g. `2006-01-02T15:04:05` (no timezone suffix).",
          "nullable": true,
          "type": "string"
        },
        "id": {
          "description": "Auto-generated object ID.",
          "type": "string"
        },
        "loyalty_multiplier": {
          "description": "The loyalty multiplier for the promotion.",
          "format": "double",
          "type": "number"
        },
        "name": {
          "description": "The name of the promotion.",
          "type": "string"
        },
        "outlet_ids": {
          "description": "A list of outlet IDs for the promotion.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "promo_code_summary": {
          "$ref": "#/components/schemas/PromotionPromoCodeSummary"
        },
        "start_time": {
          "description": "The time the promotion begins, in UTC, e.g. `2006-01-02T15:04:05` (no timezone suffix).",
          "type": "string"
        },
        "status": {
          "description": "The status of the promotion.",
          "type": "string"
        },
        "use_promo_code": {
          "description": "Whether or not this promotion uses promo codes.",
          "type": "boolean"
        }
      },
      "required": [
        "action",
        "condition",
        "name",
        "start_time",
        "use_promo_code"
      ],
      "title": "Promotion",
      "type": "object"
    },
    "PromotionActivePromoCodesResponse": {
      "properties": {
        "data": {
          "$ref": "#/components/schemas/PromoCodesMap"
        }
      },
      "title": "Promotion Promo Codes response",
      "type": "object"
    },
    "PromotionCollection": {
      "properties": {
        "data": {
          "items": {
            "$ref": "#/components/schemas/PromotionResponse"
          },
          "type": "array"
        }
      },
      "title": "Promotion Collection",
      "type": "object"
    },
    "PromotionDeletePromoCodesResponse": {
      "description": "An array of codes which were not deleted.",
      "items": {
        "type": "string"
      },
      "title": "Promotion Promo Codes response",
      "type": "array"
    },
    "PromotionDescription": {
      "description": "Basic description for a Promotion.",
      "properties": {
        "description": {
          "description": "A short description for the promotion.",
          "type": "string"
        },
        "id": {
          "description": "Auto-generated object ID.",
          "type": "string"
        },
        "name": {
          "description": "The name of the promotion.",
          "type": "string"
        }
      },
      "title": "PromotionDescription",
      "type": "object"
    },
    "PromotionProductsResponse": {
      "properties": {
        "data": {
          "properties": {
            "action_products": {
              "description": "A list of product IDs that are required to fulfill the promotion action.",
              "items": {
                "$ref": "#/components/schemas/Product"
              },
              "type": "array"
            },
            "condition_products": {
              "description": "A list of product IDs that meet the promotion condition.",
              "items": {
                "$ref": "#/components/schemas/Product"
              },
              "type": "array"
            }
          },
          "type": "object"
        }
      },
      "title": "Promotion Products response",
      "type": "object"
    },
    "PromotionPromoCodeSummary": {
      "nullable": true,
      "properties": {
        "redeemed_amount": {
          "description": "The redeemed amount",
          "type": "integer"
        },
        "total_promo_code": {
          "description": "The total for the promo code",
          "type": "integer"
        }
      },
      "title": "Promotion Promo Code Summary",
      "type": "object"
    },
    "PromotionPromoCodesResponse": {
      "properties": {
        "data": {
          "description": "An array of promotion promo codes.",
          "items": {
            "properties": {
              "code": {
                "type": "string"
              },
              "created_at": {
                "format": "date-time",
                "type": "string"
              },
              "created_user_id": {
                "type": "string"
              },
              "group_name": {
                "nullable": true,
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "limit": {
                "type": "integer"
              },
              "promotion_id": {
                "type": "string"
              },
              "redeemed": {
                "type": "integer"
              }
            },
            "type": "object"
          },
          "type": "array"
        }
      },
      "title": "Promotion Promo Codes response"
    },
    "PromotionResponse": {
      "description": "A Promotion defines rules and actions for discounting products as part of a sales promotion.",
      "properties": {
        "action": {
          "$ref": "#/components/schemas/Action"
        },
        "add_promo_code": {
          "description": "A list of promo codes to associate with this promotion.",
          "items": {
            "$ref": "#/components/schemas/PromoCode"
          },
          "type": "array"
        },
        "channels": {
          "description": "A list of channels for the promotion. Can be `Register`, `Ecommerce`.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "combinable_with_coupon": {
          "description": "Whether this promotion can be combined with an online coupon.",
          "nullable": true,
          "type": "boolean"
        },
        "condition": {
          "$ref": "#/components/schemas/Condition"
        },
        "customer_group_ids": {
          "description": "A list of customer group IDs for the promotion.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "description": {
          "description": "A short description for the promotion.",
          "type": "string"
        },
        "end_time": {
          "description": "The time the promotion ends, in UTC, e.g. `2006-01-02T15:04:05` (no timezone suffix).",
          "nullable": true,
          "type": "string"
        },
        "id": {
          "description": "Auto-generated object ID.",
          "type": "string"
        },
        "loyalty_multiplier": {
          "description": "The loyalty multiplier for the promotion.",
          "format": "double",
          "nullable": true,
          "type": "number"
        },
        "name": {
          "description": "The name of the promotion.",
          "type": "string"
        },
        "online_channel_ids": {
          "description": "A list of online channel IDs for the promotion.",
          "items": {
            "type": "integer"
          },
          "type": "array"
        },
        "outlet_ids": {
          "description": "A list of outlet IDs for the promotion.",
          "items": {
            "type": "string"
          },
          "nullable": true,
          "type": "array"
        },
        "promo_code_summary": {
          "$ref": "#/components/schemas/PromotionPromoCodeSummary"
        },
        "recurring_promotion": {
          "allOf": [
            {
              "$ref": "#/components/schemas/RecurringPromotion"
            }
          ],
          "nullable": true,
          "type": "object"
        },
        "show_potential": {
          "description": "Whether this promotion is shown as part of potential promotions.",
          "type": "boolean"
        },
        "start_time": {
          "description": "The time the promotion begins, in UTC, e.g. `2006-01-02T15:04:05` (no timezone suffix).",
          "type": "string"
        },
        "status": {
          "description": "The status of the promotion.",
          "type": "string"
        },
        "use_promo_code": {
          "description": "Whether or not this promotion uses promo codes.",
          "type": "boolean"
        }
      },
      "title": "Promotion response",
      "type": "object"
    },
    "PurchaseOrder": {
      "properties": {
        "allocation_outlet_ids": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "cost_price_total": {
          "description": "Total cost represented as a decimal string.",
          "nullable": true,
          "type": "string"
        },
        "costs": {
          "items": {
            "$ref": "#/components/schemas/PurchaseOrderCost"
          },
          "type": "array"
        },
        "created_at": {
          "format": "date-time",
          "type": "string"
        },
        "delivery_outlet_id": {
          "type": "string"
        },
        "discounts": {
          "items": {
            "$ref": "#/components/schemas/PurchaseOrderDiscount"
          },
          "type": "array"
        },
        "due_at": {
          "format": "date-time",
          "nullable": true,
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "notes": {
          "nullable": true,
          "type": "string"
        },
        "order_number": {
          "nullable": true,
          "type": "string"
        },
        "quantity_total": {
          "description": "Total quantity represented as a decimal string.",
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "supplier_id": {
          "nullable": true,
          "type": "string"
        },
        "supplier_invoice": {
          "nullable": true,
          "type": "string"
        },
        "updated_at": {
          "format": "date-time",
          "type": "string"
        },
        "user_id": {
          "nullable": true,
          "type": "string"
        },
        "version": {
          "format": "int64",
          "type": "integer"
        }
      },
      "required": [
        "id",
        "version",
        "user_id",
        "order_number",
        "notes",
        "delivery_outlet_id",
        "allocation_outlet_ids",
        "supplier_id",
        "supplier_invoice",
        "status",
        "due_at",
        "cost_price_total",
        "quantity_total",
        "created_at",
        "updated_at"
      ],
      "title": "Purchase Order",
      "type": "object"
    },
    "PurchaseOrderCollectionResponse": {
      "example": {
        "data": [
          {
            "allocation_outlet_ids": [],
            "cost_price_total": null,
            "created_at": "2026-04-01T12:00:00Z",
            "delivery_outlet_id": "6ba7b810-9dad-41d1-80b4-00c04fd430c8",
            "due_at": null,
            "id": "550e8400-e29b-41d4-a716-446655440000",
            "notes": null,
            "order_number": "PO-1001",
            "quantity_total": "10",
            "status": "OPEN",
            "supplier_id": "6ba7b811-9dad-41d1-80b4-00c04fd430c8",
            "supplier_invoice": null,
            "updated_at": "2026-04-01T12:00:00Z",
            "user_id": null,
            "version": 42
          }
        ],
        "version": {
          "max": 42,
          "min": 42
        }
      },
      "properties": {
        "data": {
          "items": {
            "$ref": "#/components/schemas/PurchaseOrder"
          },
          "type": "array"
        },
        "version": {
          "$ref": "#/components/schemas/PurchaseOrderVersion"
        }
      },
      "required": [
        "data",
        "version"
      ],
      "title": "Purchase Order Collection Response",
      "type": "object"
    },
    "PurchaseOrderCost": {
      "properties": {
        "amount": {
          "description": "Cost amount represented as a decimal string.",
          "type": "string"
        },
        "created_at": {
          "format": "date-time",
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "purchase_order_delivery_id": {
          "nullable": true,
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "updated_at": {
          "format": "date-time",
          "type": "string"
        }
      },
      "required": [
        "id",
        "purchase_order_delivery_id",
        "type",
        "amount",
        "created_at",
        "updated_at"
      ],
      "title": "Purchase Order Cost",
      "type": "object"
    },
    "PurchaseOrderDelivery": {
      "properties": {
        "cost_price_total": {
          "nullable": true,
          "type": "string"
        },
        "costs": {
          "items": {
            "$ref": "#/components/schemas/PurchaseOrderCost"
          },
          "type": "array"
        },
        "created_at": {
          "format": "date-time",
          "type": "string"
        },
        "discounts": {
          "items": {
            "$ref": "#/components/schemas/PurchaseOrderDiscount"
          },
          "type": "array"
        },
        "due_at": {
          "format": "date-time",
          "nullable": true,
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "invoice_date": {
          "format": "date-time",
          "nullable": true,
          "type": "string"
        },
        "notes": {
          "nullable": true,
          "type": "string"
        },
        "outlet_id": {
          "type": "string"
        },
        "purchase_order_id": {
          "type": "string"
        },
        "received_at": {
          "format": "date-time",
          "nullable": true,
          "type": "string"
        },
        "received_quantity_total": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "supplier_invoice": {
          "nullable": true,
          "type": "string"
        },
        "updated_at": {
          "format": "date-time",
          "type": "string"
        },
        "user_id": {
          "nullable": true,
          "type": "string"
        },
        "version": {
          "format": "int64",
          "type": "integer"
        }
      },
      "required": [
        "id",
        "version",
        "purchase_order_id",
        "outlet_id",
        "user_id",
        "notes",
        "status",
        "due_at",
        "received_at",
        "invoice_date",
        "supplier_invoice",
        "cost_price_total",
        "received_quantity_total",
        "created_at",
        "updated_at"
      ],
      "title": "Purchase Order Delivery",
      "type": "object"
    },
    "PurchaseOrderDeliveryCollectionResponse": {
      "example": {
        "data": [
          {
            "cost_price_total": "25.00",
            "created_at": "2026-04-01T12:00:00Z",
            "due_at": null,
            "id": "550e8403-e29b-41d4-a716-446655440000",
            "invoice_date": null,
            "notes": null,
            "outlet_id": "6ba7b810-9dad-41d1-80b4-00c04fd430c8",
            "purchase_order_id": "550e8400-e29b-41d4-a716-446655440000",
            "received_at": null,
            "received_quantity_total": "0",
            "status": "DRAFT",
            "supplier_invoice": null,
            "updated_at": "2026-04-01T12:00:00Z",
            "user_id": null,
            "version": 3
          }
        ],
        "version": {
          "max": 3,
          "min": 3
        }
      },
      "properties": {
        "data": {
          "items": {
            "$ref": "#/components/schemas/PurchaseOrderDelivery"
          },
          "type": "array"
        },
        "version": {
          "$ref": "#/components/schemas/PurchaseOrderVersion"
        }
      },
      "required": [
        "data",
        "version"
      ],
      "title": "Purchase Order Delivery Collection Response",
      "type": "object"
    },
    "PurchaseOrderDeliveryLineItem": {
      "properties": {
        "allocations": {
          "items": {
            "$ref": "#/components/schemas/PurchaseOrderDeliveryLineItemAllocation"
          },
          "type": "array"
        },
        "components": {
          "items": {
            "$ref": "#/components/schemas/PurchaseOrderDeliveryLineItemComponent"
          },
          "type": "array"
        },
        "cost_price": {
          "nullable": true,
          "type": "string"
        },
        "created_at": {
          "format": "date-time",
          "type": "string"
        },
        "expected_quantity": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "product_id": {
          "type": "string"
        },
        "purchase_order_delivery_id": {
          "type": "string"
        },
        "purchase_order_line_item_id": {
          "type": "string"
        },
        "received_quantity": {
          "type": "string"
        },
        "updated_at": {
          "format": "date-time",
          "type": "string"
        },
        "version": {
          "format": "int64",
          "type": "integer"
        }
      },
      "required": [
        "id",
        "version",
        "purchase_order_delivery_id",
        "purchase_order_line_item_id",
        "product_id",
        "expected_quantity",
        "received_quantity",
        "cost_price",
        "allocations",
        "created_at",
        "updated_at"
      ],
      "title": "Purchase Order Delivery Line Item",
      "type": "object"
    },
    "PurchaseOrderDeliveryLineItemAllocation": {
      "properties": {
        "expected_quantity": {
          "type": "string"
        },
        "outlet_id": {
          "type": "string"
        },
        "received_quantity": {
          "type": "string"
        }
      },
      "required": [
        "outlet_id",
        "expected_quantity",
        "received_quantity"
      ],
      "title": "Purchase Order Delivery Line Item Allocation",
      "type": "object"
    },
    "PurchaseOrderDeliveryLineItemCollectionResponse": {
      "example": {
        "data": [
          {
            "allocations": [
              {
                "expected_quantity": "10",
                "outlet_id": "6ba7b810-9dad-41d1-80b4-00c04fd430c8",
                "received_quantity": "0"
              }
            ],
            "cost_price": "2.50",
            "created_at": "2026-04-01T12:00:00Z",
            "expected_quantity": "10",
            "id": "550e8404-e29b-41d4-a716-446655440000",
            "product_id": "550e8402-e29b-41d4-a716-446655440000",
            "purchase_order_delivery_id": "550e8403-e29b-41d4-a716-446655440000",
            "purchase_order_line_item_id": "550e8401-e29b-41d4-a716-446655440000",
            "received_quantity": "0",
            "updated_at": "2026-04-01T12:00:00Z",
            "version": 4
          }
        ],
        "version": {
          "max": 4,
          "min": 4
        }
      },
      "properties": {
        "data": {
          "items": {
            "$ref": "#/components/schemas/PurchaseOrderDeliveryLineItem"
          },
          "type": "array"
        },
        "version": {
          "$ref": "#/components/schemas/PurchaseOrderVersion"
        }
      },
      "required": [
        "data",
        "version"
      ],
      "title": "Purchase Order Delivery Line Item Collection Response",
      "type": "object"
    },
    "PurchaseOrderDeliveryLineItemComponent": {
      "properties": {
        "bom_quantity": {
          "type": "string"
        },
        "component_product_id": {
          "type": "string"
        },
        "cost_price": {
          "nullable": true,
          "type": "string"
        }
      },
      "required": [
        "component_product_id",
        "bom_quantity",
        "cost_price"
      ],
      "title": "Purchase Order Delivery Line Item Component",
      "type": "object"
    },
    "PurchaseOrderDiscount": {
      "properties": {
        "amount": {
          "description": "Discount amount represented as a decimal string.",
          "type": "string"
        },
        "created_at": {
          "format": "date-time",
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "purchase_order_delivery_id": {
          "nullable": true,
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "updated_at": {
          "format": "date-time",
          "type": "string"
        }
      },
      "required": [
        "id",
        "purchase_order_delivery_id",
        "type",
        "amount",
        "created_at",
        "updated_at"
      ],
      "title": "Purchase Order Discount",
      "type": "object"
    },
    "PurchaseOrderLineItem": {
      "properties": {
        "allocations": {
          "items": {
            "$ref": "#/components/schemas/PurchaseOrderLineItemAllocation"
          },
          "type": "array"
        },
        "components": {
          "items": {
            "$ref": "#/components/schemas/PurchaseOrderLineItemComponent"
          },
          "type": "array"
        },
        "cost_price": {
          "nullable": true,
          "type": "string"
        },
        "created_at": {
          "format": "date-time",
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "product_id": {
          "type": "string"
        },
        "purchase_order_id": {
          "type": "string"
        },
        "quantity": {
          "type": "string"
        },
        "updated_at": {
          "format": "date-time",
          "type": "string"
        },
        "version": {
          "format": "int64",
          "type": "integer"
        }
      },
      "required": [
        "id",
        "version",
        "purchase_order_id",
        "product_id",
        "quantity",
        "cost_price",
        "allocations",
        "created_at",
        "updated_at"
      ],
      "title": "Purchase Order Line Item",
      "type": "object"
    },
    "PurchaseOrderLineItemAllocation": {
      "properties": {
        "outlet_id": {
          "type": "string"
        },
        "quantity": {
          "type": "string"
        }
      },
      "required": [
        "outlet_id",
        "quantity"
      ],
      "title": "Purchase Order Line Item Allocation",
      "type": "object"
    },
    "PurchaseOrderLineItemCollectionResponse": {
      "example": {
        "data": [
          {
            "allocations": [
              {
                "outlet_id": "6ba7b810-9dad-41d1-80b4-00c04fd430c8",
                "quantity": "10"
              }
            ],
            "cost_price": "2.50",
            "created_at": "2026-04-01T12:00:00Z",
            "id": "550e8401-e29b-41d4-a716-446655440000",
            "product_id": "550e8402-e29b-41d4-a716-446655440000",
            "purchase_order_id": "550e8400-e29b-41d4-a716-446655440000",
            "quantity": "10",
            "updated_at": "2026-04-01T12:00:00Z",
            "version": 7
          }
        ],
        "version": {
          "max": 7,
          "min": 7
        }
      },
      "properties": {
        "data": {
          "items": {
            "$ref": "#/components/schemas/PurchaseOrderLineItem"
          },
          "type": "array"
        },
        "version": {
          "$ref": "#/components/schemas/PurchaseOrderVersion"
        }
      },
      "required": [
        "data",
        "version"
      ],
      "title": "Purchase Order Line Item Collection Response",
      "type": "object"
    },
    "PurchaseOrderLineItemComponent": {
      "properties": {
        "bom_quantity": {
          "type": "string"
        },
        "component_product_id": {
          "type": "string"
        },
        "cost_price": {
          "nullable": true,
          "type": "string"
        }
      },
      "required": [
        "component_product_id",
        "bom_quantity",
        "cost_price"
      ],
      "title": "Purchase Order Line Item Component",
      "type": "object"
    },
    "PurchaseOrderResponse": {
      "example": {
        "data": {
          "allocation_outlet_ids": [
            "6ba7b810-9dad-41d1-80b4-00c04fd430c8"
          ],
          "cost_price_total": "25.00",
          "created_at": "2026-04-01T12:00:00Z",
          "delivery_outlet_id": "6ba7b810-9dad-41d1-80b4-00c04fd430c8",
          "due_at": "2026-04-15T10:00:00Z",
          "id": "550e8400-e29b-41d4-a716-446655440000",
          "notes": "Restock front outlet",
          "order_number": "PO-1001",
          "quantity_total": "10",
          "status": "OPEN",
          "supplier_id": "6ba7b811-9dad-41d1-80b4-00c04fd430c8",
          "supplier_invoice": null,
          "updated_at": "2026-04-01T12:00:00Z",
          "user_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
          "version": 42
        }
      },
      "properties": {
        "data": {
          "$ref": "#/components/schemas/PurchaseOrder"
        }
      },
      "required": [
        "data"
      ],
      "title": "Purchase Order Response",
      "type": "object"
    },
    "PurchaseOrderVersion": {
      "properties": {
        "max": {
          "description": "Highest version number in the payload.",
          "format": "int64",
          "nullable": true,
          "type": "integer"
        },
        "min": {
          "description": "Lowest version number in the payload.",
          "format": "int64",
          "nullable": true,
          "type": "integer"
        }
      },
      "required": [
        "min",
        "max"
      ],
      "title": "Purchase Order Version",
      "type": "object"
    },
    "Quote": {
      "properties": {
        "created_at": {
          "type": "string"
        },
        "customer_id": {
          "type": "string"
        },
        "deleted_at": {
          "nullable": true,
          "type": "string"
        },
        "expired_at": {
          "type": "string"
        },
        "grand_total": {
          "type": "number"
        },
        "id": {
          "type": "string"
        },
        "loyalty": {
          "nullable": true,
          "type": "number"
        },
        "note": {
          "nullable": true,
          "type": "string"
        },
        "outlet_id": {
          "type": "string"
        },
        "products": {
          "items": {
            "$ref": "#/components/schemas/QuoteProduct"
          },
          "type": "array"
        },
        "register_id": {
          "type": "string"
        },
        "retailer_id": {
          "type": "string"
        },
        "sales_ids": {
          "items": {
            "nullable": true,
            "type": "string"
          },
          "nullable": true,
          "type": "array"
        },
        "short_code": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "total_price": {
          "type": "number"
        },
        "total_tax": {
          "type": "number"
        },
        "updated_at": {
          "type": "string"
        },
        "user_id": {
          "type": "string"
        }
      },
      "type": "object",
      "x-examples": {
        "example-1": {
          "created_at": "2022-10-18T10:50:32.11075Z",
          "customer_id": "0242ac11-0002-11ea-eb21-8ab06c5364f5",
          "deleted_at": null,
          "expired_at": "2022-11-17T10:50:32.110752Z",
          "grand_total": 40,
          "id": "1582323235375263744",
          "loyalty": 0.1,
          "note": "",
          "outlet_id": "0242ac12-0002-11e9-e8c4-659494e196e3",
          "products": [],
          "register_id": "0242ac12-0002-11e9-e8c4-659494e17cee",
          "retailer_id": "00000000-0001-0001-0001-000000000001",
          "sales_ids": [
            "3bb73da7-100e-b22d-11ed-3e4f2ef71242",
            "3bb73da7-100e-b9fb-11ed-3e524bc97ad5"
          ],
          "short_code": "1",
          "status": "CREATED",
          "total_price": 34.78261,
          "total_tax": 5.21739,
          "updated_at": "2022-10-18T10:50:32.255336Z",
          "user_id": "08002782-0c90-11e6-e3ed-117ec127b1ca"
        }
      }
    },
    "QuoteProduct": {
      "properties": {
        "discount": {
          "type": "number"
        },
        "id": {
          "type": "string"
        },
        "note": {
          "type": "string"
        },
        "price": {
          "type": "number"
        },
        "product_id": {
          "type": "string"
        },
        "product_tax_components": {
          "items": {
            "$ref": "#/components/schemas/QuotesProductsTaxComponents"
          },
          "type": "array"
        },
        "quantity": {
          "type": "integer"
        },
        "quote_id": {
          "type": "string"
        },
        "salesperson_id": {
          "type": "string"
        },
        "sequence": {
          "type": "integer"
        },
        "tax": {
          "type": "number"
        },
        "tax_id": {
          "type": "string"
        }
      },
      "type": "object",
      "x-examples": {
        "example-1": {
          "discount": 20,
          "id": "1582323235375263747",
          "note": "",
          "price": 17.3913,
          "product_id": "0242ac12-0002-11e9-e8c4-659494e33153",
          "product_tax_components": [
            {
              "id": "1582323235375263748",
              "quote_product_id": "1582323235375263747",
              "rate_id": "06b96260-3efa-11ed-a218-0242ac110002",
              "total_tax": 2.6087
            }
          ],
          "quantity": 1,
          "quote_id": "1582323235375263744",
          "salesperson_id": "08002782-0c90-11e6-e3ed-117ec127b1ca",
          "sequence": 1,
          "tax": 2.6087,
          "tax_id": "00000000-0002-0002-0002-000000000003"
        }
      }
    },
    "QuotesCollection": {
      "properties": {
        "HasNext": {
          "type": "boolean"
        },
        "Quotes": {
          "items": {
            "$ref": "#/components/schemas/Quote"
          },
          "nullable": true,
          "type": "array"
        },
        "TotalCount": {
          "type": "integer"
        }
      },
      "type": "object",
      "x-examples": {
        "example-1": {
          "HasNext": false,
          "Quotes": [
            {
              "created_at": "2022-10-18T10:50:32.11075Z",
              "customer_id": "0242ac11-0002-11ea-eb21-8ab06c5364f5",
              "deleted_at": null,
              "expired_at": "2022-11-17T10:50:32.110752Z",
              "grand_total": 20,
              "id": "1582323235375263744",
              "loyalty": 0.1,
              "note": "",
              "outlet_id": "0242ac12-0002-11e9-e8c4-659494e196e3",
              "products": [
                {
                  "discount": 20,
                  "id": "1582323235375263745",
                  "note": "",
                  "price": 17.3913,
                  "product_id": "0242ac12-0002-11e9-e8c4-659494e33153",
                  "product_tax_components": [
                    {
                      "id": "1582323235375263748",
                      "quote_product_id": "1582323235375263747",
                      "rate_id": "06b96260-3efa-11ed-a218-0242ac110002",
                      "total_tax": 2.6087
                    }
                  ],
                  "quantity": 1,
                  "quote_id": "1582323235375263744",
                  "salesperson_id": "08002782-0c90-11e6-e3ed-117ec127b1ca",
                  "sequence": 0,
                  "tax": 2.6087,
                  "tax_id": "00000000-0002-0002-0002-000000000003"
                }
              ],
              "register_id": "0242ac12-0002-11e9-e8c4-659494e17cee",
              "retailer_id": "00000000-0001-0001-0001-000000000001",
              "sales_ids": null,
              "short_code": "1",
              "status": "CREATED",
              "total_price": 34.78261,
              "total_tax": 5.21739,
              "updated_at": "2022-10-18T10:50:32.255336Z",
              "user_id": "08002782-0c90-11e6-e3ed-117ec127b1ca"
            }
          ],
          "TotalCount": 1
        }
      }
    },
    "QuotesProductsTaxComponents": {
      "properties": {
        "id": {
          "type": "string"
        },
        "quote_product_id": {
          "type": "string"
        },
        "rate_id": {
          "type": "string"
        },
        "total_tax": {
          "type": "number"
        }
      },
      "type": "object",
      "x-examples": {
        "example-1": {
          "id": "1582323235375263746",
          "quote_product_id": "1582323235375263745",
          "rate_id": "06b96260-3efa-11ed-a218-0242ac110002",
          "total_tax": 2.6087
        }
      }
    },
    "RateRule": {
      "description": "Rule that applies to a rate.\nE.g.: Tax rate that applies for clothing and footwear costing $90 or more.",
      "properties": {
        "tax_code": {
          "description": "Label assigned to a product which indicates the tax obligation.",
          "enum": [
            "vend_clothing_footwear"
          ],
          "example": "vend_clothing_footwear",
          "type": "string"
        },
        "type": {
          "description": "Type of rule to apply.",
          "enum": [
            "threshold"
          ],
          "example": "threshold",
          "type": "string"
        },
        "value": {
          "description": "An optional value that can be used for the rule.",
          "example": 90,
          "type": "number"
        }
      },
      "required": [
        "tax_code",
        "type"
      ],
      "title": "Rate Rule",
      "type": "object"
    },
    "ReceiptSettings": {
      "properties": {
        "created_at": {
          "format": "date-time",
          "type": "string"
        },
        "default_type": {
          "description": "Derived from the internal type field. \"Standard Invoice\" maps to \"a4\"; all other types (80-90mm thermal, Standard Thermal Receipt, etc.) map to \"thermal\".\n",
          "enum": [
            "thermal",
            "a4"
          ],
          "type": "string"
        },
        "deleted_at": {
          "format": "date-time",
          "nullable": true,
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "locale": {
          "description": "BCP 47 language tag (e.g. \"en-NZ\")",
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "settings": {
          "$ref": "#/components/schemas/ReceiptSettingsData"
        },
        "style_id": {
          "type": "integer"
        },
        "updated_at": {
          "format": "date-time",
          "type": "string"
        },
        "version": {
          "format": "int64",
          "type": "integer"
        }
      },
      "required": [
        "id",
        "name",
        "default_type",
        "version",
        "created_at",
        "updated_at"
      ],
      "type": "object"
    },
    "ReceiptSettingsCollection": {
      "properties": {
        "data": {
          "items": {
            "$ref": "#/components/schemas/ReceiptSettings"
          },
          "type": "array"
        },
        "version": {
          "$ref": "#/components/schemas/Version"
        }
      },
      "required": [
        "data",
        "version"
      ],
      "type": "object"
    },
    "ReceiptSettingsData": {
      "additionalProperties": true,
      "description": "Additional boolean display attributes (e.g. DisplayCustomerCode, DisplayProductName, DisplayCustomerDetails, etc.) may appear as extra fields sourced from the displayAttributes map stored per receipt template.\n",
      "properties": {
        "DisplayLineDiscount": {
          "default": true,
          "type": "boolean"
        },
        "DisplayLoyaltyEarned": {
          "default": true,
          "description": "Only present when loyalty is enabled",
          "type": "boolean"
        },
        "DisplayLoyaltyLink": {
          "default": true,
          "description": "Only present when loyalty is enabled",
          "type": "boolean"
        },
        "DisplayServedBy": {
          "default": true,
          "type": "boolean"
        },
        "DisplayTax": {
          "default": true,
          "type": "boolean"
        },
        "EmailSubject": {
          "type": "string"
        },
        "Footer": {
          "type": "string"
        },
        "Header": {
          "type": "string"
        },
        "LabelChange": {
          "default": "Change",
          "type": "string"
        },
        "LabelInvoiceTitle": {
          "default": "Receipt / Tax Invoice",
          "type": "string"
        },
        "LabelLineDiscount": {
          "default": "Less discount ",
          "type": "string"
        },
        "LabelLoyalty": {
          "description": "Only present when loyalty is enabled",
          "type": "string"
        },
        "LabelLoyaltyEarned": {
          "default": "Loyalty earned",
          "description": "Only present when loyalty is enabled",
          "type": "string"
        },
        "LabelLoyaltyLink": {
          "description": "Only present when loyalty is enabled. Value includes retailer name.",
          "type": "string"
        },
        "LabelLoyaltyTotal": {
          "default": "Loyalty",
          "description": "Only present when loyalty is enabled",
          "type": "string"
        },
        "LabelServedBy": {
          "default": "Served by:",
          "type": "string"
        },
        "LabelSubTotal": {
          "default": "Subtotal",
          "type": "string"
        },
        "LabelTax": {
          "default": "Total Tax",
          "type": "string"
        },
        "LabelTipAmount": {
          "default": "Tip",
          "type": "string"
        },
        "LabelToPay": {
          "default": "TO PAY",
          "type": "string"
        },
        "LabelTotal": {
          "default": "TOTAL",
          "type": "string"
        },
        "LogoURL": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "RecurringPromotion": {
      "nullable": true,
      "properties": {
        "end_time": {
          "description": "The time the recurring promotion ends.",
          "type": "string"
        },
        "id": {
          "description": "Recurring Promotion ID.",
          "type": "string"
        },
        "occurrence_type": {
          "description": "The occurrence type of the recurring promotion.",
          "type": "string"
        },
        "recurring_promotion_occurrences": {
          "description": "A list of the promotion occurrences.",
          "items": {
            "$ref": "#/components/schemas/RecurringPromotionOccurrence"
          },
          "type": "array"
        },
        "start_time": {
          "description": "The time the recurring promotion begins.",
          "type": "string"
        }
      },
      "title": "Recurring Promotion",
      "type": "object"
    },
    "RecurringPromotionOccurrence": {
      "properties": {
        "day_of_week": {
          "description": "The day of week of the recurring promotion.",
          "type": "string"
        },
        "id": {
          "description": "Recurring Promotion occurrence ID.",
          "type": "string"
        }
      },
      "title": "Recurring Promotion occurrence",
      "type": "object"
    },
    "Register": {
      "properties": {
        "ask_for_note_on_save": {
          "description": "`0` for **Never**, `1` for **On Save/Layby/Account/Return**, `2` for **Always**.",
          "format": "double",
          "type": "number"
        },
        "ask_for_user_on_sale": {
          "type": "boolean"
        },
        "button_layout_id": {
          "description": "Register ID.",
          "nullable": true,
          "type": "string"
        },
        "cash_managed_payment_type_id": {
          "description": "**internal** The ID of the payment type used for cash management transactions in this regsiter.",
          "nullable": true,
          "type": "string"
        },
        "deleted_at": {
          "description": "Deletion timestamp in UTC.",
          "nullable": true,
          "type": "string"
        },
        "email_receipt": {
          "description": "Indicates whether a receipt should be emailed after a sale.",
          "type": "boolean"
        },
        "id": {
          "description": "Auto-generated object ID.",
          "type": "string"
        },
        "invoice_prefix": {
          "description": "Invoice number prefix.",
          "type": "string"
        },
        "invoice_sequence": {
          "description": "The numeric part of the last issued invoice.",
          "format": "double",
          "type": "number"
        },
        "invoice_suffix": {
          "description": "Invoice number suffix.",
          "type": "string"
        },
        "is_open": {
          "description": "Indicates if the Register is currently open.",
          "type": "boolean"
        },
        "name": {
          "description": "The Register name.",
          "type": "string"
        },
        "outlet_id": {
          "description": "A valid ID of an Outlet that this register is associated with.",
          "type": "string"
        },
        "print_note_on_receipt": {
          "type": "boolean"
        },
        "print_receipt": {
          "description": "Indicates whether a receipt should be printed after a sale.",
          "type": "boolean"
        },
        "receipt_template_id": {
          "description": "Default receipt template ID used for this register.",
          "type": "string"
        },
        "register_close_time": {
          "description": "Date/time when the register was closed. Null if currently open.",
          "nullable": true,
          "type": "string"
        },
        "register_open_sequence_id": {
          "description": "**internal** The ID of the current register closure object.",
          "nullable": true,
          "type": "string"
        },
        "register_open_time": {
          "description": "Date/time when the register was open. Always in UTC.",
          "nullable": true,
          "type": "string"
        },
        "show_discounts_on_receipts": {
          "type": "boolean"
        },
        "version": {
          "description": "Auto-incrementing object version number.",
          "format": "int64",
          "type": "integer"
        }
      },
      "title": "Register",
      "type": "object"
    },
    "RegisterClosePaymentType": {
      "properties": {
        "payment_type_id": {
          "description": "The ID of the Payment Type.",
          "type": "string"
        },
        "total": {
          "description": "The Total amount for this Payment Type.",
          "type": "string"
        }
      },
      "title": "Register Close Payment Type",
      "type": "object"
    },
    "RegisterCloseRequest": {
      "properties": {
        "payments": {
          "description": "An array Register objects wrapped in a top level `data` object.",
          "items": {
            "$ref": "#/components/schemas/RegisterClosePaymentType"
          },
          "type": "array"
        }
      },
      "title": "Register Close Request",
      "type": "object"
    },
    "RegisterCollection": {
      "properties": {
        "data": {
          "description": "An array Register objects wrapped in a top level `data` object.",
          "items": {
            "$ref": "#/components/schemas/Register"
          },
          "type": "array"
        },
        "version": {
          "$ref": "#/components/schemas/Version"
        }
      },
      "title": "Register Collection",
      "type": "object"
    },
    "RegisterOpenRequest": {
      "properties": {
        "register_open_time": {
          "description": "Date/time when the register was open. Always in UTC.",
          "type": "string"
        }
      },
      "title": "Register Open Request",
      "type": "object"
    },
    "RegisterPaymentSummaryPaymentType": {
      "properties": {
        "payment_type_id": {
          "description": "The ID of the Payment Type.",
          "format": "uuid",
          "type": "string"
        },
        "payment_type_name": {
          "description": "The name of the Payment Type.",
          "type": "string"
        },
        "total": {
          "description": "The Total amount for this Payment Type.",
          "type": "string"
        }
      },
      "title": "Register Payments Summary Payment Type",
      "type": "object"
    },
    "RegisterPaymentsSummary": {
      "properties": {
        "payments": {
          "items": {
            "$ref": "#/components/schemas/RegisterPaymentSummaryPaymentType"
          },
          "type": "array"
        }
      },
      "title": "Register Payments Summary",
      "type": "object"
    },
    "RegisterPaymentsSummaryResponse": {
      "properties": {
        "data": {
          "$ref": "#/components/schemas/RegisterPaymentsSummary"
        }
      },
      "title": "Register Payments Summary Response",
      "type": "object"
    },
    "RegisterResponse": {
      "properties": {
        "data": {
          "$ref": "#/components/schemas/Register"
        }
      },
      "title": "Register Response",
      "type": "object"
    },
    "RemoteBusinessRule": {
      "description": "The configuration of a remote business rule.",
      "properties": {
        "created_at": {
          "description": "The creation timestamp in UTC.",
          "format": "date-time",
          "readOnly": true,
          "type": "string"
        },
        "id": {
          "example": "1239349157873029120",
          "readOnly": true,
          "type": "string"
        },
        "oauth_application_id": {
          "description": "The ID of the application the created the remote business rule.",
          "example": "043eec148ae192a2d88b1d658e8084a3",
          "readOnly": true,
          "type": "string"
        },
        "url": {
          "example": "https://retailer.com/vend-business-rule",
          "format": "uri",
          "type": "string"
        }
      },
      "required": [
        "url"
      ],
      "title": "Remote Business Rules",
      "type": "object"
    },
    "RemoteBusinessRuleParams": {
      "description": "The parameters that can be passed to the create remote rule API.",
      "properties": {
        "url": {
          "example": "https://retailer.com/vend-business-rule",
          "format": "uri",
          "type": "string"
        }
      },
      "required": [
        "url"
      ],
      "title": "Remote Rule Parameters",
      "type": "object"
    },
    "ReorderPointEntry": {
      "description": "A reorder point entry returned by the upsert endpoint.",
      "properties": {
        "method": {
          "description": "The reorder strategy in use for this product/outlet pair.",
          "enum": [
            "FIXED",
            "MIN_MAX"
          ],
          "type": "string"
        },
        "outlet_id": {
          "description": "The ID of the outlet the reorder point applies to.",
          "format": "uuid",
          "type": "string"
        },
        "product_id": {
          "description": "The ID of the product the reorder point applies to.",
          "format": "uuid",
          "type": "string"
        },
        "reorder_amount": {
          "description": "The static quantity to order. Present only when `method` is `FIXED`.",
          "type": "number"
        },
        "reorder_point": {
          "description": "The minimum inventory level below which a product is automatically suggested for reordering.",
          "type": "number"
        },
        "reorder_target": {
          "description": "The desired stock level to restore to when reordering. Present only when `method` is `MIN_MAX`.",
          "type": "number"
        }
      },
      "required": [
        "product_id",
        "outlet_id",
        "method",
        "reorder_point"
      ],
      "title": "Reorder Point Entry",
      "type": "object"
    },
    "ReorderPointFixedRequestItem": {
      "additionalProperties": false,
      "description": "A reorder point entry using the `FIXED` method.",
      "properties": {
        "method": {
          "description": "The reorder method. Must be `FIXED`.",
          "enum": [
            "FIXED"
          ],
          "type": "string"
        },
        "outlet_id": {
          "description": "The ID of the outlet the reorder point applies to.",
          "format": "uuid",
          "maxLength": 36,
          "type": "string"
        },
        "product_id": {
          "description": "The ID of the product the reorder point applies to.",
          "format": "uuid",
          "maxLength": 36,
          "type": "string"
        },
        "reorder_amount": {
          "description": "The static quantity to order each time the reorder point is triggered.",
          "type": "number"
        },
        "reorder_point": {
          "description": "The minimum inventory level below which a product is automatically suggested for reordering.",
          "type": "number"
        }
      },
      "required": [
        "product_id",
        "outlet_id",
        "method",
        "reorder_point",
        "reorder_amount"
      ],
      "title": "Reorder Point Fixed Request Item",
      "type": "object"
    },
    "ReorderPointMinMaxRequestItem": {
      "additionalProperties": false,
      "description": "A reorder point entry using the `MIN_MAX` method.",
      "properties": {
        "method": {
          "description": "The reorder method. Must be `MIN_MAX`.",
          "enum": [
            "MIN_MAX"
          ],
          "type": "string"
        },
        "outlet_id": {
          "description": "The ID of the outlet the reorder point applies to.",
          "format": "uuid",
          "maxLength": 36,
          "type": "string"
        },
        "product_id": {
          "description": "The ID of the product the reorder point applies to.",
          "format": "uuid",
          "maxLength": 36,
          "type": "string"
        },
        "reorder_point": {
          "description": "The minimum inventory level below which a product is automatically suggested for reordering.",
          "type": "number"
        },
        "reorder_target": {
          "description": "The desired stock level to restore to when reordering.",
          "type": "number"
        }
      },
      "required": [
        "product_id",
        "outlet_id",
        "method",
        "reorder_point",
        "reorder_target"
      ],
      "title": "Reorder Point Min/Max Request Item",
      "type": "object"
    },
    "ReorderPointsCollection": {
      "description": "The response wrapper for the reorder points upsert endpoint.",
      "properties": {
        "data": {
          "description": "An array of upserted reorder point entries, in the same order as the request.",
          "items": {
            "$ref": "#/components/schemas/ReorderPointEntry"
          },
          "type": "array"
        }
      },
      "required": [
        "data"
      ],
      "title": "Reorder Points Collection",
      "type": "object"
    },
    "RequestCollectionResponse": {
      "description": "A collection of request log records wrapped in the top-level data object.",
      "properties": {
        "data": {
          "items": {
            "$ref": "#/components/schemas/RequestLog"
          },
          "type": "array"
        }
      },
      "title": "Request Logs response",
      "type": "object"
    },
    "RequestLog": {
      "description": "An object representing a single request and response made to a channel.",
      "properties": {
        "error": {
          "description": "f an error occurred with the request, such as an inability to resolve a hostname, connect or TLS errors, this will be recorded here. Only errors with the ability to make the request are logged here, rather than errors when interpreting a response.",
          "nullable": true,
          "type": "string"
        },
        "grouping_id": {
          "description": "An identifier used to group together requests that occurred together as part of the same job or Lightspeed Retail (X-Series) API request.",
          "type": "string"
        },
        "id": {
          "description": "Auto-generated object ID.",
          "type": "string"
        },
        "occurred_at": {
          "description": "An RFC3339 representation of the time at which the request was logged.",
          "format": "date-time",
          "type": "string"
        },
        "request": {
          "description": "A dump of the full request information in HTTP format, including headers and any request body.",
          "type": "string"
        },
        "request_method": {
          "description": "The HTTP method used to make the request.",
          "enum": [
            "GET",
            "POST",
            "PUT",
            "DELETE"
          ],
          "type": "string"
        },
        "response": {
          "description": "A dump of the full response information in HTTP format, including headers and any response body.",
          "type": "string"
        },
        "status_code": {
          "description": "The HTTP status code received in the response.",
          "type": "number"
        }
      },
      "required": [
        "grouping_id",
        "id",
        "occurred_at",
        "request",
        "request_method",
        "response"
      ],
      "title": "Request Log",
      "type": "object"
    },
    "RequestSingleResponse": {
      "description": "A single request log record wrapped in the top-level data object.",
      "properties": {
        "data": {
          "$ref": "#/components/schemas/RequestLog"
        }
      },
      "title": "Request Log response",
      "type": "object"
    },
    "Retailer": {
      "description": "A Retailer record.",
      "properties": {
        "account_status": {
          "description": "Status of this account.",
          "type": "string"
        },
        "account_type": {
          "description": "Type of this account.",
          "type": "string"
        },
        "activated_at": {
          "description": "Activation timestamp, e.g. '2019-08-15T23:05:28Z'. This field can be null, e.g. for 'demo' retailers.",
          "nullable": true,
          "type": "string"
        },
        "country": {
          "description": "2-letter country code for this Retailer.",
          "type": "string"
        },
        "created_at": {
          "description": "Creation timestamp, e.g. '2019-08-15T23:05:28Z'",
          "type": "string"
        },
        "culture": {
          "description": "Culture (language name) for this Retailer.",
          "type": "string"
        },
        "currency": {
          "$ref": "#/components/schemas/RetailerCurrency"
        },
        "discount_product_id": {
          "description": "A reference to the default discount product used for sale-level discounts.",
          "format": "uuid",
          "type": "string"
        },
        "domain_prefix": {
          "description": "The subdomain of vendhq.com for this retailer.",
          "type": "string"
        },
        "embedded_barcode_option": {
          "description": "Which value, if any, is embedded in scanned barcodes for this Retailer.",
          "enum": [
            "none",
            "price",
            "weight"
          ],
          "type": "string"
        },
        "enable_line_item_consolidation": {
          "description": "Whether the Retailer has enabled consolidation of duplicate line items on a sale.",
          "type": "boolean"
        },
        "gift_cards": {
          "properties": {
            "enabled": {
              "description": "Whether the Retailer has enabled Gift Cards.",
              "type": "boolean"
            },
            "never_enabled": {
              "description": "Whether the Retailer has _never_ had Gift Cards enabled. Can be used to indicate whether historical Gift Card data exists.",
              "type": "boolean"
            }
          },
          "type": "object"
        },
        "id": {
          "description": "Auto-generated object ID.",
          "format": "uuid",
          "type": "string"
        },
        "loyalty": {
          "properties": {
            "claim_url": {
              "description": "URL for this Retailer's Loyalty plan.",
              "type": "string"
            },
            "enabled": {
              "description": "Whether Loyalty has been enabled.",
              "type": "boolean"
            },
            "ratio": {
              "description": "Ratio of Loyalty Points.",
              "type": "number"
            },
            "send_welcome_email": {
              "description": "Denotes Whether the Retailer's Loyalty plan is configured to send Welcome emails.",
              "type": "boolean"
            }
          },
          "type": "object"
        },
        "name": {
          "description": "Unique name for this Retailer.",
          "type": "string"
        },
        "no_tax_group_id": {
          "description": "A reference to the default 0% rate tax used for tax-free line items.",
          "format": "uuid",
          "type": "string"
        },
        "on_account": {
          "description": "On Account payment settings for this Retailer.",
          "properties": {
            "default_limit": {
              "description": "Default On Account credit limit applied to customers, or null if no default is set.",
              "nullable": true,
              "type": "number"
            }
          },
          "type": "object"
        },
        "sku_sequence": {
          "properties": {
            "enabled": {
              "description": "Whether the Retailer has enabled auto-generation of SKUs, in a numeric sequence.",
              "type": "boolean"
            },
            "value": {
              "description": "The current value of the auto-generated SKU.",
              "type": "integer"
            }
          },
          "type": "object"
        },
        "sso_enabled": {
          "description": "Whether Single Sign-On has been enabled for this Retailer.",
          "type": "boolean"
        },
        "store_credit": {
          "description": "Whether the Retailer has enabled Store Credit.",
          "type": "boolean"
        },
        "store_url": {
          "description": "URL for the store itself.",
          "type": "string"
        },
        "tax_exclusive": {
          "description": "Whether Prices should be interpreted as Tax-Exclusive.",
          "type": "boolean"
        },
        "timezone": {
          "description": "Default Timezone for retailer - e.g. Pacific/Auckland. NOTE: timezones can vary between Outlets.",
          "type": "string"
        },
        "version": {
          "description": "Auto-incrementing object version number.",
          "type": "string"
        }
      },
      "title": "Retailer",
      "type": "object"
    },
    "RetailerCurrency": {
      "properties": {
        "code": {
          "description": "3-letter Currency Code for this Retailer.",
          "type": "string"
        },
        "denomination": {
          "description": "Currency denomination values available for the retailer's default currency. Values are expressed in major currency units.",
          "items": {
            "type": "number"
          },
          "type": "array"
        },
        "symbol": {
          "description": "Currency Symbol for this Retailer.",
          "type": "string"
        }
      },
      "title": "Retailer Currency",
      "type": "object"
    },
    "RetailerResponse": {
      "description": "A Retailer record wrapped in the top-level data object.",
      "properties": {
        "data": {
          "$ref": "#/components/schemas/Retailer"
        }
      },
      "title": "Retailer response",
      "type": "object"
    },
    "Role": {
      "properties": {
        "id": {
          "description": "Auto-generated object ID.",
          "type": "string"
        },
        "name": {
          "description": "The Role name.",
          "type": "string"
        },
        "system_role_id": {
          "description": "A system role id of the Role. Will be either '100', '200', or '300'.",
          "type": "string"
        }
      },
      "title": "Role",
      "type": "object"
    },
    "Sale": {
      "description": "Sale object",
      "properties": {
        "_metadata": {
          "anyOf": [
            {
              "$ref": "#/components/schemas/SaleResponseMetadata"
            },
            {
              "nullable": true,
              "type": "object"
            }
          ]
        },
        "adjustments": {
          "description": "Collection of aggregated adjustments.",
          "items": {
            "$ref": "#/components/schemas/SaleResponseAdjustment"
          },
          "type": "array"
        },
        "attributes": {
          "description": "Attributes for this sale.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "created_at": {
          "description": "Creation timestamp in UTC.",
          "type": "string"
        },
        "customer_id": {
          "description": "The ID of the customer associated with this sale.",
          "format": "uuid",
          "type": "string"
        },
        "date": {
          "description": "Sale timestamp in UTC.",
          "type": "string"
        },
        "deleted_at": {
          "description": "Deletion timestamp in UTC.",
          "nullable": true,
          "type": "string"
        },
        "ecom_custom_charges": {
          "description": "Collection of eCom custom charges associated with the sale.",
          "items": {
            "$ref": "#/components/schemas/EcomCustomCharge"
          },
          "type": "array"
        },
        "external_applications": {
          "description": "External applications associated with the sale.",
          "items": {
            "$ref": "#/components/schemas/SaleExternalApplication"
          },
          "type": "array"
        },
        "id": {
          "description": "Auto-generated object ID.",
          "format": "uuid",
          "type": "string"
        },
        "invoice_number": {
          "description": "Invoice number which if provided, should use the prefix and suffix defined for the register.",
          "type": "string"
        },
        "line_items": {
          "description": "Collection of line items.",
          "items": {
            "$ref": "#/components/schemas/SaleResponseLineItem"
          },
          "type": "array"
        },
        "note": {
          "description": "Sale Note.",
          "nullable": true,
          "type": "string"
        },
        "payments": {
          "description": "Collection of payments.",
          "items": {
            "$ref": "#/components/schemas/SaleResponsePayment"
          },
          "type": "array"
        },
        "receipt_number": {
          "description": "The receipt number for the sale.",
          "type": "string"
        },
        "return": {
          "anyOf": [
            {
              "$ref": "#/components/schemas/SaleReturn"
            },
            {
              "nullable": true,
              "type": "object"
            }
          ]
        },
        "short_code": {
          "description": "Short, unique code used for loyalty tracking purposes.",
          "type": "string"
        },
        "source": {
          "anyOf": [
            {
              "$ref": "#/components/schemas/SaleResponseSource"
            },
            {
              "nullable": true,
              "type": "object"
            }
          ]
        },
        "state": {
          "description": "State of the sale.",
          "enum": [
            "parked",
            "pending",
            "voided",
            "closed"
          ],
          "type": "string"
        },
        "taxes": {
          "description": "Collection of taxes.",
          "items": {
            "$ref": "#/components/schemas/SaleResponseTax"
          },
          "type": "array"
        },
        "totals": {
          "$ref": "#/components/schemas/SaleTotals"
        },
        "updated_at": {
          "description": "Last update timestamp in UTC.",
          "type": "string"
        }
      },
      "title": "Sale",
      "type": "object"
    },
    "SaleAdjustment": {
      "properties": {
        "amount": {
          "$ref": "#/components/schemas/AdjustmentAmount"
        },
        "name": {
          "description": "The name of the adjustment.",
          "type": "string"
        },
        "source": {
          "$ref": "#/components/schemas/AdjustmentSource"
        },
        "type": {
          "description": "The type of the adjustment.",
          "enum": [
            "NON_CASH_FEE",
            "DISCOUNT",
            "TIP"
          ],
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "title": "Sale Adjustment",
      "type": "object"
    },
    "SaleAuthor": {
      "properties": {
        "id": {
          "description": "The ID of the user (cashier) who created the sale.",
          "format": "uuid",
          "type": "string"
        },
        "name": {
          "description": "The username of the user who created the sale.",
          "type": "string"
        }
      },
      "title": "Sale Author",
      "type": "object"
    },
    "SaleCollection": {
      "properties": {
        "data": {
          "description": "An array of Sales wrapped in top level `data` object.",
          "items": {
            "$ref": "#/components/schemas/Sale"
          },
          "type": "array"
        },
        "version": {
          "$ref": "#/components/schemas/Version"
        }
      },
      "title": "Sale Collection",
      "type": "object"
    },
    "SaleCreateResponse": {
      "properties": {
        "data": {
          "properties": {
            "id": {
              "description": "The ID of the created sale.",
              "format": "uuid",
              "type": "string"
            }
          },
          "type": "object"
        }
      },
      "title": "Sale Create Response",
      "type": "object"
    },
    "SaleExternalApplication": {
      "properties": {
        "application_id": {
          "description": "ID of the external application.",
          "type": "string"
        },
        "created_at": {
          "description": "Creation timestamp in UTC.",
          "type": "string"
        },
        "external_id": {
          "description": "ID from the external application.",
          "type": "string"
        },
        "updated_at": {
          "description": "Last update timestamp in UTC.",
          "type": "string"
        },
        "version": {
          "description": "Version of the external application record.",
          "type": "integer"
        }
      },
      "title": "Sale External Application",
      "type": "object"
    },
    "SaleLineItem": {
      "properties": {
        "_metadata": {
          "$ref": "#/components/schemas/LineItemMetadata"
        },
        "attributes": {
          "description": "Additional line item attributes.",
          "items": {
            "$ref": "#/components/schemas/LineItemAttribute"
          },
          "type": "array"
        },
        "fulfilment_outlet_id": {
          "description": "The outlet that should fulfill this line item. Mutually exclusive with pick lists created via `/sales/{sale_id}/pick_lists`.",
          "format": "uuid",
          "type": "string"
        },
        "id": {
          "description": "Existing line item ID. If included in the POST request it will cause an update instead of a creating a new object.",
          "format": "uuid",
          "type": "string"
        },
        "pricing": {
          "$ref": "#/components/schemas/LineItemPricing"
        },
        "product": {
          "$ref": "#/components/schemas/LineItemProduct"
        },
        "quantity": {
          "description": "Quantity of products for the line item.",
          "format": "double",
          "type": "number"
        },
        "source": {
          "$ref": "#/components/schemas/LineItemSource"
        },
        "status": {
          "description": "If defined as `CONFIRMED` for pending sales, the line item will be added as **read-only**.",
          "type": "string"
        },
        "tax": {
          "$ref": "#/components/schemas/LineItemTax"
        }
      },
      "required": [
        "product",
        "quantity",
        "pricing",
        "tax"
      ],
      "title": "Sale Line Item",
      "type": "object"
    },
    "SalePayment": {
      "properties": {
        "amount": {
          "description": "Payment amount.",
          "format": "double",
          "type": "number"
        },
        "billing_address_id": {
          "description": "The ID of the billing address to use for this payment. Either this or billing_address_token must be provided when billing address is required.",
          "nullable": true,
          "type": "string"
        },
        "billing_address_token": {
          "description": "The token of the billing address to use for this payment. Required when billing_address_id is provided.",
          "nullable": true,
          "type": "string"
        },
        "date": {
          "description": "The date and time of the payment.",
          "type": "string"
        },
        "id": {
          "description": "Existing payment ID. If included in the POST request it will cause an update instead of a creating a new supplier.",
          "format": "uuid",
          "type": "string"
        },
        "source": {
          "$ref": "#/components/schemas/PaymentSource"
        },
        "type": {
          "$ref": "#/components/schemas/PaymentTypeConfig"
        }
      },
      "required": [
        "amount",
        "type"
      ],
      "title": "Sale Payment",
      "type": "object"
    },
    "SalePaymentSurcharge": {
      "description": "Payment surcharge details for a sale request payment.",
      "properties": {
        "amount": {
          "description": "Surcharge amount.",
          "type": "string"
        },
        "rule": {
          "description": "Surcharge rule identifier.",
          "type": "string"
        }
      },
      "required": [
        "rule",
        "amount"
      ],
      "title": "Sale Payment Surcharge",
      "type": "object"
    },
    "SalePricing": {
      "properties": {
        "adjustments": {
          "description": "Adjustments.",
          "items": {
            "$ref": "#/components/schemas/SaleAdjustment"
          },
          "type": "array"
        }
      },
      "title": "Sale Pricing",
      "type": "object"
    },
    "SaleRequest": {
      "allOf": [
        {
          "$ref": "#/components/schemas/SaleRequestBase"
        },
        {
          "properties": {
            "id": {
              "description": "User-provided sale ID. If not included, one will be generated.",
              "format": "uuid",
              "type": "string"
            }
          },
          "type": "object"
        }
      ],
      "description": "Editable attributes of the sale.",
      "title": "Sale Request"
    },
    "SaleRequestBase": {
      "description": "Editable attributes of the sale.",
      "properties": {
        "accounts_transaction_id": {
          "description": "Xero invoice reference ID. Only editable for `ONACCOUNT` sales.",
          "type": "string"
        },
        "attributes": {
          "description": "An array of attributes",
          "example": [
            "onaccount"
          ],
          "items": {
            "description": "Attributes for this sale",
            "type": "string"
          },
          "type": "array"
        },
        "customer_id": {
          "description": "The ID of the customer associated with this sale.",
          "format": "uuid",
          "type": "string"
        },
        "date": {
          "description": "The date of the sale in RFC3339 format. If not provided will be added as the time the sale reached the server.",
          "example": "2009-11-10T23:00:00Z",
          "type": "string"
        },
        "fulfillment_details": {
          "description": "Fulfillment details for DISPATCH or PICKUP fulfillments.",
          "items": {
            "$ref": "#/components/schemas/FulfillmentDetail"
          },
          "type": "array"
        },
        "fulfillment_outlet_id": {
          "description": "The default outlet that should fulfill this sale when a line item does not specify its own `fulfilment_outlet_id`. Mutually exclusive with pick lists created via `/sales/{sale_id}/pick_lists`.",
          "format": "uuid",
          "type": "string"
        },
        "invoice_number": {
          "description": "The invoice number for the sale. If left null it will be populated by Lightspeed with the next available invoice number.",
          "type": "string"
        },
        "line_items": {
          "description": "Line items.",
          "items": {
            "$ref": "#/components/schemas/SaleLineItem"
          },
          "type": "array"
        },
        "note": {
          "description": "A note on the sale entered by the cashier.",
          "type": "string"
        },
        "payments": {
          "description": "Payments.",
          "items": {
            "$ref": "#/components/schemas/SalePayment"
          },
          "type": "array"
        },
        "pricing": {
          "$ref": "#/components/schemas/SalePricing"
        },
        "service_fields": {
          "properties": {
            "service_action": {
              "type": "string"
            },
            "service_agenda": {
              "$ref": "#/components/schemas/DailyAgenda"
            },
            "service_items": {
              "$ref": "#/components/schemas/ServiceItems"
            },
            "service_line_items": {
              "description": "An array of service line items.",
              "items": {
                "$ref": "#/components/schemas/ServiceOrderLineItem"
              },
              "type": "array"
            }
          },
          "type": "object"
        },
        "short_code": {
          "description": "Short, unique code to be printed on the receipt for loyalty tracking purposes.",
          "type": "string"
        },
        "source": {
          "$ref": "#/components/schemas/SaleRequestSource"
        },
        "state": {
          "description": "State of the sale.",
          "enum": [
            "parked",
            "pending",
            "voided",
            "closed"
          ],
          "example": "closed",
          "type": "string"
        }
      },
      "required": [
        "source",
        "state"
      ],
      "title": "Sale Request Base",
      "type": "object"
    },
    "SaleRequestSource": {
      "properties": {
        "author_id": {
          "description": "The ID of the user (cashier) who created the sale.",
          "format": "uuid",
          "type": "string"
        },
        "id": {
          "description": "The ID of the sale on the client side or another system where the sale was originally created.",
          "type": "string"
        },
        "register_id": {
          "description": "The ID of the register where the sale was created.",
          "format": "uuid",
          "type": "string"
        },
        "type": {
          "description": "This is the identifier of the 3rd party system that the `source_id` is associated with. 'Xero' or 'Magento' would be examples.",
          "type": "string"
        }
      },
      "required": [
        "author_id"
      ],
      "title": "Sale Request Source",
      "type": "object"
    },
    "SaleResponse": {
      "properties": {
        "data": {
          "$ref": "#/components/schemas/Sale"
        }
      },
      "title": "Sale Response",
      "type": "object"
    },
    "SaleResponseAdjustment": {
      "description": "Sale-level adjustment totals compounded by adjustment type. E-commerce custom charge adjustments are returned separately in `ecom_custom_charges`.",
      "properties": {
        "adjustment_type": {
          "description": "The adjustment type, such as `NON_CASH_FEE` or `SURCHARGE`.",
          "type": "string"
        },
        "name": {
          "description": "Display name from the first adjustment in the compounded adjustment group.",
          "type": "string"
        },
        "tax_components": {
          "description": "Tax component totals for this adjustment group.",
          "items": {
            "$ref": "#/components/schemas/LineItemTaxComponentResponse"
          },
          "type": "array"
        },
        "total": {
          "description": "Sum of fixed, non-each adjustment values for this credit or debit adjustment group.",
          "format": "double",
          "type": "number"
        }
      },
      "title": "Sale Response Adjustment",
      "type": "object"
    },
    "SaleResponseLineItem": {
      "properties": {
        "_metadata": {
          "anyOf": [
            {
              "$ref": "#/components/schemas/LineItemResponseMetadata"
            },
            {
              "nullable": true,
              "type": "object"
            }
          ]
        },
        "attributes": {
          "description": "Additional line item attributes.",
          "items": {
            "$ref": "#/components/schemas/LineItemAttribute"
          },
          "type": "array"
        },
        "customizations": {
          "description": "Product customizations for this line item.",
          "items": {
            "$ref": "#/components/schemas/LineItemCustomization"
          },
          "type": "array"
        },
        "gift_card_number": {
          "description": "Gift card number if this line item is a gift card.",
          "nullable": true,
          "type": "string"
        },
        "id": {
          "description": "The ID of this line item.",
          "format": "uuid",
          "type": "string"
        },
        "note": {
          "description": "Line item note.",
          "nullable": true,
          "type": "string"
        },
        "pricing": {
          "$ref": "#/components/schemas/LineItemResponsePricing"
        },
        "product": {
          "$ref": "#/components/schemas/LineItemProductDetails"
        },
        "promotions": {
          "description": "Promotions applied to this line item.",
          "items": {
            "$ref": "#/components/schemas/LineItemPromotion"
          },
          "type": "array"
        },
        "quantity": {
          "description": "Quantity of products for the line item.",
          "format": "double",
          "type": "number"
        },
        "return": {
          "anyOf": [
            {
              "$ref": "#/components/schemas/LineItemReturn"
            },
            {
              "nullable": true,
              "type": "object"
            }
          ]
        },
        "salesperson_id": {
          "description": "The ID of the salesperson associated with this line item. Salesperson IDs can be retrieved from the /api/{version}/users endpoint. Only needed when this line item is not sold by current login user.",
          "format": "uuid",
          "type": "string"
        },
        "source": {
          "$ref": "#/components/schemas/LineItemResponseSource"
        },
        "status": {
          "description": "If defined as `CONFIRMED` for pending sales, the line item will be added as **read-only**.",
          "type": "string"
        },
        "surcharges": {
          "description": "Collection of surcharges associated with the line item.",
          "items": {
            "$ref": "#/components/schemas/LineItemSurcharge"
          },
          "type": "array"
        },
        "tax": {
          "$ref": "#/components/schemas/LineItemResponseTax"
        }
      },
      "title": "Sale Response Line Item",
      "type": "object"
    },
    "SaleResponseMetadata": {
      "properties": {
        "complete_open_sequence_id": {
          "description": "The sequence ID of the register open at the time the sale was completed.",
          "nullable": true,
          "type": "string"
        },
        "has_unsynced_on_account_payments": {
          "description": "Whether the sale has unsynced on-account payments.",
          "nullable": true,
          "type": "boolean"
        },
        "market_id": {
          "description": "Market ID.",
          "nullable": true,
          "type": "string"
        },
        "revenue_recognised": {
          "description": "Whether revenue has been recognised.",
          "type": "boolean"
        },
        "revenue_recognition_feature": {
          "description": "Whether revenue recognition feature is enabled.",
          "type": "boolean"
        },
        "version": {
          "description": "Monotonically increasing version number of the sale.",
          "type": "integer"
        },
        "xero_reference": {
          "description": "Xero invoice reference ID. Only editable for `ONACCOUNT` sales.",
          "nullable": true,
          "type": "string"
        }
      },
      "title": "Sale Response Metadata",
      "type": "object"
    },
    "SaleResponsePayment": {
      "properties": {
        "_metadata": {
          "$ref": "#/components/schemas/PaymentResponseMetadata"
        },
        "amount": {
          "description": "Payment amount.",
          "format": "double",
          "type": "number"
        },
        "billing_address_id": {
          "description": "The ID of the billing address associated with this payment.",
          "format": "uuid",
          "nullable": true,
          "type": "string"
        },
        "date": {
          "description": "Payment date in UTC.",
          "type": "string"
        },
        "deleted_at": {
          "description": "Deletion timestamp in UTC.",
          "type": "string"
        },
        "external_applications": {
          "description": "External applications associated with the payment.",
          "items": {
            "$ref": "#/components/schemas/PaymentExternalApplication"
          },
          "type": "array"
        },
        "external_attributes": {
          "description": "External attributes for the payment.",
          "items": {
            "$ref": "#/components/schemas/PaymentExternalAttribute"
          },
          "type": "array"
        },
        "id": {
          "description": "Auto-generated payment ID.",
          "format": "uuid",
          "type": "string"
        },
        "integrations": {
          "description": "Payment integration details.",
          "items": {
            "$ref": "#/components/schemas/PaymentIntegration"
          },
          "type": "array"
        },
        "source": {
          "$ref": "#/components/schemas/PaymentResponseSource"
        },
        "surcharge": {
          "$ref": "#/components/schemas/PaymentSurcharge"
        },
        "type": {
          "$ref": "#/components/schemas/PaymentTypeDetails"
        }
      },
      "title": "Sale Response Payment",
      "type": "object"
    },
    "SaleResponseSource": {
      "properties": {
        "author": {
          "$ref": "#/components/schemas/SaleAuthor"
        },
        "id": {
          "description": "The ID of the sale on the client side or another system where the sale was originally created.",
          "nullable": true,
          "type": "string"
        },
        "outlet_id": {
          "description": "The ID of the outlet where the sale was created.",
          "format": "uuid",
          "type": "string"
        },
        "register_id": {
          "description": "The ID of the register where the sale was created.",
          "format": "uuid",
          "type": "string"
        },
        "type": {
          "description": "This is the identifier of the 3rd party system that the `source_id` is associated with. 'Xero' or 'Magento' would be examples.",
          "type": "string"
        }
      },
      "title": "Sale Response Source",
      "type": "object"
    },
    "SaleResponseTax": {
      "properties": {
        "id": {
          "description": "Auto-generated object ID.",
          "format": "uuid",
          "type": "string"
        },
        "name": {
          "description": "The name of the tax.",
          "type": "string"
        },
        "rate": {
          "description": "The rate of the tax. `0.1 = 10%`.",
          "format": "double",
          "type": "number"
        },
        "tax": {
          "description": "The total tax value for this tax.",
          "format": "double",
          "type": "number"
        }
      },
      "title": "Sale Response Tax",
      "type": "object"
    },
    "SaleReturn": {
      "nullable": true,
      "properties": {
        "is_return": {
          "description": "Indicates whether this sale is a return.",
          "type": "boolean"
        },
        "original_sale_id": {
          "description": "Reference ID to a different sale if this sale was created as a return.",
          "nullable": true,
          "type": "string"
        },
        "return_sale_ids": {
          "description": "IDs of return sales created from this sale.",
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "title": "Sale Return",
      "type": "object"
    },
    "SaleSurcharge": {
      "properties": {
        "amount": {
          "description": "Surcharge amount.",
          "format": "double",
          "type": "number"
        },
        "rule": {
          "description": "Specifies the rule of the surcharge to be applied. Multiple rules will be consolidated under \"n rates\".",
          "type": "string"
        }
      },
      "title": "Sale Surcharge",
      "type": "object"
    },
    "SaleTotals": {
      "properties": {
        "loyalty": {
          "description": "Total loyalty value for this sale.",
          "format": "double",
          "type": "number"
        },
        "price": {
          "description": "Total price for this sale, tax exclusive.",
          "format": "double",
          "type": "number"
        },
        "price_incl_tax": {
          "description": "Total price for this sale, tax inclusive.",
          "format": "double",
          "type": "number"
        },
        "surcharge": {
          "description": "Total surcharge value for this sale.",
          "format": "double",
          "type": "number"
        },
        "tax": {
          "description": "Total tax value for this sale.",
          "format": "double",
          "type": "number"
        }
      },
      "title": "Sale Totals",
      "type": "object"
    },
    "SaleUpdateRequest": {
      "allOf": [
        {
          "$ref": "#/components/schemas/SaleRequestBase"
        }
      ],
      "description": "Editable attributes of the sale for an update operation. The sale ID is provided in the URL.",
      "title": "Sale Update Request"
    },
    "SearchResponse": {
      "properties": {
        "data": {
          "description": "A collection of objects of one of the supported types: sales, products or customers.",
          "items": {
            "type": "object"
          },
          "type": "array"
        }
      },
      "title": "Search Response",
      "type": "object"
    },
    "SerialNumber": {
      "properties": {
        "code": {
          "description": "The actual serial number value.",
          "type": "string"
        },
        "id": {
          "description": "Auto-generated object ID.",
          "type": "string"
        },
        "line_item_id": {
          "description": "The ID of the sale line item where this serial number was sold, or null.",
          "format": "uuid",
          "nullable": true,
          "type": "string"
        },
        "outlet_id": {
          "description": "The ID of the outlet where the serial number is located.",
          "format": "uuid",
          "type": "string"
        },
        "product_id": {
          "description": "The ID of the product associated with the serial number.",
          "format": "uuid",
          "type": "string"
        },
        "sale_id": {
          "description": "The ID of the sale where this serial number was sold, or null.",
          "format": "uuid",
          "nullable": true,
          "type": "string"
        },
        "version": {
          "description": "Auto-incrementing object version number.",
          "format": "int64",
          "type": "integer"
        }
      },
      "title": "SerialNumber",
      "type": "object"
    },
    "SerialNumberCollection": {
      "properties": {
        "data": {
          "description": "An array of Serial Numbers wrapped in top level `data` object.",
          "items": {
            "$ref": "#/components/schemas/SerialNumber"
          },
          "type": "array"
        },
        "version": {
          "$ref": "#/components/schemas/Version"
        }
      },
      "title": "Serial Number Collection",
      "type": "object"
    },
    "SerialNumberRequest": {
      "properties": {
        "code": {
          "description": "The actual serial number value.",
          "type": "string"
        },
        "outlet_id": {
          "description": "The ID of the outlet where the serial number is located.",
          "format": "uuid",
          "type": "string"
        },
        "product_id": {
          "description": "The ID of the product associated with the serial number.",
          "format": "uuid",
          "type": "string"
        }
      },
      "required": [
        "code",
        "outlet_id",
        "product_id"
      ],
      "title": "Request to create a sale",
      "type": "object"
    },
    "SerialNumberResponse": {
      "properties": {
        "data": {
          "$ref": "#/components/schemas/SerialNumber"
        }
      },
      "title": "Seri

File truncated at 1 MB.