post https://api.brinta.com/purchases/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 asfalse
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: