Zum Inhalt

Reference

Service reports

GET/api/v1/service-reportsList service reports

Service reports, newest first, 50 per page: number, order, period, status, minutes. tasks.admin only.scope service-reports

Query

orderstringOnly this order's reports, by id or number, e.g. "AB-2026-0007".
statusone of issued, cancelled
pageinteger1-based page of 50 rows. Omit for the first page.

Response 200

items[]object[]
items[].idstring
items[].numberstring
items[].statusstring
items[].orderstring
items[].customerstring
items[].period_fromstring
items[].period_tostring
items[].total_minutesinteger
items[].billable_minutesinteger
items[].amount_centsoptionalinteger
items[].urlstring
pageinteger
totalinteger
has_moreboolean
Schema
{
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "number": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "order": {
            "type": "string"
          },
          "customer": {
            "type": "string"
          },
          "period_from": {
            "type": "string"
          },
          "period_to": {
            "type": "string"
          },
          "total_minutes": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "billable_minutes": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "amount_cents": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "url": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "number",
          "status",
          "order",
          "customer",
          "period_from",
          "period_to",
          "total_minutes",
          "billable_minutes",
          "url"
        ],
        "additionalProperties": false
      }
    },
    "page": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "total": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "has_more": {
      "type": "boolean"
    }
  },
  "required": [
    "items",
    "page",
    "total",
    "has_more"
  ],
  "additionalProperties": false
}

Refusals are problems with a code — see Errors.

POST/api/v1/service-reportsIssue service report

Issues a service report for an order and a period: draws the LN number, freezes every open booking of the period with the order's rates, and settles those bookings. Nothing is sent; a report reaches the customer only with an invoice a person sends. tasks.admin only.scope service-reports

Body (JSON)

orderrequiredstringThe order's id or number, e.g. "AB-2026-0007".
fromrequiredstringFirst day, YYYY-MM-DD.
torequiredstringLast day, YYYY-MM-DD.
include_non_billablebooleanAlso list bookings that are not billable. Default: false.

Response 200

idstring
numberstring
statusstring
orderstring
customerstring
period_fromstring
period_tostring
issued_bystring
issued_atstring
cancelled_atstring | null
includes_non_billableboolean
total_minutesinteger
billable_minutesinteger
amount_centsoptionalinteger
invoiceobject | null
invoice.idstring
invoice.numberstring | null
lines[]object[]
lines[].work_datestring
lines[].taskstring | null
lines[].task_titlestring
lines[].descriptionstring | null
lines[].personstring
lines[].minutesinteger
lines[].billableboolean
lines[].kindstring
lines[].rolestring | null
lines[].rate_centsoptionalinteger | null
lines[].amount_centsoptionalinteger | null
urlstring
Schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "number": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "order": {
      "type": "string"
    },
    "customer": {
      "type": "string"
    },
    "period_from": {
      "type": "string"
    },
    "period_to": {
      "type": "string"
    },
    "issued_by": {
      "type": "string"
    },
    "issued_at": {
      "type": "string"
    },
    "cancelled_at": {
      "type": [
        "string",
        "null"
      ]
    },
    "includes_non_billable": {
      "type": "boolean"
    },
    "total_minutes": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "billable_minutes": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "amount_cents": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "invoice": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "number": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "id",
            "number"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "lines": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "work_date": {
            "type": "string"
          },
          "task": {
            "type": [
              "string",
              "null"
            ]
          },
          "task_title": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "person": {
            "type": "string"
          },
          "minutes": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "billable": {
            "type": "boolean"
          },
          "kind": {
            "type": "string"
          },
          "role": {
            "type": [
              "string",
              "null"
            ]
          },
          "rate_cents": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "amount_cents": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "work_date",
          "task",
          "task_title",
          "description",
          "person",
          "minutes",
          "billable",
          "kind",
          "role"
        ],
        "additionalProperties": false
      }
    },
    "url": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "number",
    "status",
    "order",
    "customer",
    "period_from",
    "period_to",
    "issued_by",
    "issued_at",
    "cancelled_at",
    "includes_non_billable",
    "total_minutes",
    "billable_minutes",
    "invoice",
    "lines",
    "url"
  ],
  "additionalProperties": false
}

Refusals are problems with a code — see Errors.

GET/api/v1/service-reports/{id}Get service report

One service report with its frozen lines, and the invoice that holds it, if any. tasks.admin only.scope service-reports

Path

idrequiredstringThe report's id or number, e.g. "LN-2026-0012".

Response 200

