Xero · Example Payload

Xero Getleaveapplications Example

AccountingBank FeedsFinanceFinancial-ServicesInvoicingPayrollSmall Business

Xero Getleaveapplications 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": "getLeaveApplications",
  "method": "GET",
  "path": "/LeaveApplications",
  "summary": "Retrieves leave applications",
  "requestExamples": [],
  "responseExamples": [
    {
      "status": "200",
      "contentType": "application/json",
      "example": {
        "Id": "00000000-0000-0000-0000-000000000000",
        "Status": "OK",
        "ProviderName": "provider-name",
        "DateTimeUTC": "/Date(1573679791199)/",
        "LeaveApplications": [
          {
            "LeaveApplicationID": "1d4cd583-0107-4386-936b-672eb3d1f624",
            "EmployeeID": "cdfb8371-0b21-4b8a-8903-1024df6c391e",
            "LeaveTypeID": "184ea8f7-d143-46dd-bef3-0c60e1aa6fca",
            "LeavePeriods": [
              {
                "PayPeriodStartDate": "/Date(1573171200000+0000)/",
                "PayPeriodEndDate": "/Date(1573689600000+0000)/",
                "LeavePeriodStatus": "SCHEDULED",
                "NumberOfUnits": 0
              }
            ],
            "Title": "vacation",
            "StartDate": "/Date(1573516800000+0000)/",
            "EndDate": "/Date(1573516800000+0000)/",
            "UpdatedDateUTC": "/Date(1573623008000+0000)/",
            "PayOutType": "DEFAULT"
          },
          {
            "LeaveApplicationID": "3b934902-1e16-4c02-a3d3-68fa7d63e01d",
            "EmployeeID": "cdfb8371-0b21-4b8a-8903-1024df6c391e",
            "LeaveTypeID": "184ea8f7-d143-46dd-bef3-0c60e1aa6fca",
            "LeavePeriods": [
              {
                "PayPeriodStartDate": "/Date(1573171200000+0000)/",
                "PayPeriodEndDate": "/Date(1573689600000+0000)/",
                "LeavePeriodStatus": "SCHEDULED",
                "NumberOfUnits": 8
              }
            ],
            "Title": "Cashed Out",
            "StartDate": "/Date(1573516800000+0000)/",
            "EndDate": "/Date(1573516800000+0000)/",
            "UpdatedDateUTC": "/Date(1573623008000+0000)/",
            "PayOutType": "CASHED_OUT"
          },
          {
            "LeaveApplicationID": "62b90465-66e9-4c3a-8151-de1e6335554d",
            "EmployeeID": "b34e89ff-770d-4099-b7e5-f968767118bc",
            "LeaveTypeID": "184ea8f7-d143-46dd-bef3-0c60e1aa6fca",
            "LeavePeriods": [
              {
                "PayPeriodStartDate": "/Date(1571961600000+0000)/",
                "PayPeriodEndDate": "/Date(1572480000000+0000)/",
                "LeavePeriodStatus": "SCHEDULED",
                "NumberOfUnits": 0
              },
              {
                "PayPeriodStartDate": "/Date(1572566400000+0000)/",
                "PayPeriodEndDate": "/Date(1573084800000+0000)/",
                "LeavePeriodStatus": "SCHEDULED",
                "NumberOfUnits": 0
              }
            ],
            "Title": "Yep Carer Leave",
            "Description": "My updated Description",
            "StartDate": "/Date(1572559200000+0000)/",
            "EndDate": "/Date(1572645600000+0000)/",
            "UpdatedDateUTC": "/Date(1573447344000+0000)/",
            "PayOutType": "DEFAULT"
          },
          {
            "LeaveApplicationID": "e8bd9eeb-18c9-4475-9c81-b298f9aa26c0",
            "EmployeeID": "b34e89ff-770d-4099-b7e5-f968767118bc",
            "LeaveTypeID": "184ea8f7-d143-46dd-bef3-0c60e1aa6fca",
            "LeavePeriods": [
              {
                "PayPeriodStartDate": "/Date(1571961600000+0000)/",
                "PayPeriodEndDate": "/Date(1572480000000+0000)/",
                "LeavePeriodStatus": "SCHEDULED",
                "NumberOfUnits": 0
              },
              {
                "PayPeriodStartDate": "/Date(1572566400000+0000)/",
                "PayPeriodEndDate": "/Date(1573084800000+0000)/",
                "LeavePeriodStatus": "SCHEDULED",
                "NumberOfUnits": 0
              }
            ],
            "Title": "Hello World",
            "StartDate": "/Date(1572559200000+0000)/",
            "EndDate": "/Date(1572645600000+0000)/",
            "UpdatedDateUTC": "/Date(1573447343000+0000)/",
            "PayOutType": "DEFAULT"
          }
        ]
      }
    }
  ]
}

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-getleaveapplications-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.