Developers
Sign inGet API keys

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).

holygrail.payroll.v1.PayrollService38 methodspayroll.read · payroll.write

GetPayrollSettings#

payroll.readRead
POST/holygrail.payroll.v1.PayrollService/GetPayrollSettings

Settings and rules.

Request body

No fields: send {}.

Response

rulesRuleSet
jurisdictionsJurisdiction[]
currencyCodestringcurrency_code

The business's currency, which the rules should be in.

aiAvailablebooleanai_available

Whether the AI assistant is available to this business.

Request
curl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/GetPayrollSettings \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
Response example
{
  "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#

payroll.writeWrite
POST/holygrail.payroll.v1.PayrollService/UpdatePayrollSettings

Request body

Response

Request
curl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/UpdatePayrollSettings \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
Response example
{
  "settings": {
    "jurisdiction": "",
    "frequency": "",
    "payDay": 0,
    "overtimeMultiplierBp": 0,
    "approvedTimeOnly": false,
    "payTips": false,
    "tipsTaxable": false,
    "twoPersonApproval": false,
    "payCashAccountId": "",
    "employerIds": {
      "key": ""
    },
    "staffAssistant": false,
    "configured": false
  }
}

UpdatePayrollRules#

payroll.writeWrite
POST/holygrail.payroll.v1.PayrollService/UpdatePayrollRules

UpdatePayrollRules replaces the business's rule set; draft runs pick it up when recalculated.

Request body

rulesRuleSet

Response

rulesRuleSet
Request
curl 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"
      }
    ]
  }
}'
Response example
{
  "rules": {
    "jurisdiction": "",
    "name": "Amina Mushi",
    "version": "",
    "effectiveFrom": "",
    "currencyCode": "TZS",
    "source": ""
  }
}

ResetPayrollRules#

payroll.writeWrite
POST/holygrail.payroll.v1.PayrollService/ResetPayrollRules

ResetPayrollRules starts again from a built-in jurisdiction pack.

Request body

jurisdictionstring

Response

rulesRuleSet
Request
curl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/ResetPayrollRules \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
Response example
{
  "rules": {
    "jurisdiction": "",
    "name": "Amina Mushi",
    "version": "",
    "effectiveFrom": "",
    "currencyCode": "TZS",
    "source": ""
  }
}

PreviewPayslip#

payroll.writeWrite
POST/holygrail.payroll.v1.PayrollService/PreviewPayslip

PreviewPayslip calculates one made-up payslip with the current rules, to check them: what someone on this pay takes home.

Request body

grossint64 string

Monthly gross pay, all taxable and pensionable.

residentboolean
secondaryJobbooleansecondary_job
employmentTypestringemployment_type
rulesRuleSet

Rules to try; empty for the business's own.

Response

payslipPayslip
Request
curl 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"
      }
    ]
  }
}'
Response example
{
  "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#

payroll.readRead
POST/holygrail.payroll.v1.PayrollService/ListPayProfiles

People.

Request body

No fields: send {}.

Response

currencyCodestringcurrency_code
Request
curl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/ListPayProfiles \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
Response example
{
  "rows": [
    {
      "teamMemberId": "",
      "fullName": "Amina Mushi",
      "roleName": "Amina Mushi",
      "active": false,
      "email": "amina@example.co.tz",
      "phone": "+255712345678",
      "missing": [
        ""
      ]
    }
  ],
  "currencyCode": "TZS"
}

SavePayProfile#

payroll.writeWrite
POST/holygrail.payroll.v1.PayrollService/SavePayProfile

Request body

profilePayProfile

Response

Request
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"
  }
}'
Response example
{
  "row": {
    "teamMemberId": "",
    "fullName": "Amina Mushi",
    "roleName": "Amina Mushi",
    "active": false,
    "email": "amina@example.co.tz",
    "phone": "+255712345678",
    "missing": [
      ""
    ]
  }
}

SavePayItem#

payroll.writeWrite
POST/holygrail.payroll.v1.PayrollService/SavePayItem

Request body

Response

Request
curl 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"
  }
}'
Response example
{
  "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#

payroll.writeWrite
POST/holygrail.payroll.v1.PayrollService/DeletePayItem

Request body

idstring

Response

No fields: send {}.

Request
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"
}'
Response example
{}

GetPayrollOverview#

payroll.readRead
POST/holygrail.payroll.v1.PayrollService/GetPayrollOverview

Pay runs.

Request body

No fields: send {}.

Response

currencyCodestringcurrency_code
configuredboolean
nextPeriodStartstringnext_period_start

The next period to pay, from the pay schedule.

