{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/toku/json-schema/toku-customer-billing-data-response-schema.json",
  "title": "CustomerBillingDataResponse",
  "description": "Datos fiscales del Customer que se usan como receptor del CFDI.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/toku-facturaci-n-api-openapi.yml#/components/schemas/CustomerBillingDataResponse",
  "properties": {
    "billing_address": {
      "description": "Domicilio fiscal. Informativo: no viaja al SAT, se guarda para tus propios registros.",
      "title": "Billing Address",
      "type": "string"
    },
    "billing_email": {
      "description": "Correo al que se envía el CFDI cuando la emisión incluye envío por correo.",
      "title": "Billing Email",
      "type": "string"
    },
    "checkout_session_id": {
      "title": "Checkout Session Id",
      "type": "string"
    },
    "id_customer": {
      "title": "Id Customer",
      "type": "string"
    },
    "legal_name": {
      "description": "Razón social del Customer tal como está registrada ante el SAT.",
      "title": "Legal Name",
      "type": "string"
    },
    "tax_id": {
      "description": "RFC del Customer. Es el receptor del CFDI, así que el SAT rechaza la emisión si no coincide con un contribuyente registrado.",
      "title": "Tax Id",
      "type": "string"
    },
    "tax_regime": {
      "description": "Clave del régimen fiscal del Customer según el catálogo del SAT, de tres dígitos. Debe ser uno de los permitidos para su tipo de persona.",
      "title": "Tax Regime",
      "type": "string"
    },
    "tax_zip_code": {
      "description": "Código postal del domicilio fiscal registrado ante el SAT. Tiene que coincidir con el que el SAT tiene para ese RFC; si no, rechaza el CFDI.",
      "title": "Tax Zip Code",
      "type": "string"
    }
  },
  "required": [
    "tax_id",
    "tax_regime",
    "legal_name",
    "tax_zip_code"
  ],
  "type": "object"
}