Order Fees
Get Fees
GET https://api.bigcommerce.com/stores/{store_hash}/v2/orders/{order_id}/feesRequest
Get all fees for an order.
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
- order_id in path - integerrequiredID of the order.
example
curl --request GET \
--url 'https://api.bigcommerce.com/stores/[store_hash]/v2/orders/[order_id]/fees' \
--header 'Content-Type: application/json' \
--header 'X-Auth-Token: {{token}}'
Response
OK
Body
object | application/json
idinteger
The unique numeric identifier of the fees object.Example: 1typestring
The type of the fee.Allowed: custom_fee
display_name_customerstring
The display name of the fee targeting customers.Example: Package Protection Insurancedisplay_name_merchantstring
The display name of the fee targeting shoppers.Example: Package Protection Feesourcestring
The source of the request.Example: v2base_cost
The base fee cost value. (Float, Float-As-String, Integer)One of:number Type: stringExample: 8.5cost_ex_tax
The fee cost value excluding tax. (Float, Float-As-String, Integer)One of:string number Type: stringExample: 8.5cost_inc_tax
The fee cost value including tax. (Float, Float-As-String, Integer)One of:string number Type: stringExample: 10cost_tax
The tax amount on the fee cost. (Float, Float-As-String, Integer)One of:string number Type: stringExample: 1.5tax_class_idinteger or null
A unique numeric identifier for the tax class. If not persisted or null, the default fee tax class from the control panel is used.
response
{
"fees": [
{
"id": 1,
"type": "custom_fee",
"display_name_customer": "A Fee",
"display_name_merchant": "A Fee",
"source": "AA",
"base_cost": "12.3000",
"cost_exc_tax": "12.3000",
"cost_inc_tax": "12.3000",
"cost_tax": "0.0000",
"tax_class_id": 22
},
{
"id": 2,
"type": "custom_fee",
"display_name_customer": "B Fee",
"display_name_merchant": "B Fee",
"source": "AA",
"base_cost": "4.0000",
"cost_ex_tax": "4.0000",
"cost_inc_tax": "12.0000",
"cost_tax": "8.0000",
"tax_class_id": null
}
]
Did you find what you were looking for?