Overview
This documentation covers the basic endpoints for integrating with the Payment Gateway API.
Available functions include deposits, withdrawals, wallet balance checks, and transaction history.
Base URL: https://crossborderorders.com/payments
Authentication
All API requests must include your API key in the request header.
Authorization: Bearer YOUR_API_KEY
Deposit Funds
Use this endpoint to deposit funds into a customer wallet.
POST https://crossborderorders.com/payments/deposit
| Field | Type | Required |
|---|---|---|
| user_id | integer | Yes |
| amount | decimal | Yes |
| currency | string | Yes |
{
"user_id": 101,
"amount": 500.00,
"currency": "USD"
}
Withdraw Funds
Use this endpoint to withdraw funds from a customer wallet.
POST https://crossborderorders.com/payments/withdraw
| Field | Type | Required |
|---|---|---|
| user_id | integer | Yes |
| amount | decimal | Yes |
| currency | string | Yes |
{
"user_id": 101,
"amount": 200.00,
"currency": "USD"
}
Check Wallet Balance
Fetch current wallet balance for a customer.
GET https://crossborderorders.com/payments/balance/{user_id}
Transaction History
Retrieve full transaction history for a customer wallet.
GET https://crossborderorders.com/payments/transactions/{user_id}