Page cover

List Issued Accounts

Endpoint

GET {{}}/v1/accounts

Description

This endpoint is used to get a list of accounts that have been issued by Prune to the organisation.

Response

On success, the API will return a JSON object containing the details of the company account.

{
    "status": true,
    "message": "Accounts fetched",
    "data": [
        {
            "id": "9a57199b-4406-40a7-ac6b-1a0f98136a1b",
            "firstName": "Spencer",
            "lastName": "Funk",
            "accountId": 98,
            "accountName": "Spencer Funk",
            "accountNumber": "GB1204550505050596",
            "accountDocuments": {
                "idType": "passport",
                "poaType": "utilityBill",
                "idFileURL": "https://xxxxxxxxxxxxxxxxxxxx/passport.pdf",
                "poaFileURL": "https://xxxxxxxxxxxxxxxxxxxx/utility73.jpg"
            },
            "createdAt": "2024-08-04T06:24:02.254Z",
            "accountBalance": 0,
            "companyId": "9b0bb1a7-ab27-4403-9781-258873ed6c82",
            "type": "USER",
            "status": "ACTIVE"
        }
    ],
    "meta": {
        "total": 1
    },
    "code": 200
}

Last updated