Finance > Invoices

Mark as paid/pending

PATCH update state

Endpoint

PATCH /api/v1/finance/invoices/bulk_update

Parameters

Name Description In
invoice[invoice_ids] required Array of timesheet ids
invoice[state] required State to update ["pending", "paid"]

Request

Route

PATCH /api/v1/finance/invoices/bulk_update

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI0MTUiLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3NDI0NjQ5MTQsImV4cCI6MTc0NTA1NjkxNCwianRpIjoiM2MxZDE1ZTItOTc5Mi00ZGIxLWIwNDItMzkzYTEyYmUzNTNlIn0.39nb2JeQaiTwZ95eB_Uk5ctZZMW1w2taV2YS5BDp_m4
Host: example.org
Cookie: 

Body

{
  "invoice": {
    "invoice_ids": [
      20,
      21,
      22
    ],
    "state": "paid"
  }
}

Response

Simulated Response

Status

400

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
cache-control: no-cache
x-request-id: fcdc3004-b1aa-4f1f-93b5-54c0d7950d52
x-runtime: 0.007496
content-length: 39

Body

{
  "errors": {
    "passcode": [
      "is required"
    ]
  }
}