Skip to main content
Version: 1.7.3

Get Payment

Get Payment

Use this endpoint to retrieve a list of payrun records for the employer within a date range. Each record represents one completed payrun and includes pay totals, tax amounts, and the employees and pay groups involved. Copy the id values — these are the payment_id values needed by POST /payroll/pay-statement.

GET payroll/payment 

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.
start_datestringRequired. Start of the date range (YYYY-MM-DD). Must be less than or equal to end_date. Filtering is based on the payrun's pay_date.
end_datestringRequired. End of the date range (YYYY-MM-DD), inclusive. Filtering is based on the payrun's pay_date.

Response Body

FieldTypeDescription
statusstringSUCCESS or FAILURE.
status_codenumberHTTP status code (e.g. 200).
messagestringHuman-readable status message.
responseobject[]List of payrun records.
   idstringThe payrun UUID (payment_id).
   pay_periodobjectThe pay period covered by the payrun.
     start_datestringStart of the pay period (YYYY-MM-DD).
     end_datestringEnd of the pay period (YYYY-MM-DD).
   pay_datestringThe pay date of the payrun (YYYY-MM-DD).
   debit_datestringThe date funds are debited (YYYY-MM-DD). Can be null.
   company_debitobjectTotal amount debited from the company account.
     amountnumberAmount in cents.
     currencystringISO currency code (e.g. usd).
   gross_payobjectTotal gross pay for all employees in this payrun.
     amountnumberAmount in cents.
     currencystringISO currency code (e.g. usd).
   net_payobjectTotal net pay for all employees in this payrun.
     amountnumberAmount in cents.
     currencystringISO currency code (e.g. usd).
   employer_taxesobjectTotal employer tax liability for this payrun.
     amountnumberAmount in cents.
     currencystringISO currency code (e.g. usd).
   employee_taxesobjectTotal employee tax withheld for this payrun.
     amountnumberAmount in cents.
     currencystringISO currency code (e.g. usd).
   individual_idsstring[]Employee UUIDs included in this payrun.
   pay_group_idsstring[]Pay group UUIDs associated with this payrun.
   pay_frequenciesstring[]Pay frequencies used in this payrun (e.g. ["bi_weekly"]).

Request

GET payroll/payment?entity_ids=519a84f4-...&start_date=2026-01-01&end_date=2026-03-31
Header: X-TaxBandits-Version: 1.0.0

Response Json

SampleDescriptionAction
200
Success Response - This is a sample response for successful API requests.
400
Bad Request Response - You'll get the below response when entity_ids is missing or the date range is invalid.
{
"status": "SUCCESS",
"status_code": 200,
"message": "Request processed successfully",
"response": [
{
"id": "fc8b024e-d373-4c9c-80fc-f1625383d142",
"pay_period": {
"start_date": "2026-01-01",
"end_date": "2026-01-31"
},
"pay_date": "2026-01-31",
"debit_date": "2026-01-31",
"company_debit": {
"amount": 1250000,
"currency": "usd"
},
"gross_pay": {
"amount": 1000000,
"currency": "usd"
},
"net_pay": {
"amount": 760000,
"currency": "usd"
},
"employer_taxes": {
"amount": 76500,
"currency": "usd"
},
"employee_taxes": {
"amount": 120000,
"currency": "usd"
},
"individual_ids": [
"7a3f1c2d-11bb-4e6a-9c0d-f83a57e12346",
"9b2e4d7f-22cc-5f7b-0d1e-994b68f23457"
],
"pay_group_ids": [
"a1b2c3d4-1111-2222-3333-444455556666"
],
"pay_frequencies": [
"bi_weekly"
]
}
]
}