Payment Docs
Third-Party Integrations

Payouts

How to create payouts

Payouts allow you to send funds from your merchant account to user bank cards, phone numbers, or other payment methods.

Before you start

How to authorize your requests

Before making requests, ensure your merchant account has sufficient funds to create a payout.

Creating a Payout

Send a POST request to create a new payout:

POST /v1/payouts

Request Example

curl -X POST "https://api.riopay.online/v1/payouts" \
-H "Content-Type: application/json" \
-H "X-Api-Token: YOUR_API_TOKEN" \
-d '{
  "amount": 1000.50,
  "currency": "RUB",
  "paymentType": "C2C",
  "account": {
    "name": "Ivan Ivanov",
    "requisites": "4111111111111111",
    "userId": "user_12345"
  },
  "note": "Payout for order #1234"
}'

Request Parameters

Main Parameters

FieldTypeRequiredDescription
amountnumber✅ YesAmount to payout
currencystring✅ YesCurrency code
paymentTypestring✅ YesPayment type
accountobject✅ YesRecipient account details
notestring❌ NoNote for payout

account Object

FieldTypeRequiredDescription
namestring✅ YesRecipient name
requisitesstring✅ YesAccount requisites (card number / phone number, depends on payment type)
userIdstring✅ YesUser ID in your system

Supported Currencies

ValueDescription
BRLBrazilian Real

Payment Types

ValueDescription
C2CCard-to-Card transfer
SIMTransfer to phone number
EMAILTransfer to email
CNPJTransfer to CNPJ (Brazil)
CPFTransfer to CPF (Brazil)

Successful Response Example

{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "merchantId": "123e4567-e89b-12d3-a456-426614174000",
  "amount": "1000.50",
  "account": {
    "name": "Ivan Ivanov",
    "requisites": "4111111111111111",
    "userId": "user_12345"
  },
  "status": "CREATED",
  "type": "C2C",
  "requisites": {},
  "statusMessage": null,
  "metadata": null,
  "createdAt": "2023-03-21T12:34:56Z",
  "updatedAt": "2023-03-21T12:34:56Z",
  "completedAt": null
}

Response Fields

FieldTypeDescription
idstringPayout UUID
merchantIdstringYour merchant UUID
amountstringPayout amount
accountobjectRecipient account details
statusstringCurrent payout status
typestringPayment type
requisitesobjectAdditional requisites
statusMessagestring / nullStatus message (if any)
metadataobject / nullAdditional metadata
createdAtstringCreation timestamp
updatedAtstringLast update timestamp
completedAtstring / nullCompletion timestamp

Payout Statuses

StatusDescription
CREATEDPayout created
PENDINGPayout is being processed
COMPLETEDPayout completed successfully
FAILEDPayout failed
CANCELEDPayout canceled
EXPIREDPayout expired

Checking Payout Status

To get the current payout status, send a GET request:

GET /v1/payouts/{payoutId}

Request Example

curl -X GET "https://api.riopay.online/v1/payouts/123e4567-e89b-12d3-a456-426614174000" \
-H "X-Api-Token: YOUR_API_TOKEN"

There are no webhooks for payouts. To get payout status updates, you need to poll the status by ID periodically (e.g., every 30 minutes).


Recommendations

  • Always verify your merchant balance before creating payouts
  • Store the payout id from the response for status tracking
  • Implement periodic status polling for payout updates
  • Handle all possible status values in your integration

See Also

On this page