Create installment-based commitment
1 min
POST
https://app.amberflo.io/payments/pricing/amberflo/customer-commitment/installments_commitment
bodyobjectInstallment contract generator with payment cycle schedule and prepaid card configuration for structured payment commitments
200Installment commitment successfully created
400Bad request - invalid installment schedule or payment configuration
403Forbidden - customer not eligible for installment payment terms
409Conflict - installment commitment conflicts with existing payment agreements
curl --request POST \
--url https://app.amberflo.io/payments/pricing/amberflo/customer-commitment/installments_commitment \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"type": "installments_commitment",
"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": ""
},
"credits": {
"value": "",
"label": ""
},
"reward": {
"value": "",
"label": ""
},
"exitClauses": {
"type": "termination_grace_period",
"gracePeriodInDays": 0
}
}'