cURL Python JavaScript PHP Go Java
curl --request GET \
--url https://devapi.withedge.co/gateway/api/v1/account/bank/details/{ accountNumber} \
--header 'Authorization: Bearer <token>' \
--header 'requestId: <requestid>'
{
"statusCode" : 00 ,
"message" : "Account Statement Successfully Retrieved" ,
"data" : [
{
"accountNumber" : "5118745523" ,
"accountName" : "John Doe" ,
"balance" : 10000.00
"currency" : "NGN"
"status" : "active"
} ,
{
"accountNumber" : "1951145523" ,
"accountName" : "Jane Doe" ,
"balance" : 25000.00
"currency" : "NGN"
"status" : "active"
}
] ,
"errors" : [ ] ,
"currentPage" : 1 ,
"pageSize" : 10 ,
"previousPage" : 0 ,
"total" : 2
}
Get Account Details
Use this endpoint to fetch the details of a specific bank account, including account balance, status, and other relevant information.
Request Parameters
A unique identifier for the request, used for idempotency. This ensures that repeated requests with the same “requestId” are not processed multiple times. Example: “e0b9f8d0-7a57-4a67-a8b2-4d7c7b5a37c9”
The page number to retrieve for paginated results. Use this parameter to control which set of results is returned. Example: 1
The number of results to return per page. This parameter controls the size of each paginated response. Example: 15
The unique account number of the user or entity for which the request is made. This parameter is used to identify the relevant account. Example: 5118745523
{
"statusCode" : 00 ,
"message" : "Account Statement Successfully Retrieved" ,
"data" : [
{
"accountNumber" : "5118745523" ,
"accountName" : "John Doe" ,
"balance" : 10000.00
"currency" : "NGN"
"status" : "active"
} ,
{
"accountNumber" : "1951145523" ,
"accountName" : "Jane Doe" ,
"balance" : 25000.00
"currency" : "NGN"
"status" : "active"
}
] ,
"errors" : [ ] ,
"currentPage" : 1 ,
"pageSize" : 10 ,
"previousPage" : 0 ,
"total" : 2
}