The ZilMoney OCW platform provides comprehensive paystub integration through the voucher system. Here's the complete implementation guide:
Use the voucher endpoint to add detailed paystub information to checks:
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 |
Parameter | Type | Required | Description |
`invoiceNumber` | String | Optional | Reference 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) |
Get existing voucher data for a check:
Error Code | Description |
`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) |