Musement regularly provides its customers with promo codes which can be used for discounts on future orders. These codes are usually distributed as part of promotions, online campaigns or via our Customer Care team.
Depending on the agreement with our Strategic partnerships team, partners may or may not want customers to use promo codes with the integration.
If a partner chooses to allow customers to use promo codes that they receive from Musement, the code can be submitted when creating a cart using the discount_code parameter in the request body:
curl -X POST '{baseUrl}/carts' \
-H 'X-Musement-Application: {applicationValue}' \
-H 'X-Musement-Version: 3.4.0' \
-H 'Authorization: Bearer {accessToken}' \
-H 'Content-Type: application/json' \
--data-raw '{
"discount_code": "{promoCode}"
}'The response will include the code in the promo_code property:
{
"uuid": "bf82a0af-e3b2-48a8-9368-a7417539d5e1",
"items": [],
"promo_code": {
"code": "{promoCode}"
},
[...]
}