← InicioFleetPay / Schema

CteDeliveryInput

Estructura preservada del contrato versionado de la API.

Las descripciones técnicas se traducen del contrato versionado. Se conservan los identificadores y el JSON originales; se omiten los ejemplos de datos.

proofstringObligatorio

Imagen PNG o JPEG como data URL en base64.

maxLength14000000
pattern"^data:image/(png|jpe?g);base64,"
receiver_namestring | nullOpcional
minLength2
maxLength60
receiver_documentstring | nullOpcional
minLength2
maxLength60
invoice_keysarray | nullOpcional
maxItems2000
delivered_atstring | nullOpcional
pattern"^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$"
informationstring | nullOpcional
maxLength2000
longitudenumber | nullOpcional
minimum-180
maximum180
latitudenumber | nullOpcional
minimum-90
maximum90
Definición JSON Original (Descripciones en Portugués)
{
  "type": "object",
  "required": [
    "proof"
  ],
  "properties": {
    "proof": {
      "type": "string",
      "maxLength": 14000000,
      "pattern": "^data:image/(png|jpe?g);base64,",
      "description": "Imagem PNG ou JPEG em data URL base64."
    },
    "receiver_name": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 2,
      "maxLength": 60
    },
    "receiver_document": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 2,
      "maxLength": 60
    },
    "invoice_keys": {
      "type": [
        "array",
        "null"
      ],
      "maxItems": 2000,
      "uniqueItems": true,
      "items": {
        "type": "string",
        "pattern": "^\\d{44}$"
      }
    },
    "delivered_at": {
      "type": [
        "string",
        "null"
      ],
      "pattern": "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$"
    },
    "information": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 2000
    },
    "longitude": {
      "type": [
        "number",
        "null"
      ],
      "minimum": -180,
      "maximum": 180
    },
    "latitude": {
      "type": [
        "number",
        "null"
      ],
      "minimum": -90,
      "maximum": 90
    }
  }
}