BlendFi
APIUsuários

Get user wallet balance

GET
/v1/users/{id}/wallet
AuthorizationBearer <token>

Paste your BlendFi API key. Sandbox keys start with sk_test_. The Bearer prefix is added automatically.

Em: header

Parâmetros de path

id*string
Formatouuid

Corpo da response

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://api.sandbox.blendfi.com.br/v1/users/497f6eca-6276-4993-bfeb-53cbbbba6f08/wallet"
{
  "asset": "USDT",
  "balance": "125.50",
  "available_balance": "75.50",
  "network": "polygon",
  "wallet_id": "d9a8fbfc-848f-43a2-9168-911ed3a04a48",
  "updated_at": "2019-08-24T14:15:22Z",
  "stale": true
}
{
  "code": "validation_error",
  "message": "Request validation failed.",
  "request_id": "01KPR9F6MM8G147177J7ZQPJHG",
  "details": {
    "issues": [
      {
        "path": "source_amount",
        "message": "Required"
      }
    ]
  }
}

{
  "code": "authentication_required",
  "message": "No valid credentials provided.",
  "request_id": "01KPR9F6MM8G147177J7ZQPJHG"
}

{
  "code": "missing_capability",
  "message": "Your API key does not have the required capability for this endpoint.",
  "request_id": "01KPR9F6MM8G147177J7ZQPJHG"
}

{
  "code": "user_not_found",
  "message": "User not found.",
  "request_id": "01KPR9F6MM8G147177J7ZQPJHG"
}

{
  "code": "rate_limit_exceeded",
  "message": "Too many requests. Try again after the retry_after_seconds window.",
  "request_id": "01KPR9F6MM8G147177J7ZQPJHG",
  "details": {
    "retry_after_seconds": 60
  }
}
{
  "code": "internal_error",
  "message": "Internal server error.",
  "request_id": "01KPR9F6MM8G147177J7ZQPJHG"
}
{
  "code": "wallet_provider_unavailable",
  "message": "Wallet provider is temporarily unavailable.",
  "request_id": "01KPR9F6MM8G147177J7ZQPJHG"
}