Guides

Billing & credits

Prepaid credits per organization, the price of a published post, charges, refunds, top-ups and the billing API.

Outboxer bills per published post, from one prepaid credit balance per organization.

  • Every workspace in the organization draws on the same balance.
  • Organization owners, admins and billing users top the balance up by card, through Stripe Checkout.
  • Each channel a post is published to counts as one billed item. A post sent to X and LinkedIn is two items.
  • Drafting, validating, reviewing and scheduling are free. Only publishing is charged.
  • Amounts are integers in minor units of the currency (US dollar cents): 500 is $5.00. Responses also carry a formatted or balance_formatted string.

Prices#

The price depends on the channel and the media in the post:

Media kind When
video any attached media is a video
image photos, GIFs or documents (no video)
text no media

GET /v1/billing/prices returns the current price per provider for each kind.

When credits move#

Event Ledger type Amount
A card top-up is paid topup + amount paid
Outboxer gives the organization free credits gift + amount, with a message
A variant is about to be sent to the network charge − price for that channel and media kind
The variant ends up failed, or the post is archived while retrying refund + the charge
A manual correction by Outboxer support adjustment ± with a note
  • When a charge happens. Right before the post is sent to the network. Retries of the same publish reuse the charge, so a retry is never charged twice. A refunded post that is rescheduled is charged again when it goes out.
  • Pre-flight. Five minutes before a scheduled post goes out, pre-flight checks the balance and flags insufficient_credits, so owners are notified while there's still time to top up.
  • Not enough credits at publish time. The variant fails with failure.code = insufficient_credits and nothing is charged. Top up, then reschedule.
  • Not billed. Drip follow-up comments and auto-replies are free.
  • Low balance. When a charge takes the balance below the organization's low-balance threshold ($5.00 by default), workspace owners and admins get a notification and the billing.low_balance webhook fires, at most every 12 hours.

Every ledger row stores balance_after, plus the workspace, post, variant, channel, provider and media kind it belongs to, so the ledger explains every change in the balance.

Who can do what#

Read balance and prices Spend and ledger Top up
Org owner, org admin or billing org role yes all workspaces yes (billing:manage)
Other members yes their own workspaces no
Agents yes (billing:read, a default scope) their workspaces never

API#

GET /v1/billing Balance, low_balance flag and threshold, price list, per-workspace spend (30 days and total), top-up limits (topup.min, topup.max) and can_top_up.
GET /v1/billing/prices Price per provider for text, image and video.
GET /v1/billing/transactions?workspace=&type= The ledger, newest first.
GET /v1/posts/{id}/cost What publishing a post costs: per channel media_kind, amount and paid, plus total, due, balance and sufficient.
POST /v1/billing/checkout {amount, success_url?, cancel_url?} Starts a card top-up and returns checkout_url. Send the user there.
GET /v1/billing/topups, GET /v1/billing/topups/{id} Top-ups and their status (pending, paid, expired, failed). Reading a pending one re-checks the payment and credits it if it was paid.
GET /v1/billing/purchases Purchase history: paid top-ups with receipt links, and gifted credits.

Check before you schedule. Before scheduling a large batch, compare GET /v1/posts/{id}/cost → due with the balance, or read GET /v1/billing. A post that can't be paid for doesn't produce an HTTP error when you schedule it; it fails at publish time with insufficient_credits.

MCP: get_billing returns the balance and prices, plus a post's cost when you pass post_id (MCP server).

Topping up#

  1. A user with billing:manage (org owner, admin or billing role) calls POST /v1/billing/checkout {"amount": 2500}. The amount must be within topup.min and topup.max from GET /v1/billing.
  2. Send the user to the returned checkout_url to pay by card.
  3. Credits are added once the payment is confirmed, never before. After the user comes back, poll GET /v1/billing/topups/{id} until status is paid, or listen for the billing.topup_succeeded webhook.

success_url and cancel_url must be pages of the Outboxer web app (422 invalid_redirect otherwise). Agents can read billing but can never pay. Errors to expect: 403 billing_role_required, 503 billing_unavailable (try again later) and 502 payment_provider_error.

Receipts for paid top-ups are linked from GET /v1/billing/purchases (receipt_url).