Get Earn Summary
GET/b2b/earn/:user
Get Earn summary of a user.
Modifiers: user-preferred currency (quote).
Response holds total amounts (all-time). For per-asset granularity, use
GET /b2b/earn/assets.
Depending on the reward asset and user-preferred currency, amounts in the response can be zero, eg. "0.00000000" BTC. It's the caller's responsibility to handle such cases, eg by showing amounts as "<0.000000001" or "~0".
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 408
- 409
- 429
- 500
- 503
Response
Bad Request — the request was malformed or contained invalid parameters. Not retryable.
Unauthorized — authentication failed or credentials are missing/invalid. Not retryable.
Forbidden — the authenticated user does not have permission to perform this action. Not retryable.
Not Found — the requested resource does not exist. Not retryable.
Request Timeout — the request took too long to process. Retryable.
Conflict — the request conflicts with the current state of the resource. Retryable in some cases (see error code).
Too Many Requests — rate limit exceeded. Retryable with backoff.
Internal Server Error — an unexpected error occurred. Generally retryable.
Service Unavailable — the service is temporarily unavailable. Retryable.