Skip to main content
Glama

issue_invoice

Destructive

Issue a Brazilian fiscal document: NFS-e or NF-e.

This produces a legal fiscal document. Confirm the data with the user before calling when you inferred any field.

Send unit_price with quantity when the user quotes a price per unit, amount when they quote the line; both must agree.

nfse is a service invoice, one line per document (more is 422 NFSE_SINGLE_ITEM): the address is optional and service_code (LC 116/2003 item.subitem) falls back to the company's fiscal profile. The nfse group fills the DPS (competence, ISS, federal taxes, deductions, substitution and the rest) with only what the user gave, never a guess. nbs is confirmed with the user: suggest_nbs lists the candidates. An MEI cannot send what the nfse group's description lists as refused for it. nfe is for goods, and the SEFAZ rejects a partial one: ncm and cfop on every item and the full recipient_address. Call validate_invoice_payload first when any of that was inferred.

A complementary, adjustment or return NF-e sets purpose and names the original in referenced_keys; a return the company receives back sets direction in. An export has recipient_address state EX with country_code, the export group, and foreign_id for a passport.

Look the recipient up with list_clients and pass its id as client_id. A new recipient is saved as a client after issuance.

Pass idempotency_key, one per business event, when a retry is possible: the same key and payload replays the first answer. Without one, a retry after a lost response issues again, burning another credit and number that only a cancellation within its deadline undoes. Nothing generates the key for you.

Tell the user each of the result's warnings (MEI_ACTIVITY_NOT_ALLOWED, ACTIVITY_NOT_REGISTERED, MEI_NO_ICMS_ACTIVITY, APPROXIMATE_TAXES_MISSING, IBS_CBS_RECOMMENDED and the other *_RECOMMENDED). block_activity_mismatch makes the first two a 422, nothing sent.

Before a company's first document, get_company_readiness says whether it can issue at all.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "document_type": "<document_type>",
      "items": "<items>"
    },
    "name": "issue_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
