How to Send Signature Per Check?

How to Send Signature Per Check?

Managing signatures per check in the ZilMoney OCW platform is a straightforward process. Here's how you can implement signature handling:

1. Add Signature to Bank Account

First, you need to add a signature to the bank account that will be used for check signing. Use the following API endpoint:

POST /api/v3/bankAccounts/{bankAccountId}/signatures

If the payee information already exists in the system, a new payeeId will not be generated. Instead, the existing payeeId will be returned.

Payload Parameters

Parameter 
Type Required Description 
`signature`File 
**Required**Signature image file (PNG, JPG, JPEG). Must be no more than 40960Kb
`nickName `String **Optional**The nick name of the signature,Must be no longer than 20 characters


Sample Payload:

json
{
    "success": true,
    "message": "Successfully uploaded"
}

2. Retrieve Bank Account Signatures

To get existing signatures for a bank account:

GET /api/v3/bankAccounts/{bankAccountId}/signature

Sample Response:

json

3. Create Check Without Signature

hen creating a check, you can control signature inclusion using the `noSign` parameter:

Sample Response{

json
{
    "bankAccountId": "rWQ8GpKAry4D0Zz",
    "payeeId": "payee_id_here",
    "amount": 1500.00,
    "memo": "Payment for services",
    "noSign": false
}


Parameters:


Parameter 
Type Description 
`noSign`BooleanIf `true`, check will be created without signature. Default: `false`