{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/avalara/refs/heads/main/json-structure/avatax-brazil-invoice-response-structure.json",
  "description": "InvoiceResponse schema from Avalara API",
  "type": "object",
  "properties": {
    "invoiceId": {
      "type": "string"
    },
    "accessKey": {
      "type": "string",
      "description": "44-digit NF-e access key"
    },
    "invoiceNumber": {
      "type": "int32"
    },
    "series": {
      "type": "int32"
    },
    "status": {
      "type": "string",
      "enum": [
        "Authorized",
        "Cancelled",
        "Denied",
        "Pending"
      ]
    },
    "protocolNumber": {
      "type": "string"
    },
    "issuanceDate": {
      "type": "datetime"
    }
  },
  "name": "InvoiceResponse"
}