I created an order, added an adhoc item, and also added an ad hoc OrderLineTaxItem (see below), but I am not seeing the tax being applied onto the order under net amounts.
Request Body:
{
"idempotency_key": "ea0c2602-c305-4a4f-bca8-fbaf6c6f47f3",
"order": {
"location_id": "944DYRHACBQFT",
"state": "OPEN",
"source": {
"name": "Source Name"
},
"taxes": [
{
"scope": "ORDER",
"type": "ADDITIVE",
"percentage": "6.625",
"name": "Tax"
}
],
"service_charges": [
{
"amount_money": {
"currency": "USD",
"amount": 100
},
"calculation_phase": "TOTAL_PHASE",
"name": "Fee",
"taxable": false
}
],
"fulfillments": [
{
"type": "PICKUP",
"state": "PROPOSED",
"pickup_details": {
"schedule_type": "ASAP",
"recipient": {
"display_name": "Test Name"
},
"pickup_at": "2022-11-20T15:28:00.000"
}
}
],
"line_items": [
{
"item_type": "ITEM",
"quantity": "1",
"name": "Test Item1",
"base_price_money": {
"amount": 100,
"currency": "USD"
}
}
]
}
}
Response Body:
{
"order": {
"id": "ynOe4jyVfK9UVxNB4SSnV1CfHJKZY",
"location_id": "944DYRHACBQFT",
"line_items": [
{
"uid": "SdYjSX5pPbt2w6HnPy8E1D",
"quantity": "1",
"name": "Test Item1",
"base_price_money": {
"amount": 100,
"currency": "USD"
},
"gross_sales_money": {
"amount": 100,
"currency": "USD"
},
"total_tax_money": {
"amount": 0,
"currency": "USD"
},
"total_discount_money": {
"amount": 0,
"currency": "USD"
},
"total_money": {
"amount": 100,
"currency": "USD"
},
"variation_total_price_money": {
"amount": 100,
"currency": "USD"
},
"item_type": "ITEM"
}
],
"taxes": [
{
"uid": "7kLhhdmiYjabfnL7qT0m0C",
"name": "Tax",
"percentage": "6.625",
"type": "ADDITIVE",
"applied_money": {
"amount": 0,
"currency": "USD"
},
"scope": "LINE_ITEM"
}
],
"fulfillments": [
{
"uid": "KGh51zf37dlS7Ej3UeTgID",
"type": "PICKUP",
"state": "PROPOSED",
"pickup_details": {
"pickup_at": "2022-11-20T15:28:00.000Z",
"schedule_type": "ASAP",
"recipient": {
"display_name": "Test Name"
}
}
}
],
"created_at": "2022-11-20T15:28:16.821Z",
"updated_at": "2022-11-20T15:33:45.020Z",
"state": "OPEN",
"version": 2,
"total_tax_money": {
"amount": 0,
"currency": "USD"
},
"total_discount_money": {
"amount": 0,
"currency": "USD"
},
"total_tip_money": {
"amount": 0,
"currency": "USD"
},
"total_money": {
"amount": 200,
"currency": "USD"
},
"service_charges": [
{
"uid": "2lmCWtqR9kklnIPrpAGiYB",
"name": "Fee",
"amount_money": {
"amount": 100,
"currency": "USD"
},
"applied_money": {
"amount": 100,
"currency": "USD"
},
"calculation_phase": "TOTAL_PHASE",
"taxable": false,
"total_money": {
"amount": 100,
"currency": "USD"
},
"total_tax_money": {
"amount": 0,
"currency": "USD"
},
"type": "CUSTOM"
}
],
"total_service_charge_money": {
"amount": 100,
"currency": "USD"
},
"net_amounts": {
"total_money": {
"amount": 200,
"currency": "USD"
},
"tax_money": {
"amount": 0,
"currency": "USD"
},
"discount_money": {
"amount": 0,
"currency": "USD"
},
"tip_money": {
"amount": 0,
"currency": "USD"
},
"service_charge_money": {
"amount": 100,
"currency": "USD"
}
},
"ticket_name": "Order",
"net_amount_due_money": {
"amount": 200,
"currency": "USD"
}
}
}
I also tried to update the ticket and adding adhoc OrderLineTaxItem object as well but that also does not calculate any tax amount.