You can do that with the catalog_object_id
. For example here is an order request with a catalog_object_id
that’s of type: TAX
of 7%.
{
"idempotency_key": "{{$guid}}",
"order": {
"location_id": "{{location_id}}",
"pricing_options": {},
"taxes": [
{
"scope": "ORDER",
"catalog_object_id": "ZPTKVRGA2UDO2OZWL6ULID3H"
}
],
"line_items": [
{
"quantity": "1",
"name": "Burger",
"base_price_money": {
"amount": 200,
"currency": "USD"
}
}
]
}
}
It gives me the following response:
{
"order": {
"id": "BxvairsL4B5IIXpLoFrUNbQc3DFZY",
"location_id": "{{location_id}}",
"line_items": [
{
"uid": "04veW4XBo0drQyj4mcEug",
"quantity": "1",
"name": "Burger",
"base_price_money": {
"amount": 200,
"currency": "USD"
},
"gross_sales_money": {
"amount": 200,
"currency": "USD"
},
"total_tax_money": {
"amount": 10,
"currency": "USD"
},
"total_discount_money": {
"amount": 0,
"currency": "USD"
},
"total_money": {
"amount": 210,
"currency": "USD"
},
"variation_total_price_money": {
"amount": 200,
"currency": "USD"
},
"applied_taxes": [
{
"uid": "Zp4H4F5zZtjccy2xT6fZvD",
"tax_uid": "5HSkHYm8G5fuDN4tDSC0aD",
"applied_money": {
"amount": 10,
"currency": "USD"
}
}
],
"item_type": "ITEM"
}
],
"taxes": [
{
"uid": "5HSkHYm8G5fuDN4tDSC0aD",
"catalog_object_id": "ZPTKVRGA2UDO2OZWL6ULID3H",
"catalog_version": 1662141843438,
"name": "Sales Tax",
"percentage": "5.0",
"type": "ADDITIVE",
"applied_money": {
"amount": 10,
"currency": "USD"
},
"scope": "ORDER"
}
],
"created_at": "2022-09-02T20:36:47.940Z",
"updated_at": "2022-09-02T20:36:47.940Z",
"state": "OPEN",
"version": 1,
"total_tax_money": {
"amount": 10,
"currency": "USD"
},
"total_discount_money": {
"amount": 0,
"currency": "USD"
},
"total_tip_money": {
"amount": 0,
"currency": "USD"
},
"total_money": {
"amount": 210,
"currency": "USD"
},
"total_service_charge_money": {
"amount": 0,
"currency": "USD"
},
"net_amounts": {
"total_money": {
"amount": 210,
"currency": "USD"
},
"tax_money": {
"amount": 10,
"currency": "USD"
},
"discount_money": {
"amount": 0,
"currency": "USD"
},
"tip_money": {
"amount": 0,
"currency": "USD"
},
"service_charge_money": {
"amount": 0,
"currency": "USD"
}
},
"source": {
"name": "Boats"
},
"pricing_options": {},
"net_amount_due_money": {
"amount": 210,
"currency": "USD"
}
}
}