To create a deposit through RPAY.IO's API, follow these steps:
Step 1:
Obtain an API key for API access. [link to documentation]
Step 2:
POSThttps://admin.rpay.io/api/deposits/
Request Body
Name
Type
Description
sum*
Integer
Amount to deposit
currency*
String
Currency type
chain*
String
Blockchain chain
callback
String
Callback URL
minutes_to_expired
Integer
Time in minutes after which deposit expires and status expired is sent via callback
Use the POST method https://api.rpay.io/deposits, specifying the amount, currency, chain, and callback URL. For example, to create a deposit in USDT on the TRX chain:
It is also worth noting that you can create a deposit without a fixed amount. In this case, you will be sent information about the actual deposit in the "paid" field in Callback
The API will return details of the created deposit, including its status and unique identifier.
Example:
You can use the GET method to obtain details about a specific deposit.
GEThttps://admin.rpay.io/api/deposits
Request Body
Name
Type
Description
skip
Integer
limit
Integer
If necessary, delete a deposit using the DELETE method.
The https://api.rpay.io/deposits/{entity_id} endpoint in the RPAY.IO API is for managing specific deposits. By substituting the actual deposit ID in place of {entity_id}, you can retrieve, update or delete the information associated with that specific deposit. It is typically used in scenarios where you need to interact or modify details of an existing deposit in the system
To create a deposit using API Key, you need to use this endpoint