API Documentation

Partner REST API

Partner API for getting available currencies, calculating quotes, and creating exchange orders.

POSTJSONX-API-Key
Endpoint/api/legacyJSON over POST
01

Authentication

Partner API keys are currently configured manually in api/storage/api_users.json. Later each partner will receive keys in a personal account.

Required headers
POST /api/legacy
Content-Type: application/json
X-API-Key: YOUR_API_KEY
!

Security note

Do not expose partner keys in frontend code. Server-to-server requests should use the X-API-Key header.

02

Available actions

01currencies

Get public currency list.

02rate

Calculate exchange quote.

03create_order

Create exchange order.

04order

Get order status by ID.

03

Request examples

Request: rate
{
    "action": "rate",
    "fromCcy": "BTC",
    "toCcy": "USDTTRC",
    "type": "fixed",
    "direction": "from",
    "amount": "0.01"
}
Request: create_order
{
    "action": "create_order",
    "fromCcy": "BTC",
    "toCcy": "USDTTRC",
    "type": "fixed",
    "direction": "from",
    "amount": "0.01",
    "toAddress": "YOUR_USDTTRC_ADDRESS"
}
Status response
{
    "ok": true,
    "data": {
        "id": "L1234567890",
        "status": "NEW"
    }
}
© 2026 TrustChange.io. 全著作権所有。