Creating payout
POST
/api/public/v1/payouts
This endpoint creates payouts.
It takes a few seconds to build and broadcast a transaction, so please expect some delay before a txId
value appears. We advise polling the GET /api/public/v1/payouts/:id endpoint to monitor both the payout status and the txId.
Destination Tag Requirement for XRP Addresses:
XRP addresses require an additional parameter: a destination tag.
A destination tag functions similarly to a reference number in bank transfers, helping to identify the intended beneficiary of a transaction.
Important Notes:
A destination tag cannot be left blank. Collect this tag from your customers before submitting a payout request to Txn
If end-users do not specify a destination tag, use
"0"
by formatting the address as follows:
Warning: If you enter "0"
as the destination tag for a wallet shared by multiple users, e.g. online wallets or exchange platforms, the funds may be permanently lost.
Headers
Content-Type
application/vnd.api+json
Authorization
Bearer <api_key>
Request Body
data.type
string
Yes
Can only be payouts
.
data.attributes.reference
string
No
The custom reference ID to tie the payout to end-user who gets paid. This can be anything you choose. Must be a unique value for each pyout you create.
data.attributes.amount
number
Yes
data.attributes.currency
string
Yes
data.attributes.payNetwork
string
Yes
data.attributes.address
string
Yes
Wallet address of a payout recipient.
absorbFees
boolean
No
If false or omitted, both service and network fees are deducted from the transaction amount. If true, both fees are deducted from your account balance.
Response Body
data.id
string
Payout ID.
data.type
string
Aways payouts
.
data.attributes.reference
string
The custom reference ID to tie the payout to end-user who gets paid. This can be anything you choose.
data.attributes.status
string
data.attributes.address
string
Wallet address of a payout recipient.
data.attributes.createdAt
string
Payout creation timestamp.
data.attributes.absorbFees
boolean
If false or omitted, both service and network fees are deducted from the transaction amount. If true, both fees are deducted from your account balance.
data.attributes.amount
number
Payout amount. This is the amount that Txn debited from your account on the Txn platform.
data.attributes.currency
string
Payout amount currency code. This is effectively the currency account which Txn took the payout amount from.
data.attributes.payCurrency
string
The code of a token or cryptocurrency transferred to the receiving address.
data.attributes.payAmount
string
The amount of tokens or cryptocurrency transferred to the receiving address.
data.attributes.txid
string
The token or cryptocurrency transaction hash. This is effectively a unique identifier of a transaction on a relevant blockchain. You can share it with the receipient as a proof of payment.
data.attributes.payNetwork
string
data.attributes.networkName
string
Network name. E.g. Tron (TRC20).
data.attributes.networkFee
string
The network fee amount Txn took to cover blockchain fees.
data.attributes.networkFeeCurrency
string
Network fee currency.
data.attributes.payoutFee
string
Payout fee amount. This is the Txn's processing fee.
data.attributes.payoutFeeCurrency
string
Payout fee currency.
data.attributes.exchangeRate
string
Exchange rate.
Response
Last updated