Earn
Activate Earn
Activates earn for a user, so their balance starts generating yield. Earn must be enabled for your client.
Request
| Field | Type | Required | Description |
|---|---|---|---|
| Authorization | Header | Yes | Bearer <access_token> obtained from POST /api/v1/client/token. |
| user_id | Path | Yes | Identifier of the user. |
Response
| Field | Description |
|---|---|
| id | Identifier of the user’s earn account. |
| status | Status of the account. |
| earnEnabled | Whether earn is active for the user. |
| accumulatedEarnings | Earnings accumulated so far, or null. |
| annualRateLabel | Annual rate shown to the user or null. |
| registerDate | Creation date of the account. |
Errors
| Status | When |
|---|---|
| 400 | Earn is not enabled for your client, or the user does not exist. |
PATCH
Activate Earn