Finance > Rewards

Get rewards total

GET timesheets counters

Endpoint

GET /api/v1/finance/rewards/totals

Parameters

Name Description In
from_date Filter by date
to_date Filter by date
by_kind required Filter by kind ["hourly", "referral"]

Request

Route

GET /api/v1/finance/rewards/totals

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI0ODYiLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3NDI0NjQ5MTUsImV4cCI6MTc0NTA1NjkxNSwianRpIjoiZTBjMjE5ODYtMmNkNC00NmRmLTk0M2MtZTQ0MTQ2YmY1NWI4In0.CMIuJ-_Khtvy6kU32adF9hHpRKkIlozI1rYfuvIngFg
Host: example.org
Cookie: 

Query Parameters

{}=

Response

Simulated Response

Status

200

Headers

x-frame-options: SAMEORIGIN
x-xss-protection: 0
x-content-type-options: nosniff
x-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
content-type: application/json; charset=utf-8
vary: Accept, Origin
etag: W/"b63eeca4461f66fda57687771df83f53"
cache-control: max-age=0, private, must-revalidate
x-request-id: f2e4ef24-01e0-495d-8efc-be93735d7820
x-runtime: 0.005738
content-length: 31

Body

{
  "earned": "130.0",
  "due": "80.0"
}