Set a brand as paid or Free within the account (owner)
const url = 'https://api.replifier.com/v1/orgs/org_01hx0000000000000000000000/billing/brands/brd_01hx0000000000000000000000';const options = { method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '{"billingStatus":"paid"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.replifier.com/v1/orgs/org_01hx0000000000000000000000/billing/brands/brd_01hx0000000000000000000000 \ --header 'Content-Type: application/json' \ --data '{ "billingStatus": "paid" }'M16.4. Only paid brands are charged and count toward the 30 % agency discount. Switching a brand to paid is charged today with proration; switching it to Free lowers the charge from the next cycle (no refund). At least one paid brand must remain.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Example
org_01hx0000000000000000000000Example
brd_01hx0000000000000000000000Request Bodyrequired
Section titled “Request Bodyrequired”object
Responses
Section titled “Responses”Billing after the change
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" }}