# sendInvoiceGoods

Send an e-Invoice

`POST /v3/invoices/goods`

**API:** AvaTax Brazil
**Tag:** Invoice Goods
**API Version:** 3.0
**Base URL:** https://avataxbr.sandbox.avalarabrasil.com.br

Source: https://developer.avalara.com/products/avatax-brazil/api/methods/Invoice%20Goods/sendInvoiceGoods/

## Description

(en) Sends an e-invoice to SEFAZ
(pt) Envia uma nota fiscal eletrônica para a SEFAZ

## Request Body

**Content-Type:** `application/json`
**Schema:** `TransactionInvoiceForGoods`

| Property | Type | Required | Description |
|---|---|---|---|
| `header` | HeaderInvoiceForGoods | **Yes** |  |
| `lines` | LineInvoiceForGoods[] | **Yes** |  |
| `summary` | SummaryInvoiceForGoods | **Yes** |  |
| `processingInfo` | ProcessingInfo | No |  |
| `version` | string | No | (en) Payload Model Version
(pt) Versão modelo do payload Values: `3`. |

## Responses

| Status | Description | Schema |
|---|---|---|
| 201 | (en) Sefaz Out
(pt) Saída do Sefaz | `eInvoiceReturnAll` |
| 400 |  |  |
| 401 |  |  |
| 403 |  |  |
| 404 |  |  |
| 429 |  |  |
| 500 |  |  |
| 503 |  |  |

### 201 Response: `eInvoiceReturnAll`

| Property | Type | Required | Description |
|---|---|---|---|
| `status` | eInvoiceReturnStatus | No |  |
| `pdf` | eInvoiceReturnObj | No |  |
| `xml` | eInvoiceReturnObj | No |  |

## Example Request

