Clients
Get all clients
Get clients
GET
{base url}/v1/clients?page={page}&perPage={perPage}
Returns paginated list of all clients
Query Parameters
page
number
page to return
perPage
number
number of items on each page
Headers
Authorization*
Bearer Token
The bearer token is the API users Secret Key
Get client by clientRef
Get client by Reference
GET
{base url}/v1/clients/{clientRef}
Get a single client by client reference
Query Parameters
clientRef*
string
Client's reference key
Headers
Authorization*
Bearer Token
The bearer token is the API users Secret Key
Get client loans
Get clients loans
GET
{base url}/v1/clients/${clientId}/loans?page={page}&perPage={perPage}
Returns paginated list of all clients
Query Parameters
clientId*
string
client's Id
page
number
page to return
perPage
number
number of items per page
Headers
Authorization*
Bearer token
The bearer token is the API users Secret Key
Get client deposits
Get client deposits
GET
{base url}/v1/clients/{clientId}/deposits?page={page}&perPage={perPage}
Returns paginated list of all client deposits
Query Parameters
clientId*
string
client's Id
page
number
page to return
perPage
number
number of items per page
Headers
Authorization*
Bearer token
The bearer token is the API users Secret Key
Update Client
Update client
PATCH
{base url}/v1/clients/{clientId}
Update client data
Query Parameters
clientId*
string
client's Id
Headers
Authorization*
Bearer token
The bearer token is the API users Secret Key
Request Body
firstName*
string
client's firstname
lastName*
string
client's lastname
middleName
string
client's middlename
dob*
string
client's date of birth
image
string
client's profile image
address
string
client's address
city
string
client's city of residence
state
string
client's state of residence
country
string
client's country
phoneNumber
string
client's phone number
string
client's email
customData
object
client's custom data
Delete client
Delete client
DELETE
{base url}/v1/clients/{clientId}
Delete client
Query Parameters
clientId*
string
client's Id
Headers
Authorization*
Bearer token
The bearer token is the API users Secret Key
search client
Search client
GET
{base url}/v1/clients/{search}
Search client
Query Parameters
search*
string
search term
Headers
Authorization*
Bearer token
The bearer token is the API users Secret Key
Create client
Create client
POST
{base url}/v1/clients
create a single client
Headers
Authorization*
Bearer token
The bearer token is the API users Secret Key
Request Body
firstName*
string
client's first-name
lastName*
string
client's last-name
middleName
string
client's middle-name
dob*
string
client's date of birth
image
string
client's profile image(accepts url or base64 encoding)
address*
string
client's address
city
string
client's city
state*
string
client's state
country*
string
client's country
phoneNumber
string
client's phone number
customData
string
client's custom data
string
client's email
Last updated
Was this helpful?