← HomeFleetPay / Schema

CtePreviousInput

Structure preserved from the versioned API contract.

Technical descriptions are translated from the versioned contract. Original identifiers and JSON are preserved; data examples are omitted.

chavestringRequired
pattern"^\\d{44}$"
tp_serv_origeminteger | nullOptional
minimum0
maximum4
nfe_chavesarray | nullOptional
maxItems100
cargaobject | nullOptional
v_prest_origemnumber | nullOptional
minimum0
Original JSON Definition (Portuguese Descriptions)
{
  "type": [
    "object",
    "null"
  ],
  "required": [
    "chave"
  ],
  "properties": {
    "chave": {
      "type": "string",
      "pattern": "^\\d{44}$"
    },
    "tp_serv_origem": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0,
      "maximum": 4
    },
    "nfe_chaves": {
      "type": [
        "array",
        "null"
      ],
      "maxItems": 100,
      "items": {
        "type": "string",
        "pattern": "^\\d{44}$"
      }
    },
    "carga": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "valor": {
          "type": [
            "number",
            "null"
          ],
          "minimum": 0
        },
        "produto_predominante": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 60
        },
        "peso_bruto": {
          "type": [
            "number",
            "null"
          ],
          "minimum": 0
        },
        "volumes": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 0
        }
      }
    },
    "v_prest_origem": {
      "type": [
        "number",
        "null"
      ],
      "minimum": 0
    },
    "emit": {
      "$ref": "#/components/schemas/CtePreviousPartyInput"
    },
    "rem": {
      "$ref": "#/components/schemas/CtePreviousPartyInput"
    },
    "dest": {
      "$ref": "#/components/schemas/CtePreviousPartyInput"
    }
  }
}