This API is used to get the information of user's business.
Parameter | Required | Type | Description |
---|---|---|---|
apikey | yes | string | Your authorized API key |
secret | yes | string | Your authorized secret key |
user_id | yes | string | Unique ID of the user |
basic | no | string | If you need basic information of the business then you give the value as"true" |
{ "status": "success", "status_code": 200, "message": "Business details found", "result": [ { "business_name": "Business 1", "country": "country", "profile_image": "", "phone_number": "xxxxxxxxx", "email_address": "xxxxxxxxxxx", "status": "active", "_id": "xxxxxxxxxxx", "user_id": "xxxxxxxxxxx", "key": "xxxx" }, { "business_name": "Business 2", "country": "country", "profile_image": "", "phone_number": "", "email_address": "", "status": "process", "_id": "xxxxxxxxxx", "user_id": "xxxxxxxxxxxx", "key": "xxxx" } ] }
Error Code | Description |
---|---|
701 | User id parameter required |
702 | User id required |
701 | Basic parameter required |
702 | Basic required |
610 | Invalid user id |
204 | No record found |
{ "error": { "reason": "parameter missing", "message": "User id parameter required", "field_name": "user_id", "code": 701, "error_type": "missing_parameter" } }
{ "error": { "reason": "required field", "message": "User id is required", "code": 702, "error_type": "required" } }
{ "error": { "reason": "parameter missing", "message": "Basic parameter required", "field_name": "basic", "code": 701, "error_type": "missing_parameter" } }
{ "error": { "reason": "required field", "message": "Basic is required", "code": 702, "error_type": "required" } }
{ "error": { "errors": [ { "reason": "Invalid Id", "message": "Please make sure you have provided the valid user id" } ], "code": 610, "error_type": "reference_error" } }
{ "status": "no_record", "status_code": 204, "message": "No record found" }
Loading please wait...