API Endpoint
Use the following base URL and endpoint to create a withdrawal.
Base URL
https://xellion-psp-api.testingenv.co.in
Endpoint
/api/payment/create-payout
Method
POST
Required Headers
The merchant secret will be provided by the admin.
| Header | Required | Description |
|---|---|---|
x-merchant-secret |
Yes | Your merchant secret key. This will be provided by the admin. |
Content-Type |
Yes | Must be set to application/json. |
Keep your merchant secret secure. Do not expose it publicly in production applications.
Request Body
Send the following fields in JSON format.
| Field | Type | Required | Description |
|---|---|---|---|
user_id |
String | Yes | The unique identifier of the user. |
order_id |
String | Yes | A unique order reference for each payment request. |
amount |
Number | Yes | The withdrawal amount. This must always be in USD. |
callback_url |
String | Yes | Your webhook URL where the withdrawal response will be sent. |
Make sure every order_id is unique. Reusing the same order ID may cause issues or duplicate request conflicts. Bank account details must be accurate to avoid failed withdrawals.
Sample JSON Payload
{
"user_id": "1234",
"order_id": "123786732332322784434357438",
"amount": 100,
"callback_url": "https://yourdomain.com/webhook"
}
cURL Example
curl --location 'https://xellion-psp-api.testingenv.co.in/api/payment/create-payout' \
--header 'x-merchant-secret: YOUR_SECRET_KEY' \
--header 'Content-Type: application/json' \
--data '{
"user_id": "1234",
"order_id": "123786732332322784434357438",
"amount": 100,
"callback_url": "https://yourdomain.com/webhook"
}'
Try the API
Use the form below to test the withdrawal API directly from this page.
Direct browser calls may fail because of CORS restrictions or security policies. In production, it is recommended to call this API from your backend server.
Response
Waiting for request...
The response will appear here after the API call is completed.
Withdrawal API Docs