Get Accounts

GET/accounts

Retrieve all Accounts

Query Parameters

page
string
The page you want to view
page_size
string
A numeric value indicating the page size

base url

import requests

url = "{{BASE_URL}}/accounts"

payload={}
files={}
headers = {
  'Authorization': 'Bearer rbjagQRLjMO8lZstwCJa4X6eWIQcJE'
}

response = requests.request("GET", url, headers=headers, data=payload, 
files=files)

print(response.text),

Response JSON

{  "pagination":{
    "next":null,
    "previous":null,
    "current_page":1,
    "total_pages":1,
    "count":2
  },
  "data":[
    {
      "account_id":"a5732d28468746d1b4d20d73a6ed2ffb",
      "account_number":27624209,
      "first_name":"James",
      "last_name":"Bond",
      "email":"james@bond.com",
      "risk_appetite":0,
      "is_proprietary":false,
      "account_status":"ACTIVE",
      "verification_status":"UNVERIFIED",
      "is_verified":false,
      "account_type":"Individual",
      "phone_number":null,
      "date_of_birth":null,
      "gender":null,
      "identifications":[

      ],
      "banks":[

      ],
      "address":{
        "street":"",
        "lga":"",
        "area_code":"",
        "city":"",
        "state":""
      },
      "next_of_kin":{
        "first_name":"",
        "last_name":"",
        "email":"",
        "phone_number":"",
        "relationship":"",
        "gender":null
      },
      "date_joined":"2021-11-30T13:01:39.734110+00:00"
    },
    {
      "account_id":"762d807d839341a6bed86705e6839112",
      "account_number":1519963761,
      "first_name":"Uchechukwu",
      "last_name":"Emmanuel",
      "email":"darlington+10@cowrywise.com",
      "risk_appetite":0,
      "is_proprietary":false,
      "account_status":"ACTIVE",
      "verification_status":"UNVERIFIED",
      "is_verified":false,
      "account_type":"Individual",
      "phone_number":null,
      "date_of_birth":null,
      "gender":null,
      "identifications":[

      ],
      "banks":[

      ],
      "address":{
        "street":"",
        "lga":"",
        "area_code":"",
        "city":"",
        "state":""
      },
      "next_of_kin":{
        "first_name":"",
        "last_name":"",
        "email":"",
        "phone_number":"",
        "relationship":"",
        "gender":null
      },
      "date_joined":"2021-11-30T13:00:11.448042+00:00"
    }
  ],
  "errors":null,
  "message":"Request successful",
  "status":"success"
}
base url

import requests

url = "{{BASE_URL}}/accounts"

payload={}
files={}
headers = {
  'Authorization': 'Bearer rbjagQRLjMO8lZstwCJa4X6eWIQcJE'
}

response = requests.request("GET", url, headers=headers, data=payload, 
files=files)

print(response.text),

Response JSON

{  "pagination":{
    "next":null,
    "previous":null,
    "current_page":1,
    "total_pages":1,
    "count":2
  },
  "data":[
    {
      "account_id":"a5732d28468746d1b4d20d73a6ed2ffb",
      "account_number":27624209,
      "first_name":"James",
      "last_name":"Bond",
      "email":"james@bond.com",
      "risk_appetite":0,
      "is_proprietary":false,
      "account_status":"ACTIVE",
      "verification_status":"UNVERIFIED",
      "is_verified":false,
      "account_type":"Individual",
      "phone_number":null,
      "date_of_birth":null,
      "gender":null,
      "identifications":[

      ],
      "banks":[

      ],
      "address":{
        "street":"",
        "lga":"",
        "area_code":"",
        "city":"",
        "state":""
      },
      "next_of_kin":{
        "first_name":"",
        "last_name":"",
        "email":"",
        "phone_number":"",
        "relationship":"",
        "gender":null
      },
      "date_joined":"2021-11-30T13:01:39.734110+00:00"
    },
    {
      "account_id":"762d807d839341a6bed86705e6839112",
      "account_number":1519963761,
      "first_name":"Uchechukwu",
      "last_name":"Emmanuel",
      "email":"darlington+10@cowrywise.com",
      "risk_appetite":0,
      "is_proprietary":false,
      "account_status":"ACTIVE",
      "verification_status":"UNVERIFIED",
      "is_verified":false,
      "account_type":"Individual",
      "phone_number":null,
      "date_of_birth":null,
      "gender":null,
      "identifications":[

      ],
      "banks":[

      ],
      "address":{
        "street":"",
        "lga":"",
        "area_code":"",
        "city":"",
        "state":""
      },
      "next_of_kin":{
        "first_name":"",
        "last_name":"",
        "email":"",
        "phone_number":"",
        "relationship":"",
        "gender":null
      },
      "date_joined":"2021-11-30T13:00:11.448042+00:00"
    }
  ],
  "errors":null,
  "message":"Request successful",
  "status":"success"
}