POST
/
calculate

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
corporation_id
string
required

The unique identifier for the corporation associated with this transaction.

transacted_at
string
required

ISO 8601 formatted date string indicating date on which the transaction took place. If tax calculations need to be based on a different date, please contact our team for assistance.

customer_details
object
required

Customer details for this transaction.

invoice_currency
string
required

ISO 4217 alpha-3 currency code for the transaction.

subtotal
number
required

Total amount before tax, shipping, handling, and discounts.

discount
number

Total discount amount applied to the subtotal.

shipping_and_handling
number

Total shipping and handling charges.

line_items
object
required

Response

200 - application/json
data
object
message
string