One-click tier downgrade: takes effect at the start of the next cycle (owner)
const url = 'https://api.replifier.com/v1/orgs/org_01hx0000000000000000000000/billing/downgrade';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"tierKey":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.replifier.com/v1/orgs/org_01hx0000000000000000000000/billing/downgrade \ --header 'Content-Type: application/json' \ --data '{ "tierKey": "example" }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Example
org_01hx0000000000000000000000Request Bodyrequired
Section titled “Request Bodyrequired”object
Example generated
{ "tierKey": "example"}Responses
Section titled “Responses”Billing after the action
object
Requested downgrade: takes effect at the start of the next cycle
Renewal; if canceled, last day of paid access
Current cycle price (cents), computed server-side. brands = paid brands; total = a single invoice for the account
object
M16.4: per-brand summary of what the account pays (empty without a paid plan)
object
Cents per cycle for that brand; null if Free
Preferential price set by Replifier for that brand
object
30 % agency discount and white label (5 or more paid brands)
If it dropped to 4 or fewer paid brands: until when it keeps the benefits (end of the paid period)
Example
{ "state": "trial", "cycle": "month", "paymentStatus": "ok", "stripeAccount": "us", "brands": [ { "billingStatus": "paid" } ]}Invalid data
object
object
Example
{ "error": { "code": "not_found" }}No session, expired session, or invalid, expired or revoked API key
object
object
Example
{ "error": { "code": "not_found" }}Not allowed, API key missing the scope, IP not allowed, or request rejected (csrf_rejected)
object
object
Example
{ "error": { "code": "not_found" }}Does not exist or is not visible to you
object
object
Example
{ "error": { "code": "not_found" }}Conflict
object
object
Example
{ "error": { "code": "not_found" }}Internal error
object
object
Example
{ "error": { "code": "not_found" }}Service temporarily unavailable
object
object
Example
{ "error": { "code": "not_found" }}