Create a purchase from an invoice XML

Create a purchase

You can also create a purchase from an invoice XML file.

Send the xml file on the API request and Brinta will:

  • process the xml file
  • recalculate all related taxes and amounts for the entire operation
  • notify when such taxes and amounts differ from the original xml. In these cases, the parameter matches_original will be set as false within the objects where amounts have been changed (taxes, items, transaction)

You must send the following parameters in the body of the request as a form-data:

Body Params
string

Company id of the transaction owner in Brinta's system. Create a new company in the company section. If not sent, the owner will be Brinta's client.

file
required

XML containing the data of the purchase.

string
required

Type of the invoice document. See possibles values in Invoice document types

string
required

Country of the supplier in ISO 3166-1-alpha-2 code. See possible values in Country coverage and currencies

string
required

The currency code of the purchase amount. It can be the local currency or international_currency set for the transaction owner. Check Country Coverage and currencies

string

The exchange rate from the currency to the international currency set for the transaction owner.

string

The id of the purchase in the client's system.

Response

Language
Credentials
OAuth2
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json