Vezmo App

Accounts API · Accounts API

Sandbox

A test key (vzm_test_…) reads a built-in simulator: test accounts and simulated money, no real money. Balances, transactions, statements and events all work from it, and its events (livemode: false) go to test webhook endpoints. Every simulation route answers 404 “No such endpoint.” to a live key.

Open a test account — POST /simulations/accounts

Scope accounts.read. Body { currency }: USD, EUR, GBP or AED. Returns the account as GET /accounts/{id} does. One per currency: asking again returns the same account (200).

Request
curl -X POST https://api.vezmo.com/api/v1/simulations/accounts \
  -H "Authorization: Bearer $TEST_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "currency": "USD" }'

Make money arrive — POST /simulations/incoming

  • accountId (required), amount in minor units (1–100,000,000).
  • payerName, payerCountry, rail (ach, wire, swift, sepa, local_transfer) — optional.
  • outcome — credited (default): incoming.received, then incoming.credited + transaction.posted. held: incoming.received, then incoming.held. returned: incoming.received, then incoming.returned.

Returns the incoming object (see the event object). Sandbox money has no fee.

A held arrival
curl -X POST https://api.vezmo.com/api/v1/simulations/incoming \
  -H "Authorization: Bearer $TEST_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "accountId": "acct_cm3s1m0000001",
    "amount": 125000,
    "payerName": "Harbor & Co.",
    "payerCountry": "US",
    "rail": "ach",
    "outcome": "held"
  }'

Move a held arrival on — POST /simulations/incoming/{id}/advance

Body { to: "credited" | "returned" }; fires that event. An arrival that isn't held, or was already moved on, answers 409 conflict “Only a held arrival can be moved on, and only once.”

Request
curl -X POST https://api.vezmo.com/api/v1/simulations/incoming/inc_cm3s1n0000002/advance \
  -H "Authorization: Bearer $TEST_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "to": "credited" }'

Send with approval in the sandbox

With a test key holding the Accounts write permissions, recipients, quotes and transfer requests run against the simulator once send with approval is on for your business. Nobody approves sandbox items in the dashboard: you decide them with the routes below. A test key can name only sandbox recipients, and a live key only real ones: another mode's id is 404.

  • Recipients are checked against the sandbox table. Their name check reads unavailable until you simulate one. Approved, a recipient waits 2 minutes (waiting), then recipient.active arrives.
  • Approving a request while its recipient still waits is 409 recipient_waiting. Otherwise it is priced at the fixed rates with no fee, checked against the same caps as live, and makes a sandbox transfer (pending) from your sandbox balance. Not enough sandbox money makes the request failed with insufficient_funds, as live does.
  • Events come with livemode: false, to test endpoints.
Node.js: the whole flow
// A whole send with approval run against the sandbox (Node 18+, a TEST key with the Accounts write permissions).
// Fund it first: open a USD test account and make money arrive (the two routes above).
const api = async (method, path, body) => {
  const res = await fetch(`https://api.vezmo.com/api/v1${path}`, {
    method,
    headers: {
      Authorization: `Bearer ${await accessToken()}`,
      "Vezmo-Version": "2026-11-14",
      "Content-Type": "application/json",
      ...(method === "POST" ? { "Idempotency-Key": crypto.randomUUID() } : {}),
    },
    body: body ? JSON.stringify(body) : undefined,
  });
  const json = await res.json();
  if (!res.ok) throw new Error(json.errors?.[0]?.code);
  return json.data;
};

const rcp = await api("POST", "/recipients", {
  name: "Acme Ltd", entityType: "business", method: "bank_local", currency: "GBP", country: "GB",
  fields: { accountNumber: "12345678", sortCode: "200000", bankName: "Test Bank" }, ownership: "third_party",
});
await api("POST", `/simulations/approvals/${rcp.approval.id}/decide`, { decision: "approve" });
const trq = await api("POST", "/transfer-requests", { recipientId: rcp.id, amount: 50000, currency: "USD", side: "send" });
// The recipient waits 2 minutes (flags: ["recipient_waiting"]); deciding before then is 409 recipient_waiting.
await new Promise((r) => setTimeout(r, 125_000));
await api("POST", `/simulations/approvals/${trq.approval.id}/decide`, { decision: "approve" });
const { transferId } = await api("GET", `/transfer-requests/${trq.id}`);
await api("POST", `/simulations/transfers/${transferId}/advance`, { to: "processing" });
await api("POST", `/simulations/transfers/${transferId}/advance`, { to: "succeeded" });