nfseNonfse only, all optional: competence_date, service_city_code, service_country_code, approximate_taxes, iss, federal, deductions, substitution, construction, event, references, provider (caepf, phone, email), recipient_caepf, intermediary, foreign_trade. An MEI cannot send federal, deductions, iss.rate, iss.municipal_benefit, approximate_taxes.simples_percent or an item's municipal_service_code: 422 *_NOT_FOR_MEI. Full shape in the stackin://schemas/nfse resource.
itemsYesOne entry per line. Each needs a description and a price: unit_price with quantity, or amount for the whole line, or an item_id from list_items for these and the fiscal codes; what the line sends wins. nfe also needs ncm (8 digits) and cfop (4 digits) on every item; nfse takes one line only. Groups in full: the stackin://schemas/invoice-item resource.
changeNonfe, optional. Change given back (vTroco), BRL.
exportNoWhere the goods leave Brazil (exporta): exit_state (UF), place (e.g. Porto de Santos), optional dispatch_place (customs). Required for an nfe to a buyer abroad (state EX), refused otherwise.
numberNoDocument number, e.g. 1532. Omitted means the company's next; set it only to fill a known gap.
seriesNoDocument series (série), e.g. 1. Omitted means the company's default series.
tax_idNoRecipient's CPF or CNPJ. Required unless client_id is sent.
purposeNoWhy the NF-e is issued (finNFe): normal, complementary, adjustment or return of goods. nfe only; omitted means normal.
discountNoDiscount on the whole document, BRL, e.g. 15.50, spread over the lines pro rata. Omitted means none; a per-line one goes on the item.
paymentsNonfe, optional, up to 100: {method (tPag, e.g. 01 cash, 03 credit card, 17 Pix, 99 other with description), amount, description, card {integration, tax_id, brand, authorization}}. Ask the user, never infer.
presenceNonfe, optional. Buyer presence (indPres): 1 in person, 2 internet, 3 phone, 5 off-site, 9 other, 0 n/a. Ask the user.
client_idNoA saved client's id, from list_clients: it fills what this call leaves out. Without it, client_name and tax_id are required.
directionNoout for an outgoing NF-e (CFOP 5/6/7); in for goods coming in, such as a sale returned (CFOP 1/2/3). nfe only; omitted means out.
issued_atNoEmission date-time (dhEmi), ISO 8601 with offset, e.g. 2026-11-15T09:30:00-03:00; one without an offset is refused. Omitted means now. nfe: up to 30 days back, 5 minutes ahead; nfse: never future. Set it only when the user asks.
transportNonfe, optional. freight_mode (modFrete): 0 sender, 1 recipient, 2 third party, 3 sender's own, 4 recipient's own, 9 none; ask the user, never infer. volumes: [{quantity, species, brand, numbering, net_weight, gross_weight in kg}].
company_idNoUUID of the company acted for. Omit for a single company; else see list_authorized_companies. Send one, never both.
foreign_idNoPassport or other document of a buyer abroad (state EX). An nfse needs it or foreign_id_missing_reason; an nfe may omit it.
client_nameNoRecipient's name. Required unless client_id is sent.
contingencyNonfe only: use the contingency authorizer (SVC-AN or SVC-RS) because the state's is down. Only when the user says so, never as a retry for a rejection.
client_emailNoOptional. Recipient e-mail, written into the document when valid. Omitted: client_id's.
client_phoneNoOptional. Recipient phone, written into the document when valid. Omitted: client_id's.
intermediaryNonfe, optional. Marketplace the sale went through: tax_id (CNPJ) and identifier (the seller's id there).
document_typeYesnfse for a service invoice, nfe for goods.
update_clientNoSave the recipient data sent here onto client_id's client.
company_tax_idNoCNPJ or CPF of the company acted for, never the recipient or a taxpayer looked up. Omit for a single company; else see list_authorized_companies. Send one, never both.
idempotency_keyNoOne per business event, e.g. order-1042. Printable ASCII up to 255, no leading or trailing space.
referenced_keysNoAccess keys of the NF-e being returned, complemented or adjusted. Required for complementary (exactly one) and most returns. nfe only.
recipient_addressNoRequired for nfe, with street, number, neighborhood, city, state (UF), zip_code (8 digits) and city_code (7-digit IBGE, e.g. 3550308); optional for nfse. Abroad: state EX and country_code (nfse: country_iso2). With client_id, omit it to use the saved one.
contingency_reasonNoWith contingency: why, 15 to 256 characters.
external_referenceNoThe caller's own id for this document, such as an order number. Stored as sent and returned on every read.
contingency_started_atNoWith contingency: when it began, ISO 8601 with offset. Defaults to emission.
foreign_id_missing_reasonNonfse only, a buyer abroad with no foreign_id: 1 exempt, 2 the country has no tax number.
recipient_municipal_registrationNonfse only: the recipient's inscricao municipal. Omitted with client_id: the saved client's.

Output Schema

NameRequiredDescriptionDefault
idNoLocal id. Use it for reissue and for submissions, and when a document was rejected and has no key.
statusNoissued, rejected or cancelled.
protocolNoThe authorization protocol, when granted.
warningsNoTell the user about each. Empty when none.
access_keyNoThe authorizer's key. Absent while the document is not authorized.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / contingency_reason
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 256,
      +      "minLength": 15,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "With contingency: why, 15 to 256 characters."
      +}
    • addedInput schema / properties / contingency_started_at
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "With contingency: when it began, ISO 8601 with offset. Defaults to emission."
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / nfse / description
      Previous value: -"nfse only, all optional: competence_date, service_city_code, service_country_code, approximate_taxes, iss, federal, deductions, substitution, construction, event, references, intermediary, foreign_trade. An MEI cannot send federal, deductions, iss.rate, iss.municipal_benefit, approximate_taxes.simples_percent or an item's municipal_service_code: 422 *_NOT_FOR_MEI. Full shape in the stackin://schemas/nfse resource."New value: +"nfse only, all optional: competence_date, service_city_code, service_country_code, approximate_taxes, iss, federal, deductions, substitution, construction, event, references, provider (caepf, phone, email), recipient_caepf, intermediary, foreign_trade. An MEI cannot send federal, deductions, iss.rate, iss.municipal_benefit, approximate_taxes.simples_percent or an item's municipal_service_code: 422 *_NOT_FOR_MEI. Full shape in the stackin://schemas/nfse resource."
  3. Changed14 schema fields changed
    • changedInput schema / properties / foreign_id / description
      Previous value: -"Passport or other document of a buyer abroad (state EX). nfe only; may be omitted."New value: +"Passport or other document of a buyer abroad (state EX). An nfse needs it or foreign_id_missing_reason; an nfe may omit it."
    • addedInput schema / properties / foreign_id_missing_reason
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "nfse only, a buyer abroad with no foreign_id: 1 exempt, 2 the country has no tax number."
      +}
    • changedInput schema / properties / items / description
      Previous value: -"One entry per line. Each needs a description and a price: unit_price with quantity, or amount for the whole line, or an item_id from list_items for these and the fiscal codes; what the line sends wins. nfe also needs ncm (8 digits) and cfop (4 digits) on every item; nfse may carry service_code. Groups in full: the stackin://schemas/invoice-item resource."New value: +"One entry per line. Each needs a description and a price: unit_price with quantity, or amount for the whole line, or an item_id from list_items for these and the fiscal codes; what the line sends wins. nfe also needs ncm (8 digits) and cfop (4 digits) on every item; nfse takes one line only. Groups in full: the stackin://schemas/invoice-item resource."
    • addedInput schema / properties / items / items / properties / conditional_discount
      Added value: +{
      +  "anyOf": [
      +    {
      +      "exclusiveMinimum": 0,
      +      "maximum": 1000000000000000,
      +      "type": "number"
      +    },
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Conditional discount in BRL, nfse only."
      +}
    • changedInput schema / properties / items / items / properties / ibs_cbs / description
      Previous value: -"IBS/CBS: cst (3 digits), classification (cClassTrib, 6). nfe: rate_state, rate_city, rate_federal; base, reduction_ibs, reduction_cbs when they apply. nfse: operation_indicator (cIndOp, 6 digits) only. Full shape in the stackin://schemas/invoice-item resource."New value: +"IBS/CBS: cst (3 digits), classification (cClassTrib, 6). nfe: rate_state, rate_city, rate_federal; base, reduction_ibs, reduction_cbs when they apply. nfse: operation_indicator (cIndOp, 6 digits), personal_use, government, referenced_nfse, recipient, real_estate, movable_goods, regular_taxation, deferral, presumed_credit. Full shape in the stackin://schemas/invoice-item resource."
    • addedInput schema / properties / items / items / properties / internal_code
      Added value: +{
      +  "default": null,
      +  "description": "cIntContrib, the issuer's own code for the service. nfse only.",
      +  "pattern": "^[A-Za-z0-9]{1,20}$",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedInput schema / properties / items / items / properties / municipal_service_code
      Added value: +{
      +  "default": null,
      +  "description": "cTribMun, the municipality's own code, three digits. nfse only.",
      +  "pattern": "^\\d{3}$",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedInput schema / properties / nfse
      Added value: +{
      +  "default": null,
      +  "description": "nfse only, all optional: competence_date, service_city_code, service_country_code, approximate_taxes, iss, federal, deductions, substitution, construction, event, references, intermediary, foreign_trade. An MEI cannot send federal, deductions, iss.rate, iss.municipal_benefit, approximate_taxes.simples_percent or an item's municipal_service_code: 422 *_NOT_FOR_MEI. Full shape in the stackin://schemas/nfse resource.",
      +  "type": [
      +    "object",
      +    "null"
      +  ]
      +}
    • changedInput schema / properties / recipient_address / description
      Previous value: -"Required for nfe, with street, number, neighborhood, city, state (UF), zip_code (8 digits) and city_code (7-digit IBGE, e.g. 3550308); optional for nfse. Abroad: state EX and country_code. With client_id, omit it to use the saved one."New value: +"Required for nfe, with street, number, neighborhood, city, state (UF), zip_code (8 digits) and city_code (7-digit IBGE, e.g. 3550308); optional for nfse. Abroad: state EX and country_code (nfse: country_iso2). With client_id, omit it to use the saved one."
    • addedInput schema / properties / recipient_address / properties / complement
      Added value: +{
      +  "default": null,
      +  "description": "Apartment, suite or block.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedInput schema / properties / recipient_address / properties / country_iso2
      Added value: +{
      +  "default": null,
      +  "description": "ISO alpha-2 of a buyer abroad, nfse only.",
      +  "pattern": "^[A-Z]{2}$",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedInput schema / properties / recipient_address / properties / postal_code
      Added value: +{
      +  "default": null,
      +  "description": "Postal code abroad, NFS-e only.",
      +  "maxLength": 11,
      +  "minLength": 1,
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedInput schema / properties / recipient_address / properties / province
      Added value: +{
      +  "default": null,
      +  "description": "State, province or region abroad, NFS-e only.",
      +  "maxLength": 60,
      +  "minLength": 1,
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedInput schema / properties / recipient_municipal_registration
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 15,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "nfse only: the recipient's inscricao municipal. Omitted with client_id: the saved client's."
      +}
  4. Changed4 schema fields changed
    • addedInput schema / properties / items / items / properties / nbs
      Added value: +{
      +  "default": null,
      +  "description": "NBS code of the service, nfse only.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / $defs
      Added value: +{
      +  "IssuanceWarning": {
      +    "additionalProperties": true,
      +    "description": "A finding the issuance went through with.",
      +    "properties": {
      +      "code": {
      +        "type": "string"
      +      },
      +      "field": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null
      +      },
      +      "message": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "code",
      +      "message"
      +    ],
      +    "type": "object"
      +  }
      +}
    • changedOutput schema / description
      Previous value: -"One document, as the fiscal API describes it."New value: +"A document just issued, and the warnings that came with it."
    • addedOutput schema / properties / warnings
      Added value: +{
      +  "description": "Tell the user about each. Empty when none.",
      +  "items": {
      +    "$ref": "#/$defs/IssuanceWarning"
      +  },
      +  "type": "array"
      +}
  5. Changed31 schema fields changed
    • addedInput schema / properties / change
      Added value: +{
      +  "anyOf": [
      +    {
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "nfe, optional. Change given back (vTroco), BRL."
      +}
    • changedInput schema / properties / client_email / description
      Previous value: -"Optional. Recipient e-mail, written into the document when valid. Omitted: client_id's is used."New value: +"Optional. Recipient e-mail, written into the document when valid. Omitted: client_id's."
    • changedInput schema / properties / client_id / description
      Previous value: -"A saved client's id, from list_clients: its name, document and address fill whatever this call leaves out. Without it, client_name and tax_id are required."New value: +"A saved client's id, from list_clients: it fills what this call leaves out. Without it, client_name and tax_id are required."
    • changedInput schema / properties / client_phone / description
      Previous value: -"Optional. Recipient phone, written into the document when valid. Omitted: client_id's is used."New value: +"Optional. Recipient phone, written into the document when valid. Omitted: client_id's."
    • changedInput schema / properties / company_id / description
      Previous value: -"UUID of the company acted for. Omit it if the connection covers a single company; else see list_authorized_companies. company_id or company_tax_id, never both."New value: +"UUID of the company acted for. Omit for a single company; else see list_authorized_companies. Send one, never both."
    • changedInput schema / properties / company_tax_id / description
      Previous value: -"CNPJ or CPF of the company acted for, never the recipient or a taxpayer looked up. Omit it if the connection covers a single company; else see list_authorized_companies. company_id or company_tax_id, never both."New value: +"CNPJ or CPF of the company acted for, never the recipient or a taxpayer looked up. Omit for a single company; else see list_authorized_companies. Send one, never both."
    • changedInput schema / properties / contingency / description
      Previous value: -"nfe only: send through the state's contingency authorizer (SVC-AN or SVC-RS) because its own is down. Use it only when the user says the SEFAZ is unavailable, never as a retry for a rejection."New value: +"nfe only: use the contingency authorizer (SVC-AN or SVC-RS) because the state's is down. Only when the user says so, never as a retry for a rejection."
    • changedInput schema / properties / direction / description
      Previous value: -"out for an outgoing NF-e (CFOP 5/6/7); in for one the company issues for goods coming in, such as a sale the buyer returned (CFOP 1/2/3). nfe only; omitted means out."New value: +"out for an outgoing NF-e (CFOP 5/6/7); in for goods coming in, such as a sale returned (CFOP 1/2/3). nfe only; omitted means out."
    • changedInput schema / properties / discount / description
      Previous value: -"A discount on the whole document, in BRL, e.g. 15.50. The API spreads it over the lines in proportion to each line's amount. Omitted means none; a per-line discount goes on the item."New value: +"Discount on the whole document, BRL, e.g. 15.50, spread over the lines pro rata. Omitted means none; a per-line one goes on the item."
    • changedInput schema / properties / export / description
      Previous value: -"Where the goods leave Brazil (exporta): exit_state (UF) and place, e.g. Porto de Santos. Required for an nfe to a buyer abroad (recipient_address.state EX), refused otherwise."New value: +"Where the goods leave Brazil (exporta): exit_state (UF), place (e.g. Porto de Santos), optional dispatch_place (customs). Required for an nfe to a buyer abroad (state EX), refused otherwise."
    • removedInput schema / properties / export / properties / dispatch_place / description
      Removed value: -"xLocDespacho: customs facility of dispatch."
    • removedInput schema / properties / export / properties / exit_state / description
      Removed value: -"UFSaidaPais: the Brazilian state the goods leave from."
    • removedInput schema / properties / export / properties / place / description
      Removed value: -"xLocExporta: place of shipment or border crossing."
    • changedInput schema / properties / foreign_id / description
      Previous value: -"Passport or other document of a buyer abroad, used when recipient_address.state is EX. nfe only; may be omitted."New value: +"Passport or other document of a buyer abroad (state EX). nfe only; may be omitted."
    • changedInput schema / properties / idempotency_key / description
      Previous value: -"One per business event, e.g. order-1042. Sent as an HTTP header: printable ASCII up to 255, no leading or trailing space."New value: +"One per business event, e.g. order-1042. Printable ASCII up to 255, no leading or trailing space."
    • addedInput schema / properties / intermediary
      Added value: +{
      +  "default": null,
      +  "description": "nfe, optional. Marketplace the sale went through: tax_id (CNPJ) and identifier (the seller's id there).",
      +  "type": [
      +    "object",
      +    "null"
      +  ]
      +}
    • changedInput schema / properties / issued_at / description
      Previous value: -"Emission date-time (dhEmi), ISO 8601 with a timezone offset, e.g. 2026-11-15T09:30:00-03:00; a value without an offset is refused. Omitted means now. nfe: at most 30 days back and 5 minutes ahead; nfse: never in the future. Set it only when the user asks for a date other than now."New value: +"Emission date-time (dhEmi), ISO 8601 with offset, e.g. 2026-11-15T09:30:00-03:00; one without an offset is refused. Omitted means now. nfe: up to 30 days back, 5 minutes ahead; nfse: never future. Set it only when the user asks."
    • changedInput schema / properties / items / description
      Previous value: -"One entry per line. Each needs a description and a price: unit_price with quantity, or amount for the whole line, or an item_id from list_items for these and the fiscal codes; what the line sends wins. nfe also needs ncm (8 digits) and cfop (4 digits) on every item; nfse may carry service_code. Example: {\"description\": \"Cadeira de escritorio\", \"unit_price\": 225, \"quantity\": 2, \"ncm\": \"94013000\", \"cfop\": \"5102\"}. The tax, fuel and ibs_cbs groups in full: the stackin://schemas/invoice-item resource."New value: +"One entry per line. Each needs a description and a price: unit_price with quantity, or amount for the whole line, or an item_id from list_items for these and the fiscal codes; what the line sends wins. nfe also needs ncm (8 digits) and cfop (4 digits) on every item; nfse may carry service_code. Groups in full: the stackin://schemas/invoice-item resource."
    • addedInput schema / properties / items / items / properties / gross_weight
      Added value: +{
      +  "description": "kg per unit, NF-e only.",
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • changedInput schema / properties / items / items / properties / item_id / description
      Previous value: -"A catalog item (see Items): it fills whatever this line leaves out, and what the line sends wins."New value: +"A catalog item from list_items: fills what the line leaves out."
    • addedInput schema / properties / items / items / properties / net_weight
      Added value: +{
      +  "description": "kg per unit, NF-e only.",
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • changedInput schema / properties / items / items / properties / tax / description
      Previous value: -"The item's taxes, already computed: icms, icms_uf_dest, ipi, pis, pis_st, cofins, cofins_st and v_tot_trib, each ICMS variant chosen by its cst or csosn. Leave it out unless the user gave the computed values. Validated against the SDK model; full shape in the stackin://schemas/invoice-item resource."New value: +"The item's taxes, already computed: icms, icms_uf_dest, ipi, pis, pis_st, cofins, cofins_st and v_tot_trib, each ICMS variant chosen by its cst or csosn. Leave it out unless the user gave the computed values. Full shape in the stackin://schemas/invoice-item resource."
    • changedInput schema / properties / number / description
      Previous value: -"Document number (número), e.g. 1532. Omitted means the next one from the company's counter; set it only to fill a known gap."New value: +"Document number, e.g. 1532. Omitted means the company's next; set it only to fill a known gap."
    • addedInput schema / properties / payments
      Added value: +{
      +  "default": null,
      +  "description": "nfe, optional, up to 100: {method (tPag, e.g. 01 cash, 03 credit card, 17 Pix, 99 other with description), amount, description, card {integration, tax_id, brand, authorization}}. Ask the user, never infer.",
      +  "items": {
      +    "type": "object"
      +  },
      +  "type": [
      +    "array",
      +    "null"
      +  ]
      +}
    • addedInput schema / properties / presence
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "0",
      +        "1",
      +        "2",
      +        "3",
      +        "5",
      +        "9"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "nfe, optional. Buyer presence (indPres): 1 in person, 2 internet, 3 phone, 5 off-site, 9 other, 0 n/a. Ask the user."
      +}
    • changedInput schema / properties / recipient_address / description
      Previous value: -"The recipient's address. Required for nfe with street, number, neighborhood, city, state (UF, e.g. SP), zip_code (8 digits) and city_code (7-digit IBGE code, e.g. 3550308); optional for nfse. A buyer abroad has state EX and a country_code. With client_id, omit it to use the saved one."New value: +"Required for nfe, with street, number, neighborhood, city, state (UF), zip_code (8 digits) and city_code (7-digit IBGE, e.g. 3550308); optional for nfse. Abroad: state EX and country_code. With client_id, omit it to use the saved one."
    • changedInput schema / properties / recipient_address / properties / country_code / description
      Previous value: -"BACEN country code, 1 to 4 digits. Required, and not 1058, when state is EX. Its check digit is not verified: the official table has countries whose digit does not close."New value: +"BACEN code, 1 to 4 digits. Required, not 1058, when state is EX."
    • changedInput schema / properties / recipient_address / properties / state_registration / description
      Previous value: -"Recipient's IE (inscrição estadual), NF-e only. Send it for a recipient registered as an ICMS contributor; ISENTO for an exempt one; leave it out for a non-contributor."New value: +"IE, NF-e only: the number for an ICMS contributor, ISENTO if exempt, left out for a non-contributor."
    • changedInput schema / properties / referenced_keys / description
      Previous value: -"Access keys of the NF-e this one refers to: the note being returned, complemented or adjusted. Required for complementary (exactly one) and for most returns. nfe only."New value: +"Access keys of the NF-e being returned, complemented or adjusted. Required for complementary (exactly one) and most returns. nfe only."
    • addedInput schema / properties / transport
      Added value: +{
      +  "default": null,
      +  "description": "nfe, optional. freight_mode (modFrete): 0 sender, 1 recipient, 2 third party, 3 sender's own, 4 recipient's own, 9 none; ask the user, never infer. volumes: [{quantity, species, brand, numbering, net_weight, gross_weight in kg}].",
      +  "type": [
      +    "object",
      +    "null"
      +  ]
      +}
    • changedInput schema / properties / update_client / description
      Previous value: -"Save the recipient data sent in this call back onto the client named by client_id."New value: +"Save the recipient data sent here onto client_id's client."
  6. Changed2 schema fields changed
    • changedInput schema / properties / company_id / description
      Previous value: -"UUID of the company this call acts for. Omit it when the connection covers a single company; with several it is required (see list_authorized_companies). Send company_id or company_tax_id, never both."New value: +"UUID of the company acted for. Omit it if the connection covers a single company; else see list_authorized_companies. company_id or company_tax_id, never both."
    • changedInput schema / properties / company_tax_id / description
      Previous value: -"CNPJ or CPF of the company this call acts for, never the recipient or a taxpayer being looked up. Omit it when the connection covers a single company; with several it is required (see list_authorized_companies). Send company_id or company_tax_id, never both."New value: +"CNPJ or CPF of the company acted for, never the recipient or a taxpayer looked up. Omit it if the connection covers a single company; else see list_authorized_companies. company_id or company_tax_id, never both."
  7. Changed1 schema field changed
    • changedInput schema / properties / items / items / properties / ibs_cbs / description
      Previous value: -"The NF-e Reforma Tributaria group (IBS/CBS); not available for an NFS-e through this tool yet. cst (3 digits), classification (cClassTrib, 6 digits), rate_state, rate_city and rate_federal; base, reduction_ibs and reduction_cbs when they apply. Full shape in the stackin://schemas/invoice-item resource."New value: +"IBS/CBS: cst (3 digits), classification (cClassTrib, 6). nfe: rate_state, rate_city, rate_federal; base, reduction_ibs, reduction_cbs when they apply. nfse: operation_indicator (cIndOp, 6 digits) only. Full shape in the stackin://schemas/invoice-item resource."
  8. Changed1 schema field changed
    • changedInput schema / properties / items / items / properties / ibs_cbs / description
      Previous value: -"The Reforma Tributaria group (IBS/CBS) for the item, computed: cst (3 digits), classification (cClassTrib, 6 digits), rate_state, rate_city and rate_federal; base, reduction_ibs and reduction_cbs when they apply. Full shape in the stackin://schemas/invoice-item resource."New value: +"The NF-e Reforma Tributaria group (IBS/CBS); not available for an NFS-e through this tool yet. cst (3 digits), classification (cClassTrib, 6 digits), rate_state, rate_city and rate_federal; base, reduction_ibs and reduction_cbs when they apply. Full shape in the stackin://schemas/invoice-item resource."
  9. Changed8 schema fields changed
    • addedInput schema / properties / client_email
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 254,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Optional. Recipient e-mail, written into the document when valid. Omitted: client_id's is used."
      +}
    • addedInput schema / properties / client_phone
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 20,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Optional. Recipient phone, written into the document when valid. Omitted: client_id's is used."
      +}
    • changedInput schema / properties / items / description
      Previous value: -"One entry per line. Each needs a description and a price: unit_price with quantity, or amount for the whole line. nfe also needs ncm (8 digits) and cfop (4 digits) on every item; nfse may carry service_code. Example: {\"description\": \"Cadeira de escritorio\", \"unit_price\": 225, \"quantity\": 2, \"ncm\": \"94013000\", \"cfop\": \"5102\"}. The tax, fuel and ibs_cbs groups in full: the stackin://schemas/invoice-item resource."New value: +"One entry per line. Each needs a description and a price: unit_price with quantity, or amount for the whole line, or an item_id from list_items for these and the fiscal codes; what the line sends wins. nfe also needs ncm (8 digits) and cfop (4 digits) on every item; nfse may carry service_code. Example: {\"description\": \"Cadeira de escritorio\", \"unit_price\": 225, \"quantity\": 2, \"ncm\": \"94013000\", \"cfop\": \"5102\"}. The tax, fuel and ibs_cbs groups in full: the stackin://schemas/invoice-item resource."
    • addedInput schema / properties / items / items / properties / description / default
      Added value: +null
    • addedInput schema / properties / items / items / properties / description / description
      Added value: +"Required unless item_id names a catalog item."
    • changedInput schema / properties / items / items / properties / description / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • addedInput schema / properties / items / items / properties / item_id
      Added value: +{
      +  "default": null,
      +  "description": "A catalog item (see Items): it fills whatever this line leaves out, and what the line sends wins.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • removedInput schema / properties / items / items / required
      Removed value: -[
      -  "description"
      -]
  10. Changed3 schema fields changed
    • addedInput schema / properties / contingency
      Added value: +{
      +  "default": false,
      +  "description": "nfe only: send through the state's contingency authorizer (SVC-AN or SVC-RS) because its own is down. Use it only when the user says the SEFAZ is unavailable, never as a retry for a rejection.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / discount
      Added value: +{
      +  "anyOf": [
      +    {
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "A discount on the whole document, in BRL, e.g. 15.50. The API spreads it over the lines in proportion to each line's amount. Omitted means none; a per-line discount goes on the item."
      +}
    • addedInput schema / properties / issued_at
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Emission date-time (dhEmi), ISO 8601 with a timezone offset, e.g. 2026-11-15T09:30:00-03:00; a value without an offset is refused. Omitted means now. nfe: at most 30 days back and 5 minutes ahead; nfse: never in the future. Set it only when the user asks for a date other than now."
      +}
  11. Changed2 schema fields changed
    • changedInput schema / properties / idempotency_key / anyOf
      Previous value: -[
      -  {
      -    "minLength": 1,
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 255,
      +    "minLength": 1,
      +    "pattern": "^[!-~](?:[ -~]*[!-~])?$",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / idempotency_key / description
      Previous value: -"One per business event. An empty key protects nothing, so it is refused rather than ignored."New value: +"One per business event, e.g. order-1042. Sent as an HTTP header: printable ASCII up to 255, no leading or trailing space."
  12. Changed42 schema fields changed
    • removedInput schema / $defs
      Removed value: -{
      -  "Address": {
      -    "description": "A plain postal address. State EX is a buyer abroad, NF-e only.",
      -    "properties": {
      -      "city": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "City"
      -      },
      -      "city_code": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "City Code"
      -      },
      -      "country_code": {
      -        "anyOf": [
      -          {
      -            "pattern": "^[0-9]{1,4}$",
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "BACEN country code, 1 to 4 digits. Required, and not 1058, when state is EX. Its check digit is not verified: the official table has countries whose digit does not close.",
      -        "title": "Country Code"
      -      },
      -      "country_name": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Country Name"
      -      },
      -      "neighborhood": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Neighborhood"
      -      },
      -      "number": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Number"
      -      },
      -      "state": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "State"
      -      },
      -      "state_registration": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Recipient's IE (inscrição estadual), NF-e only. Send it for a recipient registered as an ICMS contributor; ISENTO for an exempt one; leave it out for a non-contributor.",
      -        "title": "State Registration"
      -      },
      -      "street": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Street"
      -      },
      -      "zip_code": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Zip Code"
      -      }
      -    },
      -    "title": "Address",
      -    "type": "object"
      -  },
      -  "CofinsAliq": {
      -    "description": "COFINS taxed by rate.",
      -    "properties": {
      -      "cst": {
      -        "enum": [
      -          "01",
      -          "02"
      -        ],
      -        "title": "Cst",
      -        "type": "string"
      -      },
      -      "p_cofins": {
      -        "title": "P Cofins",
      -        "type": "string"
      -      },
      -      "v_bc": {
      -        "title": "V Bc",
      -        "type": "string"
      -      },
      -      "v_cofins": {
      -        "title": "V Cofins",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "cst",
      -      "v_bc",
      -      "p_cofins",
      -      "v_cofins"
      -    ],
      -    "title": "CofinsAliq",
      -    "type": "object"
      -  },
      -  "CofinsNt": {
      -    "description": "COFINS not taxed.",
      -    "properties": {
      -      "cst": {
      -        "enum": [
      -          "04",
      -          "05",
      -          "06",
      -          "07",
      -          "08",
      -          "09"
      -        ],
      -        "title": "Cst",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "cst"
      -    ],
      -    "title": "CofinsNt",
      -    "type": "object"
      -  },
      -  "CofinsOutr": {
      -    "description": "COFINS taxed some other way.",
      -    "properties": {
      -      "cst": {
      -        "enum": [
      -          "49",
      -          "50",
      -          "51",
      -          "52",
      -          "53",
      -          "54",
      -          "55",
      -          "56",
      -          "60",
      -          "61",
      -          "62",
      -          "63",
      -          "64",
      -          "65",
      -          "66",
      -          "67",
      -          "70",
      -          "71",
      -          "72",
      -          "73",
      -          "74",
      -          "75",
      -          "98",
      -          "99"
      -        ],
      -        "title": "Cst",
      -        "type": "string"
      -      },
      -      "p_cofins": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Cofins"
      -      },
      -      "q_bc_prod": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Q Bc Prod"
      -      },
      -      "v_aliq_prod": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Aliq Prod"
      -      },
      -      "v_bc": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Bc"
      -      },
      -      "v_cofins": {
      -        "title": "V Cofins",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "cst",
      -      "v_cofins"
      -    ],
      -    "title": "CofinsOutr",
      -    "type": "object"
      -  },
      -  "CofinsQtde": {
      -    "description": "COFINS taxed by quantity.",
      -    "properties": {
      -      "cst": {
      -        "const": "03",
      -        "default": "03",
      -        "title": "Cst",
      -        "type": "string"
      -      },
      -      "q_bc_prod": {
      -        "title": "Q Bc Prod",
      -        "type": "string"
      -      },
      -      "v_aliq_prod": {
      -        "title": "V Aliq Prod",
      -        "type": "string"
      -      },
      -      "v_cofins": {
      -        "title": "V Cofins",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "q_bc_prod",
      -      "v_aliq_prod",
      -      "v_cofins"
      -    ],
      -    "title": "CofinsQtde",
      -    "type": "object"
      -  },
      -  "CofinsSt": {
      -    "description": "COFINS withheld by substitution.",
      -    "properties": {
      -      "ind_soma_cofins_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Ind Soma Cofins St"
      -      },
      -      "p_cofins": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Cofins"
      -      },
      -      "q_bc_prod": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Q Bc Prod"
      -      },
      -      "v_aliq_prod": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Aliq Prod"
      -      },
      -      "v_bc": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Bc"
      -      },
      -      "v_cofins": {
      -        "title": "V Cofins",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "v_cofins"
      -    ],
      -    "title": "CofinsSt",
      -    "type": "object"
      -  },
      -  "Export": {
      -    "description": "Where the goods leave Brazil: the NF-e `exporta` group.\n\nRequired by the API for an outgoing NF-e to a buyer abroad\n(recipient_address.state EX), refused otherwise.",
      -    "properties": {
      -      "dispatch_place": {
      -        "anyOf": [
      -          {
      -            "maxLength": 60,
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "xLocDespacho: customs facility of dispatch.",
      -        "title": "Dispatch Place"
      -      },
      -      "exit_state": {
      -        "description": "UFSaidaPais: the Brazilian state the goods leave from.",
      -        "maxLength": 2,
      -        "minLength": 2,
      -        "title": "Exit State",
      -        "type": "string"
      -      },
      -      "place": {
      -        "description": "xLocExporta: place of shipment or border crossing.",
      -        "maxLength": 60,
      -        "minLength": 1,
      -        "title": "Place",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "exit_state",
      -      "place"
      -    ],
      -    "title": "Export",
      -    "type": "object"
      -  },
      -  "Fuel": {
      -    "description": "The NF-e fuel group (`comb`), needed for a fuel CFOP.\n\nGroups it does not cover (CIDE, encerrante, origComb) still go\nthrough `extra_groups[\"comb\"]`, but never together with this one.",
      -    "properties": {
      -      "anp_code": {
      -        "description": "cProdANP.",
      -        "pattern": "^[0-9]{9}$",
      -        "title": "Anp Code",
      -        "type": "string"
      -      },
      -      "anp_description": {
      -        "description": "descANP.",
      -        "maxLength": 95,
      -        "minLength": 2,
      -        "title": "Anp Description",
      -        "type": "string"
      -      },
      -      "biodiesel_percent": {
      -        "anyOf": [
      -          {
      -            "maximum": 100,
      -            "minimum": 0,
      -            "type": "number"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "pBio.",
      -        "title": "Biodiesel Percent"
      -      },
      -      "codif": {
      -        "anyOf": [
      -          {
      -            "pattern": "^[0-9]{1,21}$",
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "CODIF.",
      -        "title": "Codif"
      -      },
      -      "consumer_state": {
      -        "description": "UFCons, where it is consumed.",
      -        "pattern": "^[A-Z]{2}$",
      -        "title": "Consumer State",
      -        "type": "string"
      -      },
      -      "glp_percent": {
      -        "anyOf": [
      -          {
      -            "maximum": 100,
      -            "minimum": 0,
      -            "type": "number"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "pGLP, GLP only.",
      -        "title": "Glp Percent"
      -      },
      -      "natural_gas_imported_percent": {
      -        "anyOf": [
      -          {
      -            "maximum": 100,
      -            "minimum": 0,
      -            "type": "number"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "pGNi, GLP only.",
      -        "title": "Natural Gas Imported Percent"
      -      },
      -      "natural_gas_national_percent": {
      -        "anyOf": [
      -          {
      -            "maximum": 100,
      -            "minimum": 0,
      -            "type": "number"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "pGNn, GLP only.",
      -        "title": "Natural Gas National Percent"
      -      },
      -      "starting_value": {
      -        "anyOf": [
      -          {
      -            "minimum": 0,
      -            "type": "number"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "vPart, GLP only.",
      -        "title": "Starting Value"
      -      },
      -      "temperature_quantity": {
      -        "anyOf": [
      -          {
      -            "minimum": 0,
      -            "type": "number"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "qTemp, at 20 degrees Celsius.",
      -        "title": "Temperature Quantity"
      -      }
      -    },
      -    "required": [
      -      "anp_code",
      -      "anp_description",
      -      "consumer_state"
      -    ],
      -    "title": "Fuel",
      -    "type": "object"
      -  },
      -  "IbsCbs": {
      -    "description": "The Reforma Tributária group for one item.",
      -    "properties": {
      -      "base": {
      -        "anyOf": [
      -          {
      -            "exclusiveMinimum": 0,
      -            "type": "number"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Base"
      -      },
      -      "classification": {
      -        "pattern": "^\\d{6}$",
      -        "title": "Classification",
      -        "type": "string"
      -      },
      -      "cst": {
      -        "pattern": "^\\d{3}$",
      -        "title": "Cst",
      -        "type": "string"
      -      },
      -      "rate_city": {
      -        "minimum": 0,
      -        "title": "Rate City",
      -        "type": "number"
      -      },
      -      "rate_federal": {
      -        "minimum": 0,
      -        "title": "Rate Federal",
      -        "type": "number"
      -      },
      -      "rate_state": {
      -        "minimum": 0,
      -        "title": "Rate State",
      -        "type": "number"
      -      },
      -      "reduction_cbs": {
      -        "anyOf": [
      -          {
      -            "maximum": 100,
      -            "minimum": 0,
      -            "type": "number"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "pRedAliq of the CBS, percent: the cClassTrib's pRedCBS. Required for CST 011, 200 and 515, refused for any other.",
      -        "title": "Reduction Cbs"
      -      },
      -      "reduction_ibs": {
      -        "anyOf": [
      -          {
      -            "maximum": 100,
      -            "minimum": 0,
      -            "type": "number"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "pRedAliq of the IBS (state and municipality), percent: the cClassTrib's pRedIBS in the official classification table. Required for CST 011, 200 and 515, refused for any other.",
      -        "title": "Reduction Ibs"
      -      }
      -    },
      -    "required": [
      -      "cst",
      -      "classification",
      -      "rate_state",
      -      "rate_city",
      -      "rate_federal"
      -    ],
      -    "title": "IbsCbs",
      -    "type": "object"
      -  },
      -  "Icms00": {
      -    "description": "ICMS fully taxed.",
      -    "properties": {
      -      "cst": {
      -        "const": "00",
      -        "default": "00",
      -        "title": "Cst",
      -        "type": "string"
      -      },
      -      "mod_bc": {
      -        "title": "Mod Bc",
      -        "type": "string"
      -      },
      -      "orig": {
      -        "title": "Orig",
      -        "type": "string"
      -      },
      -      "p_fcp": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Fcp"
      -      },
      -      "p_icms": {
      -        "title": "P Icms",
      -        "type": "string"
      -      },
      -      "v_bc": {
      -        "title": "V Bc",
      -        "type": "string"
      -      },
      -      "v_fcp": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Fcp"
      -      },
      -      "v_icms": {
      -        "title": "V Icms",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "orig",
      -      "mod_bc",
      -      "v_bc",
      -      "p_icms",
      -      "v_icms"
      -    ],
      -    "title": "Icms00",
      -    "type": "object"
      -  },
      -  "Icms02": {
      -    "description": "ICMS monofasico, taxed by unit.",
      -    "properties": {
      -      "ad_rem_icms": {
      -        "title": "Ad Rem Icms",
      -        "type": "string"
      -      },
      -      "cst": {
      -        "const": "02",
      -        "default": "02",
      -        "title": "Cst",
      -        "type": "string"
      -      },
      -      "orig": {
      -        "title": "Orig",
      -        "type": "string"
      -      },
      -      "q_bc_mono": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Q Bc Mono"
      -      },
      -      "v_icms_mono": {
      -        "title": "V Icms Mono",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "orig",
      -      "ad_rem_icms",
      -      "v_icms_mono"
      -    ],
      -    "title": "Icms02",
      -    "type": "object"
      -  },
      -  "Icms10": {
      -    "description": "ICMS taxed with substitution.",
      -    "properties": {
      -      "cst": {
      -        "const": "10",
      -        "default": "10",
      -        "title": "Cst",
      -        "type": "string"
      -      },
      -      "mod_bc": {
      -        "title": "Mod Bc",
      -        "type": "string"
      -      },
      -      "mod_bc_st": {
      -        "title": "Mod Bc St",
      -        "type": "string"
      -      },
      -      "mot_des_icms_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Mot Des Icms St"
      -      },
      -      "orig": {
      -        "title": "Orig",
      -        "type": "string"
      -      },
      -      "p_fcp": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Fcp"
      -      },
      -      "p_fcp_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Fcp St"
      -      },
      -      "p_icms": {
      -        "title": "P Icms",
      -        "type": "string"
      -      },
      -      "p_icms_st": {
      -        "title": "P Icms St",
      -        "type": "string"
      -      },
      -      "p_mva_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Mva St"
      -      },
      -      "p_red_bc_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Red Bc St"
      -      },
      -      "v_bc": {
      -        "title": "V Bc",
      -        "type": "string"
      -      },
      -      "v_bc_fcp": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Bc Fcp"
      -      },
      -      "v_bc_fcp_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Bc Fcp St"
      -      },
      -      "v_bc_st": {
      -        "title": "V Bc St",
      -        "type": "string"
      -      },
      -      "v_fcp": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Fcp"
      -      },
      -      "v_fcp_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Fcp St"
      -      },
      -      "v_icms": {
      -        "title": "V Icms",
      -        "type": "string"
      -      },
      -      "v_icms_st": {
      -        "title": "V Icms St",
      -        "type": "string"
      -      },
      -      "v_icms_st_deson": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Icms St Deson"
      -      }
      -    },
      -    "required": [
      -      "orig",
      -      "mod_bc",
      -      "v_bc",
      -      "p_icms",
      -      "v_icms",
      -      "mod_bc_st",
      -      "v_bc_st",
      -      "p_icms_st",
      -      "v_icms_st"
      -    ],
      -    "title": "Icms10",
      -    "type": "object"
      -  },
      -  "Icms15": {
      -    "description": "ICMS monofasico with retention.",
      -    "properties": {
      -      "ad_rem_icms": {
      -        "title": "Ad Rem Icms",
      -        "type": "string"
      -      },
      -      "ad_rem_icms_reten": {
      -        "title": "Ad Rem Icms Reten",
      -        "type": "string"
      -      },
      -      "cst": {
      -        "const": "15",
      -        "default": "15",
      -        "title": "Cst",
      -        "type": "string"
      -      },
      -      "mot_red_ad_rem": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Mot Red Ad Rem"
      -      },
      -      "orig": {
      -        "title": "Orig",
      -        "type": "string"
      -      },
      -      "p_red_ad_rem": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Red Ad Rem"
      -      },
      -      "q_bc_mono": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Q Bc Mono"
      -      },
      -      "q_bc_mono_reten": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Q Bc Mono Reten"
      -      },
      -      "v_icms_mono": {
      -        "title": "V Icms Mono",
      -        "type": "string"
      -      },
      -      "v_icms_mono_reten": {
      -        "title": "V Icms Mono Reten",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "orig",
      -      "ad_rem_icms",
      -      "v_icms_mono",
      -      "ad_rem_icms_reten",
      -      "v_icms_mono_reten"
      -    ],
      -    "title": "Icms15",
      -    "type": "object"
      -  },
      -  "Icms20": {
      -    "description": "ICMS with a reduced base.",
      -    "properties": {
      -      "cst": {
      -        "const": "20",
      -        "default": "20",
      -        "title": "Cst",
      -        "type": "string"
      -      },
      -      "ind_deduz_deson": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Ind Deduz Deson"
      -      },
      -      "mod_bc": {
      -        "title": "Mod Bc",
      -        "type": "string"
      -      },
      -      "mot_des_icms": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Mot Des Icms"
      -      },
      -      "orig": {
      -        "title": "Orig",
      -        "type": "string"
      -      },
      -      "p_fcp": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Fcp"
      -      },
      -      "p_icms": {
      -        "title": "P Icms",
      -        "type": "string"
      -      },
      -      "p_red_bc": {
      -        "title": "P Red Bc",
      -        "type": "string"
      -      },
      -      "v_bc": {
      -        "title": "V Bc",
      -        "type": "string"
      -      },
      -      "v_bc_fcp": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Bc Fcp"
      -      },
      -      "v_fcp": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Fcp"
      -      },
      -      "v_icms": {
      -        "title": "V Icms",
      -        "type": "string"
      -      },
      -      "v_icms_deson": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Icms Deson"
      -      }
      -    },
      -    "required": [
      -      "orig",
      -      "mod_bc",
      -      "p_red_bc",
      -      "v_bc",
      -      "p_icms",
      -      "v_icms"
      -    ],
      -    "title": "Icms20",
      -    "type": "object"
      -  },
      -  "Icms30": {
      -    "description": "ICMS exempt with substitution.",
      -    "properties": {
      -      "cst": {
      -        "const": "30",
      -        "default": "30",
      -        "title": "Cst",
      -        "type": "string"
      -      },
      -      "ind_deduz_deson": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Ind Deduz Deson"
      -      },
      -      "mod_bc_st": {
      -        "title": "Mod Bc St",
      -        "type": "string"
      -      },
      -      "mot_des_icms": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Mot Des Icms"
      -      },
      -      "orig": {
      -        "title": "Orig",
      -        "type": "string"
      -      },
      -      "p_fcp_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Fcp St"
      -      },
      -      "p_icms_st": {
      -        "title": "P Icms St",
      -        "type": "string"
      -      },
      -      "p_mva_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Mva St"
      -      },
      -      "p_red_bc_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Red Bc St"
      -      },
      -      "v_bc_fcp_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Bc Fcp St"
      -      },
      -      "v_bc_st": {
      -        "title": "V Bc St",
      -        "type": "string"
      -      },
      -      "v_fcp_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Fcp St"
      -      },
      -      "v_icms_deson": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Icms Deson"
      -      },
      -      "v_icms_st": {
      -        "title": "V Icms St",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "orig",
      -      "mod_bc_st",
      -      "v_bc_st",
      -      "p_icms_st",
      -      "v_icms_st"
      -    ],
      -    "title": "Icms30",
      -    "type": "object"
      -  },
      -  "Icms40": {
      -    "description": "ICMS exempt or not taxed.",
      -    "properties": {
      -      "cst": {
      -        "enum": [
      -          "40",
      -          "41",
      -          "50"
      -        ],
      -        "title": "Cst",
      -        "type": "string"
      -      },
      -      "ind_deduz_deson": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Ind Deduz Deson"
      -      },
      -      "mot_des_icms": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Mot Des Icms"
      -      },
      -      "orig": {
      -        "title": "Orig",
      -        "type": "string"
      -      },
      -      "v_icms_deson": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Icms Deson"
      -      }
      -    },
      -    "required": [
      -      "orig",
      -      "cst"
      -    ],
      -    "title": "Icms40",
      -    "type": "object"
      -  },
      -  "Icms51": {
      -    "description": "ICMS deferred.",
      -    "properties": {
      -      "c_benef_rbc": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "C Benef Rbc"
      -      },
      -      "cst": {
      -        "const": "51",
      -        "default": "51",
      -        "title": "Cst",
      -        "type": "string"
      -      },
      -      "mod_bc": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Mod Bc"
      -      },
      -      "orig": {
      -        "title": "Orig",
      -        "type": "string"
      -      },
      -      "p_dif": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Dif"
      -      },
      -      "p_fcp": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Fcp"
      -      },
      -      "p_fcp_dif": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Fcp Dif"
      -      },
      -      "p_icms": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Icms"
      -      },
      -      "p_red_bc": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Red Bc"
      -      },
      -      "v_bc": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Bc"
      -      },
      -      "v_bc_fcp": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Bc Fcp"
      -      },
      -      "v_fcp": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Fcp"
      -      },
      -      "v_fcp_dif": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Fcp Dif"
      -      },
      -      "v_fcp_efet": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Fcp Efet"
      -      },
      -      "v_icms": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Icms"
      -      },
      -      "v_icms_dif": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Icms Dif"
      -      },
      -      "v_icms_op": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Icms Op"
      -      }
      -    },
      -    "required": [
      -      "orig"
      -    ],
      -    "title": "Icms51",
      -    "type": "object"
      -  },
      -  "Icms53": {
      -    "description": "ICMS monofasico deferred.",
      -    "properties": {
      -      "ad_rem_icms": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Ad Rem Icms"
      -      },
      -      "ad_rem_icms_dif": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Ad Rem Icms Dif"
      -      },
      -      "cst": {
      -        "const": "53",
      -        "default": "53",
      -        "title": "Cst",
      -        "type": "string"
      -      },
      -      "orig": {
      -        "title": "Orig",
      -        "type": "string"
      -      },
      -      "p_dif": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Dif"
      -      },
      -      "q_bc_mono": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Q Bc Mono"
      -      },
      -      "q_bc_mono_dif": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Q Bc Mono Dif"
      -      },
      -      "v_icms_mono": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Icms Mono"
      -      },
      -      "v_icms_mono_dif": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Icms Mono Dif"
      -      },
      -      "v_icms_mono_op": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Icms Mono Op"
      -      }
      -    },
      -    "required": [
      -      "orig"
      -    ],
      -    "title": "Icms53",
      -    "type": "object"
      -  },
      -  "Icms60": {
      -    "description": "ICMS already charged by an earlier substitution.",
      -    "properties": {
      -      "cst": {
      -        "const": "60",
      -        "default": "60",
      -        "title": "Cst",
      -        "type": "string"
      -      },
      -      "orig": {
      -        "title": "Orig",
      -        "type": "string"
      -      },
      -      "p_fcp_st_ret": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Fcp St Ret"
      -      },
      -      "p_icms_efet": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Icms Efet"
      -      },
      -      "p_red_bc_efet": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Red Bc Efet"
      -      },
      -      "p_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P St"
      -      },
      -      "v_bc_efet": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Bc Efet"
      -      },
      -      "v_bc_fcp_st_ret": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Bc Fcp St Ret"
      -      },
      -      "v_bc_st_ret": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Bc St Ret"
      -      },
      -      "v_fcp_st_ret": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Fcp St Ret"
      -      },
      -      "v_icms_efet": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Icms Efet"
      -      },
      -      "v_icms_st_ret": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Icms St Ret"
      -      },
      -      "v_icms_substituto": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Icms Substituto"
      -      }
      -    },
      -    "required": [
      -      "orig"
      -    ],
      -    "title": "Icms60",
      -    "type": "object"
      -  },
      -  "Icms61": {
      -    "description": "ICMS monofasico already charged earlier.",
      -    "properties": {
      -      "ad_rem_icms_ret": {
      -        "title": "Ad Rem Icms Ret",
      -        "type": "string"
      -      },
      -      "cst": {
      -        "const": "61",
      -        "default": "61",
      -        "title": "Cst",
      -        "type": "string"
      -      },
      -      "orig": {
      -        "title": "Orig",
      -        "type": "string"
      -      },
      -      "q_bc_mono_ret": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Q Bc Mono Ret"
      -      },
      -      "v_icms_mono_ret": {
      -        "title": "V Icms Mono Ret",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "orig",
      -      "ad_rem_icms_ret",
      -      "v_icms_mono_ret"
      -    ],
      -    "title": "Icms61",
      -    "type": "object"
      -  },
      -  "Icms70": {
      -    "description": "ICMS with a reduced base and substitution.",
      -    "properties": {
      -      "cst": {
      -        "const": "70",
      -        "default": "70",
      -        "title": "Cst",
      -        "type": "string"
      -      },
      -      "ind_deduz_deson": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Ind Deduz Deson"
      -      },
      -      "mod_bc": {
      -        "title": "Mod Bc",
      -        "type": "string"
      -      },
      -      "mod_bc_st": {
      -        "title": "Mod Bc St",
      -        "type": "string"
      -      },
      -      "mot_des_icms": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Mot Des Icms"
      -      },
      -      "mot_des_icms_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Mot Des Icms St"
      -      },
      -      "orig": {
      -        "title": "Orig",
      -        "type": "string"
      -      },
      -      "p_fcp": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Fcp"
      -      },
      -      "p_fcp_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Fcp St"
      -      },
      -      "p_icms": {
      -        "title": "P Icms",
      -        "type": "string"
      -      },
      -      "p_icms_st": {
      -        "title": "P Icms St",
      -        "type": "string"
      -      },
      -      "p_mva_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Mva St"
      -      },
      -      "p_red_bc": {
      -        "title": "P Red Bc",
      -        "type": "string"
      -      },
      -      "p_red_bc_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Red Bc St"
      -      },
      -      "v_bc": {
      -        "title": "V Bc",
      -        "type": "string"
      -      },
      -      "v_bc_fcp": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Bc Fcp"
      -      },
      -      "v_bc_fcp_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Bc Fcp St"
      -      },
      -      "v_bc_st": {
      -        "title": "V Bc St",
      -        "type": "string"
      -      },
      -      "v_fcp": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Fcp"
      -      },
      -      "v_fcp_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Fcp St"
      -      },
      -      "v_icms": {
      -        "title": "V Icms",
      -        "type": "string"
      -      },
      -      "v_icms_deson": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Icms Deson"
      -      },
      -      "v_icms_st": {
      -        "title": "V Icms St",
      -        "type": "string"
      -      },
      -      "v_icms_st_deson": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Icms St Deson"
      -      }
      -    },
      -    "required": [
      -      "orig",
      -      "mod_bc",
      -      "p_red_bc",
      -      "v_bc",
      -      "p_icms",
      -      "v_icms",
      -      "mod_bc_st",
      -      "v_bc_st",
      -      "p_icms_st",
      -      "v_icms_st"
      -    ],
      -    "title": "Icms70",
      -    "type": "object"
      -  },
      -  "Icms90": {
      -    "description": "ICMS, other cases.",
      -    "properties": {
      -      "c_benef_rbc": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "C Benef Rbc"
      -      },
      -      "cst": {
      -        "const": "90",
      -        "default": "90",
      -        "title": "Cst",
      -        "type": "string"
      -      },
      -      "ind_deduz_deson": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Ind Deduz Deson"
      -      },
      -      "mod_bc": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Mod Bc"
      -      },
      -      "mod_bc_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Mod Bc St"
      -      },
      -      "mot_des_icms": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Mot Des Icms"
      -      },
      -      "mot_des_icms_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Mot Des Icms St"
      -      },
      -      "orig": {
      -        "title": "Orig",
      -        "type": "string"
      -      },
      -      "p_dif": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Dif"
      -      },
      -      "p_fcp": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Fcp"
      -      },
      -      "p_fcp_dif": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Fcp Dif"
      -      },
      -      "p_fcp_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Fcp St"
      -      },
      -      "p_icms": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Icms"
      -      },
      -      "p_icms_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Icms St"
      -      },
      -      "p_mva_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Mva St"
      -      },
      -      "p_red_bc": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Red Bc"
      -      },
      -      "p_red_bc_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Red Bc St"
      -      },
      -      "v_bc": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Bc"
      -      },
      -      "v_bc_fcp": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Bc Fcp"
      -      },
      -      "v_bc_fcp_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Bc Fcp St"
      -      },
      -      "v_bc_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Bc St"
      -      },
      -      "v_fcp": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Fcp"
      -      },
      -      "v_fcp_dif": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Fcp Dif"
      -      },
      -      "v_fcp_efet": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Fcp Efet"
      -      },
      -      "v_fcp_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Fcp St"
      -      },
      -      "v_icms": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Icms"
      -      },
      -      "v_icms_deson": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Icms Deson"
      -      },
      -      "v_icms_dif": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Icms Dif"
      -      },
      -      "v_icms_op": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Icms Op"
      -      },
      -      "v_icms_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Icms St"
      -      },
      -      "v_icms_st_deson": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Icms St Deson"
      -      }
      -    },
      -    "required": [
      -      "orig"
      -    ],
      -    "title": "Icms90",
      -    "type": "object"
      -  },
      -  "IcmsPart": {
      -    "description": "ICMS split between the origin and destination states.",
      -    "properties": {
      -      "cst": {
      -        "enum": [
      -          "10",
      -          "20",
      -          "90"
      -        ],
      -        "title": "Cst",
      -        "type": "string"
      -      },
      -      "ind_deduz_deson": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Ind Deduz Deson"
      -      },
      -      "mod_bc": {
      -        "title": "Mod Bc",
      -        "type": "string"
      -      },
      -      "mod_bc_st": {
      -        "title": "Mod Bc St",
      -        "type": "string"
      -      },
      -      "mot_des_icms": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Mot Des Icms"
      -      },
      -      "orig": {
      -        "title": "Orig",
      -        "type": "string"
      -      },
      -      "p_bc_op": {
      -        "title": "P Bc Op",
      -        "type": "string"
      -      },
      -      "p_fcp_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Fcp St"
      -      },
      -      "p_icms": {
      -        "title": "P Icms",
      -        "type": "string"
      -      },
      -      "p_icms_st": {
      -        "title": "P Icms St",
      -        "type": "string"
      -      },
      -      "p_mva_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Mva St"
      -      },
      -      "p_red_bc": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Red Bc"
      -      },
      -      "p_red_bc_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Red Bc St"
      -      },
      -      "uf_st": {
      -        "title": "Uf St",
      -        "type": "string"
      -      },
      -      "v_bc": {
      -        "title": "V Bc",
      -        "type": "string"
      -      },
      -      "v_bc_fcp_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Bc Fcp St"
      -      },
      -      "v_bc_st": {
      -        "title": "V Bc St",
      -        "type": "string"
      -      },
      -      "v_fcp_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Fcp St"
      -      },
      -      "v_icms": {
      -        "title": "V Icms",
      -        "type": "string"
      -      },
      -      "v_icms_deson": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Icms Deson"
      -      },
      -      "v_icms_st": {
      -        "title": "V Icms St",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "orig",
      -      "cst",
      -      "mod_bc",
      -      "v_bc",
      -      "p_icms",
      -      "v_icms",
      -      "mod_bc_st",
      -      "v_bc_st",
      -      "p_icms_st",
      -      "v_icms_st",
      -      "p_bc_op",
      -      "uf_st"
      -    ],
      -    "title": "IcmsPart",
      -    "type": "object"
      -  },
      -  "IcmsSn101": {
      -    "description": "Simples Nacional ICMS with a credit.",
      -    "properties": {
      -      "csosn": {
      -        "const": "101",
      -        "default": "101",
      -        "title": "Csosn",
      -        "type": "string"
      -      },
      -      "orig": {
      -        "title": "Orig",
      -        "type": "string"
      -      },
      -      "p_cred_sn": {
      -        "title": "P Cred Sn",
      -        "type": "string"
      -      },
      -      "v_cred_icms_sn": {
      -        "title": "V Cred Icms Sn",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "orig",
      -      "p_cred_sn",
      -      "v_cred_icms_sn"
      -    ],
      -    "title": "IcmsSn101",
      -    "type": "object"
      -  },
      -  "IcmsSn102": {
      -    "description": "Simples Nacional ICMS without a credit.",
      -    "properties": {
      -      "csosn": {
      -        "enum": [
      -          "102",
      -          "103",
      -          "300",
      -          "400"
      -        ],
      -        "title": "Csosn",
      -        "type": "string"
      -      },
      -      "orig": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Orig"
      -      }
      -    },
      -    "required": [
      -      "csosn"
      -    ],
      -    "title": "IcmsSn102",
      -    "type": "object"
      -  },
      -  "IcmsSn201": {
      -    "description": "Simples Nacional ICMS with a credit and substitution.",
      -    "properties": {
      -      "csosn": {
      -        "const": "201",
      -        "default": "201",
      -        "title": "Csosn",
      -        "type": "string"
      -      },
      -      "mod_bc_st": {
      -        "title": "Mod Bc St",
      -        "type": "string"
      -      },
      -      "orig": {
      -        "title": "Orig",
      -        "type": "string"
      -      },
      -      "p_cred_sn": {
      -        "title": "P Cred Sn",
      -        "type": "string"
      -      },
      -      "p_fcp_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Fcp St"
      -      },
      -      "p_icms_st": {
      -        "title": "P Icms St",
      -        "type": "string"
      -      },
      -      "p_mva_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Mva St"
      -      },
      -      "p_red_bc_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Red Bc St"
      -      },
      -      "v_bc_fcp_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Bc Fcp St"
      -      },
      -      "v_bc_st": {
      -        "title": "V Bc St",
      -        "type": "string"
      -      },
      -      "v_cred_icms_sn": {
      -        "title": "V Cred Icms Sn",
      -        "type": "string"
      -      },
      -      "v_fcp_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Fcp St"
      -      },
      -      "v_icms_st": {
      -        "title": "V Icms St",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "orig",
      -      "mod_bc_st",
      -      "v_bc_st",
      -      "p_icms_st",
      -      "v_icms_st",
      -      "p_cred_sn",
      -      "v_cred_icms_sn"
      -    ],
      -    "title": "IcmsSn201",
      -    "type": "object"
      -  },
      -  "IcmsSn202": {
      -    "description": "Simples Nacional ICMS without a credit, with substitution.",
      -    "properties": {
      -      "csosn": {
      -        "enum": [
      -          "202",
      -          "203"
      -        ],
      -        "title": "Csosn",
      -        "type": "string"
      -      },
      -      "mod_bc_st": {
      -        "title": "Mod Bc St",
      -        "type": "string"
      -      },
      -      "orig": {
      -        "title": "Orig",
      -        "type": "string"
      -      },
      -      "p_fcp_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Fcp St"
      -      },
      -      "p_icms_st": {
      -        "title": "P Icms St",
      -        "type": "string"
      -      },
      -      "p_mva_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Mva St"
      -      },
      -      "p_red_bc_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Red Bc St"
      -      },
      -      "v_bc_fcp_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Bc Fcp St"
      -      },
      -      "v_bc_st": {
      -        "title": "V Bc St",
      -        "type": "string"
      -      },
      -      "v_fcp_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Fcp St"
      -      },
      -      "v_icms_st": {
      -        "title": "V Icms St",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "orig",
      -      "csosn",
      -      "mod_bc_st",
      -      "v_bc_st",
      -      "p_icms_st",
      -      "v_icms_st"
      -    ],
      -    "title": "IcmsSn202",
      -    "type": "object"
      -  },
      -  "IcmsSn500": {
      -    "description": "Simples Nacional ICMS already charged by substitution.",
      -    "properties": {
      -      "csosn": {
      -        "const": "500",
      -        "default": "500",
      -        "title": "Csosn",
      -        "type": "string"
      -      },
      -      "orig": {
      -        "title": "Orig",
      -        "type": "string"
      -      },
      -      "p_fcp_st_ret": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Fcp St Ret"
      -      },
      -      "p_icms_efet": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Icms Efet"
      -      },
      -      "p_red_bc_efet": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Red Bc Efet"
      -      },
      -      "p_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P St"
      -      },
      -      "v_bc_efet": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Bc Efet"
      -      },
      -      "v_bc_fcp_st_ret": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Bc Fcp St Ret"
      -      },
      -      "v_bc_st_ret": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Bc St Ret"
      -      },
      -      "v_fcp_st_ret": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Fcp St Ret"
      -      },
      -      "v_icms_efet": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Icms Efet"
      -      },
      -      "v_icms_st_ret": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Icms St Ret"
      -      },
      -      "v_icms_substituto": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Icms Substituto"
      -      }
      -    },
      -    "required": [
      -      "orig"
      -    ],
      -    "title": "IcmsSn500",
      -    "type": "object"
      -  },
      -  "IcmsSn900": {
      -    "description": "Simples Nacional ICMS, other cases.",
      -    "properties": {
      -      "csosn": {
      -        "const": "900",
      -        "default": "900",
      -        "title": "Csosn",
      -        "type": "string"
      -      },
      -      "mod_bc": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Mod Bc"
      -      },
      -      "mod_bc_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Mod Bc St"
      -      },
      -      "orig": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Orig"
      -      },
      -      "p_cred_sn": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Cred Sn"
      -      },
      -      "p_fcp_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Fcp St"
      -      },
      -      "p_icms": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Icms"
      -      },
      -      "p_icms_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Icms St"
      -      },
      -      "p_mva_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Mva St"
      -      },
      -      "p_red_bc": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Red Bc"
      -      },
      -      "p_red_bc_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Red Bc St"
      -      },
      -      "v_bc": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Bc"
      -      },
      -      "v_bc_fcp_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Bc Fcp St"
      -      },
      -      "v_bc_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Bc St"
      -      },
      -      "v_cred_icms_sn": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Cred Icms Sn"
      -      },
      -      "v_fcp_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Fcp St"
      -      },
      -      "v_icms": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Icms"
      -      },
      -      "v_icms_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Icms St"
      -      }
      -    },
      -    "title": "IcmsSn900",
      -    "type": "object"
      -  },
      -  "IcmsSt": {
      -    "description": "ICMS charged earlier, for the substituted taxpayer.",
      -    "properties": {
      -      "cst": {
      -        "enum": [
      -          "41",
      -          "60"
      -        ],
      -        "title": "Cst",
      -        "type": "string"
      -      },
      -      "orig": {
      -        "title": "Orig",
      -        "type": "string"
      -      },
      -      "p_fcp_st_ret": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Fcp St Ret"
      -      },
      -      "p_icms_efet": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Icms Efet"
      -      },
      -      "p_red_bc_efet": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Red Bc Efet"
      -      },
      -      "p_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P St"
      -      },
      -      "v_bc_efet": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Bc Efet"
      -      },
      -      "v_bc_fcp_st_ret": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Bc Fcp St Ret"
      -      },
      -      "v_bc_st_dest": {
      -        "title": "V Bc St Dest",
      -        "type": "string"
      -      },
      -      "v_bc_st_ret": {
      -        "title": "V Bc St Ret",
      -        "type": "string"
      -      },
      -      "v_fcp_st_ret": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Fcp St Ret"
      -      },
      -      "v_icms_efet": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Icms Efet"
      -      },
      -      "v_icms_st_dest": {
      -        "title": "V Icms St Dest",
      -        "type": "string"
      -      },
      -      "v_icms_st_ret": {
      -        "title": "V Icms St Ret",
      -        "type": "string"
      -      },
      -      "v_icms_substituto": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Icms Substituto"
      -      }
      -    },
      -    "required": [
      -      "orig",
      -      "cst",
      -      "v_bc_st_ret",
      -      "v_icms_st_ret",
      -      "v_bc_st_dest",
      -      "v_icms_st_dest"
      -    ],
      -    "title": "IcmsSt",
      -    "type": "object"
      -  },
      -  "IcmsUfDest": {
      -    "description": "Interstate ICMS share owed to the destination state.",
      -    "properties": {
      -      "p_fcp_uf_dest": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Fcp Uf Dest"
      -      },
      -      "p_icms_inter": {
      -        "title": "P Icms Inter",
      -        "type": "string"
      -      },
      -      "p_icms_inter_part": {
      -        "title": "P Icms Inter Part",
      -        "type": "string"
      -      },
      -      "p_icms_uf_dest": {
      -        "title": "P Icms Uf Dest",
      -        "type": "string"
      -      },
      -      "v_bc_fcp_uf_dest": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Bc Fcp Uf Dest"
      -      },
      -      "v_bc_uf_dest": {
      -        "title": "V Bc Uf Dest",
      -        "type": "string"
      -      },
      -      "v_fcp_uf_dest": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Fcp Uf Dest"
      -      },
      -      "v_icms_uf_dest": {
      -        "title": "V Icms Uf Dest",
      -        "type": "string"
      -      },
      -      "v_icms_uf_remet": {
      -        "title": "V Icms Uf Remet",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "v_bc_uf_dest",
      -      "p_icms_uf_dest",
      -      "p_icms_inter",
      -      "p_icms_inter_part",
      -      "v_icms_uf_dest",
      -      "v_icms_uf_remet"
      -    ],
      -    "title": "IcmsUfDest",
      -    "type": "object"
      -  },
      -  "Ipi": {
      -    "description": "This item's IPI.",
      -    "properties": {
      -      "c_enq": {
      -        "title": "C Enq",
      -        "type": "string"
      -      },
      -      "c_selo": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "C Selo"
      -      },
      -      "cnpj_prod": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Cnpj Prod"
      -      },
      -      "q_selo": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Q Selo"
      -      },
      -      "trib": {
      -        "anyOf": [
      -          {
      -            "$ref": "#/$defs/IpiTrib"
      -          },
      -          {
      -            "$ref": "#/$defs/IpiNt"
      -          },
      -          {
      -            "additionalProperties": true,
      -            "type": "object"
      -          }
      -        ],
      -        "title": "Trib"
      -      }
      -    },
      -    "required": [
      -      "c_enq",
      -      "trib"
      -    ],
      -    "title": "Ipi",
      -    "type": "object"
      -  },
      -  "IpiNt": {
      -    "description": "IPI not taxed.",
      -    "properties": {
      -      "cst": {
      -        "enum": [
      -          "01",
      -          "02",
      -          "03",
      -          "04",
      -          "05",
      -          "51",
      -          "52",
      -          "53",
      -          "54",
      -          "55"
      -        ],
      -        "title": "Cst",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "cst"
      -    ],
      -    "title": "IpiNt",
      -    "type": "object"
      -  },
      -  "IpiTrib": {
      -    "description": "IPI taxed by rate or by quantity.",
      -    "properties": {
      -      "cst": {
      -        "enum": [
      -          "00",
      -          "49",
      -          "50",
      -          "99"
      -        ],
      -        "title": "Cst",
      -        "type": "string"
      -      },
      -      "p_ipi": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Ipi"
      -      },
      -      "q_unid": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Q Unid"
      -      },
      -      "v_bc": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Bc"
      -      },
      -      "v_ipi": {
      -        "title": "V Ipi",
      -        "type": "string"
      -      },
      -      "v_unid": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Unid"
      -      }
      -    },
      -    "required": [
      -      "cst",
      -      "v_ipi"
      -    ],
      -    "title": "IpiTrib",
      -    "type": "object"
      -  },
      -  "PisAliq": {
      -    "description": "PIS taxed by rate.",
      -    "properties": {
      -      "cst": {
      -        "enum": [
      -          "01",
      -          "02"
      -        ],
      -        "title": "Cst",
      -        "type": "string"
      -      },
      -      "p_pis": {
      -        "title": "P Pis",
      -        "type": "string"
      -      },
      -      "v_bc": {
      -        "title": "V Bc",
      -        "type": "string"
      -      },
      -      "v_pis": {
      -        "title": "V Pis",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "cst",
      -      "v_bc",
      -      "p_pis",
      -      "v_pis"
      -    ],
      -    "title": "PisAliq",
      -    "type": "object"
      -  },
      -  "PisNt": {
      -    "description": "PIS not taxed.",
      -    "properties": {
      -      "cst": {
      -        "enum": [
      -          "04",
      -          "05",
      -          "06",
      -          "07",
      -          "08",
      -          "09"
      -        ],
      -        "title": "Cst",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "cst"
      -    ],
      -    "title": "PisNt",
      -    "type": "object"
      -  },
      -  "PisOutr": {
      -    "description": "PIS taxed some other way.",
      -    "properties": {
      -      "cst": {
      -        "enum": [
      -          "49",
      -          "50",
      -          "51",
      -          "52",
      -          "53",
      -          "54",
      -          "55",
      -          "56",
      -          "60",
      -          "61",
      -          "62",
      -          "63",
      -          "64",
      -          "65",
      -          "66",
      -          "67",
      -          "70",
      -          "71",
      -          "72",
      -          "73",
      -          "74",
      -          "75",
      -          "98",
      -          "99"
      -        ],
      -        "title": "Cst",
      -        "type": "string"
      -      },
      -      "p_pis": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Pis"
      -      },
      -      "q_bc_prod": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Q Bc Prod"
      -      },
      -      "v_aliq_prod": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Aliq Prod"
      -      },
      -      "v_bc": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Bc"
      -      },
      -      "v_pis": {
      -        "title": "V Pis",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "cst",
      -      "v_pis"
      -    ],
      -    "title": "PisOutr",
      -    "type": "object"
      -  },
      -  "PisQtde": {
      -    "description": "PIS taxed by quantity.",
      -    "properties": {
      -      "cst": {
      -        "const": "03",
      -        "default": "03",
      -        "title": "Cst",
      -        "type": "string"
      -      },
      -      "q_bc_prod": {
      -        "title": "Q Bc Prod",
      -        "type": "string"
      -      },
      -      "v_aliq_prod": {
      -        "title": "V Aliq Prod",
      -        "type": "string"
      -      },
      -      "v_pis": {
      -        "title": "V Pis",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "q_bc_prod",
      -      "v_aliq_prod",
      -      "v_pis"
      -    ],
      -    "title": "PisQtde",
      -    "type": "object"
      -  },
      -  "PisSt": {
      -    "description": "PIS withheld by substitution.",
      -    "properties": {
      -      "ind_soma_pis_st": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Ind Soma Pis St"
      -      },
      -      "p_pis": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "P Pis"
      -      },
      -      "q_bc_prod": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Q Bc Prod"
      -      },
      -      "v_aliq_prod": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Aliq Prod"
      -      },
      -      "v_bc": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Bc"
      -      },
      -      "v_pis": {
      -        "title": "V Pis",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "v_pis"
      -    ],
      -    "title": "PisSt",
      -    "type": "object"
      -  },
      -  "PresumedCredit": {
      -    "description": "A presumed tax credit applied to this item.",
      -    "properties": {
      -      "amount": {
      -        "title": "Amount",
      -        "type": "number"
      -      },
      -      "code": {
      -        "pattern": "^[\\x21-\\xff]{8}$|^[\\x21-\\xff]{10}$",
      -        "title": "Code",
      -        "type": "string"
      -      },
      -      "percentage": {
      -        "title": "Percentage",
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "code",
      -      "percentage",
      -      "amount"
      -    ],
      -    "title": "PresumedCredit",
      -    "type": "object"
      -  },
      -  "Product": {
      -    "description": "One product or service line item on an invoice.",
      -    "properties": {
      -      "amount": {
      -        "anyOf": [
      -          {
      -            "exclusiveMinimum": 0,
      -            "type": "number"
      -          },
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Amount"
      -      },
      -      "barcode": {
      -        "anyOf": [
      -          {
      -            "pattern": "^(SEM GTIN|\\d{8}|\\d{12,14})$",
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "cEAN: a GTIN-8/12/13/14, or SEM GTIN.",
      -        "title": "Barcode"
      -      },
      -      "cest": {
      -        "anyOf": [
      -          {
      -            "pattern": "^\\d{7}$",
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Cest"
      -      },
      -      "cfop": {
      -        "anyOf": [
      -          {
      -            "pattern": "^[123567]\\d{3}$",
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Cfop"
      -      },
      -      "description": {
      -        "minLength": 1,
      -        "title": "Description",
      -        "type": "string"
      -      },
      -      "discount": {
      -        "anyOf": [
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Discount"
      -      },
      -      "ex_tipi": {
      -        "anyOf": [
      -          {
      -            "pattern": "^\\d{2,3}$",
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Ex Tipi"
      -      },
      -      "extra_groups": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": true,
      -            "type": "object"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Extra Groups"
      -      },
      -      "freight": {
      -        "anyOf": [
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Freight"
      -      },
      -      "fuel": {
      -        "anyOf": [
      -          {
      -            "$ref": "#/$defs/Fuel"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "The fuel group (comb), NF-e only."
      -      },
      -      "ibs_cbs": {
      -        "anyOf": [
      -          {
      -            "$ref": "#/$defs/IbsCbs"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null
      -      },
      -      "import_content_control_number": {
      -        "anyOf": [
      -          {
      -            "pattern": "^[A-F0-9]{8}-[A-F0-9]{4}-[A-F0-9]{4}-[A-F0-9]{4}-[A-F0-9]{12}$",
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Import Content Control Number"
      -      },
      -      "ind_escala": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Ind Escala"
      -      },
      -      "insurance": {
      -        "anyOf": [
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Insurance"
      -      },
      -      "manufacturer_cnpj": {
      -        "anyOf": [
      -          {
      -            "pattern": "^[0-9A-Z]{12}\\d{2}$",
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Manufacturer Cnpj"
      -      },
      -      "ncm": {
      -        "anyOf": [
      -          {
      -            "pattern": "^(00|\\d{8})$",
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "The full 8 digits, or 00 for a service line. Any other short code the SEFAZ rejects with 777.",
      -        "title": "Ncm"
      -      },
      -      "nve_codes": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "pattern": "^[A-Z]{2}\\d{4}$",
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Nve Codes"
      -      },
      -      "observations": {
      -        "anyOf": [
      -          {
      -            "maxLength": 2000,
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "nfse only.",
      -        "title": "Observations"
      -      },
      -      "other_expenses": {
      -        "anyOf": [
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Other Expenses"
      -      },
      -      "presumed_credits": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "$ref": "#/$defs/PresumedCredit"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Presumed Credits"
      -      },
      -      "purchase_order": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Purchase Order"
      -      },
      -      "purchase_order_item": {
      -        "anyOf": [
      -          {
      -            "pattern": "^\\d{1,6}$",
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Purchase Order Item"
      -      },
      -      "quantity": {
      -        "default": 1,
      -        "exclusiveMinimum": 0,
      -        "title": "Quantity",
      -        "type": "number"
      -      },
      -      "recopi_number": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "nRECOPI: 20 digits, the last two modulo-11 check digits.",
      -        "title": "Recopi Number"
      -      },
      -      "service_code": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "LC 116/2003 item.subitem, nfse only.",
      -        "title": "Service Code"
      -      },
      -      "service_discount": {
      -        "anyOf": [
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Unconditional discount, nfse only.",
      -        "title": "Service Discount"
      -      },
      -      "tax": {
      -        "anyOf": [
      -          {
      -            "$ref": "#/$defs/Tax"
      -          },
      -          {
      -            "additionalProperties": true,
      -            "type": "object"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Tax"
      -      },
      -      "tax_benefit_code": {
      -        "anyOf": [
      -          {
      -            "pattern": "^(SEM CBENEF|[\\x21-\\xff]{8}|[\\x21-\\xff]{10})$",
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Tax Benefit Code"
      -      },
      -      "tax_retained": {
      -        "default": false,
      -        "description": "ISSQN retained by the tomador, nfse only.",
      -        "title": "Tax Retained",
      -        "type": "boolean"
      -      },
      -      "unit": {
      -        "default": "UN",
      -        "title": "Unit",
      -        "type": "string"
      -      },
      -      "unit_price": {
      -        "anyOf": [
      -          {
      -            "exclusiveMinimum": 0,
      -            "type": "number"
      -          },
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Unit Price"
      -      },
      -      "used_movable_asset": {
      -        "default": false,
      -        "title": "Used Movable Asset",
      -        "type": "boolean"
      -      }
      -    },
      -    "required": [
      -      "description"
      -    ],
      -    "title": "Product",
      -    "type": "object"
      -  },
      -  "Tax": {
      -    "description": "This item's taxes, already computed by the caller.",
      -    "properties": {
      -      "cofins": {
      -        "anyOf": [
      -          {
      -            "$ref": "#/$defs/CofinsAliq"
      -          },
      -          {
      -            "$ref": "#/$defs/CofinsQtde"
      -          },
      -          {
      -            "$ref": "#/$defs/CofinsNt"
      -          },
      -          {
      -            "$ref": "#/$defs/CofinsOutr"
      -          },
      -          {
      -            "additionalProperties": true,
      -            "type": "object"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Cofins"
      -      },
      -      "cofins_st": {
      -        "anyOf": [
      -          {
      -            "$ref": "#/$defs/CofinsSt"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null
      -      },
      -      "icms": {
      -        "anyOf": [
      -          {
      -            "$ref": "#/$defs/Icms00"
      -          },
      -          {
      -            "$ref": "#/$defs/Icms02"
      -          },
      -          {
      -            "$ref": "#/$defs/Icms10"
      -          },
      -          {
      -            "$ref": "#/$defs/Icms15"
      -          },
      -          {
      -            "$ref": "#/$defs/Icms20"
      -          },
      -          {
      -            "$ref": "#/$defs/Icms30"
      -          },
      -          {
      -            "$ref": "#/$defs/Icms40"
      -          },
      -          {
      -            "$ref": "#/$defs/Icms51"
      -          },
      -          {
      -            "$ref": "#/$defs/Icms53"
      -          },
      -          {
      -            "$ref": "#/$defs/Icms60"
      -          },
      -          {
      -            "$ref": "#/$defs/Icms61"
      -          },
      -          {
      -            "$ref": "#/$defs/Icms70"
      -          },
      -          {
      -            "$ref": "#/$defs/Icms90"
      -          },
      -          {
      -            "$ref": "#/$defs/IcmsPart"
      -          },
      -          {
      -            "$ref": "#/$defs/IcmsSt"
      -          },
      -          {
      -            "$ref": "#/$defs/IcmsSn101"
      -          },
      -          {
      -            "$ref": "#/$defs/IcmsSn102"
      -          },
      -          {
      -            "$ref": "#/$defs/IcmsSn201"
      -          },
      -          {
      -            "$ref": "#/$defs/IcmsSn202"
      -          },
      -          {
      -            "$ref": "#/$defs/IcmsSn500"
      -          },
      -          {
      -            "$ref": "#/$defs/IcmsSn900"
      -          },
      -          {
      -            "additionalProperties": true,
      -            "type": "object"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Icms"
      -      },
      -      "icms_uf_dest": {
      -        "anyOf": [
      -          {
      -            "$ref": "#/$defs/IcmsUfDest"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null
      -      },
      -      "ipi": {
      -        "anyOf": [
      -          {
      -            "$ref": "#/$defs/Ipi"
      -          },
      -          {
      -            "additionalProperties": true,
      -            "type": "object"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Ipi"
      -      },
      -      "pis": {
      -        "anyOf": [
      -          {
      -            "$ref": "#/$defs/PisAliq"
      -          },
      -          {
      -            "$ref": "#/$defs/PisQtde"
      -          },
      -          {
      -            "$ref": "#/$defs/PisNt"
      -          },
      -          {
      -            "$ref": "#/$defs/PisOutr"
      -          },
      -          {
      -            "additionalProperties": true,
      -            "type": "object"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Pis"
      -      },
      -      "pis_st": {
      -        "anyOf": [
      -          {
      -            "$ref": "#/$defs/PisSt"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null
      -      },
      -      "v_tot_trib": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "V Tot Trib"
      -      }
      -    },
      -    "title": "Tax",
      -    "type": "object"
      -  }
      -}
    • removedInput schema / properties / client_id / title
      Removed value: -"Client Id"
    • removedInput schema / properties / client_name / title
      Removed value: -"Client Name"
    • changedInput schema / properties / company_id / description
      Previous value: -"UUID of the company this call acts for, as list_authorized_companies shows it. Omit it when the connection covers a single company: that company is used. Required when the connection covers several — call list_authorized_companies to see them, with their ids and what each one allows. Give company_id or company_tax_id, never both."New value: +"UUID of the company this call acts for. Omit it when the connection covers a single company; with several it is required (see list_authorized_companies). Send company_id or company_tax_id, never both."
    • removedInput schema / properties / company_id / title
      Removed value: -"Company Id"
    • changedInput schema / properties / company_tax_id / description
      Previous value: -"CNPJ or CPF of the company this call acts for — the company using Stackin, never the recipient or a taxpayer being looked up. Punctuation is ignored. Omit it when the connection covers a single company: that company is used. Required when the connection covers several — call list_authorized_companies to see them, with their ids and what each one allows. Give company_id or company_tax_id, never both."New value: +"CNPJ or CPF of the company this call acts for, never the recipient or a taxpayer being looked up. Omit it when the connection covers a single company; with several it is required (see list_authorized_companies). Send company_id or company_tax_id, never both."
    • removedInput schema / properties / company_tax_id / title
      Removed value: -"Company Tax Id"
    • removedInput schema / properties / direction / title
      Removed value: -"Direction"
    • addedInput schema / properties / document_type / description
      Added value: +"nfse for a service invoice, nfe for goods."
    • removedInput schema / properties / document_type / title
      Removed value: -"Document Type"
    • removedInput schema / properties / export / anyOf
      Removed value: -[
      -  {
      -    "$ref": "#/$defs/Export"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / export / description
      Added value: +"Where the goods leave Brazil (exporta): exit_state (UF) and place, e.g. Porto de Santos. Required for an nfe to a buyer abroad (recipient_address.state EX), refused otherwise."
    • addedInput schema / properties / export / properties
      Added value: +{
      +  "dispatch_place": {
      +    "default": null,
      +    "description": "xLocDespacho: customs facility of dispatch.",
      +    "maxLength": 60,
      +    "minLength": 1,
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "exit_state": {
      +    "description": "UFSaidaPais: the Brazilian state the goods leave from.",
      +    "maxLength": 2,
      +    "minLength": 2,
      +    "type": "string"
      +  },
      +  "place": {
      +    "description": "xLocExporta: place of shipment or border crossing.",
      +    "maxLength": 60,
      +    "minLength": 1,
      +    "type": "string"
      +  }
      +}
    • addedInput schema / properties / export / required
      Added value: +[
      +  "exit_state",
      +  "place"
      +]
    • addedInput schema / properties / export / type
      Added value: +[
      +  "object",
      +  "null"
      +]
    • removedInput schema / properties / external_reference / title
      Removed value: -"External Reference"
    • removedInput schema / properties / foreign_id / title
      Removed value: -"Foreign Id"
    • removedInput schema / properties / idempotency_key / title
      Removed value: -"Idempotency Key"
    • addedInput schema / properties / items / description
      Added value: +"One entry per line. Each needs a description and a price: unit_price with quantity, or amount for the whole line. nfe also needs ncm (8 digits) and cfop (4 digits) on every item; nfse may carry service_code. Example: {\"description\": \"Cadeira de escritorio\", \"unit_price\": 225, \"quantity\": 2, \"ncm\": \"94013000\", \"cfop\": \"5102\"}. The tax, fuel and ibs_cbs groups in full: the stackin://schemas/invoice-item resource."
    • removedInput schema / properties / items / items / $ref
      Removed value: -"#/$defs/Product"
    • addedInput schema / properties / items / items / properties
      Added value: +{
      +  "amount": {
      +    "anyOf": [
      +      {
      +        "exclusiveMinimum": 0,
      +        "type": "number"
      +      },
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null
      +  },
      +  "barcode": {
      +    "default": null,
      +    "description": "cEAN: a GTIN-8/12/13/14, or SEM GTIN.",
      +    "pattern": "^(SEM GTIN|\\d{8}|\\d{12,14})$",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "cest": {
      +    "default": null,
      +    "pattern": "^\\d{7}$",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "cfop": {
      +    "default": null,
      +    "pattern": "^[123567]\\d{3}$",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "description": {
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "discount": {
      +    "default": null,
      +    "type": [
      +      "number",
      +      "null"
      +    ]
      +  },
      +  "ex_tipi": {
      +    "default": null,
      +    "pattern": "^\\d{2,3}$",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "extra_groups": {
      +    "additionalProperties": true,
      +    "default": null,
      +    "type": [
      +      "object",
      +      "null"
      +    ]
      +  },
      +  "freight": {
      +    "default": null,
      +    "type": [
      +      "number",
      +      "null"
      +    ]
      +  },
      +  "fuel": {
      +    "description": "The NF-e fuel group (comb), needed for a fuel CFOP: anp_code (9 digits), anp_description and consumer_state, plus optional GLP percentages. Full shape in the stackin://schemas/invoice-item resource.",
      +    "type": "object"
      +  },
      +  "ibs_cbs": {
      +    "description": "The Reforma Tributaria group (IBS/CBS) for the item, computed: cst (3 digits), classification (cClassTrib, 6 digits), rate_state, rate_city and rate_federal; base, reduction_ibs and reduction_cbs when they apply. Full shape in the stackin://schemas/invoice-item resource.",
      +    "type": "object"
      +  },
      +  "import_content_control_number": {
      +    "default": null,
      +    "pattern": "^[A-F0-9]{8}-[A-F0-9]{4}-[A-F0-9]{4}-[A-F0-9]{4}-[A-F0-9]{12}$",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "ind_escala": {
      +    "default": null,
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "insurance": {
      +    "default": null,
      +    "type": [
      +      "number",
      +      "null"
      +    ]
      +  },
      +  "manufacturer_cnpj": {
      +    "default": null,
      +    "pattern": "^[0-9A-Z]{12}\\d{2}$",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "ncm": {
      +    "default": null,
      +    "description": "The full 8 digits, or 00 for a service line. Any other short code the SEFAZ rejects with 777.",
      +    "pattern": "^(00|\\d{8})$",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "nve_codes": {
      +    "default": null,
      +    "items": {
      +      "pattern": "^[A-Z]{2}\\d{4}$",
      +      "type": "string"
      +    },
      +    "type": [
      +      "array",
      +      "null"
      +    ]
      +  },
      +  "observations": {
      +    "default": null,
      +    "description": "nfse only.",
      +    "maxLength": 2000,
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "other_expenses": {
      +    "default": null,
      +    "type": [
      +      "number",
      +      "null"
      +    ]
      +  },
      +  "presumed_credits": {
      +    "default": null,
      +    "items": {
      +      "description": "A presumed tax credit applied to this item.",
      +      "properties": {
      +        "amount": {
      +          "type": "number"
      +        },
      +        "code": {
      +          "pattern": "^[\\x21-\\xff]{8}$|^[\\x21-\\xff]{10}$",
      +          "type": "string"
      +        },
      +        "percentage": {
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "code",
      +        "percentage",
      +        "amount"
      +      ],
      +      "type": "object"
      +    },
      +    "type": [
      +      "array",
      +      "null"
      +    ]
      +  },
      +  "purchase_order": {
      +    "default": null,
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "purchase_order_item": {
      +    "default": null,
      +    "pattern": "^\\d{1,6}$",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "quantity": {
      +    "default": 1,
      +    "exclusiveMinimum": 0,
      +    "type": "number"
      +  },
      +  "recopi_number": {
      +    "default": null,
      +    "description": "nRECOPI: 20 digits, the last two modulo-11 check digits.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "service_code": {
      +    "default": null,
      +    "description": "LC 116/2003 item.subitem, nfse only.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "service_discount": {
      +    "default": null,
      +    "description": "Unconditional discount, nfse only.",
      +    "type": [
      +      "number",
      +      "null"
      +    ]
      +  },
      +  "tax": {
      +    "description": "The item's taxes, already computed: icms, icms_uf_dest, ipi, pis, pis_st, cofins, cofins_st and v_tot_trib, each ICMS variant chosen by its cst or csosn. Leave it out unless the user gave the computed values. Validated against the SDK model; full shape in the stackin://schemas/invoice-item resource.",
      +    "type": "object"
      +  },
      +  "tax_benefit_code": {
      +    "default": null,
      +    "pattern": "^(SEM CBENEF|[\\x21-\\xff]{8}|[\\x21-\\xff]{10})$",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "tax_retained": {
      +    "default": false,
      +    "description": "ISSQN retained by the tomador, nfse only.",
      +    "type": "boolean"
      +  },
      +  "unit": {
      +    "default": "UN",
      +    "type": "string"
      +  },
      +  "unit_price": {
      +    "anyOf": [
      +      {
      +        "exclusiveMinimum": 0,
      +        "type": "number"
      +      },
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null
      +  },
      +  "used_movable_asset": {
      +    "default": false,
      +    "type": "boolean"
      +  }
      +}
    • addedInput schema / properties / items / items / required
      Added value: +[
      +  "description"
      +]
    • addedInput schema / properties / items / items / type
      Added value: +"object"
    • removedInput schema / properties / items / title
      Removed value: -"Items"
    • addedInput schema / properties / number / description
      Added value: +"Document number (número), e.g. 1532. Omitted means the next one from the company's counter; set it only to fill a known gap."
    • removedInput schema / properties / number / title
      Removed value: -"Number"
    • removedInput schema / properties / purpose / title
      Removed value: -"Purpose"
    • removedInput schema / properties / recipient_address / anyOf
      Removed value: -[
      -  {
      -    "$ref": "#/$defs/Address"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / recipient_address / description
      Added value: +"The recipient's address. Required for nfe with street, number, neighborhood, city, state (UF, e.g. SP), zip_code (8 digits) and city_code (7-digit IBGE code, e.g. 3550308); optional for nfse. A buyer abroad has state EX and a country_code. With client_id, omit it to use the saved one."
    • addedInput schema / properties / recipient_address / properties
      Added value: +{
      +  "city": {
      +    "default": null,
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "city_code": {
      +    "default": null,
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "country_code": {
      +    "default": null,
      +    "description": "BACEN country code, 1 to 4 digits. Required, and not 1058, when state is EX. Its check digit is not verified: the official table has countries whose digit does not close.",
      +    "pattern": "^[0-9]{1,4}$",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "country_name": {
      +    "default": null,
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "neighborhood": {
      +    "default": null,
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "number": {
      +    "default": null,
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "state": {
      +    "default": null,
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "state_registration": {
      +    "default": null,
      +    "description": "Recipient's IE (inscrição estadual), NF-e only. Send it for a recipient registered as an ICMS contributor; ISENTO for an exempt one; leave it out for a non-contributor.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "street": {
      +    "default": null,
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "zip_code": {
      +    "default": null,
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  }
      +}
    • addedInput schema / properties / recipient_address / type
      Added value: +[
      +  "object",
      +  "null"
      +]
    • removedInput schema / properties / referenced_keys / title
      Removed value: -"Referenced Keys"
    • addedInput schema / properties / series / description
      Added value: +"Document series (série), e.g. 1. Omitted means the company's default series."
    • removedInput schema / properties / series / title
      Removed value: -"Series"
    • removedInput schema / properties / tax_id / title
      Removed value: -"Tax Id"
    • removedInput schema / properties / update_client / title
      Removed value: -"Update Client"
    • removedInput schema / title
      Removed value: -"issue_invoiceArguments"
    • removedOutput schema / properties / access_key / title
      Removed value: -"Access Key"
    • removedOutput schema / properties / id / title
      Removed value: -"Id"
    • removedOutput schema / properties / protocol / title
      Removed value: -"Protocol"
    • removedOutput schema / properties / status / title
      Removed value: -"Status"
    • removedOutput schema / title
      Removed value: -"InvoiceResult"
  13. Changed9 schema fields changed
    • addedInput schema / properties / client_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "A saved client's id, from list_clients: its name, document and address fill whatever this call leaves out. Without it, client_name and tax_id are required.",
      +  "title": "Client Id"
      +}
    • addedInput schema / properties / client_name / default
      Added value: +""
    • addedInput schema / properties / client_name / description
      Added value: +"Recipient's name. Required unless client_id is sent."
    • removedInput schema / properties / client_name / minLength
      Removed value: -1
    • addedInput schema / properties / tax_id / default
      Added value: +""
    • addedInput schema / properties / tax_id / description
      Added value: +"Recipient's CPF or CNPJ. Required unless client_id is sent."
    • removedInput schema / properties / tax_id / minLength
      Removed value: -11
    • addedInput schema / properties / update_client
      Added value: +{
      +  "default": false,
      +  "description": "Save the recipient data sent in this call back onto the client named by client_id.",
      +  "title": "Update Client",
      +  "type": "boolean"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "document_type",
      -  "client_name",
      -  "tax_id",
      -  "items"
      -]New value: +[
      +  "document_type",
      +  "items"
      +]
  14. Changed2 schema fields changed
    • addedInput schema / $defs / IbsCbs / properties / reduction_cbs
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maximum": 100,
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "pRedAliq of the CBS, percent: the cClassTrib's pRedCBS. Required for CST 011, 200 and 515, refused for any other.",
      +  "title": "Reduction Cbs"
      +}
    • addedInput schema / $defs / IbsCbs / properties / reduction_ibs
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maximum": 100,
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "pRedAliq of the IBS (state and municipality), percent: the cClassTrib's pRedIBS in the official classification table. Required for CST 011, 200 and 515, refused for any other.",
      +  "title": "Reduction Ibs"
      +}
  15. Changed7 schema fields changed
    • addedInput schema / $defs / Export
      Added value: +{
      +  "description": "Where the goods leave Brazil: the NF-e `exporta` group.\n\nRequired by the API for an outgoing NF-e to a buyer abroad\n(recipient_address.state EX), refused otherwise.",
      +  "properties": {
      +    "dispatch_place": {
      +      "anyOf": [
      +        {
      +          "maxLength": 60,
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "xLocDespacho: customs facility of dispatch.",
      +      "title": "Dispatch Place"
      +    },
      +    "exit_state": {
      +      "description": "UFSaidaPais: the Brazilian state the goods leave from.",
      +      "maxLength": 2,
      +      "minLength": 2,
      +      "title": "Exit State",
      +      "type": "string"
      +    },
      +    "place": {
      +      "description": "xLocExporta: place of shipment or border crossing.",
      +      "maxLength": 60,
      +      "minLength": 1,
      +      "title": "Place",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "exit_state",
      +    "place"
      +  ],
      +  "title": "Export",
      +  "type": "object"
      +}
    • addedInput schema / properties / direction
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "out",
      +        "in"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "out for an outgoing NF-e (CFOP 5/6/7); in for one the company issues for goods coming in, such as a sale the buyer returned (CFOP 1/2/3). nfe only; omitted means out.",
      +  "title": "Direction"
      +}
    • addedInput schema / properties / export
      Added value: +{
      +  "anyOf": [
      +    {
      +      "$ref": "#/$defs/Export"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
    • addedInput schema / properties / external_reference
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 255,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "The caller's own id for this document, such as an order number. Stored as sent and returned on every read.",
      +  "title": "External Reference"
      +}
    • addedInput schema / properties / foreign_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 20,
      +      "minLength": 5,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Passport or other document of a buyer abroad, used when recipient_address.state is EX. nfe only; may be omitted.",
      +  "title": "Foreign Id"
      +}
    • addedInput schema / properties / purpose
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "normal",
      +        "complementary",
      +        "adjustment",
      +        "return"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Why the NF-e is issued (finNFe): normal, complementary, adjustment or return of goods. nfe only; omitted means normal.",
      +  "title": "Purpose"
      +}
    • addedInput schema / properties / referenced_keys
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Access keys of the NF-e this one refers to: the note being returned, complemented or adjusted. Required for complementary (exactly one) and for most returns. nfe only.",
      +  "title": "Referenced Keys"
      +}
  16. Changed2 schema fields changed
    • addedInput schema / properties / company_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 64,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "UUID of the company this call acts for, as list_authorized_companies shows it. Omit it when the connection covers a single company: that company is used. Required when the connection covers several — call list_authorized_companies to see them, with their ids and what each one allows. Give company_id or company_tax_id, never both.",
      +  "title": "Company Id"
      +}
    • addedInput schema / properties / company_tax_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 18,
      +      "minLength": 11,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "CNPJ or CPF of the company this call acts for — the company using Stackin, never the recipient or a taxpayer being looked up. Punctuation is ignored. Omit it when the connection covers a single company: that company is used. Required when the connection covers several — call list_authorized_companies to see them, with their ids and what each one allows. Give company_id or company_tax_id, never both.",
      +  "title": "Company Tax Id"
      +}
  17. Changed3 schema fields changed
    • addedInput schema / $defs / Address / properties / state_registration
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Recipient's IE (inscrição estadual), NF-e only. Send it for a recipient registered as an ICMS contributor; ISENTO for an exempt one; leave it out for a non-contributor.",
      +  "title": "State Registration"
      +}
    • changedInput schema / properties / idempotency_key / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / idempotency_key / description
      Added value: +"One per business event. An empty key protects nothing, so it is refused rather than ignored."
  18. Changed5 schema fields changed
    • changedInput schema / $defs / Address / description
      Previous value: -"A plain postal address."New value: +"A plain postal address. State EX is a buyer abroad, NF-e only."
    • addedInput schema / $defs / Address / properties / country_code
      Added value: +{
      +  "anyOf": [
      +    {
      +      "pattern": "^[0-9]{1,4}$",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "BACEN country code, 1 to 4 digits. Required, and not 1058, when state is EX. Its check digit is not verified: the official table has countries whose digit does not close.",
      +  "title": "Country Code"
      +}
    • addedInput schema / $defs / Address / properties / country_name
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Country Name"
      +}
    • addedInput schema / $defs / Fuel
      Added value: +{
      +  "description": "The NF-e fuel group (`comb`), needed for a fuel CFOP.\n\nGroups it does not cover (CIDE, encerrante, origComb) still go\nthrough `extra_groups[\"comb\"]`, but never together with this one.",
      +  "properties": {
      +    "anp_code": {
      +      "description": "cProdANP.",
      +      "pattern": "^[0-9]{9}$",
      +      "title": "Anp Code",
      +      "type": "string"
      +    },
      +    "anp_description": {
      +      "description": "descANP.",
      +      "maxLength": 95,
      +      "minLength": 2,
      +      "title": "Anp Description",
      +      "type": "string"
      +    },
      +    "biodiesel_percent": {
      +      "anyOf": [
      +        {
      +          "maximum": 100,
      +          "minimum": 0,
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "pBio.",
      +      "title": "Biodiesel Percent"
      +    },
      +    "codif": {
      +      "anyOf": [
      +        {
      +          "pattern": "^[0-9]{1,21}$",
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "CODIF.",
      +      "title": "Codif"
      +    },
      +    "consumer_state": {
      +      "description": "UFCons, where it is consumed.",
      +      "pattern": "^[A-Z]{2}$",
      +      "title": "Consumer State",
      +      "type": "string"
      +    },
      +    "glp_percent": {
      +      "anyOf": [
      +        {
      +          "maximum": 100,
      +          "minimum": 0,
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "pGLP, GLP only.",
      +      "title": "Glp Percent"
      +    },
      +    "natural_gas_imported_percent": {
      +      "anyOf": [
      +        {
      +          "maximum": 100,
      +          "minimum": 0,
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "pGNi, GLP only.",
      +      "title": "Natural Gas Imported Percent"
      +    },
      +    "natural_gas_national_percent": {
      +      "anyOf": [
      +        {
      +          "maximum": 100,
      +          "minimum": 0,
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "pGNn, GLP only.",
      +      "title": "Natural Gas National Percent"
      +    },
      +    "starting_value": {
      +      "anyOf": [
      +        {
      +          "minimum": 0,
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "vPart, GLP only.",
      +      "title": "Starting Value"
      +    },
      +    "temperature_quantity": {
      +      "anyOf": [
      +        {
      +          "minimum": 0,
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "qTemp, at 20 degrees Celsius.",
      +      "title": "Temperature Quantity"
      +    }
      +  },
      +  "required": [
      +    "anp_code",
      +    "anp_description",
      +    "consumer_state"
      +  ],
      +  "title": "Fuel",
      +  "type": "object"
      +}
    • addedInput schema / $defs / Product / properties / fuel
      Added value: +{
      +  "anyOf": [
      +    {
      +      "$ref": "#/$defs/Fuel"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "The fuel group (comb), NF-e only."
      +}
  19. Changed8 schema fields changed
    • changedInput schema / $defs / Product / properties / amount / anyOf
      Previous value: -[
      -  {
      -    "exclusiveMinimum": 0,
      -    "type": "number"
      -  },
      -  {
      -    "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "exclusiveMinimum": 0,
      +    "type": "number"
      +  },
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / $defs / Product / properties / barcode / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "pattern": "^(SEM GTIN|\\d{8}|\\d{12,14})$",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / $defs / Product / properties / barcode / description
      Added value: +"cEAN: a GTIN-8/12/13/14, or SEM GTIN."
    • changedInput schema / $defs / Product / properties / ncm / anyOf
      Previous value: -[
      -  {
      -    "pattern": "^\\d{2}$|^\\d{8}$",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "pattern": "^(00|\\d{8})$",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / $defs / Product / properties / ncm / description
      Added value: +"The full 8 digits, or 00 for a service line. Any other short code the SEFAZ rejects with 777."
    • changedInput schema / $defs / Product / properties / recopi_number / anyOf
      Previous value: -[
      -  {
      -    "pattern": "^\\d{20}$",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / $defs / Product / properties / recopi_number / description
      Added value: +"nRECOPI: 20 digits, the last two modulo-11 check digits."
    • changedInput schema / $defs / Product / properties / unit_price / anyOf
      Previous value: -[
      -  {
      -    "exclusiveMinimum": 0,
      -    "type": "number"
      -  },
      -  {
      -    "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "exclusiveMinimum": 0,
      +    "type": "number"
      +  },
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  20. Changed2 schema fields changed
    • addedInput schema / $defs / IbsCbs
      Added value: +{
      +  "description": "The Reforma Tributária group for one item.",
      +  "properties": {
      +    "base": {
      +      "anyOf": [
      +        {
      +          "exclusiveMinimum": 0,
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Base"
      +    },
      +    "classification": {
      +      "pattern": "^\\d{6}$",
      +      "title": "Classification",
      +      "type": "string"
      +    },
      +    "cst": {
      +      "pattern": "^\\d{3}$",
      +      "title": "Cst",
      +      "type": "string"
      +    },
      +    "rate_city": {
      +      "minimum": 0,
      +      "title": "Rate City",
      +      "type": "number"
      +    },
      +    "rate_federal": {
      +      "minimum": 0,
      +      "title": "Rate Federal",
      +      "type": "number"
      +    },
      +    "rate_state": {
      +      "minimum": 0,
      +      "title": "Rate State",
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "cst",
      +    "classification",
      +    "rate_state",
      +    "rate_city",
      +    "rate_federal"
      +  ],
      +  "title": "IbsCbs",
      +  "type": "object"
      +}
    • addedInput schema / $defs / Product / properties / ibs_cbs
      Added value: +{
      +  "anyOf": [
      +    {
      +      "$ref": "#/$defs/IbsCbs"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
  21. First observed

TDQS

A4.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already flag destructiveHint=true and idempotentHint=false, and the description goes well beyond them: it explains that issuance consumes a credit and a number, that only a timely cancellation undoes it, how idempotency_key replays the first answer, and that block_activity_mismatch turns warnings into a 422 with nothing sent. It also enumerates warnings the agent must relay. Missing only a note on latency/async behavior for SEFAZ processing.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Long, but dense and front-loaded with purpose, then the confirmation rule, then per-document-type constraints, then idempotency. Almost every sentence carries an operational constraint; a few (e.g. the MEI refusal sentence pointing into the nfse group's own description) are slightly circuitous and could be tightened.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 33-parameter, destructive, legally consequential tool, the description covers the decision points an agent needs: confirmation policy, validation ordering, recipient resolution, idempotency, document-type-specific requirements, and post-call warning handling. Return values are covered by the output schema, so nothing essential is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description earns above that by adding cross-field invariants the schema states only per-field: unit_price with quantity versus amount 'must agree', nfse takes one line only, nfe requires ncm and cfop on every item plus full recipient_address, and export needs state EX with country_code plus foreign_id. These are compositional rules, not restatements.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource ('Issue a Brazilian fiscal document: NFS-e or NF-e') and immediately scopes the two document types, which no sibling tool does. An agent can distinguish it from validate_invoice_payload, consult_invoice, or reissue_invoice without reading the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit routing rules: 'Call validate_invoice_payload first when any of that was inferred', 'Look the recipient up with list_clients', 'suggest_nbs lists the candidates', 'Before a company's first document, get_company_readiness'. It also states when to confirm with the user versus proceed, which is the key judgment call for this tool.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.