System users /payment-requests/v1/users

/payment-requests/v1/users — provisioning your own end users, their verification, payout templates and money.

Create a system user

POST /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

FieldTypeDescription
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 409.

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 lang says.

last_name string required

Family name of the person, under the same character restriction as first_name.

country_id integer required

Country of the person — see country of GET /oauth/user for the shape of the reference.

birthday string (date) required

Date of birth as Y-m-d, in the past, and the person must be at least 18: a minor is sent to an additional-document step that only the dashboard can complete, and this API cannot. Send the real date: verification compares it with what the provider reports and rejects a mismatch, so a placeholder leaves the user unable to pass it — and therefore unable to be paid out. A wrong date can be corrected with PUT /payment-requests/v1/users/{uid} while the identity step is not approved yet.

lang string

Language of the account. Defaults to en when omitted.

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

200

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
FieldTypeDescription
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. is_verified is the only flag that gates a payout — the three statuses below explain where the person stopped, they are not conditions you have to combine yourself.

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 new, 2 pending, 3 approved, 4 rejected, 5 permanently rejected, 6 invalid document, 7 manual review. Never null: the column is NOT NULL.

1 · 2 · 3 · 4 · 5 · 6 · 7
data.kyc.document_status integer

Status of the document step: 1 new, 2 pending, 3 approved, 4 rejected. A shorter scale than KycStatus — the document step has no manual review and no permanent rejection. Never null: the column is NOT NULL.

1 · 2 · 3 · 4
data.kyc.address_status integer

Identity verification status: 1 new, 2 pending, 3 approved, 4 rejected, 5 permanently rejected, 6 invalid document, 7 manual review. Never null: the column is NOT NULL.

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 region and currency: those are the values the rest of the group takes as parameters.

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

ACTIVE is the only status a transfer or a payout accepts. Wallets are created active; the other values come from our own checks, not from anything you send.

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.

201

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
FieldTypeDescription
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. is_verified is the only flag that gates a payout — the three statuses below explain where the person stopped, they are not conditions you have to combine yourself.

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 new, 2 pending, 3 approved, 4 rejected, 5 permanently rejected, 6 invalid document, 7 manual review. Never null: the column is NOT NULL.

1 · 2 · 3 · 4 · 5 · 6 · 7
data.kyc.document_status integer

Status of the document step: 1 new, 2 pending, 3 approved, 4 rejected. A shorter scale than KycStatus — the document step has no manual review and no permanent rejection. Never null: the column is NOT NULL.

1 · 2 · 3 · 4
data.kyc.address_status integer

Identity verification status: 1 new, 2 pending, 3 approved, 4 rejected, 5 permanently rejected, 6 invalid document, 7 manual review. Never null: the column is NOT NULL.

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 region and currency: those are the values the rest of the group takes as parameters.

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

ACTIVE is the only status a transfer or a payout accepts. Wallets are created active; the other values come from our own checks, not from anything you send.

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.

401

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
FieldTypeDescription
message string

Numeric error code as a string — see the Errors guide. Rejections that happen before the payment layer carry text instead ("Unauthenticated."), so match the value, never parse it as a number.

403

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
FieldTypeDescription
message string

Numeric error code as a string — see the Errors guide. Rejections that happen before the payment layer carry text instead ("Unauthenticated."), so match the value, never parse it as a number.

409

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
FieldTypeDescription
message string

Numeric error code as a string — see the Errors guide. Rejections that happen before the payment layer carry text instead ("Unauthenticated."), so match the value, never parse it as a number.

422

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
FieldTypeDescription
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: (and 1 more error), (and 3 more errors). On /oauth* the text is translated to the requested language. Read errors rather than this field.

errors object

Field name → list of messages. Field names match the keys you sent, dotted for arrays (data.0.wallet).

429

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
FieldTypeDescription
message string

Human-readable reason. Carries no numeric code — these endpoints are not payment endpoints.

Start identity verification of a system user

POST /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

NameInTypeDescription
uid path string required

The system user's uid, returned when the user was created.

Body

FieldTypeDescription
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 kyc rather than from the landing itself. Must be https and a publicly resolvable host: the provider rejects localhost and reserved domains, which reaches you as 502 with code 14001.

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

200

Verification session opened

