System users /payment-requests/v1/users
/payment-requests/v1/users — provisioning your own end users, their verification, payout templates and money.
New to this part of the API? Start with the guide: System users
Create a system user
/payment-requests/v1/users
🔒 Partner token
Provisions an account for one of your own end users. Everything else in this group is addressed by
the uid this call returns.
Such an account cannot be signed into, cannot reset a password and receives no notifications from us — communication with the person stays yours. It belongs to your network (MCN): you do not pass one, it is taken from the company behind your token, and every OAuth client of that network reaches the user.
Creating is idempotent by email within your network. The same address sent twice returns the
same user with 200 instead of 201, which is what makes a retry after a lost response safe. An
address that belongs to any other account — including a system user of another network — is refused
with 409 and code 13000.
Limited to 60 requests per minute, counted per OAuth client and per IP address.
Body
| Field | Type | Description | |
|---|---|---|---|
email |
string (email) | required |
Real address of the person, unique across all accounts. Repeating an address already
provisioned in your network returns the same user; an address of any other account — including a
system user of another network — is refused with |
phone |
string | required |
Phone in international format. Not required to be unique. |
first_name |
string | required |
Given name of the person. Latin letters, apostrophe, hyphen and space only — digits,
Cyrillic and diacritics fail validation, whatever |
last_name |
string | required |
Family name of the person, under the same character restriction as |
country_id |
integer | required |
Country of the person — see |
birthday |
string (date) | required |
Date of birth as |
lang |
string |
Language of the account. Defaults to ru · en · es · pt · ar · th · vi
|
Example call
curl -X POST "$BASE_URL/payment-requests/v1/users" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"email": "end-user@example.com",
"phone": "+4915112345678",
"first_name": "Ivan",
"last_name": "Petrov",
"country_id": 82,
"birthday": "1990-05-17",
"lang": "en"
}'
const response = await fetch(`${baseUrl}/payment-requests/v1/users`, {
method: 'POST',
headers: {
Accept: 'application/json',
Authorization: `Bearer ${accessToken}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"email": "end-user@example.com",
"phone": "+4915112345678",
"first_name": "Ivan",
"last_name": "Petrov",
"country_id": 82,
"birthday": "1990-05-17",
"lang": "en"
}),
});
const data = await response.json();
import requests
response = requests.post(
f"{base_url}/payment-requests/v1/users",
headers={
"Accept": "application/json",
"Authorization": f"Bearer {access_token}",
},
json={
"email": "end-user@example.com",
"phone": "+4915112345678",
"first_name": "Ivan",
"last_name": "Petrov",
"country_id": 82,
"birthday": "1990-05-17",
"lang": "en"
},
)
data = response.json()
$client = new GuzzleHttp\Client();
$response = $client->request('POST', "{$baseUrl}/payment-requests/v1/users", [
'headers' => [
'Accept' => 'application/json',
'Authorization' => "Bearer {$accessToken}",
],
'json' => [
'email' => 'end-user@example.com',
'phone' => '+4915112345678',
'first_name' => 'Ivan',
'last_name' => 'Petrov',
'country_id' => 82,
'birthday' => '1990-05-17',
'lang' => 'en',
],
]);
$data = json_decode((string)$response->getBody(), true);
Responses
A user with this email already existed in your network and is returned unchanged
{
"data": {
"uid": "01K1ABCDEFGHJKMNPQRSTVWXYZ",
"email": "end-user@example.com",
"phone": "4915112345678",
"first_name": "Ivan",
"last_name": "Petrov",
"lang": "en",
"country_id": 82,
"kyc": {
"is_verified": false,
"identity_status": 3,
"document_status": 3,
"address_status": 3
},
"wallets": [
{
"number": "4200987654",
"region": "cyprus",
"currency": "USD",
"status": "ACTIVE",
"real_balance": "100.00"
}
]
}
}
19 fields
| Field | Type | Description |
|---|---|---|
data |
object | |
data.uid |
string |
Identifier of the system user, a ULID of 26 characters. Every other call addresses the user by this value. |
data.email |
string (email) | |
data.phone |
string | |
data.first_name |
string | |
data.last_name |
string | |
data.lang |
string | |
data.country_id |
integer | |
data.kyc |
object |
Identity verification of the system user, as our provider's webhooks leave it. |
data.kyc.is_verified |
boolean |
Whether the user has passed every verification step their network requires. |
data.kyc.identity_status |
integer |
Identity verification status: 1 · 2 · 3 · 4 · 5 · 6 · 7
|
data.kyc.document_status |
integer |
Status of the document step: 1 · 2 · 3 · 4
|
data.kyc.address_status |
integer |
Identity verification status: 1 · 2 · 3 · 4 · 5 · 6 · 7
|
data.wallets |
object[] |
Every wallet of the system user. Provisioning creates the internal ones; a regional wallet can
appear later and arrives inactive, and only an active wallet resolves for the endpoints below.
Pick the one you intend to use by |
data.wallets[].number |
string |
Wallet number of the system user. |
data.wallets[].region |
string |
Accounting region this wallet belongs to. cyprus · garna-cy
|
data.wallets[].currency |
string |
Currency of this wallet. USD · EUR
|
data.wallets[].status |
string |
PENDING · ACTIVE · CLOSE · WAITING
|
data.wallets[].real_balance |
string |
Funds available for a payout, always with two decimals. Credit is not part of it: system users get none, so this is the whole balance of the wallet. |
System user created
{
"data": {
"uid": "01K1ABCDEFGHJKMNPQRSTVWXYZ",
"email": "end-user@example.com",
"phone": "4915112345678",
"first_name": "Ivan",
"last_name": "Petrov",
"lang": "en",
"country_id": 82,
"kyc": {
"is_verified": false,
"identity_status": 3,
"document_status": 3,
"address_status": 3
},
"wallets": [
{
"number": "4200987654",
"region": "cyprus",
"currency": "USD",
"status": "ACTIVE",
"real_balance": "100.00"
}
]
}
}
19 fields
| Field | Type | Description |
|---|---|---|
data |
object | |
data.uid |
string |
Identifier of the system user, a ULID of 26 characters. Every other call addresses the user by this value. |
data.email |
string (email) | |
data.phone |
string | |
data.first_name |
string | |
data.last_name |
string | |
data.lang |
string | |
data.country_id |
integer | |
data.kyc |
object |
Identity verification of the system user, as our provider's webhooks leave it. |
data.kyc.is_verified |
boolean |
Whether the user has passed every verification step their network requires. |
data.kyc.identity_status |
integer |
Identity verification status: 1 · 2 · 3 · 4 · 5 · 6 · 7
|
data.kyc.document_status |
integer |
Status of the document step: 1 · 2 · 3 · 4
|
data.kyc.address_status |
integer |
Identity verification status: 1 · 2 · 3 · 4 · 5 · 6 · 7
|
data.wallets |
object[] |
Every wallet of the system user. Provisioning creates the internal ones; a regional wallet can
appear later and arrives inactive, and only an active wallet resolves for the endpoints below.
Pick the one you intend to use by |
data.wallets[].number |
string |
Wallet number of the system user. |
data.wallets[].region |
string |
Accounting region this wallet belongs to. cyprus · garna-cy
|
data.wallets[].currency |
string |
Currency of this wallet. USD · EUR
|
data.wallets[].status |
string |
PENDING · ACTIVE · CLOSE · WAITING
|
data.wallets[].real_balance |
string |
Funds available for a payout, always with two decimals. Credit is not part of it: system users get none, so this is the whole balance of the wallet. |
A missing, malformed or expired token gives {"message": "Unauthenticated."} with no numeric code.
Code 1000 appears only when the token is valid but no account is bound to the client.
{
"message": "Unauthenticated."
}
1 fields
| Field | Type | Description |
|---|---|---|
message |
string |
Numeric error code as a string — see the Errors guide. Rejections that happen before the
payment layer carry text instead ( |
A precondition failed. Which one is in the numeric code in message — the codes reachable here
depend on the endpoint, so read the operation's own description and the Errors guide rather than
assuming a fixed set. On any partner endpoint 2000 (the client's account is not a company) is
possible; endpoints that take region and currency add 11000 (no matching company wallet).
{
"message": "2000"
}
1 fields
| Field | Type | Description |
|---|---|---|
message |
string |
Numeric error code as a string — see the Errors guide. Rejections that happen before the
payment layer carry text instead ( |
The email belongs to an account that is not a system user of your network (13000) — an
ordinary Garna account, or a system user of another network.
{
"message": "13000"
}
1 fields
| Field | Type | Description |
|---|---|---|
message |
string |
Numeric error code as a string — see the Errors guide. Rejections that happen before the
payment layer carry text instead ( |
Field validation failed, including a reused request_id or an unknown one on status lookup
{
"message": "The request id has already been taken.",
"errors": {
"request_id": [
"The request id has already been taken."
]
}
}
2 fields
| Field | Type | Description |
|---|---|---|
message |
string |
The first failed message, not a generic sentence. When more than one field failed the
count is appended, singular or plural by the number: |
errors |
object |
Field name → list of messages. Field names match the keys you sent, dotted for arrays ( |
The rate limit was exceeded. Which limit depends on where the endpoint lives: /payments/* and
/oauth/* share one bucket of 300 requests per minute per IP address, while an endpoint of
/payment-requests/* that changes something is capped at 60 per minute per OAuth client and per IP,
on a counter shared with its siblings — see Overview.
The response carries Retry-After with the number of seconds to wait, plus X-RateLimit-Limit and
X-RateLimit-Remaining.
{
"message": "Too Many Attempts."
}
1 fields
| Field | Type | Description |
|---|---|---|
message |
string |
Human-readable reason. Carries no numeric code — these endpoints are not payment endpoints. |
Start identity verification of a system user
/payment-requests/v1/users/{uid}/kyc-start
🔒 Partner token
Opens a verification session with our provider and returns the page to send the person to. Both providers host that page.
The link expires — 30 minutes with one provider, sooner or later with another — so hand it over right away, and call this again when it goes stale.
Pass redirect_url to get the person back to you when they are done. It is optional; without it
they stay on the provider's final screen.
Calling again is safe and never changes a verification status. One caveat: the provider reuses an existing session only after its first webhook about this user has reached us, so a retry before that opens a new session. Concurrent calls for one user are serialized on our side.
There is no webhook to you: read the result from kyc of
GET /payment-requests/v1/users/{uid}.
Limited to 60 requests per minute, counted per OAuth client and per IP address.
Parameters
| Name | In | Type | Description | |
|---|---|---|---|---|
uid |
path | string | required | The system user's |
Body
| Field | Type | Description | |
|---|---|---|---|
redirect_url |
string (uri) |
Where the provider sends the person once they finish — the same address for a pass and for a
refusal, so read the outcome from With Didit it applies to a session being created: once a session exists for this user, its return address is fixed and a new value is ignored. |
Example call
curl -X POST "$BASE_URL/payment-requests/v1/users/<uid>/kyc-start" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Accept: application/json"
const response = await fetch(`${baseUrl}/payment-requests/v1/users/<uid>/kyc-start`, {
method: 'POST',
headers: {
Accept: 'application/json',
Authorization: `Bearer ${accessToken}`,
},
});
const data = await response.json();
import requests
response = requests.post(
f"{base_url}/payment-requests/v1/users/<uid>/kyc-start",
headers={
"Accept": "application/json",
"Authorization": f"Bearer {access_token}",
},
)
data = response.json()
$client = new GuzzleHttp\Client();
$response = $client->request('POST', "{$baseUrl}/payment-requests/v1/users/<uid>/kyc-start", [
'headers' => [
'Accept' => 'application/json',
'Authorization' => "Bearer {$accessToken}",
],
]);
$data = json_decode((string)$response->getBody(), true);
Responses
Verification session opened
{
"data": {
"provider": "didit",
"verification": {
"type": "verification_url",
"value": "https://verify.example.com/session/8f14e45fceea167a"
}
}
}
5 fields
| Field | Type | Description |
|---|---|---|
data |
object | |
data.provider |
string |
Verification provider the network is configured for. didit · sumsub
|
data.verification |
object |
Where to send the person. Both providers host the verification page themselves, so |
data.verification.type |
string |
What verification_url
|
data.verification.value |
string |
The page to open for the person. Expires; start again to get a fresh one. |
A missing, malformed or expired token gives {"message": "Unauthenticated."} with no numeric code.
Code 1000 appears only when the token is valid but no account is bound to the client.
{
"message": "Unauthenticated."
}
1 fields
| Field | Type | Description |
|---|---|---|
message |
string |
Numeric error code as a string — see the Errors guide. Rejections that happen before the
payment layer carry text instead ( |
Identity verification is not available for this system user (14000), a step your network
requires cannot be completed through this API (14002), or the client's account is not a
company (2000).
{
"message": "14000"
}
1 fields
| Field | Type | Description |
|---|---|---|
message |
string |
Numeric error code as a string — see the Errors guide. Rejections that happen before the
payment layer carry text instead ( |
The record is out of your reach, or the path parameter matches nothing. What "yours" means
depends on the endpoint, and the scopes do not coincide when a company runs several OAuth
clients: payouts (/payments*) and batch progress (/payment-requests/v1/payout/{id}) are
scoped to the OAuth client that created the record, payout requests
(/payment-requests/v1/status) and the company's payout templates are scoped to the
company, and everything addressed by {uid} is scoped to your network (MCN) — several
clients or company accounts of one network share the same system users. Each operation says which
one applies.
The body carries no numeric code and no detail about the record, so branch on the 404 status
alone — the text itself differs by where the request stopped: {"message": "Not found."} for a
record that was looked up and not found, an empty message when a {uid} resolved to nothing,
and the router's own sentence when a path parameter does not even match its format (a {uid}
that is not 26 characters, for instance).
{
"message": "Not found."
}
1 fields
| Field | Type | Description |
|---|---|---|
message |
string |
Human-readable reason. Carries no numeric code — these endpoints are not payment endpoints. |
Field validation failed, including a reused request_id or an unknown one on status lookup
{
"message": "The request id has already been taken.",
"errors": {
"request_id": [
"The request id has already been taken."
]
}
}
2 fields
| Field | Type | Description |
|---|---|---|
message |
string |
The first failed message, not a generic sentence. When more than one field failed the
count is appended, singular or plural by the number: |
errors |
object |
Field name → list of messages. Field names match the keys you sent, dotted for arrays ( |
The verification provider did not accept the request (14001) — a timeout, a dropped
connection or an error on their side. Reported internally, safe to retry.
{
"message": "14001"
}
1 fields
| Field | Type | Description |
|---|---|---|
message |
string |
Numeric error code as a string — see the Errors guide. Rejections that happen before the
payment layer carry text instead ( |
The rate limit was exceeded. Which limit depends on where the endpoint lives: /payments/* and
/oauth/* share one bucket of 300 requests per minute per IP address, while an endpoint of
/payment-requests/* that changes something is capped at 60 per minute per OAuth client and per IP,
on a counter shared with its siblings — see Overview.
The response carries Retry-After with the number of seconds to wait, plus X-RateLimit-Limit and
X-RateLimit-Remaining.
{
"message": "Too Many Attempts."
}
1 fields
| Field | Type | Description |
|---|---|---|
message |
string |
Human-readable reason. Carries no numeric code — these endpoints are not payment endpoints. |
Get a system user
/payment-requests/v1/users/{uid}
🔒 Partner token
The current state of one system user: profile, verification statuses and every wallet with the
funds available on it. System users of other networks are not visible — they answer 404, as does
a uid of an ordinary account.
This is also how you follow verification and money: we send no webhooks, so poll kyc after
starting verification, and read wallets[].real_balance to see funds arrive or return.
Parameters
| Name | In | Type | Description | |
|---|---|---|---|---|
uid |
path | string | required | The system user's |
Example call
curl "$BASE_URL/payment-requests/v1/users/<uid>" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Accept: application/json"
const response = await fetch(`${baseUrl}/payment-requests/v1/users/<uid>`, {
method: 'GET',
headers: {
Accept: 'application/json',
Authorization: `Bearer ${accessToken}`,
},
});
const data = await response.json();
import requests
response = requests.get(
f"{base_url}/payment-requests/v1/users/<uid>",
headers={
"Accept": "application/json",
"Authorization": f"Bearer {access_token}",
},
)
data = response.json()
$client = new GuzzleHttp\Client();
$response = $client->request('GET', "{$baseUrl}/payment-requests/v1/users/<uid>", [
'headers' => [
'Accept' => 'application/json',
'Authorization' => "Bearer {$accessToken}",
],
]);
$data = json_decode((string)$response->getBody(), true);
Responses
The system user
{
"data": {
"uid": "01K1ABCDEFGHJKMNPQRSTVWXYZ",
"email": "end-user@example.com",
"phone": "4915112345678",
"first_name": "Ivan",
"last_name": "Petrov",
"lang": "en",
"country_id": 82,
"kyc": {
"is_verified": false,
"identity_status": 3,
"document_status": 3,
"address_status": 3
},
"wallets": [
{
"number": "4200987654",
"region": "cyprus",
"currency": "USD",
"status": "ACTIVE",
"real_balance": "100.00"
}
]
}
}
19 fields
| Field | Type | Description |
|---|---|---|
data |
object | |
data.uid |
string |
Identifier of the system user, a ULID of 26 characters. Every other call addresses the user by this value. |
data.email |
string (email) | |
data.phone |
string | |
data.first_name |
string | |
data.last_name |
string | |
data.lang |
string | |
data.country_id |
integer | |
data.kyc |
object |
Identity verification of the system user, as our provider's webhooks leave it. |
data.kyc.is_verified |
boolean |
Whether the user has passed every verification step their network requires. |
data.kyc.identity_status |
integer |
Identity verification status: 1 · 2 · 3 · 4 · 5 · 6 · 7
|
data.kyc.document_status |
integer |
Status of the document step: 1 · 2 · 3 · 4
|
data.kyc.address_status |
integer |
Identity verification status: 1 · 2 · 3 · 4 · 5 · 6 · 7
|
data.wallets |
object[] |
Every wallet of the system user. Provisioning creates the internal ones; a regional wallet can
appear later and arrives inactive, and only an active wallet resolves for the endpoints below.
Pick the one you intend to use by |
data.wallets[].number |
string |
Wallet number of the system user. |
data.wallets[].region |
string |
Accounting region this wallet belongs to. cyprus · garna-cy
|
data.wallets[].currency |
string |
Currency of this wallet. USD · EUR
|
data.wallets[].status |
string |
PENDING · ACTIVE · CLOSE · WAITING
|
data.wallets[].real_balance |
string |
Funds available for a payout, always with two decimals. Credit is not part of it: system users get none, so this is the whole balance of the wallet. |
A missing, malformed or expired token gives {"message": "Unauthenticated."} with no numeric code.
Code 1000 appears only when the token is valid but no account is bound to the client.
{
"message": "Unauthenticated."
}
1 fields
| Field | Type | Description |
|---|---|---|
message |
string |
Numeric error code as a string — see the Errors guide. Rejections that happen before the
payment layer carry text instead ( |
A precondition failed. Which one is in the numeric code in message — the codes reachable here
depend on the endpoint, so read the operation's own description and the Errors guide rather than
assuming a fixed set. On any partner endpoint 2000 (the client's account is not a company) is
possible; endpoints that take region and currency add 11000 (no matching company wallet).
{
"message": "2000"
}
1 fields
| Field | Type | Description |
|---|---|---|
message |
string |
Numeric error code as a string — see the Errors guide. Rejections that happen before the
payment layer carry text instead ( |
The record is out of your reach, or the path parameter matches nothing. What "yours" means
depends on the endpoint, and the scopes do not coincide when a company runs several OAuth
clients: payouts (/payments*) and batch progress (/payment-requests/v1/payout/{id}) are
scoped to the OAuth client that created the record, payout requests
(/payment-requests/v1/status) and the company's payout templates are scoped to the
company, and everything addressed by {uid} is scoped to your network (MCN) — several
clients or company accounts of one network share the same system users. Each operation says which
one applies.
The body carries no numeric code and no detail about the record, so branch on the 404 status
alone — the text itself differs by where the request stopped: {"message": "Not found."} for a
record that was looked up and not found, an empty message when a {uid} resolved to nothing,
and the router's own sentence when a path parameter does not even match its format (a {uid}
that is not 26 characters, for instance).
{
"message": "Not found."
}
1 fields
| Field | Type | Description |
|---|---|---|
message |
string |
Human-readable reason. Carries no numeric code — these endpoints are not payment endpoints. |
Correct a system user's details
/payment-requests/v1/users/{uid}
🔒 Partner token
Fixes the person's details while their identity is not yet approved. Verification compares name, date of birth and country with the document literally, so a typo at provisioning ends in a rejected verification — and the email is already taken, which used to leave no way forward but a second user.
Send only the fields you are changing; the rest stay as they are. email is not among them: the
idempotency of provisioning is keyed on it.
Once the identity step is approved the details must match the document it was approved against, so
the call is refused with 409 and code 15002.
Limited to 60 requests per minute, counted per OAuth client and per IP address, on the counter shared with provisioning.
Parameters
| Name | In | Type | Description | |
|---|---|---|---|---|
uid |
path | string | required | The system user's |
Body
| Field | Type | Description | |
|---|---|---|---|
phone |
string |
Phone in international format. |
|
first_name |
string |
Given name of the person. Latin letters, apostrophe, hyphen and space only. |
|
last_name |
string |
Family name of the person, under the same character restriction as |
|
country_id |
integer |
Country of the person. |
|
birthday |
string (date) |
Date of birth as |
|
lang |
string |
Language of the account. Unlike provisioning, an omitted value changes nothing. ru · en · es · pt · ar · th · vi
|
Example call
curl -X PUT "$BASE_URL/payment-requests/v1/users/<uid>" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"first_name": "Johann",
"birthday": "1990-05-17"
}'
const response = await fetch(`${baseUrl}/payment-requests/v1/users/<uid>`, {
method: 'PUT',
headers: {
Accept: 'application/json',
Authorization: `Bearer ${accessToken}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"first_name": "Johann",
"birthday": "1990-05-17"
}),
});
const data = await response.json();
import requests
response = requests.put(
f"{base_url}/payment-requests/v1/users/<uid>",
headers={
"Accept": "application/json",
"Authorization": f"Bearer {access_token}",
},
json={
"first_name": "Johann",
"birthday": "1990-05-17"
},
)
data = response.json()
$client = new GuzzleHttp\Client();
$response = $client->request('PUT', "{$baseUrl}/payment-requests/v1/users/<uid>", [
'headers' => [
'Accept' => 'application/json',
'Authorization' => "Bearer {$accessToken}",
],
'json' => [
'first_name' => 'Johann',
'birthday' => '1990-05-17',
],
]);
$data = json_decode((string)$response->getBody(), true);
Responses
The system user after the correction
{
"data": {
"uid": "01K1ABCDEFGHJKMNPQRSTVWXYZ",
"email": "end-user@example.com",
"phone": "4915112345678",
"first_name": "Ivan",
"last_name": "Petrov",
"lang": "en",
"country_id": 82,
"kyc": {
"is_verified": false,
"identity_status": 3,
"document_status": 3,
"address_status": 3
},
"wallets": [
{
"number": "4200987654",
"region": "cyprus",
"currency": "USD",
"status": "ACTIVE",
"real_balance": "100.00"
}
]
}
}
19 fields
| Field | Type | Description |
|---|---|---|
data |
object | |
data.uid |
string |
Identifier of the system user, a ULID of 26 characters. Every other call addresses the user by this value. |
data.email |
string (email) | |
data.phone |
string | |
data.first_name |
string | |
data.last_name |
string | |
data.lang |
string | |
data.country_id |
integer | |
data.kyc |
object |
Identity verification of the system user, as our provider's webhooks leave it. |
data.kyc.is_verified |
boolean |
Whether the user has passed every verification step their network requires. |
data.kyc.identity_status |
integer |
Identity verification status: 1 · 2 · 3 · 4 · 5 · 6 · 7
|
data.kyc.document_status |
integer |
Status of the document step: 1 · 2 · 3 · 4
|
data.kyc.address_status |
integer |
Identity verification status: 1 · 2 · 3 · 4 · 5 · 6 · 7
|
data.wallets |
object[] |
Every wallet of the system user. Provisioning creates the internal ones; a regional wallet can
appear later and arrives inactive, and only an active wallet resolves for the endpoints below.
Pick the one you intend to use by |
data.wallets[].number |
string |
Wallet number of the system user. |
data.wallets[].region |
string |
Accounting region this wallet belongs to. cyprus · garna-cy
|
data.wallets[].currency |
string |
Currency of this wallet. USD · EUR
|
data.wallets[].status |
string |
PENDING · ACTIVE · CLOSE · WAITING
|
data.wallets[].real_balance |
string |
Funds available for a payout, always with two decimals. Credit is not part of it: system users get none, so this is the whole balance of the wallet. |
A missing, malformed or expired token gives {"message": "Unauthenticated."} with no numeric code.
Code 1000 appears only when the token is valid but no account is bound to the client.
{
"message": "Unauthenticated."
}
1 fields
| Field | Type | Description |
|---|---|---|
message |
string |
Numeric error code as a string — see the Errors guide. Rejections that happen before the
payment layer carry text instead ( |
A precondition failed. Which one is in the numeric code in message — the codes reachable here
depend on the endpoint, so read the operation's own description and the Errors guide rather than
assuming a fixed set. On any partner endpoint 2000 (the client's account is not a company) is
possible; endpoints that take region and currency add 11000 (no matching company wallet).
{
"message": "2000"
}
1 fields
| Field | Type | Description |
|---|---|---|
message |
string |
Numeric error code as a string — see the Errors guide. Rejections that happen before the
payment layer carry text instead ( |
The record is out of your reach, or the path parameter matches nothing. What "yours" means
depends on the endpoint, and the scopes do not coincide when a company runs several OAuth
clients: payouts (/payments*) and batch progress (/payment-requests/v1/payout/{id}) are
scoped to the OAuth client that created the record, payout requests
(/payment-requests/v1/status) and the company's payout templates are scoped to the
company, and everything addressed by {uid} is scoped to your network (MCN) — several
clients or company accounts of one network share the same system users. Each operation says which
one applies.
The body carries no numeric code and no detail about the record, so branch on the 404 status
alone — the text itself differs by where the request stopped: {"message": "Not found."} for a
record that was looked up and not found, an empty message when a {uid} resolved to nothing,
and the router's own sentence when a path parameter does not even match its format (a {uid}
that is not 26 characters, for instance).
{
"message": "Not found."
}
1 fields
| Field | Type | Description |
|---|---|---|
message |
string |
Human-readable reason. Carries no numeric code — these endpoints are not payment endpoints. |
The identity step is already approved, so the details are fixed (15002)
{
"message": "15002"
}
1 fields
| Field | Type | Description |
|---|---|---|
message |
string |
Numeric error code as a string — see the Errors guide. Rejections that happen before the
payment layer carry text instead ( |
Field validation failed, including a reused request_id or an unknown one on status lookup
{
"message": "The request id has already been taken.",
"errors": {
"request_id": [
"The request id has already been taken."
]
}
}
2 fields
| Field | Type | Description |
|---|---|---|
message |
string |
The first failed message, not a generic sentence. When more than one field failed the
count is appended, singular or plural by the number: |
errors |
object |
Field name → list of messages. Field names match the keys you sent, dotted for arrays ( |
The rate limit was exceeded. Which limit depends on where the endpoint lives: /payments/* and
/oauth/* share one bucket of 300 requests per minute per IP address, while an endpoint of
/payment-requests/* that changes something is capped at 60 per minute per OAuth client and per IP,
on a counter shared with its siblings — see Overview.
The response carries Retry-After with the number of seconds to wait, plus X-RateLimit-Limit and
X-RateLimit-Remaining.
{
"message": "Too Many Attempts."
}
1 fields
| Field | Type | Description |
|---|---|---|
message |
string |
Human-readable reason. Carries no numeric code — these endpoints are not payment endpoints. |
List payment methods of a system user
/payment-requests/v1/users/{uid}/payment-methods
🔒 Partner token
Payment methods enabled for the partner API for this system user, with amount limits and commission details. The set is narrower than your company's own: it also depends on the user's country, network and age — methods with an age restriction are hidden for anyone under 18, by the date of birth you sent at provisioning.
region and currency select your company wallet and, behind it, the system user's wallet. Take
the pair from wallets of GET /payment-requests/v1/users/{uid}.
Parameters
| Name | In | Type | Description | |
|---|---|---|---|---|
uid |
path | string | required | The system user's |
region |
query | string | required | Accounting region. Selects the company wallet together with |
currency |
query | string | required | Currency of the company wallet, together with |
Example call
curl "$BASE_URL/payment-requests/v1/users/<uid>/payment-methods?region=cyprus¤cy=USD" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Accept: application/json"
const response = await fetch(`${baseUrl}/payment-requests/v1/users/<uid>/payment-methods?region=cyprus¤cy=USD`, {
method: 'GET',
headers: {
Accept: 'application/json',
Authorization: `Bearer ${accessToken}`,
},
});
const data = await response.json();
import requests
response = requests.get(
f"{base_url}/payment-requests/v1/users/<uid>/payment-methods?region=cyprus¤cy=USD",
headers={
"Accept": "application/json",
"Authorization": f"Bearer {access_token}",
},
)
data = response.json()
$client = new GuzzleHttp\Client();
$response = $client->request('GET', "{$baseUrl}/payment-requests/v1/users/<uid>/payment-methods?region=cyprus¤cy=USD", [
'headers' => [
'Accept' => 'application/json',
'Authorization' => "Bearer {$accessToken}",
],
]);
$data = json_decode((string)$response->getBody(), true);
Responses
Available payment methods
{
"data": [
{
"id": 1,
"name": "Bank transfer",
"is_fast": true,
"category": "bank",
"min_amount": "10",
"max_amount": "50000",
"commission": [
{
"fix_fee": "25",
"percent_fee": "0.03",
"min_fee": null,
"max_fee": null,
"limit": "999.99"
}
]
}
]
}
13 fields
| Field | Type | Description |
|---|---|---|
data |
object[] | |
data[].id |
integer | |
data[].name |
string |
Display name, always in English — the partner API ignores |
data[].is_fast |
boolean | |
data[].category |
string | |
data[].min_amount |
string | |
data[].max_amount |
string | |
data[].commission |
object[] |
Fee tiers that apply to your account, ordered from the smallest amount up. Each tier applies
to amounts up to its |
data[].commission[].fix_fee |
string | |
data[].commission[].percent_fee |
string |
Fraction of the amount — |
data[].commission[].min_fee |
string | |
data[].commission[].max_fee |
string | |
data[].commission[].limit |
string |
Upper bound of the amount this tier covers; |
A missing, malformed or expired token gives {"message": "Unauthenticated."} with no numeric code.
Code 1000 appears only when the token is valid but no account is bound to the client.
{
"message": "Unauthenticated."
}
1 fields
| Field | Type | Description |
|---|---|---|
message |
string |
Numeric error code as a string — see the Errors guide. Rejections that happen before the
payment layer carry text instead ( |
A precondition failed. Which one is in the numeric code in message — the codes reachable here
depend on the endpoint, so read the operation's own description and the Errors guide rather than
assuming a fixed set. On any partner endpoint 2000 (the client's account is not a company) is
possible; endpoints that take region and currency add 11000 (no matching company wallet).
{
"message": "2000"
}
1 fields
| Field | Type | Description |
|---|---|---|
message |
string |
Numeric error code as a string — see the Errors guide. Rejections that happen before the
payment layer carry text instead ( |
The record is out of your reach, or the path parameter matches nothing. What "yours" means
depends on the endpoint, and the scopes do not coincide when a company runs several OAuth
clients: payouts (/payments*) and batch progress (/payment-requests/v1/payout/{id}) are
scoped to the OAuth client that created the record, payout requests
(/payment-requests/v1/status) and the company's payout templates are scoped to the
company, and everything addressed by {uid} is scoped to your network (MCN) — several
clients or company accounts of one network share the same system users. Each operation says which
one applies.
The body carries no numeric code and no detail about the record, so branch on the 404 status
alone — the text itself differs by where the request stopped: {"message": "Not found."} for a
record that was looked up and not found, an empty message when a {uid} resolved to nothing,
and the router's own sentence when a path parameter does not even match its format (a {uid}
that is not 26 characters, for instance).
{
"message": "Not found."
}
1 fields
| Field | Type | Description |
|---|---|---|
message |
string |
Human-readable reason. Carries no numeric code — these endpoints are not payment endpoints. |
Field validation failed, or the system user has no wallet behind the company wallet resolved from
region and currency (15000). The two shapes differ: validation carries errors, the
missing wallet carries only the code in message. 15000 is not 11000 — that one is about your
own company wallet and answers 403.
{
"message": "15000"
}
Get the fields a payment method requires for a system user
/payment-requests/v1/users/{uid}/payment-methods/fields
🔒 Partner token
Payment methods do not share a field set — a card method wants a card number, a bank method wants
an IBAN and a BIC. This endpoint returns the fields for one method, and those field names are
exactly the keys you send as identity when creating a template.
Some fields are dynamic: their options depend on values already chosen. Send what you have so
far in identity and call again to get the narrowed set.
Parameters
| Name | In | Type | Description | |
|---|---|---|---|---|
uid |
path | string | required | The system user's |
Body
| Field | Type | Description | |
|---|---|---|---|
region |
string | required |
Accounting region. Selects the company wallet together with cyprus · garna-cy
|
currency |
string | required |
Currency of the company wallet, together with USD · EUR
|
payment_method_id |
integer | required |
The |
identity |
object |
Values already collected — narrows the options of dynamic fields. |
Example call
curl -X POST "$BASE_URL/payment-requests/v1/users/<uid>/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"
}
}'
const response = await fetch(`${baseUrl}/payment-requests/v1/users/<uid>/payment-methods/fields`, {
method: 'POST',
headers: {
Accept: 'application/json',
Authorization: `Bearer ${accessToken}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"region": "cyprus",
"currency": "USD",
"payment_method_id": 12,
"identity": {
"country": "DE"
}
}),
});
const data = await response.json();
import requests
response = requests.post(
f"{base_url}/payment-requests/v1/users/<uid>/payment-methods/fields",
headers={
"Accept": "application/json",
"Authorization": f"Bearer {access_token}",
},
json={
"region": "cyprus",
"currency": "USD",
"payment_method_id": 12,
"identity": {
"country": "DE"
}
},
)
data = response.json()
$client = new GuzzleHttp\Client();
$response = $client->request('POST', "{$baseUrl}/payment-requests/v1/users/<uid>/payment-methods/fields", [
'headers' => [
'Accept' => 'application/json',
'Authorization' => "Bearer {$accessToken}",
],
'json' => [
'region' => 'cyprus',
'currency' => 'USD',
'payment_method_id' => 12,
'identity' => [
'country' => 'DE',
],
],
]);
$data = json_decode((string)$response->getBody(), true);
Responses
Fields of the payment method, keyed by field name
{
"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
}
}
}
7 fields
| Field | Type | Description |
|---|---|---|
data |
object | |
data{key}.type |
string |
Input type of the field. |
data{key}.title |
string | |
data{key}.help_text |
string | |
data{key}.dynamic |
boolean |
When true, the options depend on other |
data{key}.options |
object |
Allowed values, keyed by the value you send. Present only on fields with a fixed set. |
data{key}.is_uppercase |
boolean |
Present only on text fields; the value is stored upper-cased. |
A missing, malformed or expired token gives {"message": "Unauthenticated."} with no numeric code.
Code 1000 appears only when the token is valid but no account is bound to the client.
{
"message": "Unauthenticated."
}
1 fields
| Field | Type | Description |
|---|---|---|
message |
string |
Numeric error code as a string — see the Errors guide. Rejections that happen before the
payment layer carry text instead ( |
A precondition failed. Which one is in the numeric code in message — the codes reachable here
depend on the endpoint, so read the operation's own description and the Errors guide rather than
assuming a fixed set. On any partner endpoint 2000 (the client's account is not a company) is
possible; endpoints that take region and currency add 11000 (no matching company wallet).
{
"message": "2000"
}
1 fields
| Field | Type | Description |
|---|---|---|
message |
string |
Numeric error code as a string — see the Errors guide. Rejections that happen before the
payment layer carry text instead ( |
The record is out of your reach, or the path parameter matches nothing. What "yours" means
depends on the endpoint, and the scopes do not coincide when a company runs several OAuth
clients: payouts (/payments*) and batch progress (/payment-requests/v1/payout/{id}) are
scoped to the OAuth client that created the record, payout requests
(/payment-requests/v1/status) and the company's payout templates are scoped to the
company, and everything addressed by {uid} is scoped to your network (MCN) — several
clients or company accounts of one network share the same system users. Each operation says which
one applies.
The body carries no numeric code and no detail about the record, so branch on the 404 status
alone — the text itself differs by where the request stopped: {"message": "Not found."} for a
record that was looked up and not found, an empty message when a {uid} resolved to nothing,
and the router's own sentence when a path parameter does not even match its format (a {uid}
that is not 26 characters, for instance).
{
"message": "Not found."
}
1 fields
| Field | Type | Description |
|---|---|---|
message |
string |
Human-readable reason. Carries no numeric code — these endpoints are not payment endpoints. |
Field validation failed, or the system user has no wallet behind the company wallet resolved from
region and currency (15000). The two shapes differ: validation carries errors, the
missing wallet carries only the code in message. 15000 is not 11000 — that one is about your
own company wallet and answers 403.
{
"message": "15000"
}
Create a payout template for a system user
/payment-requests/v1/users/{uid}/templates
🔒 Partner token
Stores the person's payout details as a reusable template on their own wallet. identity keys and
their validation come from POST /payment-requests/v1/users/{uid}/payment-methods/fields for
the same method — unknown keys are ignored, invalid values fail validation.
A payment method that is not enabled for the partner API fails validation here (422), not
with code 12000 — that code belongs to reading and deleting a template.
Some methods register the details with the provider while the template is being created, so a
rejection can come from the provider rather than from us: that is 406 with errors and no
message.
The system user must have passed identity verification, otherwise the request is refused with
403 and code 15001. Listing, reading and deleting templates do not require it.
Limited to 60 requests per minute, counted per OAuth client and per IP address. The counter is shared by every template endpoint that creates or deletes one — your company's and your system users' alike.
Parameters
| Name | In | Type | Description | |
|---|---|---|---|---|
uid |
path | string | required | The system user's |
Body
| Field | Type | Description | |
|---|---|---|---|
region |
string | required |
Accounting region. Selects the company wallet together with cyprus · garna-cy
|
currency |
string | required |
Currency of the company wallet, together with USD · EUR
|
payment_method_id |
integer | required |
The |
title |
string | required |
Your own label for the template — shown nowhere but in your own listings. |
identity |
object | required |
Recipient details, keyed by the field names of the payment method. |
Example call
curl -X POST "$BASE_URL/payment-requests/v1/users/<uid>/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": "Ivan Petrov — main account",
"identity": {
"iban": "DE89370400440532013000",
"bic": "COBADEFFXXX"
}
}'
const response = await fetch(`${baseUrl}/payment-requests/v1/users/<uid>/templates`, {
method: 'POST',
headers: {
Accept: 'application/json',
Authorization: `Bearer ${accessToken}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"region": "cyprus",
"currency": "USD",
"payment_method_id": 12,
"title": "Ivan Petrov — main account",
"identity": {
"iban": "DE89370400440532013000",
"bic": "COBADEFFXXX"
}
}),
});
const data = await response.json();
import requests
response = requests.post(
f"{base_url}/payment-requests/v1/users/<uid>/templates",
headers={
"Accept": "application/json",
"Authorization": f"Bearer {access_token}",
},
json={
"region": "cyprus",
"currency": "USD",
"payment_method_id": 12,
"title": "Ivan Petrov — main account",
"identity": {
"iban": "DE89370400440532013000",
"bic": "COBADEFFXXX"
}
},
)
data = response.json()
$client = new GuzzleHttp\Client();
$response = $client->request('POST', "{$baseUrl}/payment-requests/v1/users/<uid>/templates", [
'headers' => [
'Accept' => 'application/json',
'Authorization' => "Bearer {$accessToken}",
],
'json' => [
'region' => 'cyprus',
'currency' => 'USD',
'payment_method_id' => 12,
'title' => 'Ivan Petrov — main account',
'identity' => [
'iban' => 'DE89370400440532013000',
'bic' => 'COBADEFFXXX',
],
],
]);
$data = json_decode((string)$response->getBody(), true);
Responses
The same details were already stored, so the existing template is returned unchanged — creating
is idempotent by identity, which makes a retry after a lost response safe. Do not match 201
exactly.
{
"data": {
"id": 1,
"payment_method_id": 1,
"title": "Supplier — main account",
"identity": {
"iban": "DE89370400440532013000",
"bic": "COBADEFFXXX"
},
"created_at": "2026-08-01T12:00:00+00:00",
"updated_at": "2026-08-01T12:00:00+00:00"
}
}
7 fields
| Field | Type | Description |
|---|---|---|
data |
object | |
data.id |
integer | |
data.payment_method_id |
integer | |
data.title |
string | |
data.identity |
object |
Stored recipient details, keyed by the field names of the payment method. |
data.created_at |
string (date-time) | |
data.updated_at |
string (date-time) |
Template created
{
"data": {
"id": 1,
"payment_method_id": 1,
"title": "Supplier — main account",
"identity": {
"iban": "DE89370400440532013000",
"bic": "COBADEFFXXX"
},
"created_at": "2026-08-01T12:00:00+00:00",
"updated_at": "2026-08-01T12:00:00+00:00"
}
}
7 fields
| Field | Type | Description |
|---|---|---|
data |
object | |
data.id |
integer | |
data.payment_method_id |
integer | |
data.title |
string | |
data.identity |
object |
Stored recipient details, keyed by the field names of the payment method. |
data.created_at |
string (date-time) | |
data.updated_at |
string (date-time) |
Template could not be generated (4000)
{
"message": "2000"
}
1 fields
| Field | Type | Description |
|---|---|---|
message |
string |
Numeric error code as a string — see the Errors guide. Rejections that happen before the
payment layer carry text instead ( |
A missing, malformed or expired token gives {"message": "Unauthenticated."} with no numeric code.
Code 1000 appears only when the token is valid but no account is bound to the client.
{
"message": "Unauthenticated."
}
1 fields
| Field | Type | Description |
|---|---|---|
message |
string |
Numeric error code as a string — see the Errors guide. Rejections that happen before the
payment layer carry text instead ( |
The system user has not passed identity verification (15001), no active company wallet
matches region and currency (11000), or the client's account is not a company (2000).
{
"message": "15001"
}
1 fields
| Field | Type | Description |
|---|---|---|
message |
string |
Numeric error code as a string — see the Errors guide. Rejections that happen before the
payment layer carry text instead ( |
The record is out of your reach, or the path parameter matches nothing. What "yours" means
depends on the endpoint, and the scopes do not coincide when a company runs several OAuth
clients: payouts (/payments*) and batch progress (/payment-requests/v1/payout/{id}) are
scoped to the OAuth client that created the record, payout requests
(/payment-requests/v1/status) and the company's payout templates are scoped to the
company, and everything addressed by {uid} is scoped to your network (MCN) — several
clients or company accounts of one network share the same system users. Each operation says which
one applies.
The body carries no numeric code and no detail about the record, so branch on the 404 status
alone — the text itself differs by where the request stopped: {"message": "Not found."} for a
record that was looked up and not found, an empty message when a {uid} resolved to nothing,
and the router's own sentence when a path parameter does not even match its format (a {uid}
that is not 26 characters, for instance).
{
"message": "Not found."
}
1 fields
| Field | Type | Description |
|---|---|---|
message |
string |
Human-readable reason. Carries no numeric code — these endpoints are not payment endpoints. |
The payment provider refused the details, so no template was created. The body carries errors
without a message, and each field holds a single string — see ProviderFieldErrorResponse.
{
"errors": {
"identity.iban": "Invalid account number"
}
}
1 fields
| Field | Type | Description |
|---|---|---|
errors |
object |
Field name → the provider's message. Most providers prefix the name with |
Field validation failed, or the system user has no wallet behind the company wallet resolved from
region and currency (15000). The two shapes differ: validation carries errors, the
missing wallet carries only the code in message. 15000 is not 11000 — that one is about your
own company wallet and answers 403.
{
"message": "15000"
}
The rate limit was exceeded. Which limit depends on where the endpoint lives: /payments/* and
/oauth/* share one bucket of 300 requests per minute per IP address, while an endpoint of
/payment-requests/* that changes something is capped at 60 per minute per OAuth client and per IP,
on a counter shared with its siblings — see Overview.
The response carries Retry-After with the number of seconds to wait, plus X-RateLimit-Limit and
X-RateLimit-Remaining.
{
"message": "Too Many Attempts."
}
1 fields
| Field | Type | Description |
|---|---|---|
message |
string |
Human-readable reason. Carries no numeric code — these endpoints are not payment endpoints. |
List payout templates of a system user
/payment-requests/v1/users/{uid}/templates
🔒 Partner token
Templates of this system user, newest first, optionally narrowed to one payment method. Paginated exactly like the company's own listing.
The URLs in links and meta.links are not usable as they are. They carry only page, while
region and currency are required — following one answers 422. Page through by putting page
next to the parameters you already send.
Parameters
| Name | In | Type | Description | |
|---|---|---|---|---|
uid |
path | string | required | The system user's |
region |
query | string | required | Accounting region. Selects the company wallet together with |
currency |
query | string | required | Currency of the company wallet, together with |
payment_method_id |
query | integer | Narrows the list to one payment method. Omit it to get every template of this system user — which is what you want when restoring your own state rather than filling a payout form. |
|
per_page |
query | integer | Defaults to 20 when omitted. An empty value is not the same as omitting it: |
|
page |
query | integer | Page number, starting at 1. |
Example call
curl "$BASE_URL/payment-requests/v1/users/<uid>/templates?region=cyprus¤cy=USD" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Accept: application/json"
const response = await fetch(`${baseUrl}/payment-requests/v1/users/<uid>/templates?region=cyprus¤cy=USD`, {
method: 'GET',
headers: {
Accept: 'application/json',
Authorization: `Bearer ${accessToken}`,
},
});
const data = await response.json();
import requests
response = requests.get(
f"{base_url}/payment-requests/v1/users/<uid>/templates?region=cyprus¤cy=USD",
headers={
"Accept": "application/json",
"Authorization": f"Bearer {access_token}",
},
)
data = response.json()
$client = new GuzzleHttp\Client();
$response = $client->request('GET', "{$baseUrl}/payment-requests/v1/users/<uid>/templates?region=cyprus¤cy=USD", [
'headers' => [
'Accept' => 'application/json',
'Authorization' => "Bearer {$accessToken}",
],
]);
$data = json_decode((string)$response->getBody(), true);
Responses
Paginated templates
{
"data": [
{
"id": 1,
"payment_method_id": 1,
"title": "Supplier — main account",
"identity": {
"iban": "DE89370400440532013000",
"bic": "COBADEFFXXX"
},
"created_at": "2026-08-01T12:00:00+00:00",
"updated_at": "2026-08-01T12:00:00+00:00"
}
],
"links": {
"first": "https://example.com/payment-requests/v1/templates?page=1",
"last": "https://example.com/payment-requests/v1/templates?page=3",
"prev": null,
"next": "https://example.com/payment-requests/v1/templates?page=2"
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 3,
"links": [
{
"url": "https://example.com/payment-requests/v1/templates?page=1",
"label": "1",
"active": true
}
],
"path": "https://example.com/payment-requests/v1/templates",
"per_page": 20,
"to": 20,
"total": 42
}
}
24 fields
| Field | Type | Description |
|---|---|---|
data |
object[] | |
data[].id |
integer | |
data[].payment_method_id |
integer | |
data[].title |
string | |
data[].identity |
object |
Stored recipient details, keyed by the field names of the payment method. |
data[].created_at |
string (date-time) | |
data[].updated_at |
string (date-time) | |
links |
object |
Page URLs of the paginated listing. Each one carries only |
links.first |
string | |
links.last |
string | |
links.prev |
string |
|
links.next |
string |
|
meta |
object | |
meta.current_page |
integer | |
meta.from |
integer |
Position of the first item on this page; |
meta.last_page |
integer | |
meta.links |
object[] |
Page buttons as the dashboard renders them — previous, one entry per page, next. Carries the
same unusable URLs as |
meta.links[].url |
string | |
meta.links[].label |
string |
HTML entities included — |
meta.links[].active |
boolean | |
meta.path |
string | |
meta.per_page |
integer | |
meta.to |
integer |
Position of the last item on this page; |
meta.total |
integer |
Templates matching the filter across all pages. |
A missing, malformed or expired token gives {"message": "Unauthenticated."} with no numeric code.
Code 1000 appears only when the token is valid but no account is bound to the client.
{
"message": "Unauthenticated."
}
1 fields
| Field | Type | Description |
|---|---|---|
message |
string |
Numeric error code as a string — see the Errors guide. Rejections that happen before the
payment layer carry text instead ( |
A precondition failed. Which one is in the numeric code in message — the codes reachable here
depend on the endpoint, so read the operation's own description and the Errors guide rather than
assuming a fixed set. On any partner endpoint 2000 (the client's account is not a company) is
possible; endpoints that take region and currency add 11000 (no matching company wallet).
{
"message": "2000"
}
1 fields
| Field | Type | Description |
|---|---|---|
message |
string |
Numeric error code as a string — see the Errors guide. Rejections that happen before the
payment layer carry text instead ( |
The record is out of your reach, or the path parameter matches nothing. What "yours" means
depends on the endpoint, and the scopes do not coincide when a company runs several OAuth
clients: payouts (/payments*) and batch progress (/payment-requests/v1/payout/{id}) are
scoped to the OAuth client that created the record, payout requests
(/payment-requests/v1/status) and the company's payout templates are scoped to the
company, and everything addressed by {uid} is scoped to your network (MCN) — several
clients or company accounts of one network share the same system users. Each operation says which
one applies.
The body carries no numeric code and no detail about the record, so branch on the 404 status
alone — the text itself differs by where the request stopped: {"message": "Not found."} for a
record that was looked up and not found, an empty message when a {uid} resolved to nothing,
and the router's own sentence when a path parameter does not even match its format (a {uid}
that is not 26 characters, for instance).
{
"message": "Not found."
}
1 fields
| Field | Type | Description |
|---|---|---|
message |
string |
Human-readable reason. Carries no numeric code — these endpoints are not payment endpoints. |
Field validation failed, or the system user has no wallet behind the company wallet resolved from
region and currency (15000). The two shapes differ: validation carries errors, the
missing wallet carries only the code in message. 15000 is not 11000 — that one is about your
own company wallet and answers 403.
{
"message": "15000"
}
Get one payout template of a system user
/payment-requests/v1/users/{uid}/templates/{templateId}
🔒 Partner token
The template with the payout details stored under identity. Templates of another system user are
not visible — they answer 404.
Neither region nor currency is taken here: the template already knows its wallet, so an
inactive wallet does not cut off access to a template that already exists.
Parameters
| Name | In | Type | Description | |
|---|---|---|---|---|
uid |
path | string | required | The system user's |
templateId |
path | integer | required | The template |
Example call
curl "$BASE_URL/payment-requests/v1/users/<uid>/templates/<templateId>" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Accept: application/json"
const response = await fetch(`${baseUrl}/payment-requests/v1/users/<uid>/templates/<templateId>`, {
method: 'GET',
headers: {
Accept: 'application/json',
Authorization: `Bearer ${accessToken}`,
},
});
const data = await response.json();
import requests
response = requests.get(
f"{base_url}/payment-requests/v1/users/<uid>/templates/<templateId>",
headers={
"Accept": "application/json",
"Authorization": f"Bearer {access_token}",
},
)
data = response.json()
$client = new GuzzleHttp\Client();
$response = $client->request('GET', "{$baseUrl}/payment-requests/v1/users/<uid>/templates/<templateId>", [
'headers' => [
'Accept' => 'application/json',
'Authorization' => "Bearer {$accessToken}",
],
]);
$data = json_decode((string)$response->getBody(), true);
Responses
The template
{
"data": {
"id": 1,
"payment_method_id": 1,
"title": "Supplier — main account",
"identity": {
"iban": "DE89370400440532013000",
"bic": "COBADEFFXXX"
},
"created_at": "2026-08-01T12:00:00+00:00",
"updated_at": "2026-08-01T12:00:00+00:00"
}
}
7 fields
| Field | Type | Description |
|---|---|---|
data |
object | |
data.id |
integer | |
data.payment_method_id |
integer | |
data.title |
string | |
data.identity |
object |
Stored recipient details, keyed by the field names of the payment method. |
data.created_at |
string (date-time) | |
data.updated_at |
string (date-time) |
A missing, malformed or expired token gives {"message": "Unauthenticated."} with no numeric code.
Code 1000 appears only when the token is valid but no account is bound to the client.
{
"message": "Unauthenticated."
}
1 fields
| Field | Type | Description |
|---|---|---|
message |
string |
Numeric error code as a string — see the Errors guide. Rejections that happen before the
payment layer carry text instead ( |
The template's payment method is no longer enabled for the partner API (12000)
{
"message": "2000"
}
1 fields
| Field | Type | Description |
|---|---|---|
message |
string |
Numeric error code as a string — see the Errors guide. Rejections that happen before the
payment layer carry text instead ( |
The record is out of your reach, or the path parameter matches nothing. What "yours" means
depends on the endpoint, and the scopes do not coincide when a company runs several OAuth
clients: payouts (/payments*) and batch progress (/payment-requests/v1/payout/{id}) are
scoped to the OAuth client that created the record, payout requests
(/payment-requests/v1/status) and the company's payout templates are scoped to the
company, and everything addressed by {uid} is scoped to your network (MCN) — several
clients or company accounts of one network share the same system users. Each operation says which
one applies.
The body carries no numeric code and no detail about the record, so branch on the 404 status
alone — the text itself differs by where the request stopped: {"message": "Not found."} for a
record that was looked up and not found, an empty message when a {uid} resolved to nothing,
and the router's own sentence when a path parameter does not even match its format (a {uid}
that is not 26 characters, for instance).
{
"message": "Not found."
}
1 fields
| Field | Type | Description |
|---|---|---|
message |
string |
Human-readable reason. Carries no numeric code — these endpoints are not payment endpoints. |
Delete a payout template of a system user
/payment-requests/v1/users/{uid}/templates/{templateId}
🔒 Partner token
Removes the template. Payout requests already created from it are not affected — the template is only the payout details, not the payment itself.
Limited to 60 requests per minute, counted per OAuth client and per IP address. The counter is shared by every template endpoint that creates or deletes one — your company's and your system users' alike.
Parameters
| Name | In | Type | Description | |
|---|---|---|---|---|
uid |
path | string | required | The system user's |
templateId |
path | integer | required | The template |
Example call
curl -X DELETE "$BASE_URL/payment-requests/v1/users/<uid>/templates/<templateId>" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Accept: application/json"
const response = await fetch(`${baseUrl}/payment-requests/v1/users/<uid>/templates/<templateId>`, {
method: 'DELETE',
headers: {
Accept: 'application/json',
Authorization: `Bearer ${accessToken}`,
},
});
const data = await response.json();
import requests
response = requests.delete(
f"{base_url}/payment-requests/v1/users/<uid>/templates/<templateId>",
headers={
"Accept": "application/json",
"Authorization": f"Bearer {access_token}",
},
)
data = response.json()
$client = new GuzzleHttp\Client();
$response = $client->request('DELETE', "{$baseUrl}/payment-requests/v1/users/<uid>/templates/<templateId>", [
'headers' => [
'Accept' => 'application/json',
'Authorization' => "Bearer {$accessToken}",
],
]);
$data = json_decode((string)$response->getBody(), true);
Responses
Template deleted
A missing, malformed or expired token gives {"message": "Unauthenticated."} with no numeric code.
Code 1000 appears only when the token is valid but no account is bound to the client.
{
"message": "Unauthenticated."
}
1 fields
| Field | Type | Description |
|---|---|---|
message |
string |
Numeric error code as a string — see the Errors guide. Rejections that happen before the
payment layer carry text instead ( |
The template's payment method is no longer enabled for the partner API (12000)
{
"message": "2000"
}
1 fields
| Field | Type | Description |
|---|---|---|
message |
string |
Numeric error code as a string — see the Errors guide. Rejections that happen before the
payment layer carry text instead ( |
The record is out of your reach, or the path parameter matches nothing. What "yours" means
depends on the endpoint, and the scopes do not coincide when a company runs several OAuth
clients: payouts (/payments*) and batch progress (/payment-requests/v1/payout/{id}) are
scoped to the OAuth client that created the record, payout requests
(/payment-requests/v1/status) and the company's payout templates are scoped to the
company, and everything addressed by {uid} is scoped to your network (MCN) — several
clients or company accounts of one network share the same system users. Each operation says which
one applies.
The body carries no numeric code and no detail about the record, so branch on the 404 status
alone — the text itself differs by where the request stopped: {"message": "Not found."} for a
record that was looked up and not found, an empty message when a {uid} resolved to nothing,
and the router's own sentence when a path parameter does not even match its format (a {uid}
that is not 26 characters, for instance).
{
"message": "Not found."
}
1 fields
| Field | Type | Description |
|---|---|---|
message |
string |
Human-readable reason. Carries no numeric code — these endpoints are not payment endpoints. |
The rate limit was exceeded. Which limit depends on where the endpoint lives: /payments/* and
/oauth/* share one bucket of 300 requests per minute per IP address, while an endpoint of
/payment-requests/* that changes something is capped at 60 per minute per OAuth client and per IP,
on a counter shared with its siblings — see Overview.
The response carries Retry-After with the number of seconds to wait, plus X-RateLimit-Limit and
X-RateLimit-Remaining.
{
"message": "Too Many Attempts."
}
1 fields
| Field | Type | Description |
|---|---|---|
message |
string |
Human-readable reason. Carries no numeric code — these endpoints are not payment endpoints. |
Fund a system user
/payment-requests/v1/users/{uid}/fund
🔒 Partner token
Moves money from your company wallet to the wallet of your system user. It is the same transfer as
POST /payments/v2/payout, with the recipient addressed by uid instead of a wallet number, and
it carries no fee: the amount leaves your wallet and arrives in full.
region and currency select your company wallet and, behind it, the system user's wallet. Take
the pair from wallets of GET /payment-requests/v1/users/{uid}.
A rejected transfer is still a successful HTTP response — read status and, on 3, err_msg.
Verification is not required to fund a user, but paying that money out does require it, so a user
who never passes verification keeps the funds on their wallet.
request_id is your own unique identifier (16–255 characters), globally unique as on
POST /payments/v2/payout. Poll the transfer with GET /payments/v2/status.
Limited to 60 requests per minute, counted per OAuth client and per IP address.
The counter is shared by every money endpoint of /payment-requests/v1: single, bulk, and a
system user's fund and payout.
Parameters
| Name | In | Type | Description | |
|---|---|---|---|---|
uid |
path | string | required | The system user's |
Body
| Field | Type | Description | |
|---|---|---|---|
request_id |
string | required |
Your unique identifier for this transfer. Uniqueness is global, not per company, exactly as
on |
region |
string | required |
Accounting region. Selects the company wallet together with cyprus · garna-cy
|
currency |
string | required |
Currency of the company wallet, together with USD · EUR
|
amount |
string | required |
Decimal amount, at least 0.01. Send as a string to avoid float rounding. |
description |
string | required |
Payment purpose shown on the system user's transaction. |
Example call
curl -X POST "$BASE_URL/payment-requests/v1/users/<uid>/fund" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"request_id": "partner-fund-2026-08-03-0001",
"region": "cyprus",
"currency": "USD",
"amount": "100.00",
"description": "Order 42"
}'
const response = await fetch(`${baseUrl}/payment-requests/v1/users/<uid>/fund`, {
method: 'POST',
headers: {
Accept: 'application/json',
Authorization: `Bearer ${accessToken}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"request_id": "partner-fund-2026-08-03-0001",
"region": "cyprus",
"currency": "USD",
"amount": "100.00",
"description": "Order 42"
}),
});
const data = await response.json();
import requests
response = requests.post(
f"{base_url}/payment-requests/v1/users/<uid>/fund",
headers={
"Accept": "application/json",
"Authorization": f"Bearer {access_token}",
},
json={
"request_id": "partner-fund-2026-08-03-0001",
"region": "cyprus",
"currency": "USD",
"amount": "100.00",
"description": "Order 42"
},
)
data = response.json()
$client = new GuzzleHttp\Client();
$response = $client->request('POST', "{$baseUrl}/payment-requests/v1/users/<uid>/fund", [
'headers' => [
'Accept' => 'application/json',
'Authorization' => "Bearer {$accessToken}",
],
'json' => [
'request_id' => 'partner-fund-2026-08-03-0001',
'region' => 'cyprus',
'currency' => 'USD',
'amount' => '100.00',
'description' => 'Order 42',
],
]);
$data = json_decode((string)$response->getBody(), true);
Responses
Transfer record created — read status to learn whether money moved
{
"data": {
"id": 15840,
"request_id": "partner-fund-2026-08-03-0001",
"status": 2,
"err_msg": null,
"transactions": [
{
"id": 904531,
"custom_id": null,
"invoice_path": "/api/transactions/904531/invoice"
},
{
"id": 904532,
"custom_id": null,
"invoice_path": "/api/transactions/904532/invoice"
}
],
"oauth_client": {
"id": 42,
"mediacube_id": "mc-42",
"name": "Partner application",
"user_id": 1001,
"redirect": "https://partner.example.com/oauth/callback",
"agreement_link": "https://partner.example.com/terms",
"privacy_link": "https://partner.example.com/privacy",
"avatar": "https://partner.example.com/logo.png",
"created_at": "2026-08-01T12:00:00+00:00",
"updated_at": "2026-08-01T12:00:00+00:00"
}
}
}
20 fields
| Field | Type | Description |
|---|---|---|
data |
object | |
data.id |
integer | |
data.request_id |
string | |
data.status |
integer |
1 · 2 · 3
|
data.err_msg |
integer or string |
Error code when |
data.transactions |
object[] |
Transactions of the payout. Present on a status lookup (an empty array while nothing has been transferred yet) and on a successful payout; omitted entirely when a payout is rejected. Every paid recipient produces two entries, not one — the debit from your company wallet
and the credit to the recipient. Both carry the same |
data.transactions[].id |
integer | |
data.transactions[].custom_id |
string | |
data.transactions[].invoice_path |
string |
Path to the invoice download, relative to the API host. |
data.oauth_client |
object |
Your own OAuth client, echoed back. A service field: it appears only when processing the
payout happened to load the relation, so it is present on some responses to
|
data.oauth_client.id |
integer | |
data.oauth_client.mediacube_id |
string | |
data.oauth_client.name |
string | |
data.oauth_client.user_id |
integer | |
data.oauth_client.redirect |
string | |
data.oauth_client.agreement_link |
string | |
data.oauth_client.privacy_link |
string | |
data.oauth_client.avatar |
string | |
data.oauth_client.created_at |
string (date-time) | |
data.oauth_client.updated_at |
string (date-time) |
A missing, malformed or expired token gives {"message": "Unauthenticated."} with no numeric code.
Code 1000 appears only when the token is valid but no account is bound to the client.
{
"message": "Unauthenticated."
}
1 fields
| Field | Type | Description |
|---|---|---|
message |
string |
Numeric error code as a string — see the Errors guide. Rejections that happen before the
payment layer carry text instead ( |
A precondition failed. Which one is in the numeric code in message — the codes reachable here
depend on the endpoint, so read the operation's own description and the Errors guide rather than
assuming a fixed set. On any partner endpoint 2000 (the client's account is not a company) is
possible; endpoints that take region and currency add 11000 (no matching company wallet).
{
"message": "2000"
}
1 fields
| Field | Type | Description |
|---|---|---|
message |
string |
Numeric error code as a string — see the Errors guide. Rejections that happen before the
payment layer carry text instead ( |
The record is out of your reach, or the path parameter matches nothing. What "yours" means
depends on the endpoint, and the scopes do not coincide when a company runs several OAuth
clients: payouts (/payments*) and batch progress (/payment-requests/v1/payout/{id}) are
scoped to the OAuth client that created the record, payout requests
(/payment-requests/v1/status) and the company's payout templates are scoped to the
company, and everything addressed by {uid} is scoped to your network (MCN) — several
clients or company accounts of one network share the same system users. Each operation says which
one applies.
The body carries no numeric code and no detail about the record, so branch on the 404 status
alone — the text itself differs by where the request stopped: {"message": "Not found."} for a
record that was looked up and not found, an empty message when a {uid} resolved to nothing,
and the router's own sentence when a path parameter does not even match its format (a {uid}
that is not 26 characters, for instance).
{
"message": "Not found."
}
1 fields
| Field | Type | Description |
|---|---|---|
message |
string |
Human-readable reason. Carries no numeric code — these endpoints are not payment endpoints. |
Field validation failed, or the system user has no wallet behind the company wallet resolved from
region and currency (15000). The two shapes differ: validation carries errors, the
missing wallet carries only the code in message. 15000 is not 11000 — that one is about your
own company wallet and answers 403.
{
"message": "15000"
}
The rate limit was exceeded. Which limit depends on where the endpoint lives: /payments/* and
/oauth/* share one bucket of 300 requests per minute per IP address, while an endpoint of
/payment-requests/* that changes something is capped at 60 per minute per OAuth client and per IP,
on a counter shared with its siblings — see Overview.
The response carries Retry-After with the number of seconds to wait, plus X-RateLimit-Limit and
X-RateLimit-Remaining.
{
"message": "Too Many Attempts."
}
1 fields
| Field | Type | Description |
|---|---|---|
message |
string |
Human-readable reason. Carries no numeric code — these endpoints are not payment endpoints. |
Calculate a payout of a system user before creating it
/payment-requests/v1/users/{uid}/calculate
🔒 Partner token
The same calculation as GET /payment-requests/v1/calculate, with the system user as the subject:
what leaves their funds, the conversion if one applies, and what the recipient gets. Use it to show
the person the final numbers before you create the payout.
Limits come from the template's payment method and from the funds on the user's balance — the same
ones POST /payment-requests/v1/users/{uid}/payout validates against, so an amount this endpoint
accepts is an amount the payout accepts.
Parameters
| Name | In | Type | Description | |
|---|---|---|---|---|
uid |
path | string | required | The system user's |
template_id |
query | integer | required | Payout template belonging to this system user. |
amount |
query | string | required | Decimal amount to withdraw from the user's funds. |
Example call
curl "$BASE_URL/payment-requests/v1/users/<uid>/calculate?template_id=<template_id>&amount=<amount>" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Accept: application/json"
const response = await fetch(`${baseUrl}/payment-requests/v1/users/<uid>/calculate?template_id=<template_id>&amount=<amount>`, {
method: 'GET',
headers: {
Accept: 'application/json',
Authorization: `Bearer ${accessToken}`,
},
});
const data = await response.json();
import requests
response = requests.get(
f"{base_url}/payment-requests/v1/users/<uid>/calculate?template_id=<template_id>&amount=<amount>",
headers={
"Accept": "application/json",
"Authorization": f"Bearer {access_token}",
},
)
data = response.json()
$client = new GuzzleHttp\Client();
$response = $client->request('GET', "{$baseUrl}/payment-requests/v1/users/<uid>/calculate?template_id=<template_id>&amount=<amount>", [
'headers' => [
'Accept' => 'application/json',
'Authorization' => "Bearer {$accessToken}",
],
]);
$data = json_decode((string)$response->getBody(), true);
Responses
Calculation result
{
"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"
}
}
15 fields
| Field | Type | Description |
|---|---|---|
withdraw |
object |
What leaves your balance, including the payment method fee. |
withdraw.currency |
string | |
withdraw.amount |
string | |
withdraw.fee |
string | |
withdraw.total_amount |
string | |
exchange |
object |
Always present on this endpoint; |
exchange.currency |
string | |
exchange.rate |
string | |
exchange.amount |
string | |
exchange.fee |
string | |
exchange.total_amount |
string | |
payment |
object |
What the recipient receives. |
payment.currency |
string | |
payment.amount |
string | |
payment.fee |
string |
Exchange calculation failed (12020) or an unexpected error (4000)
{
"message": "2000"
}
1 fields
| Field | Type | Description |
|---|---|---|
message |
string |
Numeric error code as a string — see the Errors guide. Rejections that happen before the
payment layer carry text instead ( |
A missing, malformed or expired token gives {"message": "Unauthenticated."} with no numeric code.
Code 1000 appears only when the token is valid but no account is bound to the client.
{
"message": "Unauthenticated."
}
1 fields
| Field | Type | Description |
|---|---|---|
message |
string |
Numeric error code as a string — see the Errors guide. Rejections that happen before the
payment layer carry text instead ( |
The template's stored details no longer pass the method's validation (12011), the person is
not verified (15001), or the client's account is not a company (2000).
{
"message": "15001"
}
1 fields
| Field | Type | Description |
|---|---|---|
message |
string |
Numeric error code as a string — see the Errors guide. Rejections that happen before the
payment layer carry text instead ( |
The record is out of your reach, or the path parameter matches nothing. What "yours" means
depends on the endpoint, and the scopes do not coincide when a company runs several OAuth
clients: payouts (/payments*) and batch progress (/payment-requests/v1/payout/{id}) are
scoped to the OAuth client that created the record, payout requests
(/payment-requests/v1/status) and the company's payout templates are scoped to the
company, and everything addressed by {uid} is scoped to your network (MCN) — several
clients or company accounts of one network share the same system users. Each operation says which
one applies.
The body carries no numeric code and no detail about the record, so branch on the 404 status
alone — the text itself differs by where the request stopped: {"message": "Not found."} for a
record that was looked up and not found, an empty message when a {uid} resolved to nothing,
and the router's own sentence when a path parameter does not even match its format (a {uid}
that is not 26 characters, for instance).
{
"message": "Not found."
}
1 fields
| Field | Type | Description |
|---|---|---|
message |
string |
Human-readable reason. Carries no numeric code — these endpoints are not payment endpoints. |
Field validation failed, including a reused request_id or an unknown one on status lookup
{
"message": "The request id has already been taken.",
"errors": {
"request_id": [
"The request id has already been taken."
]
}
}
2 fields
| Field | Type | Description |
|---|---|---|
message |
string |
The first failed message, not a generic sentence. When more than one field failed the
count is appended, singular or plural by the number: |
errors |
object |
Field name → list of messages. Field names match the keys you sent, dotted for arrays ( |
Create a payout from a system user
/payment-requests/v1/users/{uid}/payout
🔒 Partner token
Pays out the funds of a system user to one of their own payout templates. The body and the response
are the same as on POST /payment-requests/v1/single; the subject is the difference — the template
and the balance belong to the user from the path, not to your company.
Fund the user first: the maximum amount is derived from their funds, so a payout from an empty
wallet fails validation with 422. region and currency are not taken here — the wallet
follows from the template.
Additional fields depend on the template's payment method: some methods require payment_purpose,
others reject it. Check the method's fields with
POST /payment-requests/v1/users/{uid}/payment-methods/fields before sending.
The system user must have passed identity verification, otherwise the request is refused with
403 and code 15001.
request_id must be unique within your company (16–255 characters). Poll the payout with
GET /payment-requests/v1/status.
Limited to 60 requests per minute, counted per OAuth client and per IP address.
The counter is shared by every money endpoint of /payment-requests/v1: single, bulk, and a
system user's fund and payout.
Parameters
| Name | In | Type | Description | |
|---|---|---|---|---|
uid |
path | string | required | The system user's |
Body
| Field | Type | Description | |
|---|---|---|---|
request_id |
string | required |
Unique within your company. |
template_id |
integer | required |
Payout template holding the recipient details — it also decides the wallet. |
amount |
string | required |
Decimal amount. Limits depend on the method and your balance. |
payment_purpose |
string |
Required by some methods, rejected by others. |
Example call
curl -X POST "$BASE_URL/payment-requests/v1/users/<uid>/payout" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"request_id": "partner-user-payout-2026-08-03-0001",
"template_id": 8851,
"amount": "50.00",
"payment_purpose": "Order 42"
}'
const response = await fetch(`${baseUrl}/payment-requests/v1/users/<uid>/payout`, {
method: 'POST',
headers: {
Accept: 'application/json',
Authorization: `Bearer ${accessToken}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"request_id": "partner-user-payout-2026-08-03-0001",
"template_id": 8851,
"amount": "50.00",
"payment_purpose": "Order 42"
}),
});
const data = await response.json();
import requests
response = requests.post(
f"{base_url}/payment-requests/v1/users/<uid>/payout",
headers={
"Accept": "application/json",
"Authorization": f"Bearer {access_token}",
},
json={
"request_id": "partner-user-payout-2026-08-03-0001",
"template_id": 8851,
"amount": "50.00",
"payment_purpose": "Order 42"
},
)
data = response.json()
$client = new GuzzleHttp\Client();
$response = $client->request('POST', "{$baseUrl}/payment-requests/v1/users/<uid>/payout", [
'headers' => [
'Accept' => 'application/json',
'Authorization' => "Bearer {$accessToken}",
],
'json' => [
'request_id' => 'partner-user-payout-2026-08-03-0001',
'template_id' => 8851,
'amount' => '50.00',
'payment_purpose' => 'Order 42',
],
]);
$data = json_decode((string)$response->getBody(), true);
Responses
Payout request created
{
"data": {
"payout": {
"id": 15921,
"request_id": "3a7c2f10-5b8e-4d21-9c44-6e1f2b7a90d3",
"status": 2,
"err_msg": null
},
"payment_request": {
"id": 90244,
"template_id": 8851,
"withdraw": {
"currency": "USD",
"amount": "50",
"fee": "0.5"
},
"payment_purpose": "Order 42",
"status": "new",
"created_at": "2026-08-03T12:00:00+00:00",
"updated_at": "2026-08-03T12:00:00+00:00"
}
}
}
17 fields
| Field | Type | Description |
|---|---|---|
data |
object | |
data.payout |
object |
The umbrella record of |
data.payout.id |
integer | |
data.payout.request_id |
string |
Garna's own identifier of the record, a UUID — not the |
data.payout.status |
integer |
Same column as 1 · 2 · 3
|
data.payout.err_msg |
string |
Error code as a string when the record itself failed — not a verdict on its entries. |
data.payment_request |
object |
Three of these keys are conditional, and the condition is the endpoint or the payout state — not the data you sent:
Do not treat an absent key as an empty value — check for presence. |
data.payment_request.id |
integer | |
data.payment_request.template_id |
integer | |
data.payment_request.withdraw |
object |
Money breakdown stored on a payout request. Unlike |
data.payment_request.exchange |
object |
Currency conversion. Absent until the payout reaches |
data.payment_request.payment |
object |
What the recipient receives. Absent until the payout reaches |
data.payment_request.payment_purpose |
string | |
data.payment_request.template |
object |
The payout template this request pays to. Present on |
data.payment_request.status |
string |
Status of the payout transaction. new · pending · waiting · success · error · reject · null
|
data.payment_request.created_at |
string (date-time) | |
data.payment_request.updated_at |
string (date-time) |
The funds are below the requested amount (8000) — the limit itself is validated first, so
this is the case where they were spent in between — the exchange calculation failed (12020),
or an unexpected error happened on our side (4000).
{
"message": "8000"
}
1 fields
| Field | Type | Description |
|---|---|---|
message |
string |
Numeric error code as a string — see the Errors guide. Rejections that happen before the
payment layer carry text instead ( |
A missing, malformed or expired token gives {"message": "Unauthenticated."} with no numeric code.
Code 1000 appears only when the token is valid but no account is bound to the client.
{
"message": "Unauthenticated."
}
1 fields
| Field | Type | Description |
|---|---|---|
message |
string |
Numeric error code as a string — see the Errors guide. Rejections that happen before the
payment layer carry text instead ( |
The system user has not passed identity verification (15001), the template's stored data no
longer passes the method's validation (12011), or the client's account is not a company
(2000).
{
"message": "15001"
}
1 fields
| Field | Type | Description |
|---|---|---|
message |
string |
Numeric error code as a string — see the Errors guide. Rejections that happen before the
payment layer carry text instead ( |
The record is out of your reach, or the path parameter matches nothing. What "yours" means
depends on the endpoint, and the scopes do not coincide when a company runs several OAuth
clients: payouts (/payments*) and batch progress (/payment-requests/v1/payout/{id}) are
scoped to the OAuth client that created the record, payout requests
(/payment-requests/v1/status) and the company's payout templates are scoped to the
company, and everything addressed by {uid} is scoped to your network (MCN) — several
clients or company accounts of one network share the same system users. Each operation says which
one applies.
The body carries no numeric code and no detail about the record, so branch on the 404 status
alone — the text itself differs by where the request stopped: {"message": "Not found."} for a
record that was looked up and not found, an empty message when a {uid} resolved to nothing,
and the router's own sentence when a path parameter does not even match its format (a {uid}
that is not 26 characters, for instance).
{
"message": "Not found."
}
1 fields
| Field | Type | Description |
|---|---|---|
message |
string |
Human-readable reason. Carries no numeric code — these endpoints are not payment endpoints. |
Field validation failed, including a reused request_id or an unknown one on status lookup
{
"message": "The request id has already been taken.",
"errors": {
"request_id": [
"The request id has already been taken."
]
}
}
2 fields
| Field | Type | Description |
|---|---|---|
message |
string |
The first failed message, not a generic sentence. When more than one field failed the
count is appended, singular or plural by the number: |
errors |
object |
Field name → list of messages. Field names match the keys you sent, dotted for arrays ( |
The rate limit was exceeded. Which limit depends on where the endpoint lives: /payments/* and
/oauth/* share one bucket of 300 requests per minute per IP address, while an endpoint of
/payment-requests/* that changes something is capped at 60 per minute per OAuth client and per IP,
on a counter shared with its siblings — see Overview.
The response carries Retry-After with the number of seconds to wait, plus X-RateLimit-Limit and
X-RateLimit-Remaining.
{
"message": "Too Many Attempts."
}
1 fields
| Field | Type | Description |
|---|---|---|
message |
string |
Human-readable reason. Carries no numeric code — these endpoints are not payment endpoints. |