Skip to main content
Every v1 call uses a secret key. Banking, Checkout and Connect share one API at https://api.easner.com/v1 and the same key prefixes (easner_sk_test_…, easner_sk_live_…). Scopes on each key decide which product routes it can call. A Banking integration needs accounts.* and optionally transfers.write; Checkout needs checkout; Connect needs payees.*, payees.credit and payouts.write. See Connect for Connect-mode defaults and API keys and scopes. Mint keys in Console: Settings → API keys. A key with keys.manage can list and revoke keys over the API, see API keys. The list is the current Test or Live mode from the header. Create as many as you need. Each new key is a pair: a secret key (easner_sk_…) and a publishable key (easner_pk_…). The secret is shown once. Easner stores only a hash, so a lost secret cannot be recovered. Create a new key instead. Creating a key asks for a security code. A test key needs nothing else. A live key needs your business verified, and a live key with Checkout permissions also needs online payments on and set up. See Test and live.
Bearer is required. A bare key is also accepted. Missing or unknown keys return 401. Secret keys stay on the server. Never put one in browser code, a mobile app, a repository, a chat or a prompt. Read it from the environment.

Secret and publishable keys

The overlay and inline Checkout call GET /v1/checkout/publishable-keys/validate?key=easner_pk_… from the browser to load your branding. Nothing else is open to a publishable key. The hosted page and button.js need no key. New keys can include Banking scopes (accounts.read, accounts.write, transfers.write), Checkout, Connect (payees.read, payees.write, payees.credit, payouts.write, payees.tax_forms.read), and the two management scopes (keys.manage, webhooks.manage). Developer / Agency businesses default to checkout, accounts.read and accounts.write; tick transfers.write when you create quotes and transfers. Connect mode uses a different form: Checkout plus payee scopes, and a Connect key cannot also hold Banking scopes — see Connect and Test and live. The management scopes are never on by default. Restricted keys use a subset of the scopes their mode allows.

Rotate a key

There is no in-place rotation, so there is no downtime:
  1. Create a new key in Settings → API keys.
  2. Deploy the new EASNER_SECRET_KEY (and the new easner_pk_… in your pages).
  3. Revoke the old key in the same list. Revoked keys answer 401 invalid_api_key immediately.
If a secret leaks, revoke it first. Webhook signing secrets rotate separately, per endpoint, in Settings → Webhooks (Rotate secret). The old secret stops working at once.

Livemode

Livemode comes from the key prefix, not from a body field. A test key never sees live objects. A live key never sees test objects.

Scopes

The route-by-route matrix, with the money-out switch, restrictions and verification gates, is on API keys and scopes. A key without the required scope returns 403. A missing, unknown or revoked key returns 401 invalid_api_key:
If a call returns key_forbidden, mint a new key from Settings → API keys with the missing scope. A key’s scopes cannot be edited later.

Idempotency

Send Idempotency-Key on every POST that creates something or changes a subscription. Only the routes in the table honour it. On every other POST the header is accepted and recorded in your request log but nothing is deduplicated: creating a customer, destination, quote, account, onramp session or portal session twice creates two objects. Rules that apply to every /v1 route:
  • The key is trimmed, at most 255 characters. Longer is 400 invalid_idempotency_key, checked before anything else (it used to be ignored, which silently dropped your retry protection).
  • Keys are scoped to your business, so another merchant’s key can never collide with yours. For transfers the key is also scoped to the mode.
  • No expiry is defined in code. Easner does not delete a key on a timer, but do not rely on keys living forever: use one stable key per logical operation (for example checkout-ord_1042) and treat it as valid for a day or so of retries.
  • A new random key on every retry gives no protection.
  • A merchant key on confirm returns 403 customer_action_required.

Rate limits

An over-limit call answers 429 with Retry-After: 60 (seconds) and this body:
There are no X-RateLimit-* headers. Retry-After is the only signal and it is always 60. Wait that long, then retry the same request with the same Idempotency-Key. Do not open a new send. What is enforced today: The per-business read budget is the figure Console, Usage shows as reads per minute. It is enforced on every GET on /v1 that needs a secret key (not on the browser call GET /v1/checkout/publishable-keys/validate). If the shared counter store is unavailable, the business limits let the call through rather than fail. The per-IP limits still apply. All numbers can change: build for 429, do not build for a number.

Restrictions

If Easner restricts your business, matching writes return 403 with ACCOUNT_RESTRICTED or ACCOUNT_LOCKED. Which routes check this is listed on API keys and scopes. Sending money over the API also needs the money-out switch: see Send.

Errors

Envelope, status codes, and common codes.
Last modified on November 18, 2026