DocsUsersEarnings

Update User

Update an existing user’s information.

Endpoint

GET ${baseUrl}/users/earnings

Response

interface UpdateUserResponse {
  success: boolean
  data: {
    TR_LEGACY: number
    RV_LEGACY: number
    PR_LEGACY: number
    QC: number
    REVIEW: number
    WITHDRAWAL: number
    CURRENT_BALANCE: number
    TOTAL: number
    CB: number
    DB: number
    CREDITED_HOURS: number
    TODAY_CREDITED_HOURS: number
    ME: number
  }
}

Example Request

const response = await fetch('${baseUrl}/users/earnings', {
  method: 'GET',
  headers: {
    'Content-Type': 'application/json',
    Authorization: 'Basic YOUR_API_KEY',
  },
})
 
const data = await response.json()

Error Codes

Status CodeDescription
200Fetched Earnings Successfully
400Invalid Request Body
401Unauthorized
403Forbidden
500Server Error