Order Taxes
Get All Order Taxes
GET https://api.bigcommerce.com/stores/{store_hash}/v2/orders/{order_id}/taxesRequest
Gets all order taxes using order_id
.
Each tax applied to an order. This information can be useful for reporting purposes.
Pass in the query parameter ?details=true
to return extra details about order taxes.
order_product_id
and line_item_type
are also returned.
All values are read-only.
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
- Accept in header with default of application/json - stringrequiredThe MIME type of the response body.
- order_id in path - integerrequiredID of the order.
- page in query with default of 1 - numberThe page to return in the response.
- limit in query with default of 50 - numberNumber of results to return.
- details in query with default of false - stringTo return detailed tax information, pass in the details query.
example
Response
Body
array | application/json
idinteger
The unique numeric identifier of the taxes object.Example: 1order_idinteger
The unique numeric identifier of the order to which the tax was applied. NOTE: Not included if the store was using the automatic tax feature.Example: 129order_address_idinteger
The unique numeric identifier of the order address object associated with the order. NOTE: Not included if the store was using the automatic tax feature.Example: 29tax_rate_idinteger
The unique numeric identifier of the tax rate.Example: 1tax_class_idinteger or null
A unique numeric identifier for the tax class. If not provided or null, the default fee tax class from the control panel is used.namestring
The name of the tax class object.Example: State Taxclassstring
The name of the type of tax that was applied. NOTE: It will be "Automatic Tax" if automatic tax was enabled. It will be "API Tax Override" if the order was created with V2 Orders API.Example: Gift Wrappingratestring
The tax rate. The priority order in which the tax is applied (Float, Float-As-String, Integer)Example: 8.0000prioritynumber
The order in which the tax is applied.priority_amountstring
The amount of tax calculated on the order. (Float, Float-As-String, Integer)Example: 1.5200line_amountstring
(Float, Float-As-String, Integer)Example: 1.5200order_pickup_method_idnumber
The ID of the order pickup method object (which contains pickup location details) associated with the order.order_product_idstring
If theline_item_type
isitem
orhandling
then this field will be the order product id. Otherwise the field will return as null.line_item_typestring
Type of tax on item.Allowed: item | shipping | handling | gift-wrapping
response
Did you find what you were looking for?