Assign a product plan to the customer
1 min
POST
https://app.amberflo.io/customer-portal/pricing-plan
sessionTokenstring<p>A required session token used to authenticate API calls made on behalf of a customer. This token is obtained from the <code>Create a session</code> endpoint and must be included with every request to authorize access.</p>
bodyobject
200Successful response
curl --request POST \
--url 'https://app.amberflo.io/customer-portal/pricing-plan?sessionToken=string' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"productId": "1",
"productPlanId": ""
}'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.