nextPeriodEndstringnext_period_end
nextPayDatestringnext_pay_date
recentRunsPayRun[]recent_runs
upcomingFilingsFiling[]upcoming_filings
openTicketsintegeropen_tickets
onPayrollintegeron_payroll

People on payroll, and those missing details.

missingDetailsintegermissing_details
ytdGrossint64 stringytd_gross

This calendar year, from approved and paid runs.

ytdNetint64 stringytd_net
ytdEmployerCostint64 stringytd_employer_cost
ytdTaxint64 stringytd_tax

Gross pay by month this year, YYYY-MM.

rulesNamestringrules_name
Request
curl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/GetPayrollOverview \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
Response example
{
  "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#

payroll.readRead
POST/holygrail.payroll.v1.PayrollService/ListPayRuns

Request body

limitinteger

Response

Request
curl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/ListPayRuns \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
Response example
{
  "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#

payroll.writeWrite
POST/holygrail.payroll.v1.PayrollService/CreatePayRun

CreatePayRun calculates a draft run for everyone on payroll (or the people named) for a period.

Request body

periodStartstringperiod_start
periodEndstringperiod_end
payDatestringpay_date
frequencystring

Empty for the pay schedule's; off_cycle for bonuses and corrections, which pay only adjustments and items, not hours or salary.

teamMemberIdsstring[]team_member_ids

Empty for everyone on payroll.

notestring

Response

Request
curl 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": [
    ""
  ]
}'
Response example
{
  "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#

payroll.readRead
POST/holygrail.payroll.v1.PayrollService/GetPayRun

Request body

idstring

Response

payslipsPayslip[]

Totals by statutory component.

previousPayRun

The previous run's totals, to compare.

journalEntryIdsstring[]journal_entry_ids

The journal entries it posted, for the books.

Request
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"
}'
Response example
{
  "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#

payroll.writeWrite
POST/holygrail.payroll.v1.PayrollService/RecalculatePayRun

RecalculatePayRun pulls hours, tips, sales and pay again for a draft.

Request body

idstring

Response

Request
curl 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"
}'
Response example
{
  "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#

payroll.writeWrite
POST/holygrail.payroll.v1.PayrollService/DeletePayRun

Request body

idstring

Response

No fields: send {}.

Request
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"
}'
Response example
{}

AdjustPayslip#

payroll.writeWrite
POST/holygrail.payroll.v1.PayrollService/AdjustPayslip

AdjustPayslip sets the one-off additions and deductions on a draft payslip.

Request body

payslipIdstringpayslip_id
adjustmentsAdjustment[]

Response