{
    "data": {
        "provider": "didit",
        "verification": {
            "type": "verification_url",
            "value": "https://verify.example.com/session/8f14e45fceea167a"
        }
    }
}
5 fields
FieldTypeDescription
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 value is always a URL and type is always verification_url — no SDK to embed on your side. The field stays in the response because a future provider may need a different treatment.

data.verification.type string

What value is. Always verification_url today.

verification_url
data.verification.value string

The page to open for the person. Expires; start again to get a fresh one.

401

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
FieldTypeDescription
message string

Numeric error code as a string — see the Errors guide. Rejections that happen before the payment layer carry text instead ("Unauthenticated."), so match the value, never parse it as a number.

403

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
FieldTypeDescription
message string

Numeric error code as a string — see the Errors guide. Rejections that happen before the payment layer carry text instead ("Unauthenticated."), so match the value, never parse it as a number.

404

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
FieldTypeDescription
message string

Human-readable reason. Carries no numeric code — these endpoints are not payment endpoints.

422

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
FieldTypeDescription
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: (and 1 more error), (and 3 more errors). On /oauth* the text is translated to the requested language. Read errors rather than this field.

errors object

Field name → list of messages. Field names match the keys you sent, dotted for arrays (data.0.wallet).

502

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
FieldTypeDescription
message string

Numeric error code as a string — see the Errors guide. Rejections that happen before the payment layer carry text instead ("Unauthenticated."), so match the value, never parse it as a number.

429

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
FieldTypeDescription
message string

Human-readable reason. Carries no numeric code — these endpoints are not payment endpoints.

Get a system user

GET /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

NameInTypeDescription
uid path string required

The system user's uid, returned when the user was created.

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

200

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
FieldTypeDescription
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. is_verified is the only flag that gates a payout — the three statuses below explain where the person stopped, they are not conditions you have to combine yourself.

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 new, 2 pending, 3 approved, 4 rejected, 5 permanently rejected, 6 invalid document, 7 manual review. Never null: the column is NOT NULL.

1 · 2 · 3 · 4 · 5 · 6 · 7
data.kyc.document_status integer

Status of the document step: 1 new, 2 pending, 3 approved, 4 rejected. A shorter scale than KycStatus — the document step has no manual review and no permanent rejection. Never null: the column is NOT NULL.

1 · 2 · 3 · 4
data.kyc.address_status integer

Identity verification status: 1 new, 2 pending, 3 approved, 4 rejected, 5 permanently rejected, 6 invalid document, 7 manual review. Never null: the column is NOT NULL.

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 region and currency: those are the values the rest of the group takes as parameters.

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

ACTIVE is the only status a transfer or a payout accepts. Wallets are created active; the other values come from our own checks, not from anything you send.

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.

401

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
FieldTypeDescription
message string

Numeric error code as a string — see the Errors guide. Rejections that happen before the payment layer carry text instead ("Unauthenticated."), so match the value, never parse it as a number.

403

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
FieldTypeDescription
message string

Numeric error code as a string — see the Errors guide. Rejections that happen before the payment layer carry text instead ("Unauthenticated."), so match the value, never parse it as a number.

404

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
FieldTypeDescription
message string

Human-readable reason. Carries no numeric code — these endpoints are not payment endpoints.

Correct a system user's details

PUT /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

NameInTypeDescription
uid path string required

The system user's uid, returned when the user was created.

Body

FieldTypeDescription
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 first_name.

country_id integer

Country of the person.

birthday string (date)

Date of birth as Y-m-d, in the past, at least 18 years ago.

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

200

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
FieldTypeDescription
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. is_verified is the only flag that gates a payout — the three statuses below explain where the person stopped, they are not conditions you have to combine yourself.

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 new, 2 pending, 3 approved, 4 rejected, 5 permanently rejected, 6 invalid document, 7 manual review. Never null: the column is NOT NULL.

1 · 2 · 3 · 4 · 5 · 6 · 7
data.kyc.document_status integer

Status of the document step: 1 new, 2 pending, 3 approved, 4 rejected. A shorter scale than KycStatus — the document step has no manual review and no permanent rejection. Never null: the column is NOT NULL.

1 · 2 · 3 · 4
data.kyc.address_status integer

