Payments
Agent Top Up Rate
Read the current agent top-up rate and effective USDT exchange rate for the authenticated mobile user.
Flow Summary
The current top-up-rate flow is:
Step 1. Load the current rateGET /api/v1/mobile_user/agent-topup-rate
This route should be treated as a protected route and sent with:
Authorization: Bearer <access_token>
1. Get Agent Top Up Rate
GET /api/v1/mobile_user/agent-topup-rate
Returns the current agent-configured top-up rate and the effective USDT exchange rate used by the mobile app.
Response fields
topup_rate: the current agent'scard_holder_top_up_rateusdt_exchange_rate: the latestUSDT/USDrate after the backend applies its downward adjustment setting
Important backend behavior
- The user must be authenticated
- The service first loads the current user's
agent_id - If the user row cannot be found, the API returns
404 - If the agent has no setting row,
topup_ratefalls back to0 - The service tries to load the latest
USDT/USDexchange rate from the database - If no exchange rate row is available, the base fallback is
1.0 - The service then applies the global exchange-rate adjustment percentage from system settings
- If that adjustment setting cannot be loaded, the service falls back to no adjustment
Success response shape
{
"status_code": 200,
"message": "Success",
"data": {
"topup_rate": 3.5,
"usdt_exchange_rate": 0.998
}
}
Integration Notes
- Use this endpoint when the app needs to show the current top-up pricing context before the user enters a top-up flow.
- Treat
usdt_exchange_rateas the already-adjusted effective rate, not the raw market rate.