{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/astranexo-com/json-schema/astranexo-com-recipient-input-schema.json",
  "title": "RecipientInput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/astranexo-com-receptores-api-openapi.yml#/components/schemas/RecipientInput",
  "type": "object",
  "required": [
    "name",
    "identification_type",
    "identification_number"
  ],
  "properties": {
    "name": {
      "type": "string"
    },
    "identification_type": {
      "$ref": "#/$defs/IdentificationType"
    },
    "identification_number": {
      "type": "string"
    },
    "commercial_name": {
      "type": "string"
    },
    "email": {
      "type": "string",
      "format": "email"
    },
    "phone": {
      "type": "string"
    },
    "fax": {
      "type": "string"
    },
    "province": {
      "type": "string"
    },
    "canton": {
      "type": "string"
    },
    "district": {
      "type": "string"
    },
    "neighborhood": {
      "type": "string"
    },
    "other_address": {
      "type": "string"
    },
    "country_code": {
      "type": "string"
    },
    "is_foreign": {
      "type": "boolean"
    },
    "notes": {
      "type": "string"
    }
  },
  "$defs": {
    "IdentificationType": {
      "type": "string",
      "description": "Tipo de identificación: `01` física, `02` jurídica, `03` DIMEX, `04` NITE.",
      "enum": [
        "01",
        "02",
        "03",
        "04"
      ]
    }
  }
}