Crypto Payouts
Last updated
Last updated
Sonic Payment Gateway allows merchants to send crypto from their Sonic Payment Gateway account to an external wallet using our APIs. This feature can be useful for businesses that want to payout their earnings in crypto to customers or vendors.
To create a crypto payout, make a POST request to the following endpoint:
Include the following information in the request body:
recipient_address
string
The crypto address of the recipient
crypto_currency
string
The cryptocurrency to send (e.g. BTC, ETH, LTC)
amount
number
The amount of crypto to send
memo
string
An optional memo to include with the transaction
Example curl request:
The API will return a 200 OK response if the request is successful, with an array of crypto payout objects in the response body. Each object will have the following properties:
id
string
The unique identifier for the crypto payout
transaction_id
string
The transaction ID for the crypto payout
amount
number
The amount of crypto sent in the payout
crypto_currency
string
The cryptocurrency sent in the payout
recipient_address
string
The crypto address of the recipient
memo
string
An optional memo included with the transaction
status
string
The status of the crypto payout (e.g. succeeded, failed)
metadata
object
Additional information associated with the crypto payout, in key-value pairs
created_at
string
The date and time the crypto payout was created, in ISO 8601 format
Example curl request:
The API will return a 204 No Content response if the request is successful.
This feature allows merchants to send cryptocurrency to an external wallet using our APIs. This can be done by creating a new crypto payout using the Create Crypto Payout endpoint. Once the payout is created, the cryptocurrency will be transferred to the specified recipient address.
The Crypto Transfer API is a set of endpoints that enable merchants to create, view, update, and delete crypto payouts. This includes the ability to send cryptocurrency to an external wallet, view the status of a crypto payout, and view all crypto payouts associated with an account. The endpoints include Create Crypto Payout, Get Crypto Payout, Get All Crypto Payouts, Update Crypto Payout, and Delete Crypto Payout.
To send crypto from your Sonic Payment Gateway account to an external wallet, you can use the Crypto Transfer API.
In the request body, include the following information:
recipient_address (string): The crypto address of the recipient
crypto_currency (string): The cryptocurrency to send (e.g. BTC, ETH, LTC)
amount (number): The amount of crypto to send
memo (string): An optional memo to include with the transaction
Example curl request:
If the request is successful, the API will return a 200 OK response with the details of the crypto payout in the response body. This will include a unique id for the payout, as well as information such as the transaction id, amount, crypto currency, recipient address, and status of the payout.
The API will return a 200 OK response with an array of crypto payout objects in the response body. Each object will have the properties as mentioned above in the table.
To retrieve a list of all crypto payouts, make a GET request to the following endpoint:
To delete a crypto payout, make a DELETE request to the following endpoint:
First, you'll need to make a POST request to the following endpoint:
You can also view all crypto payouts made from your account by making a GET request to the following endpoint: