# Can't set tax in ad-hoc item lines

**URL:** <https://developer.squareup.com/forums/t/cant-set-tax-in-ad-hoc-item-lines/2711>\
**Category:** Questions\
**Tags:** orders-api\
**Created:** [June 7, 2021, 3:37pm UTC](https://developer.squareup.com/forums/t/cant-set-tax-in-ad-hoc-item-lines/2711 "2021-06-07T15:37:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![attoucheaziz](https://avatars.discourse-cdn.com/v4/letter/a/59ef9b/32.png) [@attoucheaziz](https://developer.squareup.com/forums/u/attoucheaziz)\
**Post date:** [June 7, 2021, 3:37pm UTC](https://developer.squareup.com/forums/t/cant-set-tax-in-ad-hoc-item-lines/2711/1 "2021-06-07T15:37:25Z")

</div>

I’m not able to send an order, I’m trying to set the taxes as follow:

```auto
{
    "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:

```auto
{
  "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

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [June 7, 2021, 4:33pm UTC](https://developer.squareup.com/forums/t/cant-set-tax-in-ad-hoc-item-lines/2711/2 "2021-06-07T16:33:48Z")

</div>

👋 In the order you didn’t provide a `SCOPE` field for the discount on the order. You will need to remove the 0 money discount entirely, but if you want to keep it on the order, you can add a scope and it should succeed. 🙂

---

<div class="post-metadata">

**Author:** ![attoucheaziz](https://avatars.discourse-cdn.com/v4/letter/a/59ef9b/32.png) [@attoucheaziz](https://developer.squareup.com/forums/u/attoucheaziz)\
**Post date:** [June 7, 2021, 4:45pm UTC](https://developer.squareup.com/forums/t/cant-set-tax-in-ad-hoc-item-lines/2711/3 "2021-06-07T16:45:38Z")

</div>

Thank you, the scope was the problem !
