๐Ÿ’ณ Merchant Endpoints

Welcome to the External Merchant API.

Use this documentation to securely interact with your merchant account, manage balances, and create payouts.


๐Ÿ” Authentication

All requests must include an API key in the headers:

X-API-Key: your_api_key

โš ๏ธ If the API key is restricted by IP addresses, requests will only be accepted from those IPs.


๐Ÿ“š Endpoints


๐Ÿ’ฐ Get Merchant Balance

GET /api/v1/external/merchants/balance

Retrieve the current balance of the merchant across all currencies.

โœ… Response

{
  "balances": [
    {
      "currency_code": "USDT",
      "amount": 1000.50,
      "symbol": "$",
      "is_primary": true
    }
  ],
  "primary_currency": {
    "code": "USDT",
    "symbol": "$",
    "name": "Tether USD"
  }
}

๐Ÿ“Š Get Payout Counts by Status

GET /api/v1/external/merchants/payouts/count-by-status

Returns the number of payouts grouped by their status.

โœ… Response


๐Ÿ”Ž Get Payout Details

GET /api/v1/external/merchants/payouts/{payout_id}

Get full details of a specific payout by its ID.

โœ… Response


๐Ÿ“œ List Payouts

GET /api/v1/external/merchants/payouts

Returns a paginated list of all payouts.

๐Ÿงพ Query Parameters (optional)

Parameter

Type

Description

status

string

Filter by payout status

start_date

string

ISO 8601 format start date

end_date

string

ISO 8601 format end date

skip

int

Number of items to skip

limit

int

Number of items to return

โœ… Response


โœ๏ธ Create a Payout

POST /api/v1/external/merchants/payouts

Creates a new payout request to a recipient.

๐Ÿ“ฆ Request Body

โœ… Success Response

โŒ Error Response


๐Ÿ›  Need Help?

If you have questions or want to request access, please contact our support team.


๐Ÿ“ ะฅะพั‡ะตัˆัŒ, ั ะฟะพะดะณะพั‚ะพะฒะปัŽ Markdown-ั„ะฐะนะปั‹ ะฒ ัั‚ั€ัƒะบั‚ัƒั€ะต /docs/api ะดะปั GitBook ะธะปะธ GitHub Pages?

Last updated