Vezmo App

Accounts API · Accounts API

Transfer requests

A transfer request asks for a payment to one of your approved recipients. Nothing is sent until a person in your business approves it in the Vezmo dashboard with an emailed code and a passkey or authenticator app. They see our own records of the recipient and a fresh price, not what the request says. No key can approve, send money or change a cap.

Creating and cancelling need transfers.request (read and write keys and agent keys); reading needs transfers.read. Part of send with approval: until Vezmo switches that on, these routes answer 404 “No such endpoint.” Once it is on, reads work for any business with the Accounts API; writes also need your business at Send with approval, else 403 api_access_not_enabled.

Ask for a payment — POST /transfer-requests

Idempotency-Key is required. 5 requests a second and 300 a minute per key (a test key: 2 a second).

Request
curl -X POST https://api.vezmo.com/api/v1/transfer-requests \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Vezmo-Version: 2026-11-14" \
  -H "Idempotency-Key: bill-B-2207" \
  -H "Content-Type: application/json" \
  -d '{
    "recipientId": "rcp_cm3w2k9aa0004",
    "amount": 420000,
    "currency": "USD",
    "side": "send",
    "sourceCurrency": null,
    "reference": "INV-2207",
    "memo": "October retainer",
    "expiresAt": null,
    "metadata": { "erpBillId": "B-2207" },
    "allowDuplicate": false
  }'

Fields

  • recipientId (required) — an approved recipient of yours, in this key's mode.
  • side (required): "send" or "receive". With send, amount is what leaves your currency balance, fees included.
  • With receive, amount is what the recipient gets, in their currency; sourceCurrency (default USD) pays it, at the rate when it is approved.
  • amount — an integer in minor units.
  • reference — up to 140 characters, on the recipient's statement where the payment network carries it.
  • memo — up to 500 characters, shown to the person approving as quoted text (never a link).
  • expiresAt — default 7 days, at most 14. An agent key's request always expires in 24 hours.
  • metadata — yours, up to 20 keys. allowDuplicate — see duplicates.

Checks, in order

All of these run before anything is saved:

  1. Permission, your business's access and the switch.
  2. The recipient: yours, in this key's mode. 409 recipient_pending_approval, recipient_in_review or recipient_archived (archived, rejected or expired). A recipient still in its wait is allowed: the request can be approved from usableFrom, and its flags include recipient_waiting.
  3. The Travel Rule: a stablecoin wallet of someone else, without the owner's address, at USD 1,000 or more: 400 travel_rule_info_required.
  4. The caps (below): 409 limit_exceeded with limit: "open_requests", or 400 amount_too_large with max.
  5. Duplicates (below): 409 possible_duplicate.

Answer

201 Created
{
  "id": "trq_cm3w4a2cc000b",
  "object": "transfer_request",
  "livemode": true,
  "status": "pending_approval",
  "recipientId": "rcp_cm3w2k9aa0004",
  "amount": 420000,
  "currency": "USD",
  "side": "send",
  "sourceCurrency": "USD",
  "reference": "INV-2207",
  "memo": "October retainer",
  "metadata": { "erpBillId": "B-2207" },
  "expiresAt": "2026-11-23T09:20:00.000Z",
  "idempotencyKey": "bill-B-2207",
  "requestedBy": { "keyId": "vzm_live_rq_…a1b2", "keyName": "Payroll sync", "keyType": "request" },
  "approval": { "id": "apr_cm3w4a2cc000c", "status": "pending", "decidedAt": null, "solo": false },
  "transferId": null,
  "failure": null,
  "flags": ["first_payment"],
  "createdAt": "2026-11-16T09:20:00.000Z"
}
Node.js
import { randomUUID } from "node:crypto";

// Ask for a payment from your ERP. Keep the Idempotency-Key with the bill so a retry never asks twice.
export async function requestPayment(bill) {
  const key = bill.idempotencyKey ?? (bill.idempotencyKey = randomUUID()); // store it with the bill
  for (let attempt = 0; attempt < 4; attempt++) {
    const res = await fetch("https://api.vezmo.com/api/v1/transfer-requests", {
      method: "POST",
      headers: {
        Authorization: `Bearer ${await accessToken()}`,
        "Vezmo-Version": "2026-11-14",
        "Idempotency-Key": key,
        "Content-Type": "application/json",
      },
      body: JSON.stringify({
        recipientId: bill.recipientId,
        amount: bill.amountCents,
        currency: "USD",
        side: "send",
        reference: bill.number,
        metadata: { erpBillId: bill.id },
      }),
    });
    const body = await res.json();
    if (res.ok) return body.data; // "pending_approval": a person approves it in Vezmo
    const err = body.errors?.[0] ?? {};
    if (res.status === 429 || res.status >= 500 || err.code === "idempotency_request_in_progress") {
      await new Promise((r) => setTimeout(r, Number(res.headers.get("retry-after") ?? 2 ** attempt) * 1000));
      continue;
    }
    throw Object.assign(new Error(err.message), { code: err.code, details: err }); // final: don't retry
  }
  throw new Error("Not sent yet; retry later with the same key.");
}
Python
import uuid
import requests

def request_payment(bill):
    bill.setdefault("idempotency_key", str(uuid.uuid4()))  # store it with the bill
    res = requests.post(
        "https://api.vezmo.com/api/v1/transfer-requests",
        json={
            "recipientId": bill["recipient_id"],
            "amount": bill["amount_cents"],
            "currency": "USD",
            "side": "send",
            "reference": bill["number"],
        },
        headers={
            "Authorization": f"Bearer {access_token()}",
            "Vezmo-Version": "2026-11-14",
            "Idempotency-Key": bill["idempotency_key"],
        },
        timeout=30,
    )
    body = res.json()
    if not res.ok:
        err = body["errors"][0]
        raise RuntimeError(f'{err["code"]}: {err["message"]}')
    return body["data"]  # status "pending_approval"

