Skip to main content

Account

After signing up on insurerity, the client gets to manage the account. The client can view account info, update account, request verification code, verify account, get account notification, update notification and delete notification.

Account Info

Return detailed information about the client's account. The endpoint below allows users to view information about the account.

GET /api/v1/client/account

Response

CodeDescription
200Client account information
409Unauthorized

Example Success Response

Content type
application/json

[
{
"statusCode": 200,
"success": true,
"data": [
{
"id": "619c0911b46b424f5f3e470f",
"createdAt": "2020-05-05T00:00:00.000Z",
"updatedAt": "2020-05-05T00:00:00.000Z",
"companyName": "ABC Company",
"email": "user@example.com",
"country": "Ghana",
"city": "Accra",
"region": "Greater Accra",
"digitalAddress": "CC-1334-332",
"password": "password",
"industry": "Agriculture",
"address": "Dansoman Street 12, Accra, Ghana",
"dateOfIncorporation": "2006-12-15",
"type": "CORPORATE",
"contactPersons": [
{
"phoneNumber": "+233248023456",
"email": "user@example.com",
"position": "Sales Manager",
"name": "string"
}
],
"firstName": "John",
"lastName": "Doe",
"otherNames": "Wood",
"title": "Mr",
"gender": "Male",
"age": 25,
"fullName": "John Wood Doe",
"isActive": true,
"deliveryAddresses": [],
"profileImage": {
"id": "619c0911b46b424f5f3e470f",
"createdAt": "2020-01-01T00:00:00.000Z",
"updatedAt": "2020-05-05T00:00:00.000Z",
"contentType": "image/jpeg",
"url": "https://1d16-156-38-117-143.eu.ngrok.io/api/v1/documents/afae4c2bbd5e_programme-jokes.jpeg",
"size": "12345",
"name": "file-name.jpg"
},
"notifications": [],
"taxpayerIdentificationNumber": "string",
"phoneNumber": "stringstri",
"dateOfBirth": "string",
"identificationCard": {
"idNumber": "123456789",
"type": "GHANA_CARD",
"issueDate": "string",
"expiryDate": "string"
}
}
]
}

...
]