Create a sale/tax calculation

Create a sale or tax calculation

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 (UTC by default). 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*
Responses

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