```bash
curl -X POST "https://avataxbr.sandbox.avalarabrasil.com.br/v3/invoices/goods" \
  -H "Authorization: Basic <credentials>" \
  -H "Accept: application/json" \
  -d '{
  "header": {
    "enableCitationWarnings": "",
    "eDocCreatorType": "",
    "eDocCreatorPerspective": "",
    "operationType": "",
    "amountCalcType": {},
    "companyLocation": "",
    "transactionDate": "",
    "documentCode": "",
    "locations": {
      "entity": {
        "name": "",
        "businessName": "",
        "federalTaxId": "",
        "cityTaxId": "",
        "stateTaxId": "",
        "suframa": "",
        "incentiveArea": ""
      },
      "establishment": {
        "name": "",
        "businessName": "",
        "federalTaxId": "",
        "cityTaxId": "",
        "stateTaxId": "",
        "suframa": "",
        "incentiveArea": ""
      },
      "transporter": {
        "name": "",
        "businessName": "",
        "federalTaxId": "",
        "cityTaxId": "",
        "stateTaxId": "",
        "suframa": ""
      },
      "delivery": {
        "name": "",
        "businessName": "",
        "federalTaxId": "",
        "cityTaxId": "",
        "stateTaxId": "",
        "suframa": ""
      },
      "pickup": {
        "name": "",
        "businessName": "",
        "federalTaxId": "",
        "cityTaxId": "",
        "stateTaxId": "",
        "suframa": ""
      },
      "sender": {
        "name": "",
        "businessName": "",
        "federalTaxId": "",
        "cityTaxId": "",
        "stateTaxId": "",
        "suframa": ""
      },
      "recipient": {
        "name": "",
        "businessName": "",
        "federalTaxId": "",
        "cityTaxId": "",
        "stateTaxId": "",
        "suframa": ""
      }
    },
    "invoicesRefs": [
      {
        "type": "",
        "found": "",
        "documentCode": "",
        "refNFe": "",
        "refNFeSig": "",
        "refCTe": "",
        "refECF": {
          "nECF": "",
          "nCOO": "",
          "modECF": ""
        },
        "refNF": {
          "yymm": "",
          "federalTaxId": "",
          "model": "",
          "serie": "",
          "number": ""
        },
        "refFarmerNF": {
          "yymm": "",
          "federalTaxId": "",
          "stateTaxId": "",
          "model": "",
          "serie": "",
          "number": ""
        }
      }
    ],
    "invoiceNumber": "",
    "invoiceSerial": "",
    "invoiceAccessKey": "",
    "shippingDate": "",
    "expectedDeliveryDate": "",
    "messageType": "",
    "additionalInfo": {
      "fiscalInfo": "",
      "complementaryInfo": "",
      "otherInfo": "",
      "iest": "",
      "procRef": [
        {
          "nProc": "",
          "indProc": "",
          "tpAto": ""
        }
      ]
    },
    "goods": {
      "model": {},
      "class": "",
      "tpImp": "",
      "indFinal": "",
      "idDest": "",
      "indPres": "",
      "cMunFGIBS": "",
      "finNFe": "",
      "debitInvoiceType": "",
      "creditInvoiceType": "",
      "tpEmis": "",
      "xJust": "",
      "dhCont": "",
      "nfceQrCode": "",
      "urlKey": "",
      "transport": {
        "modFreight": "",
        "volumes": [
          {
            "qVol": "",
            "specie": "",
            "brand": "",
            "volumeNumeration": "",
            "netWeight": "",
            "grossWeight": "",
            "seal": [
              {}
            ]
          }
        ]
      },
      "purchaseInfo": {
        "governmentOrder": "",
        "orderNumber": "",
        "contractNumber": ""
      },
      "exportInfo": {
        "place": "",
        "placeDescription": ""
      },
      "technicalManager": {
        "federalTaxId": "",
        "contactName": "",
        "email": "",
        "phone": "",
        "idCSRT": "",
        "hashCSRT": ""
      },
      "goal": {},
      "indIntermed": "",
      "infIntermed": {
        "federalTaxId": "",
        "idCadIntTran": ""
      },
      "inboundInvoiceIssuance": "",
      "agriculture": {
        "defensive": [
          {
            "nPrescription": "",
            "federalTaxIdTechMgr": ""
          }
        ],
        "transitForm": {
          "formTp": "",
          "state": "",
          "formSerie": "",
          "formNumber": ""
        }
      },
      "govProcurement": {
        "tpOperGov": ""
      },
      "advancePayment": {
        "refNFe": ""
      },
      "enableCalcICBS": ""
    },
    "payment": {
      "installmentTerms": {},
      "bill": {
        "nFat": "",
        "vOrig": "",
        "vDiscount": "",
        "vNet": ""
      },
      "installment": [
        {
          "documentNumber": "",
          "date": "",
          "grossValue": "",
          "netValue": "",
          "withholdingPIS": "",
          "withholdingCOFINS": "",
          "withholdingCSLL": ""
        }
      ],
      "paymentInfo": {
        "change": ""
      }
    },
    "subscriptionId": "",
    "services": {
      "natOp": "",
      "cRegTrib": ""
    }
  },
  "lines": [
    {
      "lineCode": "",
      "itemCode": "",
      "itemDescriptor": {},
      "numberOfItems": "",
      "lineUnitPrice": "",
      "lineAmount": "",
      "lineNetUnitPrice": "",
      "lineNetAmount": "",
      "lineNetFigure": "",
      "lineTaxedDiscount": "",
      "lineUnTaxedDiscount": "",
      "customProperties": [
        {
          "name": "",
          "value": ""
        }
      ],
      "useType": {},
      "usagePurpose": "",
      "operationType": "",
      "cfop": "",
      "overwrite": "",
      "orderNumber": "",
      "orderItemNumber": "",
      "freightAmount": "",
      "insuranceAmount": "",
      "otherCostAmount": "",
      "taxableUnitAmount": "",
      "taxableQtUnit": "",
      "lineAdditionalInfo": "",
      "unTaxedOtherCostAmount": "",
      "taxDeductions": {
        "iss": ""
      },
      "otherWithheldAmount": "",
      "totalAmount": "",
      "taxDetails": [
        {}
      ],
      "referencedItem": {
        "documentCode": "",
        "invoiceAccessKey": "",
        "lineCode": ""
      }
    }
  ],
  "summary": {
    "numberOfLines": "",
    "totalLineAmounts": "",
    "totalTaxedDiscounts": "",
    "totalUntaxedDiscounts": "",
    "totalInsurances": "",
    "totalFreights": "",
    "totalOtherCosts": "",
    "totalUnTaxedOtherCosts": "",
    "totalInvoice": "",
    "totalInvoiceIbsCbsIs": "",
    "taxByType": {
      "icms": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "icmsFCP": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "icmsSt": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "icmsStFCP": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "icmsStSd": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "icmsStSdFCP": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "icmsPart": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "icmsStPart": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "icmsStFCPPart": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "icmsDifaFCP": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "icmsDifaDest": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "icmsDifaRemet": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "icmsRf": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "icmsDeson": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "icmsCredsn": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "icmsEff": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "icmsOwnPayer": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "pis": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "pisSt": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "pisDeson": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "cofins": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "cofinsSt": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "cofinsDeson": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "cofinsSurcharge": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "ipi": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "ipiReturned": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "ii": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "iof": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "aproxtribState": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "aproxtribFed": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "cprb": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "is": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "isSpecific": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "cbs": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "ibs": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "ibsUf": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "ibsMun": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "cbsPresumed": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "ibsPresumed": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "cbsPresSusCond": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "ibsPresSusCond": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "cbsRegular": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "ibsUfRegular": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "ibsMunRegular": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "cbsDeferred": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "ibsUfDeferred": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "ibsMunDeferred": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "cbsSbjWh": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "cbsPrvWh": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "ibsSbjWh": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "ibsPrvWh": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "cbsTaxReturn": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "ibsUfTaxReturn": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "ibsMunTaxReturn": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "cbsSinglePhase": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "ibsSinglePhase": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "cbsGovTaxComp": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "ibsUfGovTaxComp": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "ibsMunGovTaxComp": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "ibsSettlementAdj": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "cbsSettlementAdj": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "ibsCreditReversal": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      },
      "cbsCreditReversal": {
        "subtotalTaxable": "",
        "tax": "",
        "details": [
          {
            "jurisdictionName": "",
            "jurisdictionType": "",
            "tax": "",
            "subtotalTaxable": ""
          }
        ]
      }
    },
    "taxImpactHighlights": {
      "included": [
        {
          "tax": "",
          "taxType": "",
          "subtotalTaxable": ""
        }
      ],
      "added": [
        {
          "tax": "",
          "taxType": "",
          "subtotalTaxable": ""
        }
      ],
      "subtracted": [
        {
          "tax": "",
          "taxType": "",
          "subtotalTaxable": ""
        }
      ],
      "withheld": [
        {
          "tax": "",
          "taxType": "",
          "subtotalTaxable": ""
        }
      ],
      "informative": [
        {
          "tax": "",
          "taxType": "",
          "subtotalTaxable": ""
        }
      ]
    },
    "totalOtherWithheldAmount": "",
    "totalIssTransferAmount": ""
  },
  "processingInfo": {
    "versionId": "",
    "duration": "",
    "message": {
      "code": "",
      "message": "",
      "type": "",
      "ambiguousAgats": [
        {
          "code": "",
          "description": ""
        }
      ]
    }
  },
  "version": ""
}'
```