Set a name check — POST /simulations/recipients/{id}/name-check

Scope recipients.write. Body: result (match, close_match, no_match or unavailable) and, optionally, nameHeld. For a pending or approved sandbox recipient.

Request
curl -X POST https://api.vezmo.com/api/v1/simulations/recipients/rcp_cm3s2r0000003/name-check \
  -H "Authorization: Bearer $TEST_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "result": "close_match", "nameHeld": "ACME LIMITED" }'

Set screening — POST /simulations/recipients/{id}/screening

Scope recipients.write. Body { result: "clear" | "in_review" }. An approved sandbox recipient becomes in_review (its sandbox transfers wait) or active (they go).

Decide an approval — POST /simulations/approvals/{id}/decide

Scope transfers.request; deciding a recipient also needs recipients.write (else 403 insufficient_scope). Only the key that made the request can decide its approval: another key of your business gets 404. Like every write, the Phase 2 simulations need your business at Send with approval (403 api_access_not_enabled) and a key whose responsible person can still send money or manage recipients (403 key_owner_cannot_send). Body { decision: "approve" | "reject", reason? }. A sandbox approval only: a live approval's id is 404 here, and only a person can decide it, in the dashboard. Fires the same recipient.* or transfer_request.* events as live, then transfer.created.

Request
curl -X POST https://api.vezmo.com/api/v1/simulations/approvals/apr_cm3s2t0000005/decide \
  -H "Authorization: Bearer $TEST_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "decision": "approve" }'

Move a transfer on — POST /simulations/transfers/{id}/advance

Scope transfers.request. Body: to (processing, succeeded, failed or returned) and, optionally, reason. Pending → processing → succeeded (or pending → succeeded in one step), or failed (from pending or processing; the money comes back to your sandbox balance), or returned (from succeeded). Anything else is 409 conflict. Each step books your sandbox balance and fires its transfer.* event.

Request
curl -X POST https://api.vezmo.com/api/v1/simulations/transfers/tr_cm3s2u0000006/advance \
  -H "Authorization: Bearer $TEST_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "to": "succeeded" }'

Sandbox recipient fields

  • US bank_local (ACH): accountNumber, abaCode, bankName and an address.
  • GB bank_local: accountNumber, sortCode, bankName.
  • Euro area bank_local (SEPA): iban, bankName.
  • bank_swift: iban or accountNumber, swiftCode, bankName and an address.
  • IN mobile_wallet: upiId.
  • stablecoin_wallet: address (a Base, Solana or Tron address) and the Travel Rule fields.

Sandbox rates

Fixed, with no fee: USD→EUR 0.9200, USD→GBP 0.7900, USD→AED 3.6725, and their inverses. A stablecoin is 1:1 with the US dollar.

What differs from live

  • Statements are JSON or CSV only: format=pdf with a test key is 400 validation_failed (field: "format"). A made-up balance must never look like a real statement.
  • A test account has bankName: null. Sandbox money has no fee.
  • A sandbox unused for 90 days is deleted, with its test accounts, simulated money, recipients, requests, approvals, quotes and transfers. TEST webhook endpoints get 5 s per attempt and 3 attempts.
  • A test key whose secret was found in public code can't simulate: 403 key_leaked. It still reads test data until you revoke it; make a new test key.
  • Errors: 404 “No such account.” (not a test account of this business) or “No such arrival.”; 400 validation_failed with field. The send with approval simulations answer 404 for a live object's id.

Limits

  • 5 requests a second and 60 a minute per key on each simulation route.
  • 500 simulated arrivals a day per business: past that, 429 rate_limited (Vezmo-RateLimit-Reason: business).
  • Idempotency-Key is accepted and logged, not enforced, in this phase.