Generated from the current FB API OpenAPI schema. View OpenAPI

API Reference

GET /v1/account/balance

Account balance

读取用户钱包地址、授权额度与 USDC 余额。

Base URL https://api.jd.io
Auth Bearer API Key
Group Account

Parameters

This endpoint has no path or query parameters.

Request body

This endpoint does not accept a JSON request body.

Responses

200 OK
400 Bad Request
401 Unauthorized
404 Not Found
502 Upstream Error

Examples

cURL
curl -X GET 'https://api.jd.io/v1/account/balance' \
  -H 'Authorization: Bearer <USER_API_KEY>'
200 Response
{
	"ok": true,
	"data": {
		"userId": "user_123",
		"address": "0x0000000000000000000000000000000000000000",
		"funderAddress": "0x0000000000000000000000000000000000000000",
		"balanceBaseUnit": "<BALANCEBASEUNIT>",
		"allowanceBaseUnit": "<ALLOWANCEBASEUNIT>",
		"balanceUsdc": 10
	}
}