Order Fees

Get Fees

GET /orders/{order_id}/fees

Request

Get all fees for an order.

Authentication

  • X-Auth-Token in header

Parameters

  • store_hash in path - string
  • order_id in path - integer
    required
    ID 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
  • id
    integer

    The unique numeric identifier of the fees object.
    Example: 1
  • type
    string

    The type of the fee.

    Allowed: custom_fee

  • display_name_customer
    string

    The display name of the fee targeting customers.
    Example: Package Protection Insurance
  • display_name_merchant
    string

    The display name of the fee targeting shoppers.
    Example: Package Protection Fee
  • source
    string

    The source of the request.
    Example: v2
  • base_cost

    The base fee cost value. (Float, Float-As-String, Integer)
    One of:
    Type: string
    Example: 8.5
  • cost_ex_tax

    The fee cost value excluding tax. (Float, Float-As-String, Integer)
    One of:
    Type: string
    Example: 8.5
  • cost_inc_tax

    The fee cost value including tax. (Float, Float-As-String, Integer)
    One of:
    Type: string
    Example: 10
  • cost_tax

    The tax amount on the fee cost. (Float, Float-As-String, Integer)
    One of:
    Type: string
    Example: 1.5
  • tax_class_id
    integer 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?