Discount_code not being removed from Checkout in Shopify when using Admin Api

Shopify Partner
4 0 0

Ideally this should remove any applied discount code on the checkout. But this isn't working.

Both `""` and `null` as values are not working I have tried older api versions as well. But they are not working either. It was working earlier.

Documentation link -



curl --location --request PUT 'https://<your-development-store>/admin/api/2022-07/checkouts/<checkout-token>.json' \
--header 'X-Shopify-Access-Token: <access_token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "checkout": {
        "discount_code": ""


Screenshot 2022-08-25 at 3.01.33 PM.png



Replies 0 (0)