Xero · Example Payload

Xero Createleaveapplication Example

AccountingBank FeedsFinanceFinancial ServicesInvoicingPayrollSmall Business

Xero Createleaveapplication 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": "createLeaveApplication",
  "method": "POST",
  "path": "/LeaveApplications",
  "summary": "Creates a leave application",
  "requestExamples": [
    {
      "contentType": "application/json",
      "example": "[ { \"EmployeeID\": \"cdfb8371-0b21-4b8a-8903-1024df6c391e\", \"LeaveTypeID\": \"184ea8f7-d143-46dd-bef3-0c60e1aa6fca\", \"Title\": \"Hello World\", \"StartDate\": \"/Date(1572559200000+0000)/\", \"EndDate\": \"/Date(1572645600000+0000)/\" } ]"
    }
  ],
  "responseExamples": [
    {
      "status": "200",
      "contentType": "application/json",
      "example": {
        "Id": "00000000-0000-0000-0000-000000000000",
        "Status": "OK",
        "ProviderName": "provider-name",
        "DateTimeUTC": "/Date(1573679791917)/",
        "LeaveApplications": [
          {
            "LeaveApplicationID": "5f7097e4-51f2-46cc-921b-45bc73ea7831",
            "EmployeeID": "cdfb8371-0b21-4b8a-8903-1024df6c391e",
            "LeaveTypeID": "184ea8f7-d143-46dd-bef3-0c60e1aa6fca",
            "LeavePeriods": [
              {
                "PayPeriodStartDate": "/Date(1572566400000+0000)/",
                "PayPeriodEndDate": "/Date(1573084800000+0000)/",
                "LeavePeriodStatus": "SCHEDULED",
                "NumberOfUnits": 7.6
              }
            ],
            "Title": "Hello World",
            "StartDate": "/Date(1572559200000+0000)/",
            "EndDate": "/Date(1572645600000+0000)/",
            "UpdatedDateUTC": "/Date(1573679791897+0000)/",
            "PayOutType": "DEFAULT"
          }
        ]
      }
    }
  ]
}