Create or update account promotion
1 min
POST
https://app.amberflo.io/payments/pricing/amberflo/account-pricing/promotions
bodyobjectPromotion configuration including discount rules, conditions, and validity periods
200Returns the created or updated promotion with all configured rules and conditions
400Invalid promotion configuration or conflicting discount rules
401Authentication required or invalid API key provided
403Insufficient permissions to manage account promotions
404Referenced products or pricing plans not found
500Internal server error occurred while processing promotion
curl --request POST \
--url https://app.amberflo.io/payments/pricing/amberflo/account-pricing/promotions \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"id": "",
"type": "absolute_product_automatic_promotion",
"promotionName": ""
}'