Billing Cloud
Pricing Plans

Assign a product plan to a customer

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

Use this endpoint to indicate which product plan a customer has.

You can also schedule the plan assignment to start at some point in the future by specifying a startTimeInSeconds.

If you'd like to cancel a customer's current plan, you should define a "default" plan and then use this API to assign it to the customer.

Authentication
X-API-KEY
Body Parameters
body
customerId
*
endTimeInSeconds
productId
productPlanId
*
startTimeInSeconds
Responses
200
Successful response
customerId
endTimeInSeconds
productId
productPlanId
relationId
createdTimeInSeconds
startTimeInSeconds