Create a Payout Deal

This endpoint creates a new payout deal, initiating a transfer of funds to a specified recipient.
The deal requires details such as the currency, amount, and recipient information.
Upon success, a response containing the deal ID and status will be returned.
Ensure that all required fields are included in the request body.

Body Params
string
required

ID or SYMBOL from currencies helper.

number
required

The amount to be transferred in the specified currency.

string
required

ID or SYMBOL from currencies helper for the target currency.

number

Deal time-to-live in queue. Default: 20 minutes.

string
enum
Defaults to sec

Unit for TTL. Default: seconds.

Allowed:
string
required

Merchant reference for the invoice.

number

Reference amount in the source transaction currency, used for cross-exchange settlement.

string
required

Merchant reference for the client.

number

Optional final amount for pre-charge rate lock.

recipient
object
string
required

The name of the sender initiating the payout.

string
enum
Defaults to crypto

Base currency for deal calculation. Default: Crypto.

Allowed:
boolean

Indicates whether fiat liquidity is available.

string
enum

The strategy for applying fees: 'add' or 'subtract'.

Allowed:
boolean

Indicates whether refunds are available for this deal.

Headers
string
required

Bearer token for authenticating the request. Example: Authorization: Bearer 123.

Responses

{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "status": "new"
}

{
  "error": "ERROR_ACCESS_TOKEN_INVALID",
  "message": "Access token is invalid.",
  "statusCode": 400
}

{
  "error": "ERROR_TOKEN_EXPIRED",
  "message": "Access token has expired.",
  "statusCode": 401
}

{
  "error": "DEAL_ALREADY_EXISTS",
  "message": "Deal with same invoiceId already exists.",
  "statusCode": 409
}
Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json