Single and bulk requests
/payment-requests/v1 pays out through payout templates. This page continues the flow that
Methods and templates starts: there you list a payment method, ask it for its
fields and store a payout template; here you pay to that template. It is a different mechanism from
Payouts and transfers (/payments/v2), which pays directly to recipient wallet numbers.
One difference decides how you build the request:
| Single | Bulk | |
|---|---|---|
| Endpoint | POST /payment-requests/v1/single |
POST /payment-requests/v1/bulk |
region / currency |
Not sent — the wallet follows from the template | Required, together with payment_method_id |
| Entries | One | Up to 50, one payment method for the whole batch |
| Processing | Synchronous — the payment request comes back in the response | Asynchronous — poll afterwards |
Call order
A payout template is the prerequisite: Methods and templates covers the calls that come before these.
| Call | What you get |
|---|---|
GET /payment-requests/v1/calculate |
What leaves your balance and what the recipient receives |
POST /payment-requests/v1/single |
One payment request, already created in the response |
POST /payment-requests/v1/bulk |
The payout.id of a batch that is still being processed |
GET /payment-requests/v1/payout/{payoutId} |
Progress counters of that batch — bulk only, and you poll it |
GET /payment-requests/v1/status |
The outcome of one request_id, which is where a per-entry error appears |
single and bulk are alternatives, not consecutive steps. After single the payment request is in the
response, so the status call is only for later changes; after bulk you need both remaining calls, because
the progress of a batch says nothing about which entries failed.
End to end, from the token to a finished batch:
sequenceDiagram
participant C as Your backend
participant A as Garna API
C->>A: POST /oauth/token
A-->>C: access_token, valid for 180 minutes
C->>A: GET /payment-requests/v1/payment-methods
A-->>C: methods your company wallet may use
C->>A: POST /payment-requests/v1/payment-methods/fields
A-->>C: fields the method wants from the recipient
C->>A: POST /payment-requests/v1/templates
A-->>C: template_id
C->>A: GET /payment-requests/v1/calculate
A-->>C: withdraw, exchange and payment amounts
C->>A: POST /payment-requests/v1/bulk
A-->>C: payout.id of the accepted batch
loop until every entry is final
C->>A: GET /payment-requests/v1/payout/{payoutId}
A-->>C: counters of the batch
C->>A: GET /payment-requests/v1/status
A-->>C: one entry, with its own err_msg when it failed
end
1. Calculate first
Amount limits depend on the payment method, the currency conversion and the account balance, so calculate before you commit:
curl "$BASE_URL/payment-requests/v1/calculate?template_id=8842&amount=500" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Accept: application/json"
{
"withdraw": { "currency": "USD", "amount": "500.00", "fee": "5.00", "total_amount": "505.00" },
"exchange": { "currency": "EUR", "rate": "0.92", "amount": "460.00", "fee": "1.20", "total_amount": "500.00" },
"payment": { "currency": "EUR", "amount": "460.00", "fee": "1.20" }
}
withdraw is what leaves your balance and payment is what the recipient receives. The exchange key is
always present here — it is null when no conversion is involved. If the rate cannot be obtained, the call
fails with 400 and code 12020.
2. A single request
curl -X POST "$BASE_URL/payment-requests/v1/single" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"request_id": "partner-request-2026-07-31-0001",
"template_id": 8842,
"amount": "500",
"payment_purpose": "Service agreement 12/2026"
}'
request_idmust be unique within your company, 16–255 characters.payment_purposeis conditional, and it is the only extra field this endpoint takes: some methods require it, others reject it outright, and sending it to a method that rejects it fails validation. Other keys are ignored — recipient details live in the template, not in the request.- Amount limits are enforced here, not later. The method's minimum and maximum and your available
balance are checked as validation, so an amount outside the range comes back as
422with the limit in the message — not as12021/12022, which only ever appear per batch entry. - The response contains both
payout(the record grouping your requests) andpayment_requestwith the withdrawal. Itswithdraw.feeis the commission already charged — the valuecalculatereturned for the same template and amount, unless the method's fee settings changed in between. Otherwise thatpayment_requestis deliberately thin:exchangeandpaymentappear only once the payout reachessuccess, andtemplateis absent here — pollGET /payment-requests/v1/statusfor the full picture. payout.request_idis not therequest_idyou sent — it is Garna's own UUID for the umbrella record. Yours identifies the entry and is whatGET /payment-requests/v1/statustakes.
3. A batch
curl -X POST "$BASE_URL/payment-requests/v1/bulk" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"region": "cyprus",
"currency": "USD",
"payment_method_id": 12,
"payments": [
{ "request_id": "partner-batch-2026-07-31-0001", "template_id": 8842, "amount": "500" },
{ "request_id": "partner-batch-2026-07-31-0002", "template_id": 8843, "amount": "750" }
]
}'
Constraints that are easy to trip over:
- At most 50 entries, all for the same
payment_method_id. - Each
request_idunique within your company and within the batch. template_idvalues must not repeat inside one batch — pay one template once per batch.- Minimum amount per entry is
1. Unlikesingle, the method's own limits are not checked here — they are applied while the entry is processed and surface as12021/12022in itserr_msg. payment_purposeper entry is conditional, and the condition comes from the batch's singlepayment_method_id: required for methods that demand it, rejected by methods that do not support it. So it is either allowed for every entry in the batch or for none.- Your company's KYC must be verified, otherwise the whole batch is refused with
403and12012. Each entry is then checked again while it is processed, and there the bar is higher: KYC, a confirmed email and enabled two-factor authentication.
The response only confirms acceptance. Entries are created asynchronously and can fail individually —
a batch that returns 200 may still contain entries that never became payment requests.
4. Following up
Per entry, by your own identifier:
curl "$BASE_URL/payment-requests/v1/status?request_id=partner-batch-2026-07-31-0001" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Accept: application/json"
{
"data": {
"draft_payment_request": {
"id": 90211,
"request_id": "partner-batch-2026-07-31-0001",
"payout_id": 15901,
"status": 1,
"err_msg": null
},
"payment_request": null
}
}
status here is 1 success or 2 error — note that this is the opposite of a payout, where 2 means
success. On 2, err_msg holds the reason: 12010 unavailable template, 12011 invalid template data,
12012 account not allowed to withdraw (KYC, unconfirmed email or two-factor authentication switched
off), 12021 amount below the method's minimum, 12022 amount above the method's maximum or above the
available balance, 12020 failed exchange, 4000 an unhandled error on our side — the only one of
these worth retrying, and the one an entry also gets when the batch job exhausts its attempts.
payment_request is always in the body, and it is null until the withdrawal is created. An entry
that failed keeps it null for good, so status: 2 and payment_request: null always come together.
Once the withdrawal exists, the key carries it — with template, and with exchange and payment added
once the payout reaches success.
An unknown request_id answers 422; one belonging to another company answers 404.
This lookup is scoped to your company, not to your OAuth client. If you run several clients under one company, any of them can read any entry the others created. The batch endpoint below is the exception — it is scoped to the client, so a batch is only visible to the client that created it.
For the batch as a whole, use the payout.id you received when creating it:
curl "$BASE_URL/payment-requests/v1/payout/15901" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Accept: application/json"
{
"data": {
"id": 15901,
"status": 2,
"err_msg": null,
"payment_request_status_count": {
"requested": 48,
"pending": 2,
"completed": 46,
"not_created": 2
}
}
}
Read the counters precisely, because two of them are not what their names suggest:
| Counter | What it counts |
|---|---|
requested |
Payment requests created from the batch, whatever state they are in now |
pending |
Of those, still waiting for a final status |
completed |
Of those, in a final state — finished, not necessarily paid: successful, declined and provider-error requests all land here |
not_created |
Entries whose record was created and then marked as failed; their err_msg is readable through the status endpoint |
The batch's own status is not a money verdict. It has three values: 1 while processing is still
running, 2 when it finished, 3 when it gave up. Poll until it leaves 1. A 3 does not mean nothing
was paid — entries processed before the failure are already paid — and a 2 does not mean everything
succeeded, because individual entries carry their own err_msg. Always reconcile per entry, never on the
batch status alone.
Reconcile by your own request_id list, not by these counters either. If processing was interrupted before an
entry was recorded at all, it appears in none of the four counters and the status endpoint answers 422 for
it — that combination means "never created", and it is the only case where resending is correct.
Where to go next
- Endpoints: Payout requests — every call with field tables and snippets
- Methods and templates — creating the templates these requests pay to
- System users — the same single-request shape, paid from a system user's balance
- Errors — every code an entry can carry in
err_msg