payslipPayslip
Request
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"
    }
  ]
}'
Response example
{
  "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#

payroll.writeWrite
POST/holygrail.payroll.v1.PayrollService/HoldPayslip

HoldPayslip keeps someone's pay out of a run without removing them.

Request body

payslipIdstringpayslip_id
heldboolean

Response

payslipPayslip
Request
curl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/HoldPayslip \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
Response example
{
  "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#

payroll.writeWrite
POST/holygrail.payroll.v1.PayrollService/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

idstring

Response

Request
curl 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"
}'
Response example
{
  "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#

payroll.writeWrite
POST/holygrail.payroll.v1.PayrollService/PayPayRun

PayPayRun records that net pay left a Cash Account and publishes the payslips to staff.

Request body

idstring
cashAccountIdstringcash_account_id
paidAtstringpaid_at

RFC 3339; empty for now.

referencestring

Response

Request
curl 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"
}'
Response example
{
  "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#

payroll.writeWrite
POST/holygrail.payroll.v1.PayrollService/VoidPayRun

VoidPayRun reverses an approved or paid run, as long as no return that includes it has been filed.

Request body

idstring
reasonstring

Response

Request
curl 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"
}'
Response example
{
  "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#

payroll.readRead
POST/holygrail.payroll.v1.PayrollService/GetPayslip

Request body

idstring

Response

payslipPayslip
Request
curl 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"
}'
Response example
{
  "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#

payroll.readRead
POST/holygrail.payroll.v1.PayrollService/ExportPayRun

ExportPayRun makes a file: a bank or mobile money bulk payment file, or the payroll register.

Request body

idstring
formatstring

bank_csv, mobile_money_csv or register_csv.

Response

fileFile
Request
curl 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"
}'
Response example
{
  "file": {
    "filename": "",
    "contentType": "",
    "content": "",
    "rows": 0,
    "total": "150000"
  }
}

GetEmployeeYear#

payroll.readRead
POST/holygrail.payroll.v1.PayrollService/GetEmployeeYear

GetEmployeeYear is someone's pay month by month, for their annual certificate of pay and tax.

Request body

teamMemberIdstringteam_member_id
yearinteger

Response

Request
curl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/GetEmployeeYear \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
Response example
{
  "year": {
    "teamMemberId": "",
    "fullName": "Amina Mushi",
    "taxId": "",
    "socialId": "",
    "year": 0,
    "currencyCode": "TZS",
    "businessName": "Amina Mushi",
    "employerTaxId": ""
  }
}

ListFilings#

payroll.readRead
POST/holygrail.payroll.v1.PayrollService/ListFilings

Statutory returns.

Request body

yearinteger

Empty for this year and anything still owed.

Response

filingsFiling[]
currencyCodestringcurrency_code
employerIdsmap<string, string>employer_ids
Request
curl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/ListFilings \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
Response example
{
  "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#

payroll.readRead
POST/holygrail.payroll.v1.PayrollService/GetFilingReturn

GetFilingReturn makes the return's schedule, one line per person, ready to upload or copy into the authority's portal.

Request body

groupstring
periodstring

Response

fileFile
Request
curl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/GetFilingReturn \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
Response example
{
  "file": {
    "filename": "",
    "contentType": "",
    "content": "",
    "rows": 0,
    "total": "150000"
  }
}

MarkFilingFiled#

payroll.writeWrite
POST/holygrail.payroll.v1.PayrollService/MarkFilingFiled

Request body

groupstring
periodstring
referencestring

Response

filingFiling
Request
curl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/MarkFilingFiled \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
Response example
{
  "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#

payroll.writeWrite
POST/holygrail.payroll.v1.PayrollService/PayFiling

PayFiling records paying a return from a Cash Account.

Request body

groupstring
periodstring
cashAccountIdstringcash_account_id
paidAtstringpaid_at
referencestring

Response

filingFiling
Request
curl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/PayFiling \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
Response example
{
  "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.readRead
POST/holygrail.payroll.v1.PayrollService/ListPayrollTickets

Payroll help desk, for whoever runs payroll.

Request body

statusstring

Empty for open and answered ones.

Response

Request
curl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/ListPayrollTickets \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
Response example
{
  "tickets": [
    {
      "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
      "number": 0,
      "teamMemberId": "",
      "fullName": "Amina Mushi",
      "payslipId": "",
      "category": "",
      "subject": "",
      "status": "",
      "lastMessageAt": "",
      "createdAt": "",
      "payslipLabel": ""
    }
  ]
}

GetPayrollTicket#

payroll.readRead
POST/holygrail.payroll.v1.PayrollService/GetPayrollTicket

Request body

idstring

Response

Request
curl 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"
}'
Response example
{
  "ticket": {
    "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
    "number": 0,
    "teamMemberId": "",
    "fullName": "Amina Mushi",
    "payslipId": "",
    "category": "",
    "subject": "",
    "status": "",
    "lastMessageAt": "",
    "createdAt": "",
    "payslipLabel": ""
  }
}

ReplyPayrollTicket#

payroll.writeWrite
POST/holygrail.payroll.v1.PayrollService/ReplyPayrollTicket

Request body

idstring
bodystring
resolveboolean

Mark it resolved with the reply.

Response

Request
curl 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"
}'
Response example
{
  "ticket": {
    "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
    "number": 0,
    "teamMemberId": "",
    "fullName": "Amina Mushi",
    "payslipId": "",
    "category": "",
    "subject": "",
    "status": "",
    "lastMessageAt": "",
    "createdAt": "",
    "payslipLabel": ""
  }
}

SetPayrollTicketStatus#

payroll.writeWrite
POST/holygrail.payroll.v1.PayrollService/SetPayrollTicketStatus

Request body

idstring
statusstring

Response

Request
curl 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"
}'
Response example
{
  "ticket": {
    "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
    "number": 0,
    "teamMemberId": "",
    "fullName": "Amina Mushi",
    "payslipId": "",
    "category": "",
    "subject": "",
    "status": "",
    "lastMessageAt": "",
    "createdAt": "",
    "payslipLabel": ""
  }
}

DraftTicketReply#

payroll.writeWrite
POST/holygrail.payroll.v1.PayrollService/DraftTicketReply

DraftTicketReply asks the AI for a reply, from the person's payslips.

Request body

idstring

Response

bodystring
Request
curl 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"
}'
Response example
{
  "body": ""
}

ListMyPayslips#

payroll.readRead
POST/holygrail.payroll.v1.PayrollService/ListMyPayslips

Staff: their own pay.

Request body

No fields: send {}.

Response

payslipsPayslip[]
assistantboolean

Whether they can ask the assistant.

