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:

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" }

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:

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:

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