Payroll
PayrollService pays the team: how each person is paid, pay runs and payslips, statutory returns, payment files for the bank and mobile money, and staff questions about their pay. See docs/adr/0035-payroll.md.
Tax and statutory deductions come from a rule set: a list of components (income tax bands, social security, levies) with rates, caps and filing groups. A business starts from a built-in jurisdiction pack (Tanzania: PAYE, NSSF, SDL and WCF) and may edit it; every pay run keeps the rules it was calculated with.
Pay comes from the POS: approved timecards for hours, overtime and paid time off; card tips and commission on what each person sold. Approving a run posts it to the books (wages and employer costs as expenses, what is owed to staff and to the authorities as liabilities); paying it and each return takes the money out of a Cash Account.
payroll.manage prepares runs, pay profiles and answers questions; payroll.approve approves, pays, voids and files. Every team member with a login sees their own payslips (the My* calls).
GetPayrollSettings#
Settings and rules.
Request body
No fields: send {}.
Response
settingsPayrollSettingsrulesRuleSetjurisdictionsJurisdiction[]currencyCodestringcurrency_codeThe business's currency, which the rules should be in.
aiAvailablebooleanai_availableWhether the AI assistant is available to this business.
curl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/GetPayrollSettings \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'{
"settings": {
"jurisdiction": "",
"frequency": "",
"payDay": 0,
"overtimeMultiplierBp": 0,
"approvedTimeOnly": false,
"payTips": false,
"tipsTaxable": false,
"twoPersonApproval": false,
"payCashAccountId": "",
"employerIds": {
"key": ""
},
"staffAssistant": false,
"configured": false
},
"rules": {
"jurisdiction": "",
"name": "Amina Mushi",
"version": "",
"effectiveFrom": "",
"currencyCode": "TZS",
"source": ""
},
"jurisdictions": [
{
"code": "",
"name": "Amina Mushi",
"version": "",
"currencyCode": "TZS"
}
],
"currencyCode": "TZS",
"aiAvailable": false
}UpdatePayrollSettings#
Request body
settingsPayrollSettingsResponse
settingsPayrollSettingscurl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/UpdatePayrollSettings \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'{
"settings": {
"jurisdiction": "",
"frequency": "",
"payDay": 0,
"overtimeMultiplierBp": 0,
"approvedTimeOnly": false,
"payTips": false,
"tipsTaxable": false,
"twoPersonApproval": false,
"payCashAccountId": "",
"employerIds": {
"key": ""
},
"staffAssistant": false,
"configured": false
}
}UpdatePayrollRules#
UpdatePayrollRules replaces the business's rule set; draft runs pick it up when recalculated.
Request body
rulesRuleSetResponse
rulesRuleSetcurl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/UpdatePayrollRules \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"rules": {
"name": "Amina Mushi",
"currencyCode": "TZS",
"components": [
{
"name": "Amina Mushi",
"amount": "150000",
"maxAmount": "150000"
}
],
"groups": [
{
"name": "Amina Mushi"
}
]
}
}'{
"rules": {
"jurisdiction": "",
"name": "Amina Mushi",
"version": "",
"effectiveFrom": "",
"currencyCode": "TZS",
"source": ""
}
}ResetPayrollRules#
ResetPayrollRules starts again from a built-in jurisdiction pack.
Request body
jurisdictionstringResponse
rulesRuleSetcurl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/ResetPayrollRules \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'{
"rules": {
"jurisdiction": "",
"name": "Amina Mushi",
"version": "",
"effectiveFrom": "",
"currencyCode": "TZS",
"source": ""
}
}PreviewPayslip#
PreviewPayslip calculates one made-up payslip with the current rules, to check them: what someone on this pay takes home.
Request body
grossint64 stringMonthly gross pay, all taxable and pensionable.
residentbooleansecondaryJobbooleansecondary_jobemploymentTypestringemployment_typerulesRuleSetRules to try; empty for the business's own.
Response
payslipPayslipcurl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/PreviewPayslip \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"rules": {
"name": "Amina Mushi",
"currencyCode": "TZS",
"components": [
{
"name": "Amina Mushi",
"amount": "150000",
"maxAmount": "150000"
}
],
"groups": [
{
"name": "Amina Mushi"
}
]
}
}'{
"payslip": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"payRunId": "",
"teamMemberId": "",
"fullName": "Amina Mushi",
"jobTitle": "",
"employeeNumber": "",
"taxId": "",
"socialId": "",
"workedMinutes": "0",
"overtimeMinutes": "0",
"timeOffMinutes": "0",
"sales": "0",
"tips": "0",
"gross": "0",
"taxable": "0",
"tax": "150000",
"deductions": "0",
"net": "0",
"employerCost": "150000",
"held": false,
"warnings": [
""
],
"paymentMethod": "",
"paymentTo": "",
"paymentStatus": "",
"publishedAt": "",
"periodStart": "",
"periodEnd": "",
"payDate": "2026-12-05",
"runStatus": "",
"currencyCode": "TZS",
"ytdGross": "0",
"ytdTax": "150000",
"ytdNet": "0",
"businessName": "Amina Mushi"
}
}ListPayProfiles#
People.
Request body
No fields: send {}.
Response
rowsPayProfileRow[]currencyCodestringcurrency_codecurl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/ListPayProfiles \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'{
"rows": [
{
"teamMemberId": "",
"fullName": "Amina Mushi",
"roleName": "Amina Mushi",
"active": false,
"email": "amina@example.co.tz",
"phone": "+255712345678",
"missing": [
""
]
}
],
"currencyCode": "TZS"
}SavePayProfile#
Request body
profilePayProfileResponse
curl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/SavePayProfile \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"profile": {
"startDate": "2026-12-05",
"endDate": "2026-12-05",
"exemptions": [
""
],
"bankName": "Amina Mushi",
"accountName": "Amina Mushi"
}
}'{
"row": {
"teamMemberId": "",
"fullName": "Amina Mushi",
"roleName": "Amina Mushi",
"active": false,
"email": "amina@example.co.tz",
"phone": "+255712345678",
"missing": [
""
]
}
}SavePayItem#
Request body
itemPayItemResponse
itemPayItemcurl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/SavePayItem \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"item": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"name": "Amina Mushi",
"amount": "150000",
"balance": "150000"
}
}'{
"item": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"teamMemberId": "",
"kind": "",
"name": "Amina Mushi",
"amount": "150000",
"rateBp": 0,
"taxable": false,
"pensionable": false,
"balance": "150000",
"startsOn": "",
"endsOn": "",
"active": false
}
}DeletePayItem#
Request body
idstringResponse
No fields: send {}.
curl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/DeletePayItem \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}'{}GetPayrollOverview#
Pay runs.
Request body
No fields: send {}.
Response
currencyCodestringcurrency_codeconfiguredbooleannextPeriodStartstringnext_period_startThe next period to pay, from the pay schedule.
nextPeriodEndstringnext_period_endnextPayDatestringnext_pay_dateopenTicketsintegeropen_ticketsonPayrollintegeron_payrollPeople on payroll, and those missing details.
missingDetailsintegermissing_detailsytdGrossint64 stringytd_grossThis calendar year, from approved and paid runs.
ytdNetint64 stringytd_netytdEmployerCostint64 stringytd_employer_costytdTaxint64 stringytd_taxmonthsMonthTotal[]Gross pay by month this year, YYYY-MM.
rulesNamestringrules_namecurl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/GetPayrollOverview \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'{
"currencyCode": "TZS",
"configured": false,
"nextPeriodStart": "",
"nextPeriodEnd": "",
"nextPayDate": "2026-12-05",
"recentRuns": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"number": 0,
"periodStart": "",
"periodEnd": "",
"payDate": "2026-12-05",
"frequency": "",
"status": "",
"currencyCode": "TZS",
"note": "",
"employees": 0,
"gross": "0",
"deductions": "0",
"net": "0",
"employerCost": "150000",
"calculatedBy": "",
"calculatedAt": "",
"approvedBy": "",
"approvedAt": "",
"paidBy": "",
"paidAt": "",
"cashAccountId": "",
"paymentRef": "",
"voidedBy": "",
"voidedAt": "",
"voidReason": "",
"createdAt": "",
"warnings": 0,
"rulesName": "Amina Mushi"
}
],
"upcomingFilings": [
{
"group": "",
"name": "Amina Mushi",
"agency": "",
"form": "",
"period": "",
"dueDate": "2026-12-05",
"status": "",
"overdue": false,
"amount": "150000",
"employees": 0,
"filedAmount": "150000",
"filedAt": "",
"filingRef": "",
"paidAmount": "150000",
"paidAt": "",
"paymentRef": "",
"amended": false
}
],
"openTickets": 0,
"onPayroll": 0,
"missingDetails": 0,
"ytdGross": "0",
"ytdNet": "0",
"ytdEmployerCost": "150000",
"ytdTax": "150000",
"months": [
{
"month": "",
"gross": "0",
"net": "0",
"employerCost": "150000"
}
],
"rulesName": "Amina Mushi"
}ListPayRuns#
Request body
limitintegerResponse
runsPayRun[]curl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/ListPayRuns \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'{
"runs": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"number": 0,
"periodStart": "",
"periodEnd": "",
"payDate": "2026-12-05",
"frequency": "",
"status": "",
"currencyCode": "TZS",
"note": "",
"employees": 0,
"gross": "0",
"deductions": "0",
"net": "0",
"employerCost": "150000",
"calculatedBy": "",
"calculatedAt": "",
"approvedBy": "",
"approvedAt": "",
"paidBy": "",
"paidAt": "",
"cashAccountId": "",
"paymentRef": "",
"voidedBy": "",
"voidedAt": "",
"voidReason": "",
"createdAt": "",
"warnings": 0,
"rulesName": "Amina Mushi"
}
]
}CreatePayRun#
CreatePayRun calculates a draft run for everyone on payroll (or the people named) for a period.
Request body
periodStartstringperiod_startperiodEndstringperiod_endpayDatestringpay_datefrequencystringEmpty for the pay schedule's; off_cycle for bonuses and corrections, which pay only adjustments and items, not hours or salary.
teamMemberIdsstring[]team_member_idsEmpty for everyone on payroll.
notestringResponse
runPayRuncurl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/CreatePayRun \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"payDate": "2026-12-05",
"teamMemberIds": [
""
]
}'{
"run": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"number": 0,
"periodStart": "",
"periodEnd": "",
"payDate": "2026-12-05",
"frequency": "",
"status": "",
"currencyCode": "TZS",
"note": "",
"employees": 0,
"gross": "0",
"deductions": "0",
"net": "0",
"employerCost": "150000",
"calculatedBy": "",
"calculatedAt": "",
"approvedBy": "",
"approvedAt": "",
"paidBy": "",
"paidAt": "",
"cashAccountId": "",
"paymentRef": "",
"voidedBy": "",
"voidedAt": "",
"voidReason": "",
"createdAt": "",
"warnings": 0,
"rulesName": "Amina Mushi"
}
}GetPayRun#
Request body
idstringResponse
runPayRunpayslipsPayslip[]componentsComponentTotal[]Totals by statutory component.
previousPayRunThe previous run's totals, to compare.
journalEntryIdsstring[]journal_entry_idsThe journal entries it posted, for the books.
curl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/GetPayRun \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}'{
"run": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"number": 0,
"periodStart": "",
"periodEnd": "",
"payDate": "2026-12-05",
"frequency": "",
"status": "",
"currencyCode": "TZS",
"note": "",
"employees": 0,
"gross": "0",
"deductions": "0",
"net": "0",
"employerCost": "150000",
"calculatedBy": "",
"calculatedAt": "",
"approvedBy": "",
"approvedAt": "",
"paidBy": "",
"paidAt": "",
"cashAccountId": "",
"paymentRef": "",
"voidedBy": "",
"voidedAt": "",
"voidReason": "",
"createdAt": "",
"warnings": 0,
"rulesName": "Amina Mushi"
},
"payslips": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"payRunId": "",
"teamMemberId": "",
"fullName": "Amina Mushi",
"jobTitle": "",
"employeeNumber": "",
"taxId": "",
"socialId": "",
"workedMinutes": "0",
"overtimeMinutes": "0",
"timeOffMinutes": "0",
"sales": "0",
"tips": "0",
"gross": "0",
"taxable": "0",
"tax": "150000",
"deductions": "0",
"net": "0",
"employerCost": "150000",
"held": false,
"warnings": [
""
],
"paymentMethod": "",
"paymentTo": "",
"paymentStatus": "",
"publishedAt": "",
"periodStart": "",
"periodEnd": "",
"payDate": "2026-12-05",
"runStatus": "",
"currencyCode": "TZS",
"ytdGross": "0",
"ytdTax": "150000",
"ytdNet": "0",
"businessName": "Amina Mushi"
}
],
"components": [
{
"code": "",
"name": "Amina Mushi",
"kind": "",
"group": "",
"amount": "150000"
}
],
"previous": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"number": 0,
"periodStart": "",
"periodEnd": "",
"payDate": "2026-12-05",
"frequency": "",
"status": "",
"currencyCode": "TZS",
"note": "",
"employees": 0,
"gross": "0",
"deductions": "0",
"net": "0",
"employerCost": "150000",
"calculatedBy": "",
"calculatedAt": "",
"approvedBy": "",
"approvedAt": "",
"paidBy": "",
"paidAt": "",
"cashAccountId": "",
"paymentRef": "",
"voidedBy": "",
"voidedAt": "",
"voidReason": "",
"createdAt": "",
"warnings": 0,
"rulesName": "Amina Mushi"
},
"journalEntryIds": [
""
]
}RecalculatePayRun#
RecalculatePayRun pulls hours, tips, sales and pay again for a draft.
Request body
idstringResponse
runPayRuncurl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/RecalculatePayRun \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}'{
"run": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"number": 0,
"periodStart": "",
"periodEnd": "",
"payDate": "2026-12-05",
"frequency": "",
"status": "",
"currencyCode": "TZS",
"note": "",
"employees": 0,
"gross": "0",
"deductions": "0",
"net": "0",
"employerCost": "150000",
"calculatedBy": "",
"calculatedAt": "",
"approvedBy": "",
"approvedAt": "",
"paidBy": "",
"paidAt": "",
"cashAccountId": "",
"paymentRef": "",
"voidedBy": "",
"voidedAt": "",
"voidReason": "",
"createdAt": "",
"warnings": 0,
"rulesName": "Amina Mushi"
}
}DeletePayRun#
Request body
idstringResponse
No fields: send {}.
curl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/DeletePayRun \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}'{}AdjustPayslip#
AdjustPayslip sets the one-off additions and deductions on a draft payslip.
Request body
payslipIdstringpayslip_idadjustmentsAdjustment[]curl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/AdjustPayslip \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"adjustments": [
{
"name": "Amina Mushi",
"amount": "150000"
}
]
}'{
"payslip": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"payRunId": "",
"teamMemberId": "",
"fullName": "Amina Mushi",
"jobTitle": "",
"employeeNumber": "",
"taxId": "",
"socialId": "",
"workedMinutes": "0",
"overtimeMinutes": "0",
"timeOffMinutes": "0",
"sales": "0",
"tips": "0",
"gross": "0",
"taxable": "0",
"tax": "150000",
"deductions": "0",
"net": "0",
"employerCost": "150000",
"held": false,
"warnings": [
""
],
"paymentMethod": "",
"paymentTo": "",
"paymentStatus": "",
"publishedAt": "",
"periodStart": "",
"periodEnd": "",
"payDate": "2026-12-05",
"runStatus": "",
"currencyCode": "TZS",
"ytdGross": "0",
"ytdTax": "150000",
"ytdNet": "0",
"businessName": "Amina Mushi"
},
"run": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"number": 0,
"periodStart": "",
"periodEnd": "",
"payDate": "2026-12-05",
"frequency": "",
"status": "",
"currencyCode": "TZS",
"note": "",
"employees": 0,
"gross": "0",
"deductions": "0",
"net": "0",
"employerCost": "150000",
"calculatedBy": "",
"calculatedAt": "",
"approvedBy": "",
"approvedAt": "",
"paidBy": "",
"paidAt": "",
"cashAccountId": "",
"paymentRef": "",
"voidedBy": "",
"voidedAt": "",
"voidReason": "",
"createdAt": "",
"warnings": 0,
"rulesName": "Amina Mushi"
}
}HoldPayslip#
HoldPayslip keeps someone's pay out of a run without removing them.
Request body
payslipIdstringpayslip_idheldbooleancurl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/HoldPayslip \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'{
"payslip": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"payRunId": "",
"teamMemberId": "",
"fullName": "Amina Mushi",
"jobTitle": "",
"employeeNumber": "",
"taxId": "",
"socialId": "",
"workedMinutes": "0",
"overtimeMinutes": "0",
"timeOffMinutes": "0",
"sales": "0",
"tips": "0",
"gross": "0",
"taxable": "0",
"tax": "150000",
"deductions": "0",
"net": "0",
"employerCost": "150000",
"held": false,
"warnings": [
""
],
"paymentMethod": "",
"paymentTo": "",
"paymentStatus": "",
"publishedAt": "",
"periodStart": "",
"periodEnd": "",
"payDate": "2026-12-05",
"runStatus": "",
"currencyCode": "TZS",
"ytdGross": "0",
"ytdTax": "150000",
"ytdNet": "0",
"businessName": "Amina Mushi"
},
"run": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"number": 0,
"periodStart": "",
"periodEnd": "",
"payDate": "2026-12-05",
"frequency": "",
"status": "",
"currencyCode": "TZS",
"note": "",
"employees": 0,
"gross": "0",
"deductions": "0",
"net": "0",
"employerCost": "150000",
"calculatedBy": "",
"calculatedAt": "",
"approvedBy": "",
"approvedAt": "",
"paidBy": "",
"paidAt": "",
"cashAccountId": "",
"paymentRef": "",
"voidedBy": "",
"voidedAt": "",
"voidReason": "",
"createdAt": "",
"warnings": 0,
"rulesName": "Amina Mushi"
}
}ApprovePayRun#
ApprovePayRun locks a draft and posts it to the books. With two-person approval on, whoever calculated it last cannot approve it.
Request body
idstringResponse
runPayRuncurl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/ApprovePayRun \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}'{
"run": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"number": 0,
"periodStart": "",
"periodEnd": "",
"payDate": "2026-12-05",
"frequency": "",
"status": "",
"currencyCode": "TZS",
"note": "",
"employees": 0,
"gross": "0",
"deductions": "0",
"net": "0",
"employerCost": "150000",
"calculatedBy": "",
"calculatedAt": "",
"approvedBy": "",
"approvedAt": "",
"paidBy": "",
"paidAt": "",
"cashAccountId": "",
"paymentRef": "",
"voidedBy": "",
"voidedAt": "",
"voidReason": "",
"createdAt": "",
"warnings": 0,
"rulesName": "Amina Mushi"
}
}PayPayRun#
PayPayRun records that net pay left a Cash Account and publishes the payslips to staff.
Request body
idstringcashAccountIdstringcash_account_idpaidAtstringpaid_atRFC 3339; empty for now.
referencestringResponse
runPayRuncurl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/PayPayRun \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}'{
"run": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"number": 0,
"periodStart": "",
"periodEnd": "",
"payDate": "2026-12-05",
"frequency": "",
"status": "",
"currencyCode": "TZS",
"note": "",
"employees": 0,
"gross": "0",
"deductions": "0",
"net": "0",
"employerCost": "150000",
"calculatedBy": "",
"calculatedAt": "",
"approvedBy": "",
"approvedAt": "",
"paidBy": "",
"paidAt": "",
"cashAccountId": "",
"paymentRef": "",
"voidedBy": "",
"voidedAt": "",
"voidReason": "",
"createdAt": "",
"warnings": 0,
"rulesName": "Amina Mushi"
}
}VoidPayRun#
VoidPayRun reverses an approved or paid run, as long as no return that includes it has been filed.
Request body
idstringreasonstringResponse
runPayRuncurl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/VoidPayRun \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}'{
"run": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"number": 0,
"periodStart": "",
"periodEnd": "",
"payDate": "2026-12-05",
"frequency": "",
"status": "",
"currencyCode": "TZS",
"note": "",
"employees": 0,
"gross": "0",
"deductions": "0",
"net": "0",
"employerCost": "150000",
"calculatedBy": "",
"calculatedAt": "",
"approvedBy": "",
"approvedAt": "",
"paidBy": "",
"paidAt": "",
"cashAccountId": "",
"paymentRef": "",
"voidedBy": "",
"voidedAt": "",
"voidReason": "",
"createdAt": "",
"warnings": 0,
"rulesName": "Amina Mushi"
}
}GetPayslip#
Request body
idstringResponse
payslipPayslipcurl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/GetPayslip \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}'{
"payslip": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"payRunId": "",
"teamMemberId": "",
"fullName": "Amina Mushi",
"jobTitle": "",
"employeeNumber": "",
"taxId": "",
"socialId": "",
"workedMinutes": "0",
"overtimeMinutes": "0",
"timeOffMinutes": "0",
"sales": "0",
"tips": "0",
"gross": "0",
"taxable": "0",
"tax": "150000",
"deductions": "0",
"net": "0",
"employerCost": "150000",
"held": false,
"warnings": [
""
],
"paymentMethod": "",
"paymentTo": "",
"paymentStatus": "",
"publishedAt": "",
"periodStart": "",
"periodEnd": "",
"payDate": "2026-12-05",
"runStatus": "",
"currencyCode": "TZS",
"ytdGross": "0",
"ytdTax": "150000",
"ytdNet": "0",
"businessName": "Amina Mushi"
}
}ExportPayRun#
ExportPayRun makes a file: a bank or mobile money bulk payment file, or the payroll register.
Request body
idstringformatstringbank_csv, mobile_money_csv or register_csv.
Response
fileFilecurl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/ExportPayRun \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}'{
"file": {
"filename": "",
"contentType": "",
"content": "",
"rows": 0,
"total": "150000"
}
}GetEmployeeYear#
GetEmployeeYear is someone's pay month by month, for their annual certificate of pay and tax.
Request body
teamMemberIdstringteam_member_idyearintegerResponse
yearEmployeeYearcurl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/GetEmployeeYear \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'{
"year": {
"teamMemberId": "",
"fullName": "Amina Mushi",
"taxId": "",
"socialId": "",
"year": 0,
"currencyCode": "TZS",
"businessName": "Amina Mushi",
"employerTaxId": ""
}
}ListFilings#
Statutory returns.
Request body
yearintegerEmpty for this year and anything still owed.
Response
curl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/ListFilings \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'{
"filings": [
{
"group": "",
"name": "Amina Mushi",
"agency": "",
"form": "",
"period": "",
"dueDate": "2026-12-05",
"status": "",
"overdue": false,
"amount": "150000",
"employees": 0,
"filedAmount": "150000",
"filedAt": "",
"filingRef": "",
"paidAmount": "150000",
"paidAt": "",
"paymentRef": "",
"amended": false
}
],
"currencyCode": "TZS",
"employerIds": {
"key": ""
}
}GetFilingReturn#
GetFilingReturn makes the return's schedule, one line per person, ready to upload or copy into the authority's portal.
Request body
groupstringperiodstringResponse
fileFilecurl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/GetFilingReturn \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'{
"file": {
"filename": "",
"contentType": "",
"content": "",
"rows": 0,
"total": "150000"
}
}MarkFilingFiled#
Request body
groupstringperiodstringreferencestringResponse
filingFilingcurl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/MarkFilingFiled \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'{
"filing": {
"group": "",
"name": "Amina Mushi",
"agency": "",
"form": "",
"period": "",
"dueDate": "2026-12-05",
"status": "",
"overdue": false,
"amount": "150000",
"employees": 0,
"filedAmount": "150000",
"filedAt": "",
"filingRef": "",
"paidAmount": "150000",
"paidAt": "",
"paymentRef": "",
"amended": false
}
}PayFiling#
PayFiling records paying a return from a Cash Account.
Request body
groupstringperiodstringcashAccountIdstringcash_account_idpaidAtstringpaid_atreferencestringResponse
filingFilingcurl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/PayFiling \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'{
"filing": {
"group": "",
"name": "Amina Mushi",
"agency": "",
"form": "",
"period": "",
"dueDate": "2026-12-05",
"status": "",
"overdue": false,
"amount": "150000",
"employees": 0,
"filedAmount": "150000",
"filedAt": "",
"filingRef": "",
"paidAmount": "150000",
"paidAt": "",
"paymentRef": "",
"amended": false
}
}ListPayrollTickets#
Payroll help desk, for whoever runs payroll.
Request body
statusstringEmpty for open and answered ones.
Response
ticketsPayrollTicket[]curl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/ListPayrollTickets \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'{
"tickets": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"number": 0,
"teamMemberId": "",
"fullName": "Amina Mushi",
"payslipId": "",
"category": "",
"subject": "",
"status": "",
"lastMessageAt": "",
"createdAt": "",
"payslipLabel": ""
}
]
}GetPayrollTicket#
Request body
idstringResponse
ticketPayrollTicketcurl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/GetPayrollTicket \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}'{
"ticket": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"number": 0,
"teamMemberId": "",
"fullName": "Amina Mushi",
"payslipId": "",
"category": "",
"subject": "",
"status": "",
"lastMessageAt": "",
"createdAt": "",
"payslipLabel": ""
}
}ReplyPayrollTicket#
Request body
idstringbodystringresolvebooleanMark it resolved with the reply.
Response
ticketPayrollTicketcurl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/ReplyPayrollTicket \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}'{
"ticket": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"number": 0,
"teamMemberId": "",
"fullName": "Amina Mushi",
"payslipId": "",
"category": "",
"subject": "",
"status": "",
"lastMessageAt": "",
"createdAt": "",
"payslipLabel": ""
}
}SetPayrollTicketStatus#
Request body
idstringstatusstringResponse
ticketPayrollTicketcurl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/SetPayrollTicketStatus \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}'{
"ticket": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"number": 0,
"teamMemberId": "",
"fullName": "Amina Mushi",
"payslipId": "",
"category": "",
"subject": "",
"status": "",
"lastMessageAt": "",
"createdAt": "",
"payslipLabel": ""
}
}DraftTicketReply#
DraftTicketReply asks the AI for a reply, from the person's payslips.
Request body
idstringResponse
bodystringcurl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/DraftTicketReply \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}'{
"body": ""
}ListMyPayslips#
Staff: their own pay.
Request body
No fields: send {}.
Response
payslipsPayslip[]assistantbooleanWhether they can ask the assistant.
curl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/ListMyPayslips \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'{
"payslips": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"payRunId": "",
"teamMemberId": "",
"fullName": "Amina Mushi",
"jobTitle": "",
"employeeNumber": "",
"taxId": "",
"socialId": "",
"workedMinutes": "0",
"overtimeMinutes": "0",
"timeOffMinutes": "0",
"sales": "0",
"tips": "0",
"gross": "0",
"taxable": "0",
"tax": "150000",
"deductions": "0",
"net": "0",
"employerCost": "150000",
"held": false,
"warnings": [
""
],
"paymentMethod": "",
"paymentTo": "",
"paymentStatus": "",
"publishedAt": "",
"periodStart": "",
"periodEnd": "",
"payDate": "2026-12-05",
"runStatus": "",
"currencyCode": "TZS",
"ytdGross": "0",
"ytdTax": "150000",
"ytdNet": "0",
"businessName": "Amina Mushi"
}
],
"assistant": false
}GetMyPayslip#
Request body
idstringResponse
payslipPayslipcurl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/GetMyPayslip \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}'{
"payslip": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"payRunId": "",
"teamMemberId": "",
"fullName": "Amina Mushi",
"jobTitle": "",
"employeeNumber": "",
"taxId": "",
"socialId": "",
"workedMinutes": "0",
"overtimeMinutes": "0",
"timeOffMinutes": "0",
"sales": "0",
"tips": "0",
"gross": "0",
"taxable": "0",
"tax": "150000",
"deductions": "0",
"net": "0",
"employerCost": "150000",
"held": false,
"warnings": [
""
],
"paymentMethod": "",
"paymentTo": "",
"paymentStatus": "",
"publishedAt": "",
"periodStart": "",
"periodEnd": "",
"payDate": "2026-12-05",
"runStatus": "",
"currencyCode": "TZS",
"ytdGross": "0",
"ytdTax": "150000",
"ytdNet": "0",
"businessName": "Amina Mushi"
}
}GetMyPayYear#
Request body
yearintegerResponse
yearEmployeeYearcurl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/GetMyPayYear \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'{
"year": {
"teamMemberId": "",
"fullName": "Amina Mushi",
"taxId": "",
"socialId": "",
"year": 0,
"currencyCode": "TZS",
"businessName": "Amina Mushi",
"employerTaxId": ""
}
}ListMyPayrollTickets#
Request body
No fields: send {}.
Response
ticketsPayrollTicket[]curl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/ListMyPayrollTickets \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'{
"tickets": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"number": 0,
"teamMemberId": "",
"fullName": "Amina Mushi",
"payslipId": "",
"category": "",
"subject": "",
"status": "",
"lastMessageAt": "",
"createdAt": "",
"payslipLabel": ""
}
]
}CreatePayrollTicket#
Request body
subjectstringcategorystringpayslipIdstringpayslip_idThe payslip it is about; may be empty.
bodystringResponse
ticketPayrollTicketcurl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/CreatePayrollTicket \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'{
"ticket": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"number": 0,
"teamMemberId": "",
"fullName": "Amina Mushi",
"payslipId": "",
"category": "",
"subject": "",
"status": "",
"lastMessageAt": "",
"createdAt": "",
"payslipLabel": ""
}
}AskPayrollAssistant#
AskPayrollAssistant answers a question about the caller's own pay. The app keeps the conversation and sends it back each time.
Request body
historyAssistantTurn[]questionstringpayslipIdstringpayslip_idThe payslip they are looking at; may be empty.
Response
answerstringsuggestTicketbooleansuggest_ticketThe assistant thinks a person should look at this: offer to send it to payroll as a question.
curl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/AskPayrollAssistant \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'{
"answer": "",
"suggestTicket": false
}Types
The messages and enums these methods use. Field names are lowerCamelCase in JSON; the snake_case names work too. Enum values are sent as their names.
GetPayrollSettingsRequest
holygrail.payroll.v1.GetPayrollSettingsRequest
No fields.
GetPayrollSettingsResponse
holygrail.payroll.v1.GetPayrollSettingsResponse
settingsPayrollSettingsrulesRuleSetjurisdictionsJurisdiction[]currencyCodestringcurrency_codeThe business's currency, which the rules should be in.
aiAvailablebooleanai_availableWhether the AI assistant is available to this business.
UpdatePayrollSettingsRequest
holygrail.payroll.v1.UpdatePayrollSettingsRequest
settingsPayrollSettingsUpdatePayrollSettingsResponse
holygrail.payroll.v1.UpdatePayrollSettingsResponse
settingsPayrollSettingsResetPayrollRulesRequest
holygrail.payroll.v1.ResetPayrollRulesRequest
jurisdictionstringPreviewPayslipRequest
holygrail.payroll.v1.PreviewPayslipRequest
grossint64 stringMonthly gross pay, all taxable and pensionable.
residentbooleansecondaryJobbooleansecondary_jobemploymentTypestringemployment_typerulesRuleSetRules to try; empty for the business's own.
ListPayProfilesRequest
holygrail.payroll.v1.ListPayProfilesRequest
No fields.
ListPayProfilesResponse
holygrail.payroll.v1.ListPayProfilesResponse
rowsPayProfileRow[]currencyCodestringcurrency_codeDeletePayItemRequest
holygrail.payroll.v1.DeletePayItemRequest
idstringDeletePayItemResponse
holygrail.payroll.v1.DeletePayItemResponse
No fields.
GetPayrollOverviewRequest
holygrail.payroll.v1.GetPayrollOverviewRequest
No fields.
GetPayrollOverviewResponse
holygrail.payroll.v1.GetPayrollOverviewResponse
currencyCodestringcurrency_codeconfiguredbooleannextPeriodStartstringnext_period_startThe next period to pay, from the pay schedule.
nextPeriodEndstringnext_period_endnextPayDatestringnext_pay_dateopenTicketsintegeropen_ticketsonPayrollintegeron_payrollPeople on payroll, and those missing details.
missingDetailsintegermissing_detailsytdGrossint64 stringytd_grossThis calendar year, from approved and paid runs.
ytdNetint64 stringytd_netytdEmployerCostint64 stringytd_employer_costytdTaxint64 stringytd_taxmonthsMonthTotal[]Gross pay by month this year, YYYY-MM.
rulesNamestringrules_nameListPayRunsRequest
holygrail.payroll.v1.ListPayRunsRequest
limitintegerCreatePayRunRequest
holygrail.payroll.v1.CreatePayRunRequest
periodStartstringperiod_startperiodEndstringperiod_endpayDatestringpay_datefrequencystringEmpty for the pay schedule's; off_cycle for bonuses and corrections, which pay only adjustments and items, not hours or salary.
teamMemberIdsstring[]team_member_idsEmpty for everyone on payroll.
notestringGetPayRunRequest
holygrail.payroll.v1.GetPayRunRequest
idstringGetPayRunResponse
holygrail.payroll.v1.GetPayRunResponse
runPayRunpayslipsPayslip[]componentsComponentTotal[]Totals by statutory component.
previousPayRunThe previous run's totals, to compare.
journalEntryIdsstring[]journal_entry_idsThe journal entries it posted, for the books.
RecalculatePayRunRequest
holygrail.payroll.v1.RecalculatePayRunRequest
idstringDeletePayRunRequest
holygrail.payroll.v1.DeletePayRunRequest
idstringDeletePayRunResponse
holygrail.payroll.v1.DeletePayRunResponse
No fields.
AdjustPayslipRequest
holygrail.payroll.v1.AdjustPayslipRequest
payslipIdstringpayslip_idadjustmentsAdjustment[]HoldPayslipRequest
holygrail.payroll.v1.HoldPayslipRequest
payslipIdstringpayslip_idheldbooleanApprovePayRunRequest
holygrail.payroll.v1.ApprovePayRunRequest
idstringPayPayRunRequest
holygrail.payroll.v1.PayPayRunRequest
idstringcashAccountIdstringcash_account_idpaidAtstringpaid_atRFC 3339; empty for now.
referencestringVoidPayRunRequest
holygrail.payroll.v1.VoidPayRunRequest
idstringreasonstringGetPayslipRequest
holygrail.payroll.v1.GetPayslipRequest
idstringExportPayRunRequest
holygrail.payroll.v1.ExportPayRunRequest
idstringformatstringbank_csv, mobile_money_csv or register_csv.
GetEmployeeYearRequest
holygrail.payroll.v1.GetEmployeeYearRequest
teamMemberIdstringteam_member_idyearintegerListFilingsRequest
holygrail.payroll.v1.ListFilingsRequest
yearintegerEmpty for this year and anything still owed.
ListFilingsResponse
holygrail.payroll.v1.ListFilingsResponse
filingsFiling[]currencyCodestringcurrency_codeemployerIdsmap<string, string>employer_idsGetFilingReturnRequest
holygrail.payroll.v1.GetFilingReturnRequest
groupstringperiodstringMarkFilingFiledRequest
holygrail.payroll.v1.MarkFilingFiledRequest
groupstringperiodstringreferencestringPayFilingRequest
holygrail.payroll.v1.PayFilingRequest
groupstringperiodstringcashAccountIdstringcash_account_idpaidAtstringpaid_atreferencestringListPayrollTicketsRequest
holygrail.payroll.v1.ListPayrollTicketsRequest
statusstringEmpty for open and answered ones.
GetPayrollTicketRequest
holygrail.payroll.v1.GetPayrollTicketRequest
idstringReplyPayrollTicketRequest
holygrail.payroll.v1.ReplyPayrollTicketRequest
idstringbodystringresolvebooleanMark it resolved with the reply.
SetPayrollTicketStatusRequest
holygrail.payroll.v1.SetPayrollTicketStatusRequest
idstringstatusstringSetPayrollTicketStatusResponse
holygrail.payroll.v1.SetPayrollTicketStatusResponse
ticketPayrollTicketDraftTicketReplyRequest
holygrail.payroll.v1.DraftTicketReplyRequest
idstringDraftTicketReplyResponse
holygrail.payroll.v1.DraftTicketReplyResponse
bodystringListMyPayslipsRequest
holygrail.payroll.v1.ListMyPayslipsRequest
No fields.
ListMyPayslipsResponse
holygrail.payroll.v1.ListMyPayslipsResponse
payslipsPayslip[]assistantbooleanWhether they can ask the assistant.
GetMyPayslipRequest
holygrail.payroll.v1.GetMyPayslipRequest
idstringGetMyPayYearRequest
holygrail.payroll.v1.GetMyPayYearRequest
yearintegerListMyPayrollTicketsRequest
holygrail.payroll.v1.ListMyPayrollTicketsRequest
No fields.
CreatePayrollTicketRequest
holygrail.payroll.v1.CreatePayrollTicketRequest
subjectstringcategorystringpayslipIdstringpayslip_idThe payslip it is about; may be empty.
bodystringAskPayrollAssistantRequest
holygrail.payroll.v1.AskPayrollAssistantRequest
historyAssistantTurn[]questionstringpayslipIdstringpayslip_idThe payslip they are looking at; may be empty.
AskPayrollAssistantResponse
holygrail.payroll.v1.AskPayrollAssistantResponse
answerstringsuggestTicketbooleansuggest_ticketThe assistant thinks a person should look at this: offer to send it to payroll as a question.
PayrollSettings
holygrail.payroll.v1.PayrollSettings
jurisdictionstringThe pack the rules came from.
frequencystringmonthly, semimonthly, biweekly or weekly.
payDayintegerpay_dayovertimeMultiplierBpintegerovertime_multiplier_bp15000 is time and a half.
approvedTimeOnlybooleanapproved_time_onlypayTipsbooleanpay_tipstipsTaxablebooleantips_taxabletwoPersonApprovalbooleantwo_person_approvalpayCashAccountIdstringpay_cash_account_idCash Account net pay and returns are paid from by default; may be empty.
employerIdsmap<string, string>employer_idsEmployer registration numbers by name: TIN, NSSF, WCF, VRN, ...
staffAssistantbooleanstaff_assistantconfiguredbooleanTrue once someone has saved settings.
RuleSet
holygrail.payroll.v1.RuleSet
RuleSet is a jurisdiction's payroll rules. Amounts are minor units of currency a month: bands, caps and flat amounts are scaled for weekly and fortnightly runs.
jurisdictionstringISO country code of the pack it came from, or "custom".
namestringversionstringWhich year's rules, e.g. "2025/26".
effectiveFromstringeffective_fromYYYY-MM-DD.
currencyCodestringcurrency_codesourcestringWhere the rules come from, in words.
componentsRuleComponent[]groupsFilingGroup[]Jurisdiction
holygrail.payroll.v1.Jurisdiction
Jurisdiction is a built-in rule pack.
codestringnamestringversionstringcurrencyCodestringcurrency_codePayslip
holygrail.payroll.v1.Payslip
idstringpayRunIdstringpay_run_idteamMemberIdstringteam_member_idfullNamestringfull_namejobTitlestringjob_titleemployeeNumberstringemployee_numbertaxIdstringtax_idsocialIdstringsocial_idlinesPayLine[]adjustmentsAdjustment[]workedMinutesint64 stringworked_minutesovertimeMinutesint64 stringovertime_minutestimeOffMinutesint64 stringtime_off_minutessalesint64 stringtipsint64 stringgrossint64 stringtaxableint64 stringtaxint64 stringdeductionsint64 stringEverything withheld: tax, contributions and deductions.
netint64 stringemployerCostint64 stringemployer_costheldbooleanwarningsstring[]paymentMethodstringpayment_methodpaymentTostringpayment_toWhere the money goes, masked for staff: "CRDB ••••1234".
paymentStatusstringpayment_statuspublishedAtstringpublished_atperiodStartstringperiod_startThe run's period and pay date, for showing a payslip on its own.
periodEndstringperiod_endpayDatestringpay_daterunStatusstringrun_statuscurrencyCodestringcurrency_codeytdGrossint64 stringytd_grossYear to date, through this payslip, for paid runs.
ytdTaxint64 stringytd_taxytdNetint64 stringytd_netbusinessNamestringbusiness_namePayProfileRow
holygrail.payroll.v1.PayProfileRow
teamMemberIdstringteam_member_idfullNamestringfull_nameroleNamestringrole_nameactivebooleanemailstringphonestringprofilePayProfileAbsent when they have no pay profile yet.
itemsPayItem[]missingstring[]What is missing before they can be paid: tax ID, bank account, ...
PayProfile
holygrail.payroll.v1.PayProfile
PayProfile is how a team member is paid.
teamMemberIdstringteam_member_idonPayrollbooleanon_payrollemployeeNumberstringemployee_numberemploymentTypestringemployment_typepermanent, contract, part_time, casual or intern.
jobTitlestringjob_titlepayTypestringpay_typesalary or hourly.
monthlySalaryint64 stringmonthly_salaryhourlyRateint64 stringhourly_ratePay an hour, for hourly pay and overtime; shared with shift reports.
overtimeEligiblebooleanovertime_eligiblecommissionBpintegercommission_bpCommission on their net sales at the register, in basis points.
startDatestringstart_dateYYYY-MM-DD; empty when not set.
endDatestringend_dateresidentbooleansecondaryJobbooleansecondary_jobexemptionsstring[]Rule component codes they are exempt from.
taxIdstringtax_idsocialIdstringsocial_idnationalIdstringnational_idpaymentMethodstringpayment_methodbank, mobile_money or cash.
bankNamestringbank_namebankBranchstringbank_branchbankCodestringbank_codeaccountNamestringaccount_nameaccountNumberstringaccount_numbermobileProviderstringmobile_providermobileNumberstringmobile_numbercostLocationIdstringcost_location_idPayItem
holygrail.payroll.v1.PayItem
PayItem is a recurring allowance, deduction or loan repayment.
idstringteamMemberIdstringteam_member_idkindstringallowance, deduction or loan.
namestringamountint64 stringPer pay period; or rate_bp of basic pay when amount is 0.
rateBpintegerrate_bptaxablebooleanpensionablebooleanbalanceint64 stringLoans: what is still owed.
startsOnstringstarts_onendsOnstringends_onactivebooleanPayRun
holygrail.payroll.v1.PayRun
idstringnumberintegerperiodStartstringperiod_startYYYY-MM-DD.
periodEndstringperiod_endpayDatestringpay_datefrequencystringmonthly, semimonthly, biweekly, weekly or off_cycle.
statusstringdraft, approved, paid or void.
currencyCodestringcurrency_codenotestringemployeesintegergrossint64 stringdeductionsint64 stringnetint64 stringemployerCostint64 stringemployer_costcalculatedBystringcalculated_bycalculatedAtstringcalculated_atapprovedBystringapproved_byapprovedAtstringapproved_atpaidBystringpaid_bypaidAtstringpaid_atcashAccountIdstringcash_account_idpaymentRefstringpayment_refvoidedBystringvoided_byvoidedAtstringvoided_atvoidReasonstringvoid_reasoncreatedAtstringcreated_atwarningsintegerPayslips with something to look at before approving.
rulesNamestringrules_nameName and version of the rules it used.
Filing
holygrail.payroll.v1.Filing
groupstringnamestringagencystringformstringperiodstringYYYY-MM: the month pay was paid.
dueDatestringdue_dateYYYY-MM-DD.
statusstringdue, filed or paid.
overduebooleanamountint64 stringWhat is owed for the period from approved runs.
employeesintegerfiledAmountint64 stringfiled_amountfiledAtstringfiled_atfilingRefstringfiling_refpaidAmountint64 stringpaid_amountpaidAtstringpaid_atpaymentRefstringpayment_refamendedbooleanA run changed after it was filed: file an amended return.
componentsComponentTotal[]MonthTotal
holygrail.payroll.v1.MonthTotal
monthstringgrossint64 stringnetint64 stringemployerCostint64 stringemployer_costComponentTotal
holygrail.payroll.v1.ComponentTotal
codestringnamestringkindstringgroupstringamountint64 stringAdjustment
holygrail.payroll.v1.Adjustment
Adjustment is a one-off addition or deduction on one payslip.
kindstringearning or deduction.
namestringamountint64 stringtaxablebooleanpensionablebooleanFile
holygrail.payroll.v1.File
File is a generated file to download.
filenamestringcontentTypestringcontent_typecontentbase64 stringrowsintegerLines in it, and the total paid or declared.
totalint64 stringEmployeeYear
holygrail.payroll.v1.EmployeeYear
teamMemberIdstringteam_member_idfullNamestringfull_nametaxIdstringtax_idsocialIdstringsocial_idyearintegermonthsYearMonth[]totalYearMonthcurrencyCodestringcurrency_codebusinessNamestringbusiness_nameemployerTaxIdstringemployer_tax_idPayrollTicket
holygrail.payroll.v1.PayrollTicket
idstringnumberintegerteamMemberIdstringteam_member_idfullNamestringfull_namepayslipIdstringpayslip_idcategorystringmissing_pay, hours, deductions, tax, bank_details, payslip or other.
subjectstringstatusstringopen, answered or resolved.
lastMessageAtstringlast_message_atcreatedAtstringcreated_atmessagesTicketMessage[]payslipLabelstringpayslip_labelThe payslip it is about, with the run's dates.
AssistantTurn
holygrail.payroll.v1.AssistantTurn
rolestringuser or assistant.
textstringRuleComponent
holygrail.payroll.v1.RuleComponent
RuleComponent is one tax, contribution or levy.
codestringUnique in the set, e.g. PAYE, NSSF_EE, SDL.
namestringkindstringtax: withheld from pay as income tax. employee: the person's own contribution, withheld. employer: paid by the business on top.
groupstringThe filing group (return) it is declared on.
basestringWhat it is worked out on: gross, pensionable or taxable pay.
methodstringpercent (rate_bp of the base), bands (marginal bands) or flat (amount).
rateBpint64 stringrate_bpBasis points: 1000 is 10%.
bandsRuleBand[]amountint64 stringbaseCapint64 stringbase_capThe most of the base it applies to a month; 0 for no cap.
maxAmountint64 stringmax_amountThe most it can come to a month; 0 for no cap.
reducesTaxablebooleanreduces_taxableAn employee contribution that is taken off taxable pay first.
minEmployeesintegermin_employeesOnly for businesses with at least this many people on payroll.
whenRuleConditionOnly for people who match; empty fields match everyone.
notestringFilingGroup
holygrail.payroll.v1.FilingGroup
FilingGroup is a statutory return and payment.
codestringnamestringagencystringWho it is filed with and paid to, e.g. TRA.
formstringThe return's name or form number.
dueDayintegerdue_dayDay of the next month it is due; 0 for the last day of the next month.
notestringPayLine
holygrail.payroll.v1.PayLine
PayLine is one line of a payslip.
kindstringearning, deduction, tax, contribution (the employee's) or employer.
codestringnamestringamountint64 stringminutesint64 stringHours as minutes, for time paid by the hour.
rateint64 stringPay an hour, or basis points of the base.
baseint64 stringWhat a statutory line was worked out on.
taxablebooleanpensionablebooleangroupstringYearMonth
holygrail.payroll.v1.YearMonth
monthstringgrossint64 stringtaxableint64 stringtaxint64 stringcontributionsint64 stringnetint64 stringemployerint64 stringTicketMessage
holygrail.payroll.v1.TicketMessage
idstringauthorstringstaff, payroll or assistant.
authorNamestringauthor_namebodystringcreatedAtstringcreated_atRuleBand
holygrail.payroll.v1.RuleBand
RuleBand is a marginal band: rate_bp applies to the part of the base up to upto (0 for everything above the last band).
uptoint64 stringrateBpint64 stringrate_bpRuleCondition
holygrail.payroll.v1.RuleCondition
residentstring"", "yes" or "no".
secondaryJobstringsecondary_jobemploymentTypesstring[]employment_typesEmpty for every employment type.
Base URL https://api.buziin.tech. Every method is POST with a JSON body; see Making requests.