idstring
numberstring
statusstring
orderstring
customerstring
period_fromstring
period_tostring
issued_bystring
issued_atstring
cancelled_atstring | null
includes_non_billableboolean
total_minutesinteger
billable_minutesinteger
amount_centsoptionalinteger
invoiceobject | null
invoice.idstring
invoice.numberstring | null
lines[]object[]
lines[].work_datestring
lines[].taskstring | null
lines[].task_titlestring
lines[].descriptionstring | null
lines[].personstring
lines[].minutesinteger
lines[].billableboolean
lines[].kindstring
lines[].rolestring | null
lines[].rate_centsoptionalinteger | null
lines[].amount_centsoptionalinteger | null
urlstring
Schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "number": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "order": {
      "type": "string"
    },
    "customer": {
      "type": "string"
    },
    "period_from": {
      "type": "string"
    },
    "period_to": {
      "type": "string"
    },
    "issued_by": {
      "type": "string"
    },
    "issued_at": {
      "type": "string"
    },
    "cancelled_at": {
      "type": [
        "string",
        "null"
      ]
    },
    "includes_non_billable": {
      "type": "boolean"
    },
    "total_minutes": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "billable_minutes": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "amount_cents": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "invoice": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "number": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "id",
            "number"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "lines": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "work_date": {
            "type": "string"
          },
          "task": {
            "type": [
              "string",
              "null"
            ]
          },
          "task_title": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "person": {
            "type": "string"
          },
          "minutes": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "billable": {
            "type": "boolean"
          },
          "kind": {
            "type": "string"
          },
          "role": {
            "type": [
              "string",
              "null"
            ]
          },
          "rate_cents": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "amount_cents": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "work_date",
          "task",
          "task_title",
          "description",
          "person",
          "minutes",
          "billable",
          "kind",
          "role"
        ],
        "additionalProperties": false
      }
    },
    "url": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "number",
    "status",
    "order",
    "customer",
    "period_from",
    "period_to",
    "issued_by",
    "issued_at",
    "cancelled_at",
    "includes_non_billable",
    "total_minutes",
    "billable_minutes",
    "invoice",
    "lines",
    "url"
  ],
  "additionalProperties": false
}

Refusals are problems with a code — see Errors.

POST/api/v1/service-reports/{id}/cancelCancel service report

Cancels an issued service report: the document stays, marked cancelled, and its bookings are open again for a later report. Refused while an invoice holds the report. tasks.admin only.scope service-reports

Path

idrequiredstringThe report's id or number, e.g. "LN-2026-0012".

Response 200

idstring
numberstring
statusstring
orderstring
customerstring
period_fromstring
period_tostring
issued_bystring
issued_atstring
cancelled_atstring | null
includes_non_billableboolean
total_minutesinteger
billable_minutesinteger
amount_centsoptionalinteger
invoiceobject | null
invoice.idstring
invoice.numberstring | null
lines[]object[]
lines[].work_datestring
lines[].taskstring | null
lines[].task_titlestring
lines[].descriptionstring | null
lines[].personstring
lines[].minutesinteger
lines[].billableboolean
lines[].kindstring
lines[].rolestring | null
lines[].rate_centsoptionalinteger | null
lines[].amount_centsoptionalinteger | null
urlstring
Schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "number": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "order": {
      "type": "string"
    },
    "customer": {
      "type": "string"
    },
    "period_from": {
      "type": "string"
    },
    "period_to": {
      "type": "string"
    },
    "issued_by": {
      "type": "string"
    },
    "issued_at": {
      "type": "string"
    },
    "cancelled_at": {
      "type": [
        "string",
        "null"
      ]
    },
    "includes_non_billable": {
      "type": "boolean"
    },
    "total_minutes": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "billable_minutes": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "amount_cents": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "invoice": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "number": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "id",
            "number"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "lines": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "work_date": {
            "type": "string"
          },
          "task": {
            "type": [
              "string",
              "null"
            ]
          },
          "task_title": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "person": {
            "type": "string"
          },
          "minutes": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "billable": {
            "type": "boolean"
          },
          "kind": {
            "type": "string"
          },
          "role": {
            "type": [
              "string",
              "null"
            ]
          },
          "rate_cents": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "amount_cents": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "work_date",
          "task",
          "task_title",
          "description",
          "person",
          "minutes",
          "billable",
          "kind",
          "role"
        ],
        "additionalProperties": false
      }
    },
    "url": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "number",
    "status",
    "order",
    "customer",
    "period_from",
    "period_to",
    "issued_by",
    "issued_at",
    "cancelled_at",
    "includes_non_billable",
    "total_minutes",
    "billable_minutes",
    "invoice",
    "lines",
    "url"
  ],
  "additionalProperties": false
}

Refusals are problems with a code — see Errors.