Xellion Logo Deposit Payment API Docs

Create Deposit Payments with a Simple API

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

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

Quick Summary

  • Method: POST
  • Endpoint: /api/payment/create-payment
  • 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 payment.

Base URL
https://xellion-psp-api.testingenv.co.in
Endpoint
/api/payment/create-payment
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 payment amount. This must always be in USD.
callback_url String Yes Your webhook URL where the payment response will be sent.
Make sure every order_id is unique. Reusing the same order ID may cause issues or duplicate request conflicts.

Sample JSON Payload

{
  "user_id": "1234",
  "order_id": "594328387583",
  "amount": 100,
  "callback_url": "https://yourdomain.com/webhook"
}

cURL Example

curl --location 'https://xellion-psp-api.testingenv.co.in/api/payment/create-payment' \
--header 'x-merchant-secret: YOUR_SECRET_KEY' \
--header 'Content-Type: application/json' \
--data '{
  "user_id": "1234",
  "order_id": "594328387583",
  "amount": 100,
  "callback_url": "https://yourdomain.com/webhook"
}'

Try the API

Use the form below to test the deposit payment 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.