Update an order amount promotion rule
How to update an existing order amount promotion rule via API
Request
Arguments
Body Parameter
Type
Required
Example
curl -g -X PATCH \
'https://yourdomain.commercelayer.io/api/order_amount_promotion_rules/XAyRWNUzyN' \
-H 'Accept: application/vnd.api+json' \
-H 'Authorization: Bearer your-access-token' \
-H 'Content-Type: application/vnd.api+json' \
-d '{
"data": {
"type": "order_amount_promotion_rules",
"id": "xYZkjABcde",
"attributes": {
"reference": "ANY-EXTERNAL-REFEFERNCE"
},
"relationships": {
"promotion": {
"data": {
"type": "promotions",
"id": "ABCRtyUpBa"
}
}
}
}
}'Last updated