Xero · Example Payload

Xero Getpayslip Example

AccountingBank FeedsFinanceFinancial ServicesInvoicingPayrollSmall Business

Xero Getpayslip 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": "getPayslip",
  "method": "GET",
  "path": "/Payslip/{PayslipID}",
  "summary": "Retrieves for a payslip by a unique payslip id",
  "requestExamples": [],
  "responseExamples": [
    {
      "status": "200",
      "contentType": "application/json",
      "example": {
        "Id": "00000000-0000-0000-0000-000000000000",
        "Status": "OK",
        "ProviderName": "provider-name",
        "DateTimeUTC": "/Date(1573692677622)/",
        "Payslip": {
          "EmployeeID": "cdfb8371-0b21-4b8a-8903-1024df6c391e",
          "PayslipID": "c81e8bcc-56b0-4740-b46b-767753a6ee45",
          "FirstName": "Albus",
          "LastName": "Dumbledore",
          "Tax": 0,
          "NetPay": 1.4,
          "UpdatedDateUTC": "/Date(1573692155000+0000)/",
          "EarningsLines": [
            {
              "EarningsRateID": "ab874dfb-ab09-4c91-954e-43acf6fc23b4",
              "RatePerUnit": 3,
              "NumberOfUnits": 1.8
            }
          ],
          "LeaveEarningsLines": [
            {
              "EarningsRateID": "ab874dfb-ab09-4c91-954e-43acf6fc23b4",
              "RatePerUnit": 0,
              "NumberOfUnits": 0.6,
              "PayOutType": "DEFAULT"
            },
            {
              "EarningsRateID": "ab874dfb-ab09-4c91-954e-43acf6fc23b4",
              "RatePerUnit": 3,
              "NumberOfUnits": 0.6,
              "PayOutType": "CASHED_OUT"
            }
          ],
          "TimesheetEarningsLines": [],
          "DeductionLines": [
            {
              "Amount": 4,
              "CalculationType": "FIXEDAMOUNT",
              "DeductionTypeID": "ed05ea82-e40a-4eb6-9c2e-4b3c03e7e938"
            }
          ],
          "LeaveAccrualLines": [
            {
              "LeaveTypeID": "184ea8f7-d143-46dd-bef3-0c60e1aa6fca",
              "NumberOfUnits": 0.0769,
              "AutoCalculate": true
            }
          ],
          "ReimbursementLines": [
            {
              "ReimbursementTypeID": "aa8cfa40-d872-4be0-8a94-bb7f00962f74",
              "Description": "boo",
              "ExpenseAccount": "850",
              "Amount": 55
            }
          ],
          "SuperannuationLines": [
            {
              "ContributionType": "SGC",
              "CalculationType": "STATUTORY",
              "MinimumMonthlyEarnings": 450,
              "ExpenseAccountCode": "478",
              "LiabilityAccountCode": "826",
              "PaymentDateForThisPeriod": "/Date(1580169600000+0000)/",
              "Amount": 0
            }
          ],
          "TaxLines": [
            {
              "PayslipTaxLineID": "c129696e-36ef-4677-a54c-96095787ca20",
              "TaxTypeName": "PAYG Tax",
              "Description": "No tax file number (Australian resident)",
              "Amount": 0,
              "LiabilityAccount": "825"
            }
          ]
        }
      }
    }
  ]
}