The transfer request object

  • status —
    • pending_approval: waiting for a person (also while an approval is being sent).
    • approved: a person approved it and the transfer was made; transferId names it. Follow it on Transfers.
    • failed: a person approved it, but the transfer couldn't be made. failure.code says why (below).
    • rejected: a person said no. expired: nobody decided in time. canceled: you cancelled it.
  • requestedBy — the key's masked ID, its name and its type (request or agent).
  • approval — its approval; solo when a business where only one person can approve approved its own key's request.
  • flags — first_payment (nothing paid to this recipient before), recipient_waiting, possible_duplicate (sent with allowDuplicate). Shown to the person approving.

Why an approved request failed

failure
{
  "id": "trq_cm3w4a2cc000b",
  "object": "transfer_request",
  "status": "failed",
  "transferId": null,
  "failure": { "code": "insufficient_funds", "message": "There is not enough money in your balance for this payment." },
  "approval": { "id": "apr_cm3w4a2cc000c", "status": "approved", "decidedAt": "2026-11-16T11:02:31.000Z", "solo": false },
  "…": "…"
}
  • insufficient_funds — not enough in the balance.
  • limit_exceeded — a cap was crossed as the payment was sent (its message names the cap).
  • fees_owed — new payments are paused until what your business owes Vezmo is paid.
  • payouts_paused — sending is paused for a while, for every business.
  • sending_paused — sending is paused for your business.
  • recipient_not_payable — the recipient can't be paid now.
  • refused — we couldn't make this payment.

A failed request isn't retried for you. Fix the cause, then make a new request with a new Idempotency-Key.

Caps

The tightest cap wins. GET /me shows what yours leave today. A key's caps can be lowered in the dashboard, never raised: more room means a new key.

  • Per request: under USD 5,000 by default, so USD 4,999.99 at most (USD 1,000 on an agent key), or lower if set on the key. Checked at creation, and again on the approved price for a receive request.
  • USD 5,000 or more can't be requested by API yet: 400 amount_too_large.
  • Per UTC day: USD 10,000 of payments approved from API requests per business by default; a key can have a lower one.
  • Approved alone: USD 5,000 a day of payments a business where only one person can approve approves from its own key's requests.
  • Per recipient per UTC day: per key; the per-request cap by default.
  • Open requests: 50 waiting per key (20 on an agent key): 409 limit_exceeded with limit: "open_requests".
  • Recipients added: 20 a day per key.

A day's caps are checked again when the payment is approved. A cap already reached keeps the request waiting: the person approving sees why, and approving it is refused (409 approval_blocked). Only a cap crossed as the payment is sent makes the request failed with limit_exceeded. Amounts are compared in US dollars.

Duplicates

A request for the same recipient, amount and currency as a payment made, or another request still open or approved, in the last 24 hours is refused with 409 possible_duplicate, naming the earlier one. Send allowDuplicate: true if it really is a new payment: the person approving then sees it flagged. This is separate from idempotency, which only catches a retry of the same call.

409 possible_duplicate
{
  "success": false,
  "errors": [
    {
      "code": "possible_duplicate",
      "message": "A payment of the same amount to this recipient was made or requested in the last 24 hours. Send allowDuplicate: true if this is a new payment.",
      "duplicateOf": { "object": "transfer_request", "id": "trq_cm3w1z7aa0001" },
      "help": "https://user.vezmo.com/docs/v1/errors#possible_duplicate"
    }
  ],
  "requestId": "…"
}

How a person approves it

  • In Accounts › Approvals, someone with permission to send money selects up to 50 requests, checks each one against our own records (the recipient's name, masked account, country and method) and a fresh price, then confirms with an emailed code and a passkey or authenticator app. See Approvals.
  • If anything changes between the price and the confirmation (an amount, the recipient, a request cancelled), the approval stops and they price it again.
  • A request made by an agent key carries the badge “Requested by an AI agent” with the key's name.

List requests — GET /transfer-requests

  • status, recipientId.
  • createdFrom, createdTo — RFC 3339 with a zone.
  • keyId — a key ID of your business (vzm_…): only its requests.
  • idempotencyKey — find the request a key made.
  • limit, startingAfter.
Request
curl "https://api.vezmo.com/api/v1/transfer-requests?status=pending_approval&keyId=vzm_live_rq_4Hq9ZbT1mK2xPv7d" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Vezmo-Version: 2026-11-14"

GET /transfer-requests/{id} returns one (trq_…).

Cancel — POST /transfer-requests/{id}/cancel

Only while it is pending_approval; after a decision, 409 not_cancelable “This request was already decided.” Cancelling one already cancelled returns it unchanged (200). Idempotency-Key is optional.

An agent key cancels only its own requests; another key's gives 403 key_type_not_allowed“An agent key can only cancel its own requests.”

When a key stops, what it asked for is withdrawn: if the key is switched off, revoked or deleted, or loses transfers.request, its requests still pending_approval become canceled (transfer_request.canceled). One that loses recipients.write withdraws its recipients the same way (recipient.archived).

Request
curl -X POST https://api.vezmo.com/api/v1/transfer-requests/trq_cm3w4a2cc000b/cancel \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Vezmo-Version: 2026-11-14"

Events

transfer_request.created, .approved, .rejected, .expired, .canceled and .failed, then the transfer's own transfer.* events. See Events.