Create or update a commitment
1 min
POST
https://app.amberflo.io/payments/pricing/amberflo/customer-commitment/true_up_by_usage_commitment
bodyobject
200Successful request
curl --request POST \
--url https://app.amberflo.io/payments/pricing/amberflo/customer-commitment/true_up_by_usage_commitment \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"type": "true_up_by_usage_commitment",
"customerId": "",
"planId": "",
"label": "",
"cycles": 0,
"usageTrueUp": {
"productItemIdToUsage": "",
"interval": ""
},
"reward": {
"value": "",
"label": ""
},
"exitClauses": {
"type": "termination_grace_period",
"gracePeriodInDays": 0
}
}'