How to Add Paystub in Check

How to Add Paystub in Check

This page answers one question: How to Add Paystub in Check

Short answer: The ZilMoney OCW platform provides comprehensive paystub integration through the voucher system.

Details

The ZilMoney OCW platform provides comprehensive paystub integration through the voucher system. Here's the complete implementation guide:

1. Create Paystub/Voucher for Check

Use the voucher endpoint to add detailed paystub information to checks:

POST /api/v3/checks/{checkId}/voucher

2. Payload Parameters

Main Voucher Fields:
Parameter
Type
Required
Description
`date`String (YYYY-MM-DD)
Optional
Voucher date. Defaults to current date
`memo`
String
Optional
Description/notes for the voucher
`voucherNumber`
String
**Required**
Unique voucher identifier
`voucherItems`
Array
**Required**
Array of line items for the paystub
Voucher Item Fields:
Parameter
Type Required Description
`invoiceNumber` String OptionalReference invoice number
`name` String **Required** Name of the item/service
`description` String Optional Detailed description
`quantity` Integer **Required** Number of units
`unitCost`
Decimal
**Required**
Cost per unit
`total`
Decimal
**Required**
Line item total (quantity × unitCost)

3. Retrieve Paystub/Voucher

Get existing voucher data for a check:

GET /api/v3/checks/{checkId}/voucher
Sample Response
json
{
"success": true,
"data": {
"voucher_info": {
"id": 123,
"voucher_number": "PAY-2024-001",
"voucher_date": "2024-01-15",
"total_amount": 5100.00,
"memo": "Employee Payroll - January 2024",
"payee_id": 456,
"cheque_id": 789
},
"voucher_items": [
{
"id": 1,
"product_name": "Base Salary",
"product_description": "Monthly base salary payment",
"quantity": 1,
"unit_cost": 4000.00,
"total_amount": 4000.00,
"invoice_number": "INV-001"
},
{
"id": 2,
"product_name": "Overtime Pay",
"product_description": "Overtime hours compensation",
"quantity": 8,
"unit_cost": 75.00,
"total_amount": 600.00,
"invoice_number": "INV-002"
}
]
}
}

4. Update Paystub/Voucher

Modify existing voucher data:
PUT /api/v3/checks/{checkId}/voucher

5. Delete Paystub/Voucher

Remove voucher data from a check:
DELETE /api/v3/checks/{checkId}/voucher

6. Implementation Details

Error CodeDescription
`404`Check not found
`422`
Voucher already exists for check
`422`
Validation errors in payload
`-1`
Check not found (internal code)
`-2`
Voucher already exists or not found (internal code)

Need more help?

Call (408) 775-7720, use the chat box in the lower right corner of the app, or email support@onlinecheckwriter.com.

Pay your vendors with Online Check Writer

Want help? Book a demo. Our team will answer your questions.

This page gives general information. It is not legal advice.

    • Related Articles

    • How to create a blank check as single or bulk?

      A blank check is a check with no payee or amount filled in. You can make one check or many at once. This page shows how. Quick answer: On the Send Payment page, click Blank Check under Other Payment Options. Pick the bank account, enter the number of ...
    • How to add signature on check?

      You can add your signature to the checks you print with Online Check Writer. You save your signature one time in the Signature Manager. After that, it prints on your checks. There are seven ways to add it, and this page shows each one. Quick answer: ...
    • Can I add a message to the bottom of the check or check stub?

      This page gives the short answer first, then every step. Short answer: Yes. On Send Payment you can add a Memo and an Invoice number. You can also click Remittance to add invoice details. To show those details on the check stub, add Dynamic ...
    • Can I add custom fields like a reference or case number to the check?

      This page gives the short answer first, then every step. Short answer: Yes. On Send Payment you can add a Memo and an Invoice number. You can also click Remittance to add invoice details. To show those details on the check stub, add Dynamic ...
    • How to create check draft from Online Check Writer?

      This page shows how to create a check draft in Online Check Writer. You apply for Check Draft first. Our team reviews your application. After it is approved, you can create check drafts. New to the idea? Read What is check draft? first. Quick answer: ...