Plan, payment status, renewal and current price (owner or admin)
const url = 'https://api.replifier.com/v1/orgs/org_01hx0000000000000000000000/billing';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.replifier.com/v1/orgs/org_01hx0000000000000000000000/billingParameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Example
org_01hx0000000000000000000000Responses
Section titled “Responses”Billing
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" } ]}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" }}Internal error
object
object
Example
{ "error": { "code": "not_found" }}