Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

apply discount using checkout api

Solved

apply discount using checkout api

sardarusama4106
Tourist
15 0 0

How to apply discount codes on checkout using checkout API?

Accepted Solution (1)

vix
Shopify Staff
541 103 123

This is an accepted solution.

Hi @sardarusama4106 

 

Please see the discount_code field in the API documentation: https://help.shopify.com/en/api/reference/sales-channels/checkout

To learn more visit the Shopify Help Center or the Community Blog.

View solution in original post

Replies 2 (2)

vix
Shopify Staff
541 103 123

This is an accepted solution.

Hi @sardarusama4106 

 

Please see the discount_code field in the API documentation: https://help.shopify.com/en/api/reference/sales-channels/checkout

To learn more visit the Shopify Help Center or the Community Blog.

nikita_ranjane
Tourist
7 0 1

@vix  I am trying to hit an checkout API showing error like 

{
    "errors""[API] This action requires merchant approval for read_checkouts scope."
}
I have an development account. why I am receiving this error?