/api/v2/payments/createCreate a payment with automatic currency exchange and transfer
Use the existing optional merchantReferenceId as a stable collection reference within the company/user. Repeating it returns the recorded operation without redispatch, including after a one-time mandate was consumed. Changing amount, currency or an explicitly supplied mandateId returns 400 VALIDATION_ERROR. Without a reference, each call creates a new collection. Returned pending/unknown provider outcomes return HTTP 200 with status processing; confirmed completion returns success and definite rejection failed. Transport errors/timeouts may still return 500 INTERNAL_SERVER_ERROR while retaining the operation and allowance: keep the same reference and reconcile its outcome. Mandate allowance is reserved before provider dispatch across payment collections and user-to-master transfers. Outstanding, uncertain and completed collections count toward the period allowance. A one-time mandate allows one outstanding/completed collection; definite no-debit outcomes release the reservation. Unresolved historical operations also count.
Authentication
Send your API key in the x-api-key header on every request.
Request body
application/json
| Field | Type | Required | Description |
|---|---|---|---|
| UserId | unknown | Yes | |
| Amount | string | Yes | |
| Currency | string | Yes | |
| Description | string | No | |
| MerchantReferenceId | string | No | Optional stable collection reference within company/user. Reuse it for the same operation; conflicting amount, currency or explicit mandateId returns 400 VALIDATION_ERROR. Omission creates a new collection per call. |
| MandateId | unknown | No | |
| Metadata | object | No |
Responses
200 — Recorded payment outcome. status is success only on confirmed completion; returned pending/unknown provider outcomes are processing, and definite rejection is failed.
| Field | Type | Required | Description |
|---|---|---|---|
| Id | unknown | No | |
| Status | string | No | success on confirmed completion; processing on returned pending/unknown provider outcomes; failed on definite rejection. Other existing pre-dispatch/funding states remain possible. |
| Message | string | No | |
| TransactionId | unknown | No | |
| TransferId | string | No | |
| ExchangeQuote | object | No | |
| ExchangeTradeId | string | No | |
| RequiredAmount | string | No | |
| AvailableAmount | string | No | |
| Shortfall | string | No | |
| TransakOrder | object | No | |
| Amount | string | No | |
| Currency | string | No | |
| UserId | unknown | No | |
| CompanyId | unknown | No | |
| MandateId | unknown | No | |
| CreatedAt | string | No |
400 — Invalid terms/mandate or a reused merchantReferenceId with conflicting amount, currency or explicit mandate: VALIDATION_ERROR or INVALID_OPERATION.
| Field | Type | Required | Description |
|---|---|---|---|
| Message | string | No | |
| Code | string | No | |
| Status | unknown | No | |
| ValidationErrors | object | No | |
| Details | string | No |
403 — UNAUTHORIZED_ACCESS: the caller cannot collect for the selected user.
| Field | Type | Required | Description |
|---|---|---|---|
| Message | string | No | |
| Code | string | No | |
| Status | unknown | No | |
| ValidationErrors | object | No | |
| Details | string | No |
404 — Not Found
| Field | Type | Required | Description |
|---|---|---|---|
| Message | string | No | |
| Code | string | No | |
| Status | unknown | No | |
| ValidationErrors | object | No | |
| Details | string | No |
500 — INTERNAL_SERVER_ERROR. A provider transport error may leave an uncertain recorded operation; reconcile or retry with the original merchantReferenceId.
| Field | Type | Required | Description |
|---|---|---|---|
| Message | string | No | |
| Code | string | No | |
| Status | unknown | No | |
| ValidationErrors | object | No | |
| Details | string | No |
Example request
curl -X POST "https://{base_url}/api/v2/payments/create" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"UserId":"…","Amount":"…","Currency":"…"}'This page is generated from the live OpenAPI specification and always matches the current API.