POST/api/v2/transfers/user-to-master

Create a transfer from user to master account

Company API-key operation for a selected user in the key's company; no user identity claim is required on the API key. Implicit mandate selection uses the newest eligible active mandate for that user/company/currency, skipping exhausted or invalid terms before reserving allowance. Use the existing externalReferenceId for durable replay of the original collection, including a completed one-time mandate. Conflicting amount/currency returns 400 INVALID_TRANSFER_REQUEST. Pending/uncertain provider outcomes remain pending/PROCESSING rather than completed; check the recorded transfer and reconcile before another dispatch. Amount must be positive, with at most six decimal places for USDT/USDC and two for other currencies. Invalid precision returns 400 INVALID_TRANSFER_REQUEST. 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
RequireWalletOutflowsEnabledbooleanNoRequire company outflows before collecting funds for a subsequent recipient credit.
UserIdunknownYes
AmountstringYesAmount must be positive, with at most six decimal places for USDT/USDC and two for other currencies. Invalid precision returns 400 INVALID_TRANSFER_REQUEST.
CurrencystringYes
DescriptionstringNo
ExternalReferenceIdstringNoOptional stable collection reference within company/user. Repeating the same amount/currency replays the recorded transfer without redispatch; conflicting terms return 400 INVALID_TRANSFER_REQUEST.
MetadataobjectNo

Responses

201 — Created

Response 201 fields
FieldTypeRequiredDescription
IdunknownNo
UserIdunknownNo
StatusTransferStatusV2No
AmountstringNo
CurrencystringNo
SourceTypeTransferSourceTypeV2No
DestinationTypeTransferDestinationTypeV2No
DescriptionstringNo
ExternalReferenceIdstringNo
CreatedAtstringNo
CompletedAtstringNo
UpdatedAtstringNo
MetadataobjectNo
TransferTypestringNoTransfer type identifier (e.g., "user_to_master_transfer", "master_to_user_transfer")
MessagestringNoResponse message for the transfer operation
ErrorCodestringNoError code if the transfer failed
FeeAmountstringNoTotal fee amount charged for this transfer (future implementation)
FeeCurrencystringNoCurrency of the fee (future implementation)
FeeTypeTransferFeeTypeNo
NetAmountstringNoNet amount after fees (future implementation)

400 — INVALID_TRANSFER_REQUEST: invalid request, currency precision, mandate terms/allowance or conflicting externalReferenceId.

Response 400 fields
FieldTypeRequiredDescription
MessagestringNo
CodestringNo
StatusunknownNo
ValidationErrorsobjectNo
DetailsstringNo

401 — Unauthorized

Response 401 fields
FieldTypeRequiredDescription
MessagestringNo
CodestringNo
StatusunknownNo
ValidationErrorsobjectNo
DetailsstringNo

404 — Not Found

Response 404 fields
FieldTypeRequiredDescription
MessagestringNo
CodestringNo
StatusunknownNo
ValidationErrorsobjectNo
DetailsstringNo

500 — Internal Server Error

Response 500 fields
FieldTypeRequiredDescription
MessagestringNo
CodestringNo
StatusunknownNo
ValidationErrorsobjectNo
DetailsstringNo

Example request

curl -X POST "https://{base_url}/api/v2/transfers/user-to-master" \
  -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.