{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/digi-key/main/json-schema/digi-key-customer-location-response-schema.json",
  "title": "CustomerLocationResponse",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/digi-key-bondedinventory-api-openapi.yml#/components/schemas/CustomerLocationResponse",
  "type": "object",
  "properties": {
    "CustomerId": {
      "format": "int32",
      "description": "The unique Id assigned to your Account’s location. This CustomerID is not the same value as the user’s individual CustomerID.",
      "type": "integer"
    },
    "BondedInventory": {
      "description": "Does the location have bonded Inventory",
      "type": "boolean"
    },
    "Currency": {
      "description": "ISO code for currency used in the order.",
      "type": "string"
    },
    "ShippingAddress": {
      "$ref": "#/$defs/Address"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "Address": {
      "description": "Company or Organization address",
      "type": "object",
      "properties": {
        "Company": {
          "description": "Company or Organization name",
          "type": "string"
        },
        "AddressLineOne": {
          "description": "First line of address",
          "type": "string"
        },
        "AddressLineTwo": {
          "description": "Second line of address",
          "type": "string"
        },
        "AddressLineThree": {
          "description": "Third line of address",
          "type": "string"
        },
        "City": {
          "description": "City",
          "type": "string"
        },
        "Province": {
          "description": "Province or State",
          "type": "string"
        },
        "PostalCode": {
          "description": "Postal Code or Zip Code",
          "type": "string"
        },
        "Country": {
          "description": "Country 2 digit ISO code",
          "type": "string"
        }
      },
      "additionalProperties": false
    }
  }
}