{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/lightspeed/main/json-schema/lightspeed-outlet-response-schema.json",
  "title": "Outlet Response",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lightspeed-outlets-api-openapi.yml#/components/schemas/OutletResponse",
  "properties": {
    "data": {
      "$ref": "#/$defs/Outlet"
    }
  },
  "type": "object",
  "$defs": {
    "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"
    },
    "Outlet": {
      "properties": {
        "attributes": {
          "description": "The outlet attributes such as `low_stock_warning`, `order_reference`, `order_reference_prefix`, `return_reference`, `return_reference_prefix`.",
          "items": {
            "$ref": "#/$defs/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.",
          "type": [
            "string",
            "null"
          ]
        },
        "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.",
          "type": "string"
        },
        "id": {
          "description": "Auto-generated object ID.",
          "type": "string"
        },
        "latitude": {
          "description": "Geographical latitude of the outlet.",
          "type": [
            "string",
            "null"
          ]
        },
        "longitude": {
          "description": "Geographical longitude of the outlet.",
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "description": "The outlet name.",
          "type": "string"
        },
        "phone": {
          "description": "Contact phone number for the outlet.",
          "type": [
            "string",
            "null"
          ]
        },
        "physical_address_1": {
          "description": "Physical address, line 1.",
          "type": [
            "string",
            "null"
          ]
        },
        "physical_address_2": {
          "description": "Physical address, line 2.",
          "type": [
            "string",
            "null"
          ]
        },
        "physical_city": {
          "description": "Physical address, city.",
          "type": [
            "string",
            "null"
          ]
        },
        "physical_country_id": {
          "description": "Physical address, country code.",
          "type": [
            "string",
            "null"
          ]
        },
        "physical_postcode": {
          "description": "Physical address, post code.",
          "type": [
            "string",
            "null"
          ]
        },
        "physical_state": {
          "description": "Physical address, state.",
          "type": [
            "string",
            "null"
          ]
        },
        "physical_suburb": {
          "description": "Physical address, suburb.",
          "type": [
            "string",
            "null"
          ]
        },
        "time_zone": {
          "description": "Outlet timezone. **read only**",
          "type": [
            "string",
            "null"
          ]
        },
        "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"
    }
  }
}