🌟Create Payouts

In this section, you’ll learn how to create a payout in PayRam to send funds directly to a recipient’s wallet on the selected blockchain.


URL Details

Before making the request, you’ll need the following parameters that define your PayRam environment and platform.

Parameter
Description
Example

BASE_URL

Your PayRam server URL. This varies depending on where you’ve hosted PayRam (with or without SSL).

API Endpoint

Full endpoint path to create a payout request.

/api/v1/withdrawal/merchant

Headers

Headers are required for authenticating and defining the content type of your request.

Header
Description
Example

API-Key

Your unique PayRam API key generated from your dashboard.

be703fa47ebe07121102ee260fb3d5c0

Content-Type

Specifies that the request body is in JSON format.

application/json

Note : You can generate a unique API key for each project directly from the PayRam dashboard. This helps you manage and track payouts separately for every project.

Request Body

The body contains all required details for processing the payout. All fields are mandatory and must be provided.

Field
Description
Example
Required

email

Recipient’s email address.

✅ Yes

blockChainCode

Blockchain network used for the payout (e.g., ETH, TRX, BASE)

ETH

✅ Yes

currencyCode

Token symbol to be used for the payout (e.g., USDC, USDT).

USDC

✅ Yes

amount

Amount to transfer.

100000

✅ Yes

toAddress

Recipient’s wallet address must belong to the selected blockchain.

0x291b68732f14F47Fd21bE81ec5Cf1bcfC0DB14Ea

✅ Yes

mobileNumber

Recipient’s mobile number.

123456789

❌ Optional

residentialAddress

Recipient’s address.

No 22 oc street

❌ Optional

customerID

Unique identifier for the customer.

414817384

✅ Yes

curl Request

Before running the command, replace the placeholders with your actual details:

  • ${BASE_URL} → Your PayRam server URL

  • <API_KEY> → Your PayRam API key

Default Payout Limits

curl --location '${BASE_URL}/api/v1/withdrawal/merchant' \
--header 'API-Key: <API_KEY>' \
--header 'Content-Type: application/json' \
--data-raw '{
  "email": "<your_email>",
  "blockChainCode": "<blockchain_code>",
  "currencyCode": "<currency_code>",
  "amount": "<amount_to_send>",
  "toAddress": "<recipient_wallet_address>",
  "mobileNumber": "<recipient_mobile_number>",
  "residentialAddress": "<recipient_address>",
  "customerID": "<customer_id>"
}'

Available blockchain codes: ETH (Ethereum), TRX (Tron), BASE (Base)

curl response

This API returns detailed information about the payout, including the amount, currency used, recipient wallet address, and current status.

{
  "id": 120,
  "blockchainCode": "ETH",
  "currencyCode": "USDC",
  "amount": "100000",
  "priceInUSD": "1",
  "amountInUSD": "100000",
  "toAddress": "0x9F8E7D6C5B4A39281706F5E4D3C2B1A098765432",
  "recipientEmail": "[email protected]",
  "status": "pending-approval",
  ...
}

Note: The id field is very important. It uniquely identifies the payout and will be required for checking its status or performing any follow-up actions.

Last updated