Billing Cloud
Customer Commitment

Create or update an Upfront Commitment with True Up

1min
POST
https://app.amberflo.io/payments/pricing/amberflo/customer-commitment/upfront_commitment_with_true_up

A contract generator that receives as input PrepaidInput (Upfront, Reward), Promotions, and TrueUpInput and creates a contract with credit obligations.

Authentication
X-API-KEY
Body Parameters
body
type
customerId
*
notifyOnClientViolation
planId
*
label
*
startTimeInSeconds
cycles
*
trueup
upfrontPayment
promotions
reward
Responses
200
Successful request
contractGenerator
One Of
payment.pricing.commitments.generators.CustomerArrearsContractGenerator.out
contract
firstCustomerPlan
firstCustomerAppliedPromotions
firstCustomerPrepaidCards
One Of
payment.billing.prepaid_to_product.PrepaidCardByPrice.out
firstPrepaidCardsOrders
One Of
payment.pricing.customer.CustomerPrepaidByPrice.out
creationTimeInSeconds