Finance > Timesheets

Get timesheets total

GET timesheets counters

Endpoint

GET /api/v1/finance/timesheets/totals

Parameters

Name Description
from_date Filter by date
to_date Filter by date
by_job Filter by job ID
by_company Filter by company ID

Request

Route

GET /api/v1/finance/timesheets/totals

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI1ODkiLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3NjM2MjYzNzMsImV4cCI6MTc2NjIxODM3MywianRpIjoiMzU0YjRiZDEtZDg4OC00ODg5LThlMjYtYWZkMWNhYjk3ZGQ1In0.zgJzOzzVlDy5Io0ulZcVgYe2Nm3PoUWb6u_ND7X3Bgg
Host: example.org
Cookie: 

Query Parameters

{}=

Body

{
}

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/"7bd6413d1e258029f032271684ecd80b"
cache-control: max-age=0, private, must-revalidate
x-request-id: e299724f-9eb5-4f51-8d02-472384dd8761
x-runtime: 0.009144
content-length: 154

Body

{
  "GBP": {
    "earned": 500.0,
    "vat": 100.0,
    "earned_with_vat": 600.0,
    "logged": 20.0,
    "due": 300.0
  },
  "EUR": {
    "earned": 0,
    "vat": 0,
    "earned_with_vat": 0,
    "logged": 0.0,
    "due": 0
  }
}