v2/orders/calculate add proposed_discount_codes field to use coupon code. and coupon code is no limited, with percentage. but result discount is 0. if some permission to authorizated?
Do you have an example of this? Also what’s your application ID?
request is :
{
“order”: {
“location_id”: “LC8BF20Z06Y1Q”,
“line_items”: [
{
“catalog_object_id”:“YXTMRBOCKRREMJK76FYPF433”,
“quantity”: “1”
}
],
“pricing_options”: {
“auto_apply_discounts”: false
}
},
“proposed_discount_codes”: [
{
“id”: “0e4633a4-0372-4b93-aa4b-e35f373e4bba”
}
]
},
in response, discount is 0. (now is expired, but when it’s active, discount is 0)
application id is sq0idp-u8TIouItpJCVsd3J6RteFw
If you set auto_apply_discounts
to true
does the it calculate the discount code?