Create a sale/tax calculation

Create a sale or tax calculation

This endpoint calculates taxes based on the information provided by the client and returns the amount to be paid for each tax, including whether taxes are included or not.

You can also store the sale on Brinta's platform in order to use it on your reports and tax filings.

The request must contain the following properties in the request body:

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.

string

The ID of the transaction in the client's system.

string

The status of the transaction. Applicable only if the type is "sale". It can be "pending", "invoiced", or "rejected".

string
required

The type of the sale. Can be "calculation", or "sale".

float

It appears in RESPONSE. The amount of the sale excluding taxes.

float

It appears in RESPONSE. The amount of the sale including taxes.

string
required

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

float

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

payment_method
object

The payment method used for the sale.

string

Additional information regarding the sale.

string

Invoice number of the sale.

date

Invoice date of the sale. Required when status is "INVOICED".

buyer
object
required

Information of the buyer. Only one of company_id, company_external_id, company can be sent.

items
array of objects
required

Array of items of the transaction.

items*
Response

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