Mass Payouts
Mass payouts are a method that allows making payments to multiple recipients simultaneously.
One of the main advantages of mass payouts is their speed and efficiency. Unlike traditional payment methods, which can take several days, sending cryptocurrency payments takes just a few minutes.
Creating a Mass Payout
POST /v2.0/mass-payouts
Description of Input Parameters
A request to create a mass payout can be made in two ways:
In JSON format
Example request:
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"external_id": "EXT-0AAD04FF",
"callback_url": "https://example.com/callback",
"payouts": [
{
"network": "ethereum",
"symbol": "ETH",
"address": "0x6EC1868a71F73784c35AD177c6DBA70D22908164",
"amount": "3.12",
"external_id": "ABC-DEF-001"
}
],
"otp": "123456"
}
Through uploading a .CSV file
You need to prepare a .csv file in the following format:
It is permissible to describe payouts in different currencies and networks in one .csv file.
Example request for file upload:
curl --request POST
--url https://api.cryptix.io/v2.0/mass-payouts
--header 'Content-Type: multipart/form-data'
--cookie session=<session_id>
--form "payouts=@/data/example.csv;type=text/csv"
--form id=93fe3749-271d-4d04-9396-d3e89a8a5966
--form otp=749302
--form external_id=abc-def
--form callback_url=http://example.com/callback
Description of Response
Possible statuses of the Mass Payout object:
pending
— payouts in progress;processed
— this status indicates that the processing of payouts is complete but does not guarantee the successful sending of all payments.
Getting a List of All Mass Payouts
GET /v2.0/mass-payouts
This method allows obtaining a list of mass payouts.