Identity verification status: 1 new, 2 pending, 3 approved, 4 rejected, 5 permanently rejected, 6 invalid document, 7 manual review. Never null: the column is NOT NULL.

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 region and currency: those are the values the rest of the group takes as parameters.

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

ACTIVE is the only status a transfer or a payout accepts. Wallets are created active; the other values come from our own checks, not from anything you send.

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.

401

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
FieldTypeDescription
message string

Numeric error code as a string — see the Errors guide. Rejections that happen before the payment layer carry text instead ("Unauthenticated."), so match the value, never parse it as a number.

403

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
FieldTypeDescription
message string

Numeric error code as a string — see the Errors guide. Rejections that happen before the payment layer carry text instead ("Unauthenticated."), so match the value, never parse it as a number.

404

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
FieldTypeDescription
message string

Human-readable reason. Carries no numeric code — these endpoints are not payment endpoints.

409

The identity step is already approved, so the details are fixed (15002)

{
    "message": "15002"
}
1 fields
FieldTypeDescription
message string

Numeric error code as a string — see the Errors guide. Rejections that happen before the payment layer carry text instead ("Unauthenticated."), so match the value, never parse it as a number.

422

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
FieldTypeDescription
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: (and 1 more error), (and 3 more errors). On /oauth* the text is translated to the requested language. Read errors rather than this field.

errors object

Field name → list of messages. Field names match the keys you sent, dotted for arrays (data.0.wallet).

429

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
FieldTypeDescription
message string

Human-readable reason. Carries no numeric code — these endpoints are not payment endpoints.

List payment methods of a system user

GET /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

NameInTypeDescription
uid path string required

The system user's uid, returned when the user was created.

region query string required

Accounting region. Selects the company wallet together with currency.

currency query string required

Currency of the company wallet, together with region. A pair passes validation whether or not your company has a wallet behind it; a pair with no wallet is refused with 403 and code 11000. On a system user's endpoints the pair is resolved twice, company wallet first — a missing active wallet of the user behind an existing company wallet is 422 with code 15000.

Example call

