Xellion Logo Withdrawal API Docs

Create Withdrawal Requests with a Simple API

This API is used to create a withdrawal request. Send your merchant secret in the header, pass the required withdrawal details in the request body, and receive the withdrawal response.

Base URL Ready Merchant Secret Required Amount in USD Webhook Callback Supported

Quick Summary

  • Method: POST
  • Endpoint: /api/payment/create-payout
  • Header: x-merchant-secret
  • Content type: application/json
  • Each order_id must be unique
  • amount must always be in USD
  • callback_url receives the webhook response

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.