Create flexible promotion for specific product items
1 min
POST
https://app.amberflo.io/payments/pricing/amberflo/account-pricing/promotions/generic_item_promotion
bodyobjectInput for creating flexible custom promotions with configurable conditions and discount models for specific product items.
200Promotion created with custom discount configuration and activation details
400Invalid promotion configuration or malformed discount rules
401Authentication required or invalid API key provided
500Internal server error occurred while creating promotion
curl --request POST \
--url https://app.amberflo.io/payments/pricing/amberflo/account-pricing/promotions/generic_item_promotion \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"id": "",
"type": "generic_item_promotion",
"promotionName": "",
"condition": {
"type": "after_item_price_threshold"
},
"promotionModel": {
"type": "absolute",
"measure": {
"type": "per_batch"
}
}
}'