Transfers API
Initiate single transfers programmatically. The API creates a payment and hands it to your workspace's approval flow — a manager or legal representative reviews and approves it in the Manza app. The API never moves money on its own: an API key alone cannot execute a transfer.
How it works#
POST /api/paymentsvalidates the payload and creates a payment inrequestedstatus. The workspace's managers and legal representatives are notified and the payment appears in their approval queue.- An approver reviews the payment in the app and authorizes it there (protected by their own two-factor step). Execution then follows the same path as any web-initiated transfer — settlement, audit trail, and webhooks behave identically.
- Poll
GET /api/payments/:id(or subscribe to thetransfer.executedwebhook) to follow the lifecycle:requested→processing→completed/failed.
The recipient is either a saved beneficiary (beneficiary_id, see Beneficiaries) or one of your own accounts (destination_account_id) for internal moves. Scheduled, recurring, and bulk transfers are not available via the API.
release_api_transfers feature flag on your workspace. Contact support to enable it.Required scopes#
| Endpoint | Scope |
|---|---|
| Initiate a transfer | transfers:write |
| Get a payment | transfers:read |
| Authorize / decline a transfer (separate key) | transfers:authorize |
| List / Get beneficiaries and bank accounts | beneficiaries:read |
| Create beneficiaries / bank accounts | beneficiaries:write |
| Request trust for payees | beneficiaries:request_trust |
The member who created the API key must also hold the payments:create permission — the payment is created on their behalf and they appear as the requester in the approval queue and the audit trail.
Payment object#
While approval is outstanding the status is requested and transfer is null. Once approved and executed, the payment carries the transfer's id and status.
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier (UUIDv7) |
status | string | requested while it awaits approval, then processing, completed or failed. An approver can reschedule or edit it in the app, so any other payment status can also appear. |
amount | string | Decimal amount, in the account's currency |
currency_code | string | ISO 4217 code of the source account |
payment_reference | string | null | Reference the recipient sees |
client_reference | string | null | Your own id, as sent on create |
transfer_method | string | null | The rail the transfer goes on: standard or instant. It is the one sent on create, or standard when left out. |
account_id | string | The account the money leaves from |
beneficiary_id | string | null | The beneficiary, for an external transfer |
external_account_id | string | null | The beneficiary's bank account it goes to |
destination_account_id | string | null | Your own account, for an own-account transfer |
transfer | object | null | The executed transfer's id and status; null until it executes |
authorization | object | null | The latest machine-authorization challenge; null when no transfer authorizer was enrolled, or the feature was off, when the payment was created |
created_at | string | ISO 8601 timestamp |
updated_at | string | ISO 8601 timestamp |
{
"id": "01964a3b-1a2b-7000-8000-feed00000042",
"status": "completed",
"amount": "1500.00",
"currency_code": "MAD",
"payment_reference": "INV000042",
"client_reference": null,
"transfer_method": "standard",
"account_id": "01964a3b-0000-7000-8000-ac6000000a01",
"beneficiary_id": "01964a3b-5e6f-7000-8000-beef00000001",
"external_account_id": "01964a3b-7a8b-7000-8000-beef00000002",
"destination_account_id": null,
"transfer": {
"id": "01964a3b-3c4d-7000-8000-feed00000043",
"status": "accepted"
},
"authorization": null,
"created_at": "2026-07-16T09:00:00Z",
"updated_at": "2026-07-16T10:41:30Z"
}List beneficiaries#
GET /api/beneficiaries
Directory of your saved recipients, used to resolve the beneficiary_id for a transfer. Each beneficiary embeds its bank accounts; when a transfer names only the beneficiary, the account marked default is used. Create recipients through the API below or in the dashboard. Recipients created by a bulk payment file are listed too, and can be paid and given bank accounts like any other. Cursor pagination as elsewhere (limit 1–100, default 25). GET /api/beneficiaries/:id fetches one.
curl "https://ma.manza.dev/api/beneficiaries" \
-H "Authorization: Bearer sk_live_..."manza beneficiaries listimport { Manza } from "@getmanza/sdk";
const manza = new Manza({ apiKey: process.env.MANZA_API_KEY });
await manza.beneficiaries.list();require "manza"
manza = Manza.new(api_key: ENV["MANZA_API_KEY"])
manza.beneficiaries.listfrom manza import Manza
client = Manza() # reads MANZA_API_KEY
client.beneficiaries.list()import manza "github.com/getmanza/manza-go/v2"
client, _ := manza.New(manza.WithAPIKey(os.Getenv("MANZA_API_KEY")))
page, err := client.Beneficiaries.List(ctx, manza.ListParams{})let client = manza::Client::builder()
.api_key(std::env::var("MANZA_API_KEY")?)
.build()?;
let page = client.beneficiaries().list(Default::default())?;{:ok, client} = Manza.new(api_key: System.fetch_env!("MANZA_API_KEY"))
{:ok, page} = Manza.Beneficiaries.list(client)require "manza"
client = Manza::Client.new # reads MANZA_API_KEY
page = client.beneficiaries.listuse Manza\Client;
$client = new Client(apiKey: getenv('MANZA_API_KEY'));
$page = $client->beneficiaries->list();{
"data": [
{
"id": "01964a3b-5e6f-7000-8000-beef00000001",
"name": "Acme Supplies Ltd",
"beneficiary_type": "company",
"email": "billing@acme.example",
"phone_number": null,
"external_accounts": [
{
"id": "01964a3b-7a8b-7000-8000-beef00000002",
"name": "Acme Main",
"account_number": "62000003592",
"bank_identifier": "410105",
"currency_code": "MAD",
"default": true,
"trusted": true
}
],
"created_at": "2026-05-02T10:15:00Z"
}
],
"has_more": false,
"next_cursor": null
}Create a beneficiary#
POST /api/beneficiaries
Requires beneficiaries:write, the release_api_transfers feature enabled for your workspace, and the API key creator's current permission to create beneficiaries. Existing read-only keys do not gain write access automatically.
Send person_name for an individual or company_name for a business. The type is inferred when only one name is supplied. If sending both names, specify beneficiary_type (individual or business). Optional: email, phone_number.
Returns 201 with the beneficiary id, name, beneficiary_type, contact fields, created_at, and an empty external_accounts array. Save the id for the next request. Invalid identity fields return 422; missing scope, feature access or member permission returns 403. Both creation endpoints share a limit of 10 creation requests per minute per API key; exceeding it returns 429. Send field values as JSON strings; invalid value types return 400.
curl -X POST "https://ma.manza.dev/api/beneficiaries" \
-H "Authorization: Bearer sk_live_..." \
-H "Content-Type: application/json" \
-d '{"company_name":"Supplier Ltd","email":"accounts@example.com"}'Add a bank account#
POST /api/beneficiaries/:beneficiary_id/external_accounts
Requires beneficiaries:write, the release_api_transfers feature enabled for your workspace, and the API key creator's current permission to create external accounts. The beneficiary must belong to the same workspace and be unarchived, including one created by a bulk payment file. An unavailable beneficiary returns 404.
Send account_number; ZA also requires bank_identifier as a six-digit branch code. In Morocco, send the full 24-digit RIB as account_number and omit bank_identifier; supplying that field returns 422 because the bank identifier is derived from the RIB. Account numbers need at least six digits; spaces and hyphens are normalized. Letters and wallet phone numbers are rejected. Existing market-specific RIB and name validation applies.
Optional: name (account-holder name, defaults to the beneficiary name), country_code and currency_code (default to this deployment's market and configured currency). The account-holder name must be 2–64 characters. If the beneficiary name falls outside those limits, supply a valid name explicitly. Only bank accounts are supported: omit account_type or set it to bank. Use strings for account numbers and branch codes to preserve leading zeroes.
Returns 201 with id, name, account_number, bank_identifier, currency_code, default and trusted, matching the embedded account in the beneficiary response. The first account becomes the default; adding another does not replace it. Invalid or duplicate bank details return 422; a duplicate names the beneficiary that already holds the account, which GET /api/beneficiaries lists. No bank ownership verification is implied by creation.
Pass the beneficiary id and returned account id as beneficiary_id and external_account_id to POST /api/payments. An approver approves the payment in the app, unless it qualifies for transfer authorization. These creation endpoints do not provide request idempotency; inspect saved recipients after a timeout before resubmitting using the read endpoints below.
curl -X POST "https://ma.manza.dev/api/beneficiaries/01964a3b-5e6f-7000-8000-beef00000001/external_accounts" \
-H "Authorization: Bearer sk_live_..." \
-H "Content-Type: application/json" \
-d '{"name":"Supplier Ltd","account_number":"007810000102300012345697","country_code":"MA","currency_code":"MAD"}'List bank accounts#
GET /api/beneficiaries/:beneficiary_id/external_accounts
Requires beneficiaries:read and release_api_transfers. Returns the beneficiary's unarchived accounts using the standard data, has_more and next_cursor pagination envelope. Use limit and cursor to page through results. Accounts belong to the authenticated workspace; an unavailable beneficiary returns 404.
Get a bank account#
GET /api/beneficiaries/:beneficiary_id/external_accounts/:id
Requires beneficiaries:read and release_api_transfers. Returns an account object whose fields match the accounts included in beneficiary responses. trusted is true when these exact bank details are trusted for transfer authorization; a transfer to them still has to fit the authorizer's currency and limits. The account must belong to the specified beneficiary in your workspace. An unavailable beneficiary or account returns 404.
Initiate a transfer#
POST /api/payments
Required: account_id, amount, and exactly one of beneficiary_id or destination_account_id. Optional: external_account_id (a specific bank account of the beneficiary), currency_code (must match the source account), payment_reference (in South Africa at most 18 characters, ASCII letters, numbers and spaces only; accented letters are not allowed; in Morocco at most 50 characters, and 32 or fewer is recommended), internal_notes, and client_reference (your own id, at most 128 characters and unique in your workspace; a repeat returns 409 with the existing transfer's payment_id). A successful response is 201 with the payment in requested status. An approver approves it in the app, or your enrolled endpoint approves it when it qualifies for transfer authorization.
transfer_method (optional) chooses the rail: standard, instant. Left out, the transfer goes on standard, the default rail. instant is capped per transfer and per day. The response returns the rail the transfer will go on, which is what a v2 authorization signs; any other value is refused with 422 validation_error on transfer_method.
| Value | Rail | Notes |
|---|---|---|
standard | Standard | The default: used when transfer_method is left out. |
instant | Instant | On a transfer to an account at another bank: up to 10 000,00 MAD per transfer, 10 000,00 MAD a day and 3 instant transfers a day per account. |
Creating a payment never returns plan_limit_reached: your plan's outgoing-transfer cap is checked when the transfer executes, so it is the authorize call, or the approver in the app, that meets it. An own-account transfer never counts toward that cap.
curl -X POST "https://ma.manza.dev/api/payments" \
-H "Authorization: Bearer sk_live_..." \
-H "Content-Type: application/json" \
-d '{
"account_id": "01964a3b-0000-7000-8000-ac6000000a01",
"beneficiary_id": "01964a3b-5e6f-7000-8000-beef00000001",
"amount": "1500.00",
"payment_reference": "INV000042",
"transfer_method": "standard"
}'manza transfers create --account-id 01964a3b-0000-7000-8000-ac6000000a01 \
--beneficiary-id 01964a3b-5e6f-7000-8000-beef00000001 --amount 1500.00 --payment-reference "INV000042"import { Manza } from "@getmanza/sdk";
const manza = new Manza({ apiKey: process.env.MANZA_API_KEY });
await manza.payments.create({
account_id: "01964a3b-0000-7000-8000-ac6000000a01",
beneficiary_id: "01964a3b-5e6f-7000-8000-beef00000001",
amount: "1500.00",
payment_reference: "INV000042",
transfer_method: "standard",
});require "manza"
manza = Manza.new(api_key: ENV["MANZA_API_KEY"])
manza.payments.create(
account_id: "01964a3b-0000-7000-8000-ac6000000a01",
beneficiary_id: "01964a3b-5e6f-7000-8000-beef00000001",
amount: "1500.00",
payment_reference: "INV000042",
transfer_method: "standard"
)from manza import Manza
client = Manza() # reads MANZA_API_KEY
client.payments.create(
account_id="01964a3b-0000-7000-8000-ac6000000a01",
beneficiary_id="01964a3b-5e6f-7000-8000-beef00000001",
amount="1500.00",
payment_reference="INV000042",
transfer_method="standard",
)import manza "github.com/getmanza/manza-go/v2"
client, _ := manza.New(manza.WithAPIKey(os.Getenv("MANZA_API_KEY")))
payment, err := client.Payments.Create(ctx, manza.Attributes{
"account_id": "01964a3b-0000-7000-8000-ac6000000a01",
"beneficiary_id": "01964a3b-5e6f-7000-8000-beef00000001",
"amount": "1500.00",
"payment_reference": "INV000042",
"transfer_method": "standard",
})let client = manza::Client::builder()
.api_key(std::env::var("MANZA_API_KEY")?)
.build()?;
let payment = client.payments().create(&serde_json::json!({
"account_id": "01964a3b-0000-7000-8000-ac6000000a01",
"beneficiary_id": "01964a3b-5e6f-7000-8000-beef00000001",
"amount": "1500.00",
"payment_reference": "INV000042",
"transfer_method": "standard",
}))?;{:ok, client} = Manza.new(api_key: System.fetch_env!("MANZA_API_KEY"))
{:ok, payment} =
Manza.Payments.create(client, %{
"account_id" => "01964a3b-0000-7000-8000-ac6000000a01",
"beneficiary_id" => "01964a3b-5e6f-7000-8000-beef00000001",
"amount" => "1500.00",
"payment_reference" => "INV000042",
"transfer_method" => "standard"
})require "manza"
client = Manza::Client.new # reads MANZA_API_KEY
payment = client.payments.create(
account_id: "01964a3b-0000-7000-8000-ac6000000a01",
beneficiary_id: "01964a3b-5e6f-7000-8000-beef00000001",
amount: "1500.00",
payment_reference: "INV000042",
transfer_method: "standard"
)use Manza\Client;
$client = new Client(apiKey: getenv('MANZA_API_KEY'));
$payment = $client->payments->create([
'account_id' => '01964a3b-0000-7000-8000-ac6000000a01',
'beneficiary_id' => '01964a3b-5e6f-7000-8000-beef00000001',
'amount' => '1500.00',
'payment_reference' => 'INV000042',
'transfer_method' => 'standard',
]);{
"id": "01964a3b-1a2b-7000-8000-feed00000042",
"status": "requested",
"amount": "1500.00",
"currency_code": "MAD",
"payment_reference": "INV000042",
"client_reference": null,
"transfer_method": "standard",
"account_id": "01964a3b-0000-7000-8000-ac6000000a01",
"beneficiary_id": "01964a3b-5e6f-7000-8000-beef00000001",
"external_account_id": "01964a3b-7a8b-7000-8000-beef00000002",
"destination_account_id": null,
"transfer": null,
"authorization": null,
"created_at": "2026-07-16T09:00:00Z",
"updated_at": "2026-07-16T09:00:00Z"
}Get a payment#
GET /api/payments/:id
Poll a payment's status while it moves through approval and execution. Only payments created through the API are visible here — transfers initiated in the dashboard are not.
authorization is the latest machine-authorization challenge, with its id, status, expires_at and refusal_reason. A payment that did not qualify has one with status refused and a reason such as untrusted_payee (see why a transfer goes to the approvers). It is null when no transfer authorizer was enrolled, or the feature was off, when the payment was created. client_reference is the id you sent on create.
curl "https://ma.manza.dev/api/payments/01964a3b-1a2b-7000-8000-feed00000042" \
-H "Authorization: Bearer sk_live_..."manza transfers get 01964a3b-1a2b-7000-8000-feed00000042import { Manza } from "@getmanza/sdk";
const manza = new Manza({ apiKey: process.env.MANZA_API_KEY });
await manza.payments.get("01964a3b-1a2b-7000-8000-feed00000042");require "manza"
manza = Manza.new(api_key: ENV["MANZA_API_KEY"])
manza.payments.get("01964a3b-1a2b-7000-8000-feed00000042")from manza import Manza
client = Manza() # reads MANZA_API_KEY
client.payments.get("01964a3b-1a2b-7000-8000-feed00000042")import manza "github.com/getmanza/manza-go/v2"
client, _ := manza.New(manza.WithAPIKey(os.Getenv("MANZA_API_KEY")))
payment, err := client.Payments.Get(ctx, "01964a3b-1a2b-7000-8000-feed00000042")let client = manza::Client::builder()
.api_key(std::env::var("MANZA_API_KEY")?)
.build()?;
let payment = client.payments().get("01964a3b-1a2b-7000-8000-feed00000042")?;{:ok, client} = Manza.new(api_key: System.fetch_env!("MANZA_API_KEY"))
{:ok, payment} = Manza.Payments.get(client, "01964a3b-1a2b-7000-8000-feed00000042")require "manza"
client = Manza::Client.new # reads MANZA_API_KEY
payment = client.payments.get("01964a3b-1a2b-7000-8000-feed00000042")use Manza\Client;
$client = new Client(apiKey: getenv('MANZA_API_KEY'));
$payment = $client->payments->get('01964a3b-1a2b-7000-8000-feed00000042');{
"id": "01964a3b-1a2b-7000-8000-feed00000042",
"status": "completed",
"amount": "1500.00",
"currency_code": "MAD",
"payment_reference": "INV000042",
"client_reference": null,
"transfer_method": "standard",
"account_id": "01964a3b-0000-7000-8000-ac6000000a01",
"beneficiary_id": "01964a3b-5e6f-7000-8000-beef00000001",
"external_account_id": "01964a3b-7a8b-7000-8000-beef00000002",
"destination_account_id": null,
"transfer": {
"id": "01964a3b-3c4d-7000-8000-feed00000043",
"status": "accepted"
},
"authorization": null,
"created_at": "2026-07-16T09:00:00Z",
"updated_at": "2026-07-16T10:41:30Z"
}Error responses#
| Scenario | Status | Type | Param |
|---|---|---|---|
| Unknown account, beneficiary or destination account | 422 | validation_error | account_id / beneficiary_id / destination_account_id |
| Unknown external_account_id for the beneficiary | 422 | validation_error | external_account_id |
| Beneficiary has no bank account on file | 422 | validation_error | beneficiary_id |
| Both or neither recipient field given | 422 | validation_error | beneficiary_id |
| Amount ≤ 0 or not a number | 422 | validation_error | amount |
| currency_code differs from the source account's | 422 | validation_error | currency_code |
| client_reference not a string, or longer than 128 characters | 422 | validation_error | client_reference |
| The payment fails a model validation, such as a payment_reference the market cannot send | 422 | validation_error | payment_reference |
| transfer_method not one of standard, instant | 422 | validation_error | transfer_method |
| instant amount over the rail's cap | 422 | validation_error | amount |
| Amount exceeds available balance | 422 | insufficient_funds | — |
| The payment could not be routed for approval | 422 | state_error | — |
| client_reference already used | 409 | duplicate_client_reference | client_reference |
| Manza-Version names a version that does not exist | 400 | invalid_version | — |
| Body is not valid JSON (refused before the API, without this error envelope) | 400 | — | — |
| Missing or invalid API key | 401 | authentication_error | — |
| Key lacks transfers:write (create) or transfers:read (get) | 403 | insufficient_scope | — |
| Key's creator may not create payments | 403 | forbidden_error | — |
| API transfers not enabled | 403 | forbidden_error | — |
| GET a payment that does not exist or was not created through the API | 404 | not_found_error | — |
| Initiation rate limit exceeded | 429 | rate_limit_error | — |