Saltar a contenido

Save receiver


title: Save a receiver

Save a receiver (a customer the issuer invoices) in the calling issuer's directory, or update the one with the same RFC. Receivers reached through share_invoice_draft are saved automatically. email and phone are optional and kept when omitted. The result's receptor is the CFDI Receptor node to copy into a draft.

Alcance (scope): invoices:write · Características: Destructiva, Idempotente

Parámetros

Parámetro Tipo Obligatorio Descripción
rfc string Sí
nombre string Sí Name as in the Constancia fiscal.
domicilio_fiscal string Sí Postal code (5 digits).
regimen_fiscal string Sí SAT c_RegimenFiscal key.
uso_cfdi string Sí SAT c_UsoCFDI key, e.g. G03.
email string No
phone string No 10 to 15 digits.
issuer string Sí Id of the issuer the call acts for, from list_issuers.

Esquema de entrada (JSON Schema)

{
  "type": "object",
  "properties": {
    "rfc": {
      "type": "string"
    },
    "nombre": {
      "type": "string",
      "description": "Name as in the Constancia fiscal."
    },
    "domicilio_fiscal": {
      "type": "string",
      "description": "Postal code (5 digits)."
    },
    "regimen_fiscal": {
      "type": "string",
      "description": "SAT c_RegimenFiscal key."
    },
    "uso_cfdi": {
      "type": "string",
      "description": "SAT c_UsoCFDI key, e.g. G03."
    },
    "email": {
      "type": "string"
    },
    "phone": {
      "type": "string",
      "description": "10 to 15 digits."
    },
    "issuer": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the issuer the call acts for, from list_issuers."
    }
  },
  "required": [
    "rfc",
    "nombre",
    "domicilio_fiscal",
    "regimen_fiscal",
    "uso_cfdi",
    "issuer"
  ]
}