Xero · Example Payload

Xero Getemployeeleaves Example

AccountingBank FeedsFinanceFinancial ServicesInvoicingPayrollSmall Business

Xero Getemployeeleaves 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": "getEmployeeLeaves",
  "method": "GET",
  "path": "/Employees/{EmployeeID}/Leave",
  "summary": "Retrieves leave records for a specific employee",
  "requestExamples": [],
  "responseExamples": [
    {
      "status": "200",
      "contentType": "application/json",
      "example": {
        "id": "00000000-0000-0000-0000-000000000000",
        "providerName": "provider-name",
        "dateTimeUTC": "2020-08-26 16:57:18.465732",
        "httpStatusCode": "OK",
        "pagination": null,
        "problem": null,
        "leave": [
          {
            "leaveID": "e311d45f-122e-4fbf-b068-4e3f92dd2729",
            "leaveTypeID": "0441497f-5dc7-4cd3-a90d-f2e07e21b2a6",
            "description": "Holiday Pay Payout",
            "startDate": "2019-07-01 00:00:00",
            "endDate": "2019-07-07 00:00:00",
            "periods": [
              {
                "periodStartDate": "2019-07-01 00:00:00",
                "periodEndDate": "2019-07-07 00:00:00",
                "numberOfUnits": 36,
                "periodStatus": "Completed",
                "typeOfUnits": "Hours",
                "numberOfUnitsTaken": 1,
                "typeOfUnitsTaken": "Weeks"
              }
            ],
            "updatedDateUTC": "2019-09-24 05:08:44"
          }
        ]
      }
    }
  ]
}