Amberflo API
Defining Commitments

Create or update a commitment

1min
POST
https://app.amberflo.io/payments/pricing/amberflo/customer-commitment/subscription_usage_commitment
Authentication
X-API-KEY
Body Parameters
body
type
label
customerId
*
planId
*
planOverrideGenerator
One Of
payment.pricing.plans.generators.CustomPlanGenerator.in
startTimeInSeconds
cycles
*
commitmentEndingConfig
promotions
upfrontPayments
reward
orders
exitClauses
One Of
payment.pricing.commitments.exit_clauses.ExitBeforeCommitmentStartWithGracePeriod.in
notifyOnClientViolation
isProductPlanModifiable
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
firstCustomPromotions
firstOrders
firstPlanOverrideGenerators
One Of
payment.pricing.plans.generators.CustomPlanGenerator.out
commitmentStateHistory