Payment Gateway API Documentation

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
POST

Deposit Funds

Use this endpoint to deposit funds into a customer wallet.

POST https://crossborderorders.com/payments/deposit
FieldTypeRequired
user_idintegerYes
amountdecimalYes
currencystringYes
{
  "user_id": 101,
  "amount": 500.00,
  "currency": "USD"
}
POST

Withdraw Funds

Use this endpoint to withdraw funds from a customer wallet.

POST https://crossborderorders.com/payments/withdraw
FieldTypeRequired
user_idintegerYes
amountdecimalYes
currencystringYes
{
  "user_id": 101,
  "amount": 200.00,
  "currency": "USD"
}
GET

Check Wallet Balance

Fetch current wallet balance for a customer.

GET https://crossborderorders.com/payments/balance/{user_id}
GET

Transaction History

Retrieve full transaction history for a customer wallet.

GET https://crossborderorders.com/payments/transactions/{user_id}