Timesheet icon

Timesheet

Interact with timesheet.io time tracking API

Actions153

Report → Get Expense Report

AI-generated

Summary

Retrieves an expense report for a specific expense ID and returns it as a JSON object, optionally downloading it as a PDF file.

Inputs

  • Authentication (required) — Authentication method: API Key, OAuth2, or OAuth 2.1 (PKCE).
  • Team — The ID of the team the expense belongs to. Required when teams are activated in your profile; otherwise, leave empty.
  • Expense ID (required) — The ID of the expense to retrieve the report for.

Output shape

A single item containing the expense report data in JSON format. If the 'Output Format' is set to 'PDF', the output is a binary file item.

When Output Format is set to 'PDF', the operation returns a binary item instead of JSON.

Examples

Example 1: Retrieve an expense report as JSON

Authentication: API Key; Team: None; Expense ID: 'exp_12345'

Example 2: Download an expense report as a PDF file

Authentication: API Key; Team: None; Expense ID: 'exp_12345'; Output Format: PDF

Links

Discussion