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