hasExpired to separate open accounts from expired ones.| code | HTTP | message | when |
|---|---|---|---|
| 48 | 400 | Invalid Credentials | Token carries no client id. |
| 26 | 400 | Invalid credentials | No active merchant credential. |
curl --location 'https://merchantapi-dev.vantpay.io/api/v1/virtual-accounts/dynamic?virtualAccount=&collectionAccount=&mobileNumber=&accountStatus=&hasExpired=&from=&to=&pageNumber=&pageSize=' \
--header 'Authorization: Bearer <token>'{
"isSuccessful": true,
"code": "00",
"message": "Operation successful",
"data": {
"currentPage": 1,
"pageSize": 50,
"totalRecords": 1,
"totalPages": 1,
"data": [
{
"id": 1021,
"partnerId": "ACME",
"virtualAccount": "9901234567",
"collectionAccount": "1100045678",
"accountName": "ACME/OKAFOR CHIDI",
"mobileNumber": "08031234567",
"accountStatus": "ACTIVE",
"createdDate": "2026-11-21T10:12:00",
"dateOfBirth": "1990-04-12",
"address": "Lagos",
"walletLinked": false,
"expiryDate": "2026-11-22T12:35:12"
}
]
}
}