Skip to main content
Version: 1.7.3

Get Pay Statement

Get Pay Statement

Use this endpoint to retrieve employee-level pay statement details for one or more payruns in a single batch call.

Key Points

  • Batch request — Request multiple payruns in one call by adding multiple objects to the requests array.
  • Depends onpayment_id values from GET /payroll/payment.
  • Monetary values — All amounts are in cents (e.g. 500000 = $5,000.00).
POST payroll/pay-statement 

Header Parameters

FieldTypeDescription
AuthorizationstringRequired. Bearer token obtained from the Auth endpoint. Format: Bearer <access_token>.
X-TaxBandits-VersionstringAPI version string. Use 1.0.0.

Query Parameters

FieldTypeDescription
entity_idsstringRequired. The organization ID. Must be exactly one UUID.

Request Body

FieldTypeDescription
requestsobject[]Array of payruns to look up. Add multiple objects to request several payruns in one call.
   payment_idstringThe payrun UUID from GET /payroll/payment.

Response Body

FieldTypeDescription
statusstringSUCCESS or FAILURE.
status_codenumberHTTP status code (e.g. 200).
messagestringHuman-readable status message.
responseobject[]One entry per requested payrun.
   payment_idstringThe payrun UUID.
   bodyobjectPay statement data for this payrun.
     pay_statementsobject[]Per-employee pay statements for the payrun.
       individual_idstringThe employee UUID.
       typestringPayroll type. One of regular_payroll, off_cycle, bonus.
       payment_methodstringPayment method. One of check, direct_deposit.
       total_hoursnumberTotal hours worked. null for salaried employees.
       gross_payobjectGross pay for the pay period.
         amountnumberAmount in cents.
         currencystringISO currency code (e.g. usd).
       net_payobjectNet (take-home) pay for the pay period.
         amountnumberAmount in cents.
         currencystringISO currency code (e.g. usd).
       earningsobject[]Earnings line items.
         typestringEarning type. One of salary, hourly, bonus, commission, other.
         namestringDisplay name of the earning.
         amountnumberAmount in cents.
         currencystringISO currency code (e.g. usd).
         hoursnumberHours attributed to this earning. null if not applicable.
       taxesobject[]Tax line items.
         typestringTax type. One of federal, state, local.
         namestringDisplay name of the tax.
         employerbooleantrue if this is an employer-side tax; false for employee-side.
         amountnumberAmount in cents.
         currencystringISO currency code (e.g. usd).
       employee_deductionsobject[]Pre/post-tax deductions withheld from the employee.
         namestringDeduction name (e.g. Medical, 401k).
         amountnumberAmount in cents.
         currencystringISO currency code (e.g. usd).
         pre_taxbooleantrue if deducted before tax.
         typestringDeduction type identifier.
       employer_contributionsobject[]Employer-side benefit contributions.
         namestringContribution name (e.g. Medical, 401k Match).
         amountnumberAmount in cents.
         currencystringISO currency code (e.g. usd).
         typestringContribution type identifier.

Request Json

SampleDescriptionAction
Sample 1
Look up pay statements for one payrun. Add multiple objects to the requests array to batch several payruns.
Sample 1
{
"requests": [
{
"payment_id": "fc8b024e-d373-4c9c-80fc-f1625383d142"
}
]
}

Response Json

SampleDescriptionAction
200
Success Response - This is a sample response for successful API requests. All monetary values are in cents.
400
Bad Request Response - You'll get the below response when the request body fails validation.
{
"status": "SUCCESS",
"status_code": 200,
"message": "Request processed successfully",
"response": [
{
"payment_id": "fc8b024e-d373-4c9c-80fc-f1625383d142",
"body": {
"pay_statements": [
{
"individual_id": "be7b048c-a6f3-4194-a017-2f537d4f3565",
"type": "regular_payroll",
"payment_method": "direct_deposit",
"total_hours": 42.5,
"gross_pay": {
"amount": 230000,
"currency": "usd"
},
"net_pay": {
"amount": 180000,
"currency": "usd"
},
"earnings": [
{
"type": "salary",
"name": "Regular Salary",
"amount": 230000,
"currency": "usd",
"hours": 42.5
}
],
"taxes": [
{
"type": "state",
"name": "State Withholding",
"employer": false,
"amount": 0,
"currency": "usd"
}
],
"employee_deductions": [
{
"name": "Pre-Tax 401k",
"amount": 50000,
"currency": "usd",
"pre_tax": true,
"type": "401k"
}
],
"employer_contributions": [
{
"name": "Employee Medical Insurance",
"amount": 23272,
"currency": "usd",
"type": "s125_medical"
}
]
}
]
}
}
]
}