curl --request PATCH \
--url http://{defaultHost}/api/v2/platform/orders/{id}/apply_coupon_code \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"coupon_code": "<string>"
}
'{
"error": "The access token is invalid"
}Creates Store Credit payment for an Order
curl --request PATCH \
--url http://{defaultHost}/api/v2/platform/orders/{id}/apply_coupon_code \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"coupon_code": "<string>"
}
'{
"error": "The access token is invalid"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Select which associated resources you would like to fetch, see: https://jsonapi.org/format/#fetching-includes
coupon code applied
Was this page helpful?