Create upfront commitment with true-up
1 min
POST
https://app.amberflo.io/payments/pricing/amberflo/customer-commitment/upfront_commitment_with_true_up
bodyobjectUpfront contract generator with prepaid input configuration, rewards, promotions, and true-up settings for advance payment commitments
200Upfront commitment with true-up successfully created
400Bad request - invalid upfront payment parameters or true-up configuration
403Forbidden - customer not eligible for upfront commitment terms
409Conflict - upfront commitment conflicts with existing customer agreements
curl --request POST \
--url https://app.amberflo.io/payments/pricing/amberflo/customer-commitment/upfront_commitment_with_true_up \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"type": "upfront_commitment_with_true_up",
"customerId": "",
"planId": "",
"planOverrideGenerator": {
"type": "custom_pricing_plan",
"id": "",
"billingPeriod": {},
"planName": "",
"entitlements": [
{
"id": "",
"apiName": ""
}
],
"priceGenerators": {
"dimensionKeys": [],
"productItemId": "",
"priceTiers": [
{
"leafNodeType": ""
}
],
"type": "cost_plus_dimension"
},
"invoiceBasedFees": {
"type": "constant_invoice_ratio_fee"
}
},
"label": "",
"cycles": 0,
"trueup": {
"minimumPayment": "",
"interval": ""
},
"upfrontPayment": {
"value": "",
"label": ""
},
"reward": {
"value": "",
"label": ""
},
"exitClauses": {
"type": "termination_grace_period",
"gracePeriodInDays": 0
}
}'