cURL
curl --request PUT \ --url https://api.atlas.kitchen/storefronts/v1/cart/promo \ --header 'Content-Type: application/json' \ --header 'X-Channel-Id: <api-key>' \ --data ' { "promo_code": "WELCOME10" } '
{ "type": "Invalid Parameter", "message": "<string>", "details": [ { "field": "<string>", "message": "<string>" } ] }
Validates and applies a promotion to the cart. Only one promo per cart.
Channel identifier. A second header X-Session-Id is also required.
X-Session-Id
"WELCOME10"
Promo applied
Was this page helpful?