Account management

When an account has been created; whether for an individual or a business, they are required to update their account information as well as profiles in order to gain full access to our escrow capabilities.

Updating User Account Information

Every user is required to complete other missing account information such as username, firstname, lastname and phone_number as well their bank details (for refund and disbursement) for their transaction requests to be considered valid. You can do this using the endpoint below:

post
update user account information

https://api.vesicash.com/v1/admin/user/update/account
Request
Response
Request
Headers
Accept
required
string
application/json
V-PRIVATE-KEY
required
string
your vesicash private api key
Form Data Parameters
account_id
required
integer
Account Id of the user whose account information is to be updated.
updates
required
array
An array of the user information to be updated. E.g "firstname", "lastname", "username", "phone_number", "account_type".
Response
200: OK
{
"status": "ok",
"code": 200,
"message": "Success"
"data": {
"id": 13,
"account_id": 9256738111,
"account_type": null,
"firstname": "John",
"lastname": "Doe",
"email_address": "johndoe@gmail.com",
"phone_number": "070123457895",
"username": "jboy",
"tier_type": 1,
"deleted_at": null,
"created_at": "2019-11-13 09:46:48",
"updated_at": "2019-11-21 19:09:31"
}
}

For example you can a make a post request to the endpoint above and pass in the raw json data below to update a user information.

{
"account_id" : 9256738111,
"updates":{
"firstname": "John",
"lastname": "Doe"
}
}

Updating User Profile

This endpoint allows your users to easily update their individual profiles such as address, city, state, country, dob.

post
update user profile information

https://api.vesicash.com/v1/admin/user/update/profile
Request
Response
Request
Headers
Accept
required
string
application/json
V-PRIVATE-KEY
required
string
your vesicash private api key
Form Data Parameters
account_id
required
integer
Account id of the user whose profile is to be updated.
updates
required
array
An array of the profile information to be updated. E.g "state", "city", "address", "dob".
Response
200: OK
{
"status": "ok",
"code": 200,
"message": "Success"
"data": {
"id": 13,
"account_id": 9256738111,
"account_type": null,
"firstname": "John",
"lastname": "Doe",
"email_address": "johndoe@gmail.com",
"phone_number": "070123457895",
"username": "jboy",
"tier_type": 1,
"deleted_at": null,
"created_at": "2019-11-13 09:46:48",
"updated_at": "2019-11-21 19:09:31"
}
}

For example you can a make a post request to the endpoint above and pass in the raw json data below to update a profile information.

{
"account_id" : 9256738111,
"updates":{
"dob": "John",
"state" : "Lagos",
"city" : "Ikoyi",
"address": "12 Adeyemi Lawson",
"country": "Nigeria"
}
}

Updating Business Profile

Similar to updating a user profile, we have provided an endpoint with which businesses can update their company profiles such as business_name, business_type, logo_uri, website, business_address, country

post
Update business profile information

https://api.vesicash.com/v1/admin/business/profile/update
Request
Response
Request
Headers
Accept
required
string
application/json
V-PRIVATE-KEY
required
string
your vesicash private api key
Form Data Parameters
business_id
required
integer
Account id of the business to be updated.
updates
optional
array
An array of business_name, business_type, logo_uri, website, business_address, country, state, city, etc
Response
200: OK
{
"status": "ok",
"code": 200,
"message": "Business Profile Updated"
"data": {
"profile": {
"id": 18,
"account_id": 3881795242,
"business_name": "Random Business Like That",
"business_type": "Payment Commerce Merchant",
"logo_uri": "URI link to logo ",
"website": "www.vesicash.com",
"country": "Nigeria",
"business_address": null,
"deleted_at": null,
"created_at": "2019-11-22 09:29:06",
"updated_at": "2019-11-22 09:29:18"
}
}
}

For example you can a make a post request to the endpoint above and pass in the raw json data below to update a profile information.

{
"business_id" : 4492814598,
"updates" : {
"business_name" : "paystack tech company",
"business_type" : "Payment Commerce Merchant",
"logo_uri" : "URI link to logo ",
"website": "www.vesicash.com",
"business_address": "12 Adeyemi Lawson",
"country": "Nigeria"
}
}

‚Äč