curl "$BASE_URL/payment-requests/v1/users/<uid>/payment-methods?region=cyprus&currency=USD" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Accept: application/json"
const response = await fetch(`${baseUrl}/payment-requests/v1/users/<uid>/payment-methods?region=cyprus&currency=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&currency=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&currency=USD", [
    'headers' => [
        'Accept' => 'application/json',
        'Authorization' => "Bearer {$accessToken}",
    ],
]);

$data = json_decode((string)$response->getBody(), true);

Responses

200

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
FieldTypeDescription
data object[]
data[].id integer
data[].name string

Display name, always in English — the partner API ignores Accept-Language and ?lang. null when the method has no English translation; fall back to category or to your own label rather than showing an empty row.

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 limit; the tier with limit: null covers everything above. percent_fee is a fraction, not percent — "0.03" means 3%.

data[].commission[].fix_fee string
data[].commission[].percent_fee string

Fraction of the amount — "0.03" is 3%.

data[].commission[].min_fee string
data[].commission[].max_fee string
data[].commission[].limit string

Upper bound of the amount this tier covers; null on the last tier.

401

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
FieldTypeDescription
message string

Numeric error code as a string — see the Errors guide. Rejections that happen before the payment layer carry text instead ("Unauthenticated."), so match the value, never parse it as a number.

403

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
FieldTypeDescription
message string

Numeric error code as a string — see the Errors guide. Rejections that happen before the payment layer carry text instead ("Unauthenticated."), so match the value, never parse it as a number.

404

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
FieldTypeDescription
message string

Human-readable reason. Carries no numeric code — these endpoints are not payment endpoints.

422

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

POST /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

NameInTypeDescription
uid path string required

The system user's uid, returned when the user was created.

Body

FieldTypeDescription
region string required

Accounting region. Selects the company wallet together with currency.

cyprus · garna-cy
currency string required

Currency of the company wallet, together with region. A pair passes validation whether or not your company has a wallet behind it; a pair with no wallet is refused with 403 and code 11000. On a system user's endpoints the pair is resolved twice, company wallet first — a missing active wallet of the user behind an existing company wallet is 422 with code 15000.

USD · EUR
payment_method_id integer required

The id from the listing of the subject you are acting for: GET /payment-requests/v1/payment-methods for your company, GET /payment-requests/v1/users/{uid}/payment-methods for a system user.

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

200

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
FieldTypeDescription
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 identity values.

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.

401

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
FieldTypeDescription
message string

Numeric error code as a string — see the Errors guide. Rejections that happen before the payment layer carry text instead ("Unauthenticated."), so match the value, never parse it as a number.

403

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
FieldTypeDescription
message string

Numeric error code as a string — see the Errors guide. Rejections that happen before the payment layer carry text instead ("Unauthenticated."), so match the value, never parse it as a number.

404

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
FieldTypeDescription
message string

Human-readable reason. Carries no numeric code — these endpoints are not payment endpoints.

422

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

POST /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

NameInTypeDescription
uid path string required

The system user's uid, returned when the user was created.

Body

FieldTypeDescription
region string required

Accounting region. Selects the company wallet together with currency.

cyprus · garna-cy
currency string required

Currency of the company wallet, together with region. A pair passes validation whether or not your company has a wallet behind it; a pair with no wallet is refused with 403 and code 11000. On a system user's endpoints the pair is resolved twice, company wallet first — a missing active wallet of the user behind an existing company wallet is 422 with code 15000.

USD · EUR
payment_method_id integer required

The id from the listing of the subject you are acting for — your company's or a system user's — and it must be enabled for the partner API.

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

200

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
FieldTypeDescription
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)
201

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
FieldTypeDescription
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)
400

Template could not be generated (4000)

{
    "message": "2000"
}
1 fields
FieldTypeDescription
message string

Numeric error code as a string — see the Errors guide. Rejections that happen before the payment layer carry text instead ("Unauthenticated."), so match the value, never parse it as a number.

401

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
FieldTypeDescription
message string

Numeric error code as a string — see the Errors guide. Rejections that happen before the payment layer carry text instead ("Unauthenticated."), so match the value, never parse it as a number.

403

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
FieldTypeDescription
message string

Numeric error code as a string — see the Errors guide. Rejections that happen before the payment layer carry text instead ("Unauthenticated."), so match the value, never parse it as a number.

404

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
FieldTypeDescription
message string

Human-readable reason. Carries no numeric code — these endpoints are not payment endpoints.

406

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
FieldTypeDescription
errors object

Field name → the provider's message. Most providers prefix the name with identity., matching the keys you sent, and a rejection they did not attribute to a field arrives as without_field. Some pass their own field name through unprefixed, so match the suffix rather than the whole key.

422

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

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
FieldTypeDescription
message string

Human-readable reason. Carries no numeric code — these endpoints are not payment endpoints.

List payout templates of a system user

GET /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

NameInTypeDescription
uid path string required

The system user's uid, returned when the user was created.

region query string required

Accounting region. Selects the company wallet together with currency.

currency query string required

Currency of the company wallet, together with region. A pair passes validation whether or not your company has a wallet behind it; a pair with no wallet is refused with 403 and code 11000. On a system user's endpoints the pair is resolved twice, company wallet first — a missing active wallet of the user behind an existing company wallet is 422 with code 15000.

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: ?per_page= fails validation.

page query integer

Page number, starting at 1.

Example call

curl "$BASE_URL/payment-requests/v1/users/<uid>/templates?region=cyprus&currency=USD" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Accept: application/json"
const response = await fetch(`${baseUrl}/payment-requests/v1/users/<uid>/templates?region=cyprus&currency=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&currency=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&currency=USD", [
    'headers' => [
        'Accept' => 'application/json',
        'Authorization' => "Bearer {$accessToken}",
    ],
]);

$data = json_decode((string)$response->getBody(), true);

Responses

200

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
FieldTypeDescription
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 page — the required region, currency and payment_method_id are dropped, so a request to such a URL as it stands fails with 422. Take the page number from here and send it with your own parameters.

links.first string
links.last string
links.prev string

null on the first page.

links.next string

null on the last page.

meta object
meta.current_page integer
meta.from integer

Position of the first item on this page; null on an empty 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 links; page through by number instead.

meta.links[].url string
meta.links[].label string

HTML entities included — &laquo; Previous, 1, Next &raquo;.

meta.links[].active boolean
meta.path string
meta.per_page integer
meta.to integer

Position of the last item on this page; null on an empty page.

meta.total integer

Templates matching the filter across all pages.