Request
curl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/ListMyPayslips \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
Response example
{
  "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#

payroll.readRead
POST/holygrail.payroll.v1.PayrollService/GetMyPayslip

Request body

idstring

Response

payslipPayslip
Request
curl 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"
}'
Response example
{
  "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#

payroll.readRead
POST/holygrail.payroll.v1.PayrollService/GetMyPayYear

Request body

yearinteger

Response

Request
curl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/GetMyPayYear \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
Response example
{
  "year": {
    "teamMemberId": "",
    "fullName": "Amina Mushi",
    "taxId": "",
    "socialId": "",
    "year": 0,
    "currencyCode": "TZS",
    "businessName": "Amina Mushi",
    "employerTaxId": ""
  }
}

ListMyPayrollTickets#

payroll.readRead
POST/holygrail.payroll.v1.PayrollService/ListMyPayrollTickets

Request body

No fields: send {}.

Response

Request
curl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/ListMyPayrollTickets \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
Response example
{
  "tickets": [
    {
      "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
      "number": 0,
      "teamMemberId": "",
      "fullName": "Amina Mushi",
      "payslipId": "",
      "category": "",
      "subject": "",
      "status": "",
      "lastMessageAt": "",
      "createdAt": "",
      "payslipLabel": ""
    }
  ]
}

CreatePayrollTicket#

payroll.writeWrite
POST/holygrail.payroll.v1.PayrollService/CreatePayrollTicket

Request body

subjectstring
categorystring
payslipIdstringpayslip_id

The payslip it is about; may be empty.

bodystring

Response

Request
curl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/CreatePayrollTicket \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
Response example
{
  "ticket": {
    "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
    "number": 0,
    "teamMemberId": "",
    "fullName": "Amina Mushi",
    "payslipId": "",
    "category": "",
    "subject": "",
    "status": "",
    "lastMessageAt": "",
    "createdAt": "",
    "payslipLabel": ""
  }
}

AskPayrollAssistant#

payroll.writeWrite
POST/holygrail.payroll.v1.PayrollService/AskPayrollAssistant

AskPayrollAssistant answers a question about the caller's own pay. The app keeps the conversation and sends it back each time.

Request body

questionstring
payslipIdstringpayslip_id

The payslip they are looking at; may be empty.

Response

answerstring
suggestTicketbooleansuggest_ticket

The assistant thinks a person should look at this: offer to send it to payroll as a question.

Request
curl https://api.buziin.tech/holygrail.payroll.v1.PayrollService/AskPayrollAssistant \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
Response example
{
  "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

rulesRuleSet
jurisdictionsJurisdiction[]
currencyCodestringcurrency_code

The business's currency, which the rules should be in.

aiAvailablebooleanai_available

Whether the AI assistant is available to this business.

UpdatePayrollSettingsRequest

holygrail.payroll.v1.UpdatePayrollSettingsRequest

UpdatePayrollSettingsResponse

holygrail.payroll.v1.UpdatePayrollSettingsResponse

UpdatePayrollRulesRequest

holygrail.payroll.v1.UpdatePayrollRulesRequest

rulesRuleSet

UpdatePayrollRulesResponse

holygrail.payroll.v1.UpdatePayrollRulesResponse

rulesRuleSet

ResetPayrollRulesRequest

holygrail.payroll.v1.ResetPayrollRulesRequest

jurisdictionstring

ResetPayrollRulesResponse

holygrail.payroll.v1.ResetPayrollRulesResponse

rulesRuleSet

PreviewPayslipRequest

holygrail.payroll.v1.PreviewPayslipRequest

grossint64 string

Monthly gross pay, all taxable and pensionable.

residentboolean
secondaryJobbooleansecondary_job
employmentTypestringemployment_type
rulesRuleSet

Rules to try; empty for the business's own.

PreviewPayslipResponse

holygrail.payroll.v1.PreviewPayslipResponse

payslipPayslip

ListPayProfilesRequest

holygrail.payroll.v1.ListPayProfilesRequest

No fields.

ListPayProfilesResponse

holygrail.payroll.v1.ListPayProfilesResponse

currencyCodestringcurrency_code

SavePayProfileRequest

holygrail.payroll.v1.SavePayProfileRequest

profilePayProfile

SavePayProfileResponse

holygrail.payroll.v1.SavePayProfileResponse

SavePayItemRequest

holygrail.payroll.v1.SavePayItemRequest

SavePayItemResponse

holygrail.payroll.v1.SavePayItemResponse

DeletePayItemRequest

holygrail.payroll.v1.DeletePayItemRequest

idstring

DeletePayItemResponse

holygrail.payroll.v1.DeletePayItemResponse

No fields.

GetPayrollOverviewRequest

holygrail.payroll.v1.GetPayrollOverviewRequest

No fields.

GetPayrollOverviewResponse

holygrail.payroll.v1.GetPayrollOverviewResponse

currencyCodestringcurrency_code
configuredboolean
nextPeriodStartstringnext_period_start

The next period to pay, from the pay schedule.

nextPeriodEndstringnext_period_end
nextPayDatestringnext_pay_date
recentRunsPayRun[]recent_runs
upcomingFilingsFiling[]upcoming_filings
openTicketsintegeropen_tickets
onPayrollintegeron_payroll

People on payroll, and those missing details.

missingDetailsintegermissing_details
ytdGrossint64 stringytd_gross

This calendar year, from approved and paid runs.

ytdNetint64 stringytd_net
ytdEmployerCostint64 stringytd_employer_cost
ytdTaxint64 stringytd_tax

Gross pay by month this year, YYYY-MM.

rulesNamestringrules_name

ListPayRunsRequest

holygrail.payroll.v1.ListPayRunsRequest

limitinteger

ListPayRunsResponse

holygrail.payroll.v1.ListPayRunsResponse

CreatePayRunRequest

holygrail.payroll.v1.CreatePayRunRequest

periodStartstringperiod_start
periodEndstringperiod_end
payDatestringpay_date
frequencystring

Empty for the pay schedule's; off_cycle for bonuses and corrections, which pay only adjustments and items, not hours or salary.

teamMemberIdsstring[]team_member_ids

Empty for everyone on payroll.

notestring

CreatePayRunResponse

holygrail.payroll.v1.CreatePayRunResponse

GetPayRunRequest

holygrail.payroll.v1.GetPayRunRequest

idstring

GetPayRunResponse

holygrail.payroll.v1.GetPayRunResponse

payslipsPayslip[]

Totals by statutory component.

previousPayRun

The previous run's totals, to compare.

journalEntryIdsstring[]journal_entry_ids

The journal entries it posted, for the books.

RecalculatePayRunRequest

holygrail.payroll.v1.RecalculatePayRunRequest

idstring

RecalculatePayRunResponse

holygrail.payroll.v1.RecalculatePayRunResponse

DeletePayRunRequest

holygrail.payroll.v1.DeletePayRunRequest

idstring

DeletePayRunResponse

holygrail.payroll.v1.DeletePayRunResponse

No fields.

AdjustPayslipRequest

holygrail.payroll.v1.AdjustPayslipRequest

payslipIdstringpayslip_id
adjustmentsAdjustment[]

AdjustPayslipResponse

holygrail.payroll.v1.AdjustPayslipResponse

payslipPayslip

HoldPayslipRequest

holygrail.payroll.v1.HoldPayslipRequest

payslipIdstringpayslip_id
heldboolean

HoldPayslipResponse

holygrail.payroll.v1.HoldPayslipResponse

payslipPayslip

ApprovePayRunRequest

holygrail.payroll.v1.ApprovePayRunRequest

idstring

ApprovePayRunResponse

holygrail.payroll.v1.ApprovePayRunResponse

PayPayRunRequest

holygrail.payroll.v1.PayPayRunRequest

idstring
cashAccountIdstringcash_account_id
paidAtstringpaid_at

RFC 3339; empty for now.

referencestring

PayPayRunResponse

holygrail.payroll.v1.PayPayRunResponse

VoidPayRunRequest

holygrail.payroll.v1.VoidPayRunRequest

idstring
reasonstring

VoidPayRunResponse

holygrail.payroll.v1.VoidPayRunResponse

GetPayslipRequest

holygrail.payroll.v1.GetPayslipRequest

idstring

GetPayslipResponse

holygrail.payroll.v1.GetPayslipResponse

payslipPayslip

ExportPayRunRequest

holygrail.payroll.v1.ExportPayRunRequest

idstring
formatstring

bank_csv, mobile_money_csv or register_csv.

ExportPayRunResponse

holygrail.payroll.v1.ExportPayRunResponse

fileFile

GetEmployeeYearRequest

holygrail.payroll.v1.GetEmployeeYearRequest

teamMemberIdstringteam_member_id
yearinteger

GetEmployeeYearResponse

holygrail.payroll.v1.GetEmployeeYearResponse

ListFilingsRequest

holygrail.payroll.v1.ListFilingsRequest

yearinteger

Empty for this year and anything still owed.

ListFilingsResponse

holygrail.payroll.v1.ListFilingsResponse

filingsFiling[]
currencyCodestringcurrency_code
employerIdsmap<string, string>employer_ids

GetFilingReturnRequest

holygrail.payroll.v1.GetFilingReturnRequest

groupstring
periodstring

GetFilingReturnResponse

holygrail.payroll.v1.GetFilingReturnResponse

fileFile

MarkFilingFiledRequest

holygrail.payroll.v1.MarkFilingFiledRequest

groupstring
periodstring
referencestring

MarkFilingFiledResponse

holygrail.payroll.v1.MarkFilingFiledResponse

filingFiling

PayFilingRequest

holygrail.payroll.v1.PayFilingRequest

groupstring
periodstring
cashAccountIdstringcash_account_id
paidAtstringpaid_at
referencestring

PayFilingResponse

holygrail.payroll.v1.PayFilingResponse

filingFiling

ListPayrollTicketsRequest

holygrail.payroll.v1.ListPayrollTicketsRequest

statusstring

Empty for open and answered ones.

ListPayrollTicketsResponse

holygrail.payroll.v1.ListPayrollTicketsResponse

GetPayrollTicketRequest

holygrail.payroll.v1.GetPayrollTicketRequest

idstring

GetPayrollTicketResponse

holygrail.payroll.v1.GetPayrollTicketResponse

ReplyPayrollTicketRequest

holygrail.payroll.v1.ReplyPayrollTicketRequest

idstring
bodystring
resolveboolean

Mark it resolved with the reply.

ReplyPayrollTicketResponse

holygrail.payroll.v1.ReplyPayrollTicketResponse

SetPayrollTicketStatusRequest

holygrail.payroll.v1.SetPayrollTicketStatusRequest

idstring
statusstring

SetPayrollTicketStatusResponse

holygrail.payroll.v1.SetPayrollTicketStatusResponse

DraftTicketReplyRequest

holygrail.payroll.v1.DraftTicketReplyRequest

idstring

DraftTicketReplyResponse

holygrail.payroll.v1.DraftTicketReplyResponse

bodystring

ListMyPayslipsRequest

holygrail.payroll.v1.ListMyPayslipsRequest

No fields.

ListMyPayslipsResponse

holygrail.payroll.v1.ListMyPayslipsResponse

payslipsPayslip[]
assistantboolean

Whether they can ask the assistant.

GetMyPayslipRequest

holygrail.payroll.v1.GetMyPayslipRequest

idstring

GetMyPayslipResponse

holygrail.payroll.v1.GetMyPayslipResponse

payslipPayslip

GetMyPayYearRequest

holygrail.payroll.v1.GetMyPayYearRequest

yearinteger

GetMyPayYearResponse

holygrail.payroll.v1.GetMyPayYearResponse

ListMyPayrollTicketsRequest

holygrail.payroll.v1.ListMyPayrollTicketsRequest

No fields.

ListMyPayrollTicketsResponse

holygrail.payroll.v1.ListMyPayrollTicketsResponse

CreatePayrollTicketRequest

holygrail.payroll.v1.CreatePayrollTicketRequest

subjectstring
categorystring
payslipIdstringpayslip_id

The payslip it is about; may be empty.

bodystring

CreatePayrollTicketResponse

holygrail.payroll.v1.CreatePayrollTicketResponse

AskPayrollAssistantRequest

holygrail.payroll.v1.AskPayrollAssistantRequest

questionstring
payslipIdstringpayslip_id

The payslip they are looking at; may be empty.

AskPayrollAssistantResponse

holygrail.payroll.v1.AskPayrollAssistantResponse

answerstring
suggestTicketbooleansuggest_ticket

The assistant thinks a person should look at this: offer to send it to payroll as a question.

PayrollSettings

holygrail.payroll.v1.PayrollSettings

jurisdictionstring

The pack the rules came from.

frequencystring

monthly, semimonthly, biweekly or weekly.

payDayintegerpay_day
overtimeMultiplierBpintegerovertime_multiplier_bp

15000 is time and a half.

approvedTimeOnlybooleanapproved_time_only
payTipsbooleanpay_tips
tipsTaxablebooleantips_taxable
twoPersonApprovalbooleantwo_person_approval
payCashAccountIdstringpay_cash_account_id

Cash Account net pay and returns are paid from by default; may be empty.

employerIdsmap<string, string>employer_ids

Employer registration numbers by name: TIN, NSSF, WCF, VRN, ...

staffAssistantbooleanstaff_assistant
configuredboolean

True 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.

jurisdictionstring

ISO country code of the pack it came from, or "custom".

namestring
versionstring

Which year's rules, e.g. "2025/26".

effectiveFromstringeffective_from

YYYY-MM-DD.

currencyCodestringcurrency_code
sourcestring

Where the rules come from, in words.

componentsRuleComponent[]

Jurisdiction

holygrail.payroll.v1.Jurisdiction

Jurisdiction is a built-in rule pack.

codestring
namestring
versionstring
currencyCodestringcurrency_code

Payslip

holygrail.payroll.v1.Payslip

idstring
payRunIdstringpay_run_id
teamMemberIdstringteam_member_id
fullNamestringfull_name
jobTitlestringjob_title
employeeNumberstringemployee_number
taxIdstringtax_id
socialIdstringsocial_id
adjustmentsAdjustment[]
workedMinutesint64 stringworked_minutes
overtimeMinutesint64 stringovertime_minutes
timeOffMinutesint64 stringtime_off_minutes
salesint64 string
tipsint64 string
grossint64 string
taxableint64 string
taxint64 string
deductionsint64 string

Everything withheld: tax, contributions and deductions.

netint64 string
employerCostint64 stringemployer_cost
heldboolean
warningsstring[]
paymentMethodstringpayment_method
paymentTostringpayment_to

Where the money goes, masked for staff: "CRDB ••••1234".

paymentStatusstringpayment_status
publishedAtstringpublished_at
periodStartstringperiod_start

The run's period and pay date, for showing a payslip on its own.

periodEndstringperiod_end
payDatestringpay_date
runStatusstringrun_status
currencyCodestringcurrency_code
ytdGrossint64 stringytd_gross

Year to date, through this payslip, for paid runs.

ytdTaxint64 stringytd_tax
ytdNetint64 stringytd_net
businessNamestringbusiness_name

PayProfileRow

holygrail.payroll.v1.PayProfileRow

teamMemberIdstringteam_member_id
fullNamestringfull_name
roleNamestringrole_name
activeboolean
emailstring
phonestring
profilePayProfile

Absent when they have no pay profile yet.

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_id
onPayrollbooleanon_payroll
employeeNumberstringemployee_number
employmentTypestringemployment_type

permanent, contract, part_time, casual or intern.

jobTitlestringjob_title
payTypestringpay_type

salary or hourly.

monthlySalaryint64 stringmonthly_salary
hourlyRateint64 stringhourly_rate

Pay an hour, for hourly pay and overtime; shared with shift reports.

overtimeEligiblebooleanovertime_eligible
commissionBpintegercommission_bp

Commission on their net sales at the register, in basis points.

startDatestringstart_date

YYYY-MM-DD; empty when not set.

endDatestringend_date
residentboolean
secondaryJobbooleansecondary_job
exemptionsstring[]

Rule component codes they are exempt from.

taxIdstringtax_id
socialIdstringsocial_id
nationalIdstringnational_id
paymentMethodstringpayment_method

bank, mobile_money or cash.

bankNamestringbank_name
bankBranchstringbank_branch
bankCodestringbank_code
accountNamestringaccount_name
accountNumberstringaccount_number
mobileProviderstringmobile_provider
mobileNumberstringmobile_number
costLocationIdstringcost_location_id

PayItem

holygrail.payroll.v1.PayItem

PayItem is a recurring allowance, deduction or loan repayment.

idstring
teamMemberIdstringteam_member_id
kindstring

allowance, deduction or loan.

namestring
amountint64 string

Per pay period; or rate_bp of basic pay when amount is 0.

rateBpintegerrate_bp
taxableboolean
pensionableboolean
balanceint64 string

Loans: what is still owed.

startsOnstringstarts_on
endsOnstringends_on
activeboolean

PayRun

holygrail.payroll.v1.PayRun

idstring
numberinteger
periodStartstringperiod_start

YYYY-MM-DD.

periodEndstringperiod_end
payDatestringpay_date
frequencystring

monthly, semimonthly, biweekly, weekly or off_cycle.

statusstring

draft, approved, paid or void.

currencyCodestringcurrency_code
notestring
employeesinteger
grossint64 string
deductionsint64 string
netint64 string
employerCostint64 stringemployer_cost
calculatedBystringcalculated_by
calculatedAtstringcalculated_at
approvedBystringapproved_by
approvedAtstringapproved_at
paidBystringpaid_by
paidAtstringpaid_at
cashAccountIdstringcash_account_id
paymentRefstringpayment_ref
voidedBystringvoided_by
voidedAtstringvoided_at
voidReasonstringvoid_reason
createdAtstringcreated_at
warningsinteger

Payslips with something to look at before approving.

rulesNamestringrules_name

Name and version of the rules it used.

Filing

holygrail.payroll.v1.Filing

groupstring
namestring
agencystring
formstring
periodstring

YYYY-MM: the month pay was paid.

dueDatestringdue_date

YYYY-MM-DD.

statusstring

due, filed or paid.

overdueboolean
amountint64 string

What is owed for the period from approved runs.

employeesinteger
filedAmountint64 stringfiled_amount
filedAtstringfiled_at
filingRefstringfiling_ref
paidAmountint64 stringpaid_amount
paidAtstringpaid_at
paymentRefstringpayment_ref
amendedboolean

A run changed after it was filed: file an amended return.

MonthTotal

holygrail.payroll.v1.MonthTotal

monthstring
grossint64 string
netint64 string
employerCostint64 stringemployer_cost

ComponentTotal

holygrail.payroll.v1.ComponentTotal

codestring
namestring
kindstring
groupstring
amountint64 string

Adjustment

holygrail.payroll.v1.Adjustment

Adjustment is a one-off addition or deduction on one payslip.

kindstring

earning or deduction.

namestring
amountint64 string
taxableboolean
pensionableboolean

File

holygrail.payroll.v1.File

File is a generated file to download.

filenamestring
contentTypestringcontent_type
contentbase64 string
rowsinteger

Lines in it, and the total paid or declared.

totalint64 string

EmployeeYear

holygrail.payroll.v1.EmployeeYear

teamMemberIdstringteam_member_id
fullNamestringfull_name
taxIdstringtax_id
socialIdstringsocial_id
yearinteger
currencyCodestringcurrency_code
businessNamestringbusiness_name
employerTaxIdstringemployer_tax_id

PayrollTicket

holygrail.payroll.v1.PayrollTicket

idstring
numberinteger
teamMemberIdstringteam_member_id
fullNamestringfull_name
payslipIdstringpayslip_id
categorystring

missing_pay, hours, deductions, tax, bank_details, payslip or other.

subjectstring
statusstring

open, answered or resolved.

lastMessageAtstringlast_message_at
createdAtstringcreated_at
payslipLabelstringpayslip_label

The payslip it is about, with the run's dates.

AssistantTurn

holygrail.payroll.v1.AssistantTurn

rolestring

user or assistant.

textstring

RuleComponent

holygrail.payroll.v1.RuleComponent

RuleComponent is one tax, contribution or levy.

codestring

Unique in the set, e.g. PAYE, NSSF_EE, SDL.

namestring
kindstring

tax: withheld from pay as income tax. employee: the person's own contribution, withheld. employer: paid by the business on top.

groupstring

The filing group (return) it is declared on.

basestring

What it is worked out on: gross, pensionable or taxable pay.

methodstring

percent (rate_bp of the base), bands (marginal bands) or flat (amount).

rateBpint64 stringrate_bp

Basis points: 1000 is 10%.

amountint64 string
baseCapint64 stringbase_cap

The most of the base it applies to a month; 0 for no cap.

maxAmountint64 stringmax_amount

The most it can come to a month; 0 for no cap.

reducesTaxablebooleanreduces_taxable

An employee contribution that is taken off taxable pay first.

minEmployeesintegermin_employees

Only for businesses with at least this many people on payroll.

Only for people who match; empty fields match everyone.

notestring

FilingGroup

holygrail.payroll.v1.FilingGroup

FilingGroup is a statutory return and payment.

codestring
namestring
agencystring

Who it is filed with and paid to, e.g. TRA.

formstring

The return's name or form number.

dueDayintegerdue_day

Day of the next month it is due; 0 for the last day of the next month.

notestring

PayLine

holygrail.payroll.v1.PayLine

PayLine is one line of a payslip.

kindstring

earning, deduction, tax, contribution (the employee's) or employer.

codestring
namestring
amountint64 string
minutesint64 string

Hours as minutes, for time paid by the hour.

rateint64 string

Pay an hour, or basis points of the base.

baseint64 string

What a statutory line was worked out on.

taxableboolean
pensionableboolean
groupstring

YearMonth

holygrail.payroll.v1.YearMonth

monthstring
grossint64 string
taxableint64 string
taxint64 string
contributionsint64 string
netint64 string
employerint64 string

TicketMessage

holygrail.payroll.v1.TicketMessage

idstring
authorstring

staff, payroll or assistant.

authorNamestringauthor_name
bodystring
createdAtstringcreated_at

RuleBand

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 string
rateBpint64 stringrate_bp

RuleCondition

holygrail.payroll.v1.RuleCondition

residentstring

"", "yes" or "no".

secondaryJobstringsecondary_job
employmentTypesstring[]employment_types

Empty for every employment type.

Base URL https://api.buziin.tech. Every method is POST with a JSON body; see Making requests.