{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Location",
  "description": "A SpotOn POS location.",
  "$id": "https://raw.githubusercontent.com/api-evangelist/spoton/refs/heads/main/json-schema/restaurant-pos-export-location-schema.json",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique location identifier."
    },
    "organizationId": {
      "type": "string",
      "description": "Unique organization identifier shared across all locations in the organization."
    },
    "name": {
      "type": "string",
      "description": "Location name."
    },
    "deleted": {
      "type": "boolean",
      "description": "Whether the location is marked as deleted."
    },
    "fiscalendofdaytime": {
      "type": "integer",
      "format": "int64",
      "description": "Fiscal end-of-day time, in milliseconds from the start of the day."
    },
    "spotonmerchantid": {
      "type": "string",
      "description": "The SpotOn merchant identifier for the location."
    }
  }
}