Xero · Example Payload

Xero Approvetimesheet Example

AccountingBank FeedsFinanceFinancial-ServicesInvoicingPayrollSmall Business

Xero Approvetimesheet Example is an example object payload from Xero, with 6 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationIdmethodpathsummaryrequestExamplesresponseExamples

Example Payload

Raw ↑
{
  "operationId": "approveTimesheet",
  "method": "POST",
  "path": "/Timesheets/{TimesheetID}/Approve",
  "summary": "Approves a timesheet",
  "requestExamples": [],
  "responseExamples": [
    {
      "status": "200",
      "contentType": "application/json",
      "example": {
        "id": "00000000-0000-0000-0000-000000000000",
        "providerName": "provider-name",
        "dateTimeUTC": "2020-08-28 21:07:40.391866",
        "httpStatusCode": "OK",
        "pagination": null,
        "problem": null,
        "timesheet": {
          "timesheetID": "f2a2aff0-9944-411e-bc58-44f22304188d",
          "payrollCalendarID": "f6931b89-d9c8-4f25-b4fa-268b5fd24197",
          "employeeID": "272a7559-1b8f-4d3a-977b-d05578cb9546",
          "startDate": "2020-08-01 00:00:00",
          "endDate": "2020-08-31 00:00:00",
          "status": "Approved",
          "totalHours": 13,
          "updatedDateUTC": "2020-08-28 21:07:40.561340",
          "timesheetLines": [
            {
              "timesheetLineID": "10c3c63e-6cd0-4630-861f-08a2baa657fa",
              "date": "2020-08-03 00:00:00",
              "earningsRateID": "f9d8f5b5-9049-47f4-8541-35e200f750a5",
              "trackingItemID": null,
              "numberOfUnits": 1
            },
            {
              "timesheetLineID": "3397aab1-6cac-4804-a72b-00f396b04a08",
              "date": "2020-08-04 00:00:00",
              "earningsRateID": "f9d8f5b5-9049-47f4-8541-35e200f750a5",
              "trackingItemID": null,
              "numberOfUnits": 2
            },
            {
              "timesheetLineID": "11f3608f-c53a-474d-ba17-053849de318b",
              "date": "2020-08-02 00:00:00",
              "earningsRateID": "f9d8f5b5-9049-47f4-8541-35e200f750a5",
              "trackingItemID": null,
              "numberOfUnits": 5
            },
            {
              "timesheetLineID": "f5b416b7-d431-4d54-baff-9cd6de620c70",
              "date": "2020-08-03 00:00:00",
              "earningsRateID": "f9d8f5b5-9049-47f4-8541-35e200f750a5",
              "trackingItemID": null,
              "numberOfUnits": 5
            }
          ]
        }
      }
    }
  ]
}

Work with this as data

Every example here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for examples

4 MCP tools reach this
  • find_examplesBrowse and filter every example in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This example
curl "https://apis.io/api/v1/examples/xero-approvetimesheet-example"
All examples
curl "https://apis.io/api/v1/examples?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.