A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
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 - https://shopify.dev/api/admin-rest/2022-07/resources/checkout#post-checkouts
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": ""
}
}