post https://api.lenco.co/access/v1/transactions
Create a new transaction, currently only supporting bank transfer
Response Schema:
{
"status": boolean,
"message": string,
"data": {
"id": string,
"amount": string,
"fee": string,
"narration": string,
"type": "credit" | "debit",
"initiatedAt": date-time | null,
"completedAt": date-time | null,
"accountId": string,
"details": {
"accountName": string,
"accountNumber": string,
"bank": {
"code": string,
"name": string,
}
} | null,
"status": "pending" | "successful" | "failed" | "declined",
"failedAt": date-time | null,
"reasonForFailure": string | null,
"clientReference": string | null,
"transactionReference": string,
"nipSessionId": string | null
}
}
In the sandbox environment, you can simulate a failed transaction by performing a bank transfer to any of these accounts:
Account Number | Bank Code | Error |
---|---|---|
6257392194 | 000016 | Transfer Not Successful |
4000007863 | 000016 | Beneficiary Bank not Available |
0954428453 | 000015 | System Malfunction |
0783199300 | 000015 | Timeout waiting for response from destination bank |
5858433191 | 000013 | Insufficient Balance in Debit Account |