Copy PageCreate an invoicepost https://api.brinta.com/invoices/Create an invoiceBody ParamsCreates an invoice, or a credit or debit note. Invoices (invoice_type debit, purchase, payment, transport, payroll or withholding): buyer is required. Credit and debit notes (document_type credit note, debit note and their variants): send reason plus one of original_invoice_id, original_invoice_external_id or referenced_invoice, or send without_invoice: true. Amounts and totals are calculated by Brinta from items; top-level amount and final_amount are not accepted.invoice_typestringenumrequiredThe type of invoice. It can be "debit", "credit" (for credit notes), "support_document" (for purchasing invoices), "transport" (for transport invoices), "payment" for (Payment Invoices, e.g.: "Complementos de Pago in MX")creditdebitpurchasepaymenttransportpayrollwithholdingAllowed:creditdebitpurchasepaymenttransportpayrollwithholdingbuyerobjectInformation of the buyer. Only one of company_id, company_external_id, company can be sent.buyer objectdocument_type_altstringDocument type as named by the tax authority or provider, e.g. "FACTURA A" (AR) or "RPS" (BR).document_typestringrequiredType of the invoice document. See possibles values in Invoice document typese_invoicebooleanDefaults to falseBoolean to indicate if the invoice will be processed electronically through the tax authority. If not sent, default to TRUEtruefalseinvoice_period_start_datedateStart of the billing period the invoice covers. Format: YYYY-MM-DD.invoice_period_end_datedateEnd of the billing period the invoice covers. Format: YYYY-MM-DD.invoice_serie_altstringAlternative invoice serie, e.g. the RPS serie for an NFS-e in Brazil.invoice_number_altstringAlternative invoice number, e.g. the RPS number for an NFS-e in Brazil.external_created_atdateDate the invoice was created in the client's system. Format: YYYY-MM-DD.external_updated_atdateDate the invoice was last updated in the client's system. Format: YYYY-MM-DD.reasonstringReason for creating the document. See possibles values in Invoice reasonsexport_reasonstringWhen the document_type is export, credit note exports, or debit note exports. See values in Invoice reasonslanguagestringenumLanguage of the invoice in ISO 639 code. Whenever local regulations allow it, the invoice will be created with sent language. If not sent, it will use the default language of buyer's country.esenesptAllowed:enesptsupplier_company_idstringCompany id of the supplier in Brinta's system. Create a new company in the company section. If not sent, the supplier will be Brinta's client.supplier_company_external_idstringCompany id of the supplier in the Client's system.invoice_keystringWhen sending INBOUND, OUTBOUND base types. The key number of the invoice on the tax authority's system (CHAVE, CUFE, etc)account_external_idstringId of the accounting account on the client's system. See the Accounts API.center_external_idstringId of the cost or profit center on the client's system.original_invoice_idstringID of the invoice being referenced.original_invoice_external_idstringID of the invoice being referenced in client's systemreferenced_invoicestringIdentifier of an original invoice that was not issued through Brinta. For credit and debit notes, an alternative to original_invoice_id and original_invoice_external_id.invoice_datestringDate of the invoice (UTC by default)payment_datedatePayment date of the invoice. Format: YYYY-MM-DD.entry_datedateIn Accounting, entry date of the invoice. Format: YYYY-MM-DD.invoice_due_datedateThe invoice due date (UTC by default). Format: YYYY-MM-DD.currencystringrequiredThe currency code of the invoice amount. It can be the local currency or international_currency set for the supplier. See possible values in Country Coverage and currenciesexchange_ratefloatThe exchange rate from the currency to the international currency set for the supplier.invoice_external_idstringThe ID of the transaction in the client's system.additional_infostringAdditional information regarding the invoice.fiscal_statusstringFor Mexico, used for 'objetoImpuesto'.paid_amountnumberAmount already paid on the invoice.discountnumberDiscount applied to the overall invoicewithout_invoicebooleanSet to true to issue a credit or debit note that does not reference an original invoice.truefalsepayment_methodsarray of objectsArray of payment methods used for the transaction.payment_methodsADD objectpayment_methodobjectThe payment method used for the transaction.payment_method objectitemsarray of objectslength ≥ 1Array of items of the invoiceitems objectArray of items of the invoicedescriptionstringDescription of the itemdiscountnumberAbsolute value of discount applied to amount.namestringrequiredName of the item.amountnumberrequiredAmount of the item after applying discounts excluding taxes.unit_amountnumberUnit price of the item. If amount sent, unit_amount will exclude taxes. If final_amount is sent, unit_amount will include taxes.freight_amountnumberFOR BRAZIL. Amount of the freight.insurance_amountnumberFOR BRAZIL. Amount of the insurance.product_amountnumberFOR BRAZIL. The amount of the product with ICMS included and BEFORE discount.other_amountnumberFOR BRAZIL. Amount for other expenses.unconditional_discount_amountnumberUnconditional discount amount of the item.conditional_discount_amountnumberConditional discount amount of the item.quantitynumberQuantity of the itemitem_external_idstringID of the item in client's system.account_external_idstringIn Accounting, Account number associated with the invoiceoriginal_item_idstringID of the item being referencedoriginal_item_external_idstringID of the item being referenced in client's systemtaxesarray of objectslength ≥ 0Array of taxes of the item.taxesADD objectcstobjectFor Brazil, situação tributáriacst objectadditional_infostringAdditional information regarding the invoice.final_amountnumberAmount of the item after applying discounts including taxes.freight_indicatorstringFOR BRAZIL. Freight Indicatorcategoriesarray of objectsCategories of the item, as code and list pairs. Check Product Categories - e-Invoicing. For Mexico transport documents (Carta Porte) it also carries item attributes; supported list values: weight unit, gross weight, net weight, tare weight, pieces, weight kg, sender id, beneficiary id.categoriesADD objectamountsarray of objectsDocument-level payment amounts. Used for Mexico Payment Invoice (Complemento de Pago) Mode A, where the client calculates all totals. Not required for Mode B.amountsADD objectADD objectorigin_company_idstringCompany id in Brinta's system of the supplier of the original invoice. Only sent when the supplier of the original invoice is different from the company holder of the token.relationsarray of objectsRelated documents. Used in two contexts: (1) MX Payment Invoice (Complemento de Pago) — links payment events to the original invoices being settled, with two levels of nesting (relations[].relations[]). (2) Peru transport (Guia de Remision) — references related invoices or transport documents from the same or different supplier. To reference an existing invoice, send only invoice_id or invoice_external_id plus relation_reason. To create the related invoice inline, send any other field: it accepts the same fields as the main request body.relationsADD objectorigin_company_external_idstringCompany id in the Client's system of the supplier of the original invoice. Only sent when the supplier of the original invoice is different from the company holder of the token.email_invoiceobjectEmail delivery options for the invoice.email_invoice objectpurchase_order_numberstringPurchase order Number linked to the invoicetransportation_companiesarray of objectsInformation about the transport figures (drivers, owners, and carriers). Used for bill of lading (Carta Porte) and Peru transport documents.transportation_companiesADD objectvehicleobjectVehicle information for transport documents (bill of lading and Peru transport). Structure varies by transport type.vehicle objectbeneficiariesarray of objectsInformation of the beneficiaries.beneficiariesADD objectsendersarray of objectsInformation of the senders.sendersADD objectbase_typestringenumWhen storing invoice and not issuing a new one. Possible values "inbound", "outbound"inboundoutboundlinkedAllowed:inboundoutboundlinkedinvoice_seriestringThe serie of the invoice. Also used for the point of sale.invoice_numberstringThe number of the invoice.amountsarray of objectsDocument-level payment amounts. Used for Mexico Payment Invoice (Complemento de Pago) Mode A, where the client calculates all totals. Not required for Mode B.amountsADD objecttaxesarray of objectsDocument-level taxes. Used for Mexico Payment Invoice (Complemento de Pago) Mode A. Includes both transferred and withheld tax totals. Not required for Mode B.taxesADD objectcategoriesarray of objectsCategories of the invoice, as code and list pairs.categoriesADD objectResponses 200200 201CreatedUpdated about 1 hour ago Invoice IntroductionCreate an invoice from a transaction or refundDid this page help you?YesNo