Payouts and transfers
Everything under /payments/v2 moves money out of one of your company wallets. Which wallet is never
passed explicitly — you name a region and a currency, and the API resolves the matching active
company wallet. If no wallet matches, the request is refused with 403 and code 11000.
| Region | Currencies accepted by POST /payments/v2/payout |
|---|---|
cyprus |
USD, EUR |
garna-cy |
USD, EUR |
Both currencies pass validation everywhere — transaction export, payment methods, payout templates,
batches — and a pair with no wallet behind it is refused with 403 and code 11000. Which pairs your
company actually has depends on its wallets: ask us if you are unsure rather than probing for them.
Call order
| Call | What you get |
|---|---|
POST /payments/v2/payout |
The payout, with a status and an err_msg per recipient |
GET /payments/v2/status |
The current state of that request_id — poll it |
GET /payments/v2/company/positions |
The position_id values an employee payment requires |
POST /payments/v2/employee-payments |
A transfer to an existing account, or an invitation |
GET /payments/v2/transactions/export |
A CSV of what actually left the wallet |
These are two independent flows, not one sequence: the first two rows pay recipient wallets by number, the next two pay an employee by email. The export answers a different question — reconciliation — and belongs to neither.
sequenceDiagram
participant C as Your backend
participant A as Garna API
C->>A: POST /payments/v2/payout
A-->>C: created payout, one status per recipient
loop until the status is final
C->>A: GET /payments/v2/status
A-->>C: 1 process, 2 success or 3 error
end
Creating a payout
One request pays out to up to 50 recipient wallets:
curl -X POST "$BASE_URL/payments/v2/payout" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"request_id": "partner-payout-2026-07-31-0001",
"region": "cyprus",
"currency": "USD",
"data": [
{
"wallet": "4200123456",
"amount": "150.00",
"description": "July revenue share",
"custom_id": "invoice-8842"
}
]
}'
Rules worth knowing before the first call:
request_idis yours and must be unique, 16–255 characters. Reusing one is rejected with422. That uniqueness is the guard against double payouts — there is no idempotent replay. Here the scope is global, not per company: a value another integration already used is refused too, so prefix your identifiers with something of your own. (Under/payment-requests/v1the scope is your company.)- Send amounts as strings. They are parsed as decimals; JSON floats lose precision on values like
0.07. Minimum is0.01. - Recipient wallets must be active and belong to the same subaccountant as the company wallet resolved
from
regionandcurrency. A wallet from another region will not validate. - Some integrations may only pay their own network. This is switched on per OAuth client, and when it
is on, every recipient must belong to a user of the same network (MCN) as your company. The check covers
the request as a whole, so one foreign recipient refuses the entire payout with
403and code11001— no partial payout happens, and nothing is created. If your integration has it enabled, filter recipients on your side before sending. This is the one rejection here that is neither a validation error nor a balance problem. Besides this endpoint it applies toPOST /payments/v2/employee-payments, which addresses its recipient by email; batches and templates pay out to a template of your own company wallet, so there is no foreign recipient to refuse there. The deprecatedPOST /paymentscarries the same recipient wallets and is refused the same way. custom_idis echoed back on the resulting transaction, so use it to match payouts to your own records.dateis optional and defaults to now.
Reading the result
Payouts are processed while the request is open, so the response already carries the outcome — and it is
201 whether the payout succeeded or was refused, because the code describes the record that was
created, not the fate of the money:
{
"data": {
"id": 15832,
"request_id": "partner-payout-2026-07-31-0001",
"status": 2,
"err_msg": null
}
}
status |
Meaning | What to do |
|---|---|---|
1 |
Still processing | Only seen if the request was interrupted mid-flight — poll the status endpoint |
2 |
Success | Done — transactions are attached |
3 |
Failed | Read err_msg and see Errors |
On this response err_msg comes as a number; the status endpoint below returns the same code as a
string. Cast before comparing.
Poll with:
curl "$BASE_URL/payments/v2/status?request_id=partner-payout-2026-07-31-0001" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Accept: application/json"
After a timeout, the status endpoint tells you what happened: 200 means the payout exists — read its
status; 422 on request_id means it was never created and you may send it again with the same
request_id; 404 means a payout with that identifier belongs to another client or payout type.
Successful payouts carry their transactions, each with your custom_id and an invoice_path you can
download. Every paid recipient produces two of them — the debit from your company wallet and the
credit to the recipient — and both carry the same custom_id. So a custom_id identifies a pair, never
a single transaction, and a payout to 10 recipients comes back with 20 entries.
Paying an employee by email
POST /payments/v2/employee-payments pays a person rather than a wallet, and the outcome depends on
whether that email already has a Garna account:
{ "status": "completed", "email": "employee@example.com" }
completed— the account exists and the money has been transferred.pending— no account yet; an invitation was created and the transfer happens once it is accepted.
sum is at least 1 and may not exceed the real balance of the resolved company wallet — the
balance without credit, the same real_balance you see on a wallet. position_id must be one of your
company's positions; list them with GET /payments/v2/company/positions.
sequenceDiagram
participant C as Your backend
participant A as Garna API
C->>A: GET /payments/v2/company/positions
A-->>C: positions, their id goes in position_id
C->>A: POST /payments/v2/employee-payments
A-->>C: completed, or pending with an invitation created
One rejection here is not about money: an email another company has already invited comes back as 422
on email. Invitations belong to the company that sent them, so an address claimed elsewhere cannot be
paid through your integration until that invitation is gone. Repeating an address you invited is fine.
Send request_id here too. It is optional on this endpoint — the only one where it is — but without it
a retry after a timeout pays a second time, and there is nothing to look the first attempt up by. With it a
repeat answers 422 and the payment is readable through GET /payments/v2/status:
| Status | What it means here |
|---|---|
2 |
The account existed and the money moved |
1 |
An invitation is waiting to be accepted; money moves on acceptance, and that transition does not change this status |
Revoking every role of a person
POST /payments/v2/employees/roles/revoke takes an email and strips that person of all their
roles — both roles inside companies and roles in the Garna admin panel. The answer lists what was
actually removed:
{
"data": {
"email": "employee@example.com",
"revoked_roles": ["accountant", "admin"]
}
}
revoked_roles holds the machine names of the roles that were removed, without duplicates — one role
may have been assigned in several companies, and what matters is that it is gone.
Only a person of your own network (MCN) can be addressed. An email from another network answers
404 — the same answer as an email with no account at all. The two are deliberately
indistinguishable, so the endpoint cannot be used to find out which addresses are registered.
The scope of the operation is the person, not the company. Roles are removed everywhere that person held them, including companies other than the one your token belongs to, and in the admin panel.
The permissions stop applying at once — the very next request that person makes no longer carries them. Their active sessions inside the company are marked revoked on top of that, so when their client refreshes the token they land back in their personal account instead of the company. They are notified by email and push. Roles in the admin panel are removed without a notification.
Safe to retry. A repeat answers 200 with an empty revoked_roles, sends nothing and removes
nothing — there is no «already revoked» error to special-case:
{ "data": { "email": "employee@example.com", "revoked_roles": [] } }
The same empty answer means «this person had no roles», so a successful call never needs to be distinguished from a no-op.
Exporting transactions
GET /payments/v2/transactions/export returns a CSV file, not JSON: text/csv; charset=UTF-8,
attached as transactions.csv, comma-separated with every value quoted. One header row, then one row per
transaction of the resolved company wallet:
| Column | What it holds |
|---|---|
Transaction Date |
When the transaction was created, Y-m-d H:i:s in UTC |
Title |
Generated line naming the counterparty, for example Payout to user Anna Schmidt |
Description (Status) |
The description you sent on the payout, or a status line for other transaction types |
Amount, $ |
Signed decimal — negative when money left the wallet. The symbol in the heading follows the wallet currency |
Custom ID |
Your custom_id, empty for transactions created outside the partner API |
Type |
API for transactions created through this API, Manual for the rest |
Column headings are fixed English strings; match them literally rather than by position. Note that a payout appears here as one row, not two: the export covers the company wallet you asked for, and the matching credit belongs to the recipient's wallet. The pair is visible in the payout response, not in this file. Pick the period one of two ways:
period— a keyword:day,week,two-weeks,month,quarter. An unknown keyword answers404.period_date— an explicit range with named keys:period_date[starts_at]=2026-07-01&period_date[ends_at]=2026-07-31, spanning at most one month. A positional list (period_date[]=…) fails validation with422— both keys are required by name.
Sending neither exports the wallet's entire history, not the last month. There is no default window, so always pass a period unless you genuinely want everything.
amount_type filters by direction: all, positive (positive and zero), or negative.
Legacy /payments
The older endpoints without /v2 remain for existing integrations. New integrations should use
/payments/v2. Differences that matter if you still run on v1:
- No
regionorcurrency— money always leaves the company's Cyprus USD wallet. - No
custom_id, on the request or on the returned transactions. - Minimum amount is
0, not0.01. POST /payments/debitmoves money the other way, from recipient wallets into your company wallet. It is enabled per client (403with code5000otherwise), and every listed wallet must belong to a user of the same network (MCN) as your company — anything else fails validation with422.
GET /payments and GET /payments/v2/status look up the same payouts, so a v1 integration can be
migrated endpoint by endpoint.
Where to go next
- Endpoints: Payouts — every
/payments/v2call with field tables and snippets - Endpoints: Legacy payouts — the v1 calls, including
debit - Errors — the codes a payout can come back with
- Single and bulk requests — the other way to pay, through payout templates
- System users — paying people you provision yourself, instead of existing accounts