Create flexible promotion for entire products
1 min
POST
https://app.amberflo.io/payments/pricing/amberflo/account-pricing/promotions/generic_product_promotion
bodyobjectInput for creating flexible custom promotions with configurable conditions and discount models for entire products.
200Product promotion created with custom discount configuration and scope details
400Invalid promotion configuration or unsupported product scope
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_product_promotion \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"id": "",
"type": "generic_product_promotion",
"promotionName": "",
"condition": {
"type": "after_item_price_threshold"
},
"promotionModel": {
"type": "absolute",
"measure": {
"type": "per_batch"
}
}
}'