401

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
FieldTypeDescription
message string

Numeric error code as a string — see the Errors guide. Rejections that happen before the payment layer carry text instead ("Unauthenticated."), so match the value, never parse it as a number.

403

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
FieldTypeDescription
message string

Numeric error code as a string — see the Errors guide. Rejections that happen before the payment layer carry text instead ("Unauthenticated."), so match the value, never parse it as a number.

404

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
FieldTypeDescription
message string

Human-readable reason. Carries no numeric code — these endpoints are not payment endpoints.

422

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

GET /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

NameInTypeDescription
uid path string required

The system user's uid, returned when the user was created.

templateId path integer required

The template id returned when it was created.

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

200

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
FieldTypeDescription
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)
401

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
FieldTypeDescription
message string

Numeric error code as a string — see the Errors guide. Rejections that happen before the payment layer carry text instead ("Unauthenticated."), so match the value, never parse it as a number.

403

The template's payment method is no longer enabled for the partner API (12000)

{
    "message": "2000"
}
1 fields
FieldTypeDescription
message string

Numeric error code as a string — see the Errors guide. Rejections that happen before the payment layer carry text instead ("Unauthenticated."), so match the value, never parse it as a number.

404

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
FieldTypeDescription
message string

Human-readable reason. Carries no numeric code — these endpoints are not payment endpoints.

Delete a payout template of a system user

DELETE /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

NameInTypeDescription
uid path string required

The system user's uid, returned when the user was created.

templateId path integer required

The template id returned when it was created.

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

204

Template deleted

401

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
FieldTypeDescription
message string

Numeric error code as a string — see the Errors guide. Rejections that happen before the payment layer carry text instead ("Unauthenticated."), so match the value, never parse it as a number.

403

The template's payment method is no longer enabled for the partner API (12000)

{
    "message": "2000"
}
1 fields
FieldTypeDescription
message string

Numeric error code as a string — see the Errors guide. Rejections that happen before the payment layer carry text instead ("Unauthenticated."), so match the value, never parse it as a number.

404

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
FieldTypeDescription
message string

Human-readable reason. Carries no numeric code — these endpoints are not payment endpoints.

429

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
FieldTypeDescription
message string

Human-readable reason. Carries no numeric code — these endpoints are not payment endpoints.

Fund a system user

POST /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

NameInTypeDescription
uid path string required

The system user's uid, returned when the user was created.

Body

FieldTypeDescription
request_id string required

Your unique identifier for this transfer. Uniqueness is global, not per company, exactly as on POST /payments/v2/payout: a value already used by another integration is rejected with 422 too.

region string required

Accounting region. Selects the company wallet together with currency.

cyprus · garna-cy
currency string required

Currency of the company wallet, together with region. A pair passes validation whether or not your company has a wallet behind it; a pair with no wallet is refused with 403 and code 11000. On a system user's endpoints the pair is resolved twice, company wallet first — a missing active wallet of the user behind an existing company wallet is 422 with code 15000.

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

201

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
FieldTypeDescription
data object
data.id integer
data.request_id string
data.status integer

1 processing, 2 success, 3 failed.

1 · 2 · 3
data.err_msg integer or string

Error code when status is 3. Its JSON type depends on the endpoint: the response to creating a payout carries it as a number (3000), a status lookup reads the same value from the database and carries it as a string ("3000"). Compare it after casting, never strictly.

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 custom_id, so a custom_id matches a pair of transactions, never a single one. A payout to 10 recipients returns 20 entries.

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 POST /payments/v2/payout and never on a status lookup. Do not depend on it — you already know your client.

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)
401

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
FieldTypeDescription
message string

Numeric error code as a string — see the Errors guide. Rejections that happen before the payment layer carry text instead ("Unauthenticated."), so match the value, never parse it as a number.

403

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
FieldTypeDescription
message string

Numeric error code as a string — see the Errors guide. Rejections that happen before the payment layer carry text instead ("Unauthenticated."), so match the value, never parse it as a number.

404

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
FieldTypeDescription
message string

Human-readable reason. Carries no numeric code — these endpoints are not payment endpoints.

422

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

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
FieldTypeDescription
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

GET /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

NameInTypeDescription
uid path string required

The system user's uid, returned when the user was created.

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

200

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
FieldTypeDescription
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; null when no currency conversion is involved.

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
400

