Sales Tax API
Core Concepts
Corporations
Calculate
Transactions
- Tax Transactions
- POSTCreate a transaction
- GETGet transaction
- GETList transactions
- DELDelete transaction
- Refund Transactions
- Bulk Transaction Import
Nexus
Registrations
Products
Customers
Exemption Certificates
Get transaction
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
The unique identifier of the transaction to fetch.
Response
The unique identifier for the corporation associated with this transaction.
Customer details for this transaction.
Optional unique identifier for the customer. If provided, it may be used to retrieve defaults configured for the customers. Any explicitly provided customer details will take precedence over stored defaults.
ISO 3166 2-letter country code. Ex: US, IN, GB.
Either 5-digit ZIP code or 9-digit ZIP+4 code is accepted.
2-letter code for each state. Suffix of the ISO 3166-2 code. Ex: CA, NY, TX.
ISO 4217 alpha-3 currency code for the transaction.
Array of line items representing individual products or services in the transaction. For each line item either pass the tax_code or the product_id. If the product_id is passed the tax_code will be fetched from the product itself.
Total price for the line item, including any discounts and shipping and handling costs.
The unique identifier for the product getting sold in this line item.
Quantity of units purchased.
Code passed by the caller to determine taxability for this product. Default value, TPP, will be taxable in every jurisdiction. Reach out to the Commenda team for alternative product codes.
Total amount before tax, shipping, handling, and discounts.
Numeric value representing the amount of tax paid by the customer for this transaction
This is the total amount charged to the customer, which includes the subtotal, shipping and handling fees, tax, and reflects any applied discounts.
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.
Type of the transaction. Currently sales and refund transactions are supported.
SALE
, REFUND
Total discount amount applied to the subtotal.
The unique identifier for a transaction.
Total shipping and handling charges.
The platform from which the transaction originated. This is useful for tracking transactions from different platforms.
RAZORPAY
, OTHER
Transactions are created in UNCOMMITTED state. In this state they can be updated or deleted. Transactions become locked and can't be edited once they've been reported on a filed return.
LOCKED
, UNCOMMITTED