I’m not able to send an order, I’m trying to set the taxes as follow:
{
"order": {
"location_id": "LN6CTWTBF2RSY",
"line_items": [
{
"quantity": "1",
"base_price_money": {
"amount": 395,
"currency": "USD"
},
"uid": "15623",
"name": "Matcha Mochi Ice cream ( 2 pieces )",
"note": null,
"applied_taxes": [
{
"tax_uid": "15623",
"uid": "f9cfad9d-09e4-4060-a77e-d705c71821e8"
}
]
},
{
"quantity": "1",
"base_price_money": {
"amount": 395,
"currency": "USD"
},
"uid": "15624",
"name": "Matcha Mochi Ice cream ( 2 pieces )",
"note": null,
"applied_taxes": [
{
"tax_uid": "15624",
"uid": "6072cd0f-bf9b-4133-a0e2-3a782da1de05"
}
]
},
{
"quantity": "1",
"base_price_money": {
"amount": 395,
"currency": "USD"
},
"uid": "15625",
"name": "Matcha Mochi Ice cream ( 2 pieces )",
"note": null,
"applied_taxes": [
{
"tax_uid": "15625",
"uid": "98cf378a-ce0d-4c26-b1fd-c7dac46cd20c"
}
]
}
],
"fulfillments": [
{
"type": "PICKUP",
"state": "PROPOSED",
"pickup_details": {
"recipient": {
"display_name": "Aziz"
},
"schedule_type": "ASAP",
"pickup_at": "2021-06-07T13:08:29.183000+00:00",
"note": ""
}
}
],
"discounts": [
{
"amount_money": {
"amount": 0,
"currency": "USD"
},
"name": "Discount",
"type": "FIXED_AMOUNT"
}
],
"service_charges": [
{
"amount_money": {
"amount": 250,
"currency": "USD"
},
"name": "Fees",
"calculation_phase": "SUBTOTAL_PHASE"
}
],
"reference_id": "4449",
"taxes": [
{
"percentage": "21.0",
"scope": "LINE_ITEM",
"type": "INCLUSIVE",
"uid": "15623",
"name": "Tax"
},
{
"percentage": "21.0",
"scope": "LINE_ITEM",
"type": "INCLUSIVE",
"uid": "15624",
"name": "Tax"
},
{
"percentage": "21.0",
"scope": "LINE_ITEM",
"type": "INCLUSIVE",
"uid": "15625",
"name": "Tax"
}
]
},
"idempotency_key": "6495f0c7-dda0-4f2d-ab63-f634409db765"
}
And i’m having the following response:
{
"errors": [
{
"code": "BAD_REQUEST",
"detail": "mixed usage of applied adjustments fields with deprecated adjustments fields is not supported",
"category": "INVALID_REQUEST_ERROR"
}
]
}
I tried to follow the documentation and check the other forum solutions and I didn’t find a way to solve this