Update customer plan
PATCH
/admin/customers/{id}/plan
const url = 'https://api.reflexdb.cloud/v1/admin/customers/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/plan';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"plan":"free"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.reflexdb.cloud/v1/admin/customers/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/plan \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "plan": "free" }'Admin only — override a customer’s plan without going through Stripe.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string format: uuid
Customer ID
Request Body required
Section titled “Request Body required ” Media type application/json
object
plan
required
string
Responses
Section titled “ Responses ”Default Response
Media type application/json
object
id
required
string format: uuid
plan
required
string
Example generated
{ "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "plan": "example"}Default Response
Media type application/json
Error
object
error
required
string
message
string
Example generated
{ "error": "example", "message": "example"}Default Response
Media type application/json
Error
object
error
required
string
message
string
Example generated
{ "error": "example", "message": "example"}