Methods and templates
Payment methods do not share a field set. A card method wants a card number; a bank transfer wants an IBAN
and a BIC; some regional methods want a tax id. So there is no fixed "recipient" object in this API —
instead you ask the method what it needs, collect exactly those fields, and store them as a payout
template (template_id). Payout requests then reference the template rather than repeating recipient
details.
The same three steps exist for a person you provision yourself — the endpoints then live under
/payment-requests/v1/users/{uid} and store the template on that person's own wallet. The mechanics are
identical, so read this page first and then System users for what differs.
Call order
| Call | What you get |
|---|---|
GET /payment-requests/v1/payment-methods |
The payment_method_id values your company wallet may use |
POST /payment-requests/v1/payment-methods/fields |
The exact fields that method wants from the recipient |
POST /payment-requests/v1/templates |
The template_id a payout request is sent to |
Run those three once per recipient and payment method. The listing, read and delete calls in step 5 are management — you call them while maintaining templates, not on the way to a payout. Paying to the template is the next page: Single and bulk requests.
1. List the methods you can use
curl "$BASE_URL/payment-requests/v1/payment-methods?region=cyprus¤cy=USD" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Accept: application/json"
The list contains only methods enabled for the partner API on the company wallet resolved from region
and currency. It is ordered by category, not by name or id, and it is not paginated — the whole
list arrives at once. Each entry carries:
| Field | What it is |
|---|---|
id |
What you send as payment_method_id |
name |
Display name, always English — Accept-Language and ?lang are ignored. null when the method has no English translation |
category |
Grouping key the list is ordered by — bank, card, and so on |
is_fast |
Whether the method is a fast one |
min_amount · max_amount |
Limits of one payout, null when the method has none |
commission |
Fee tiers, smallest amount first. percent_fee is a fraction: "0.03" is 3% |
2. Ask the method for its fields
curl -X POST "$BASE_URL/payment-requests/v1/payment-methods/fields" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"region": "cyprus",
"currency": "USD",
"payment_method_id": 12
}'
The response is keyed by field name, and those keys are exactly what you send as identity:
{
"data": {
"country": {
"type": "select",
"title": "Country",
"help_text": null,
"dynamic": false,
"options": { "DE": "Germany", "FR": "France" }
},
"iban": {
"type": "text",
"title": "IBAN",
"help_text": null,
"dynamic": false,
"is_uppercase": true
}
}
}
Not every field carries every key — the missing ones are absent, not null, so read them with a
presence check:
| Key | When it is there | What it means |
|---|---|---|
type |
always | Input type of the field |
title |
always | Label to show the user, always English — the request language is not read |
help_text |
always | Hint, null when there is none |
dynamic |
always | Options depend on other identity values — see below |
options |
fields with a fixed set of values | Object value → label, and you send the key |
is_uppercase |
text fields | The value is stored upper-cased |
3. Dynamic fields
A field marked dynamic has options that depend on values already chosen — a bank list narrowed by
country, for example. Send what you have in identity and call the endpoint again to get the narrowed
set:
curl -X POST "$BASE_URL/payment-requests/v1/payment-methods/fields" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"region": "cyprus",
"currency": "USD",
"payment_method_id": 12,
"identity": { "country": "DE" }
}'
Treat this as a loop: fetch fields → collect values → fetch again if any remaining field is dynamic. Do not hardcode field names per method; they change when a provider changes its requirements.
4. Create a template
curl -X POST "$BASE_URL/payment-requests/v1/templates" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"region": "cyprus",
"currency": "USD",
"payment_method_id": 12,
"title": "Supplier — main account",
"identity": {
"iban": "DE89370400440532013000",
"bic": "COBADEFFXXX"
}
}'
identityis validated by the method's own field rules; invalid values come back as422.- Keys that are not fields of the method are ignored, not rejected.
titleis yours, up to 45 characters.
The response contains the id you will pass as template_id when creating payout requests.
Creating is idempotent by identity. The same details sent twice return the same template with 200
instead of 201, so a retry after a lost response is safe and you need no deduplication of your own. Match
any 2xx rather than 201 exactly — and note that title of an existing template is overwritten by the one
you send, since it is the only field a repeat can change.
Idempotency does not reach a template you deleted: sending its details again creates a new template
with a new id and answers 201, and the deleted id stays 404. So delete-then-create is a real
replacement, not a way back to the same record — store the new id.
5. List, read and delete templates
curl "$BASE_URL/payment-requests/v1/templates?region=cyprus¤cy=USD&payment_method_id=12&per_page=25" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Accept: application/json"
Listing is paginated — per_page accepts 1 to 100 and defaults to 20, so ask for more explicitly if
you sync templates in bulk. region, currency and payment_method_id are all required: templates are
listed per method, not per company. Reading and deleting a single template use
/payment-requests/v1/templates/{id}.
Do not follow the URLs in links and meta.links. They carry page and nothing else, so the three
required parameters are gone and the request comes back 422 on region and currency. Page by number
instead: keep your own query string and increment page until it passes meta.last_page.
Reading and deleting share one rejection: 403 with code 12000 — the template's payment method is no
longer enabled for the partner API on that wallet. It is a property of the method, not of the template, so
another template on the same method will fail the same way; pick a method that
GET /payment-requests/v1/payment-methods still returns.
Stale template data surfaces later, when you try to pay: calculate and single answer 403 with 12011
if the stored identity no longer passes the method's current validation, and 12012 if the account's KYC
is not verified. Template endpoints themselves do not return those two codes.
With a template_id in hand the flow continues in
Single and bulk requests — calculating, then paying one template or fifty.
Where to go next
- Single and bulk requests — using a template to actually move money
- System users — the same three steps for a person you provision yourself
- Endpoints: Payout requests — methods, fields and templates with full schemas
- Errors — the full code list