Exchange calculation failed (12020) or an unexpected error (4000)

{
    "message": "2000"
}
1 fields
FieldTypeDescription
message string

Numeric error code as a string — see the Errors guide. Rejections that happen before the payment layer carry text instead ("Unauthenticated."), so match the value, never parse it as a number.

401

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
FieldTypeDescription
message string

Numeric error code as a string — see the Errors guide. Rejections that happen before the payment layer carry text instead ("Unauthenticated."), so match the value, never parse it as a number.

403

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
FieldTypeDescription
message string

Numeric error code as a string — see the Errors guide. Rejections that happen before the payment layer carry text instead ("Unauthenticated."), so match the value, never parse it as a number.

404

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
FieldTypeDescription
message string

Human-readable reason. Carries no numeric code — these endpoints are not payment endpoints.

422

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
FieldTypeDescription
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: (and 1 more error), (and 3 more errors). On /oauth* the text is translated to the requested language. Read errors rather than this field.

errors object

Field name → list of messages. Field names match the keys you sent, dotted for arrays (data.0.wallet).

Create a payout from a system user

POST /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

NameInTypeDescription
uid path string required

The system user's uid, returned when the user was created.

Body

FieldTypeDescription
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

200

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
FieldTypeDescription
data object
data.payout object

The umbrella record of /payment-requests/v1 — one per single request, one per batch. Use its id with GET /payment-requests/v1/payout/{id} to read batch progress.

data.payout.id integer
data.payout.request_id string

Garna's own identifier of the record, a UUID — not the request_id you sent. Yours belongs to the individual entry and is looked up with GET /payment-requests/v1/status.

data.payout.status integer

Same column as McPaymentRequest.status, but here it describes processing, not money: 1 still running, 2 processing finished, 3 gave up. A single request comes back as 2 immediately. Whether an entry was actually paid is only visible per entry — see GET /payment-requests/v1/status.

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:

  • exchange and payment appear only once the payout reaches success. On the response to creating a payout request — POST /payment-requests/v1/single or POST /payment-requests/v1/users/{uid}/payout — and on any status lookup before that, both keys are absent;
  • template is present on GET /payment-requests/v1/status and absent on both creations.

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 calculate, it carries no total_amount. fee is the commission charged for this payout — the value calculate returned for the same template and amount, unless the method's fee settings changed in between. It is filled as soon as the payout is created and is "0" when the method charges nothing. Neither amount nor fee is re-formatted to two decimals ("100", "3"), so compare them as decimals.

data.payment_request.exchange object

Currency conversion. Absent until the payout reaches success, and absent afterwards when no conversion was involved.

data.payment_request.payment object

What the recipient receives. Absent until the payout reaches success.

data.payment_request.payment_purpose string
data.payment_request.template object

The payout template this request pays to. Present on GET /payment-requests/v1/status, absent on the response to POST /payment-requests/v1/single.

data.payment_request.status string

Status of the payout transaction. new and pending mean it is still on its way, success that the money left, error and reject that it did not. null until a transaction exists.

new · pending · waiting · success · error · reject · null
data.payment_request.created_at string (date-time)
data.payment_request.updated_at string (date-time)
400

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
FieldTypeDescription
message string

Numeric error code as a string — see the Errors guide. Rejections that happen before the payment layer carry text instead ("Unauthenticated."), so match the value, never parse it as a number.

401

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
FieldTypeDescription
message string

Numeric error code as a string — see the Errors guide. Rejections that happen before the payment layer carry text instead ("Unauthenticated."), so match the value, never parse it as a number.

403

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
FieldTypeDescription
message string

Numeric error code as a string — see the Errors guide. Rejections that happen before the payment layer carry text instead ("Unauthenticated."), so match the value, never parse it as a number.

404

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
FieldTypeDescription
message string

Human-readable reason. Carries no numeric code — these endpoints are not payment endpoints.

422

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
FieldTypeDescription
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: (and 1 more error), (and 3 more errors). On /oauth* the text is translated to the requested language. Read errors rather than this field.

errors object

Field name → list of messages. Field names match the keys you sent, dotted for arrays (data.0.wallet).

429

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
FieldTypeDescription
message string

Human-readable reason. Carries no numeric code — these endpoints are not payment endpoints.