Customer Portal
Pricing Plan

Assign a product plan to the customer

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

Use this endpoint to allow a customer to assign himself a plan.

The plan assignment can be scheduled 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
endTimeInSeconds
productId
productPlanId
*
startTimeInSeconds
Responses
200
Successful response
customerId
endTimeInSeconds
productId
productPlanId
relationId
createdTimeInSeconds
startTimeInSeconds