Create an invoiceCopy Pagepost https://api.brinta.com/invoices/Create an invoiceBody Paramssupplier_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_external_idstringThe ID of the transaction in the client's system.original_invoice_idstringID of the invoice being referenced.original_invoice_external_idstringID of the invoice being referenced in client's systeme_invoicebooleanDefaults to falseBoolean to indicate if the invoice will be processed electronically through the tax authority. If not sent, default to TRUEtruefalsebase_typestringWhen storing invoice and not issuing a new one. Possible values "inbound", "outbound"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")debitcredittransportpaymentsupport_documentAllowed:debitcredittransportpaymentsupport_documentinvoice_datedate-timeDate of the invoice (UTC by default)invoice_due_datedate-timeThe invoice due date (UTC by default).invoice_seriestringThe serie of the invoice. Also used for the point of sale.invoice_numberstringThe number of the invoice.invoice_keystringWhen sending INBOUND, OUTBOUND base types. The key number of the invoice on the tax authority's system (CHAVE, CUFE, etc)document_typestringrequiredType of the invoice document. See possibles values in Invoice document typesreasonstringReason 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 reasonsfiscal_statusstringFor Mexico, used for 'objetoImpuesto'.amountfloatIt appears in RESPONSE. The amount of the invoice excluding taxes.final_amountfloatIt appears in RESPONSE. The amount of the invoice including taxes.discountfloatDiscount applied to the overall invoicelanguagestringLanguage 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.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.payment_methodobjectThe payment method used for the transaction.payment_method 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 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 objectpayment_datedatePayment date of the invoiceentry_datedateIn Accounting, entry date of the invoicepurchase_order_numberstringPurchase order Number linked to the invoiceadditional_infostringAdditional information regarding the invoice.buyerobjectrequiredInformation of the buyer. Only one of company_id, company_external_id, company can be sent.buyer objectitemsarray of objectsrequiredArray of items of the invoiceitems*ADD objectsendersarray of objectsInformation of the senders.sendersADD objectbeneficiariesarray of objectsInformation of the beneficiaries.beneficiariesADD objectvehicleobjectVehicle information for transport documents (bill of lading and Peru transport). Structure varies by transport type.vehicle objecttransportation_companiesarray of objectsInformation about the transport figures (drivers, owners, and carriers). Used for bill of lading (Carta Porte) and Peru transport documents.transportation_companiesADD objectrelationsarray 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.relationsADD objectResponses 200200 201CreatedUpdated 5 months ago