BeMyPlan API

Credits

How calls are priced, when nothing is charged, and where to see your balance.

Calls are paid for with prepaid credits. Credits are whole numbers, held per account, and never expire. Each operation has a price in credits.

Data API operations cost 0 credits unless your contract sets a price. A list costs one request, whatever its size.

How a call is charged

  • A free call (price 0) never touches your balance. It is counted in your usage.
  • For a paid call, the price is held from your available balance before the call runs. When the response has been sent, the hold is settled.
OutcomeCharged?
2xxYes.
304No, but counted.
5xxNo: it is our fault.
You disconnect before the response is completeDecided by the outcome on our side: charged if the call still finished successfully (2xx), free if it did not complete.
Refused before it ran (401, 403, 429, 402)No.
Request errors (400, 404, 409, 410, 422)No, unless your contract says so.

When credits are missing

  • Not enough available credits: 402 insufficient_credits, with details.required and details.available. Nothing runs.
  • Paid calls paused by BeMyPlan: 402 credit_account_frozen. Free calls keep working.
  • No price configured for the operation: 503 price_unavailable. The call is not run and not charged.
  • The credit ledger or the price list is temporarily unavailable: 503 credits_unavailable. This normally affects paid calls. It can also affect a free call if the price list cannot be read. Both carry Retry-After: wait that many seconds and retry.

Balance terms

  • Available: what new calls can use.
  • Held: reserved by calls in progress.
  • Posted: your balance after settled calls. Available is posted minus held.

Where to see it

In the portal, Credits shows your balance, the history of top-ups, adjustments and charges, and your prices. Usage shows the calls per day and operation that reached the credit check: successes, 304 answers, request errors and 402 refusals. Calls stopped earlier (403, 429) are not in Usage; API logs (see Errors) shows the calls that passed key authentication, whatever their status, with a few exceptions listed there.

Every role, Viewers included, can see Credits, Usage and API logs. There is no API endpoint for balance or usage.

Top-ups and low balance

BeMyPlan adds credits against an invoice. When your available balance falls below the threshold BeMyPlan set with you, Owners and Admins get one email and an in-app notice.

Sandbox

A sandbox account is normally given 10,000 free credits. Data API operations cost 0 credits, and a free call never touches the balance, so a lower balance alone never produces a 402. To test 402, ask BeMyPlan to set a price on an operation for your sandbox account and to lower the balance. To continue testing after the credits of a priced operation run out, ask for another grant.

On this page