POST/api/v2/payments/create

Create 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

Request body fields
FieldTypeRequiredDescription
UserIdunknownYes
AmountstringYes
CurrencystringYes
DescriptionstringNo
MerchantReferenceIdstringNoOptional 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.
MandateIdunknownNo
MetadataobjectNo

Responses

200 — Recorded payment outcome. status is success only on confirmed completion; returned pending/unknown provider outcomes are processing, and definite rejection is failed.

Response 200 fields
FieldTypeRequiredDescription
IdunknownNo
StatusstringNosuccess on confirmed completion; processing on returned pending/unknown provider outcomes; failed on definite rejection. Other existing pre-dispatch/funding states remain possible.
MessagestringNo
TransactionIdunknownNo
TransferIdstringNo
ExchangeQuoteobjectNo
ExchangeTradeIdstringNo
RequiredAmountstringNo
AvailableAmountstringNo
ShortfallstringNo
TransakOrderobjectNo
AmountstringNo
CurrencystringNo
UserIdunknownNo
CompanyIdunknownNo
MandateIdunknownNo
CreatedAtstringNo

400 — Invalid terms/mandate or a reused merchantReferenceId with conflicting amount, currency or explicit mandate: VALIDATION_ERROR or INVALID_OPERATION.

Response 400 fields
FieldTypeRequiredDescription
MessagestringNo
CodestringNo
StatusunknownNo
ValidationErrorsobjectNo
DetailsstringNo

403 — UNAUTHORIZED_ACCESS: the caller cannot collect for the selected user.

Response 403 fields
FieldTypeRequiredDescription
MessagestringNo
CodestringNo
StatusunknownNo
ValidationErrorsobjectNo
DetailsstringNo

404 — Not Found

Response 404 fields
FieldTypeRequiredDescription
MessagestringNo
CodestringNo
StatusunknownNo
ValidationErrorsobjectNo
DetailsstringNo

500 — INTERNAL_SERVER_ERROR. A provider transport error may leave an uncertain recorded operation; reconcile or retry with the original merchantReferenceId.

Response 500 fields
FieldTypeRequiredDescription
MessagestringNo
CodestringNo
StatusunknownNo
ValidationErrorsobjectNo
DetailsstringNo

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.