GET Get Company Details API

This API will get the details of the specified parent company.

Request Attributes

API Content Type: JSON

Head

ATTRIBUTE DESCRIPTION
x-access-token
string
mandatory
Token generated from the authentication api.
Example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.TU5NzgyMDA1N30.9eO_xh eyJEYXRhIjp7InVzZXJpZCI6IjY3NCIsImVtYWlsIjoiYWFhYWFhYWFhYWjuunGJQ YmwuY29tIiwia2V5IjoidGVzdGluZ0tleSJ9LCJpYXQiOjE1OTc3NDA4NTpj6gc8dM csIFhY7n1mV4cUBxa2P3ICI6M2VyWq19OzuHAefeTEj

query

ATTRIBUTE DESCRIPTION
pcompany_id
string
mandatory
Parent Company Id.
Example: CMPSBMVP5208PBMYZKK1658397206838
admin_email
string
mandatory
Email address of the company admin.
Example: yogesh.sonavane@konze.com

Response Attributes

API Content Type: JSON

body

ATTRIBUTE DESCRIPTION
statuscode
string(3)
This is the status code corresponding to a particular message and is returned to the user. The different status codes corresponding to this API are mentioned below
Example: 200
status
boolean
This parameter indicates the status of API call.
Possible Values: true or false
array of object
This parameter gives the information about the members of the group.
Attribute Description
UserId
string
User uid.
Example: USR9WNMP0RUR9U8YRGI1658397206838
company_uid
string
Company Uid.
Example: CMPPVRG17X1HULKFI141663909779121

Response Codes and Messages

statuscode status Description
200
true
Success
401
false
Your Session has expired
409
false
Conflict has occured
422
false
Invalid parameter
500
false
System error
https://console.konsign.com/api/company/companydetail?pcompany_id=PARENT_COMPANY_ID&admin_email=ADMIN_EMAIL
https://console.konsign.com/api/company/companydetail?pcompany_id=PARENT_COMPANY_ID&admin_email=ADMIN_EMAIL
REQUEST RESPONSE

                                            var request = require('request');
                                                var options = {
                                                'method': 'GET',
                                                'url': 'https://console.konsign.com/api/company/companydetail?pcompany_id=PARENT_COMPANY_ID&admin_email=ADMIN_EMAIL',
                                                'headers': {
                                                    'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJEYXRhIjp7InVzZXJpZCI6IjU0NiIsImVtYWlsIjoiaGl0ZXNoLmpvc2hpQGtvbnplLmNvbSIsImFwcEtleSI6IjNhNjI4N2U3LTNkOTItNDVjNy04YTk2LTg0MjAyMjA0MDc1MiIsImtleSI6InByb2R1Y3Rpb25LZXkifSwiaWF0IjoxNjgzMDkzMDg5LCJleHAiOjE2ODMxNzIyODl9.xNAwNMzpFz3yZ_zjQDhhwHbZfregq0I1O3uH6ZwXal4',
                                                    'Cookie': 'session=eyJVc2VyX0lkIjoiNTQ2IiwiVXNlcl9FbWFpbCI6ImhpdGVzaC5qb3NoaUBrb256ZS5jb20ifQ==; session.sig=wm5vA4CRl6Lk5_adFmanudPrWkc'
                                                }
                                                };
                                                request(options, function (error, response) {
                                                if (error) throw new Error(error);
                                                console.log(response.body);
                                                });

										
									

                                            var client = new HttpClient();
                                            var request = new HttpRequestMessage(HttpMethod.Get, "https://console.konsign.com/api/company/companydetail?pcompany_id=PARENT_COMPANY_ID&admin_email=ADMIN_EMAIL");
                                            request.Headers.Add("Authorization", "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJEYXRhIjp7InVzZXJpZCI6IjU0NiIsImVtYWlsIjoiaGl0ZXNoLmpvc2hpQGtvbnplLmNvbSIsImFwcEtleSI6IjNhNjI4N2U3LTNkOTItNDVjNy04YTk2LTg0MjAyMjA0MDc1MiIsImtleSI6InByb2R1Y3Rpb25LZXkifSwiaWF0IjoxNjgzMDkzMDg5LCJleHAiOjE2ODMxNzIyODl9.xNAwNMzpFz3yZ_zjQDhhwHbZfregq0I1O3uH6ZwXal4");
                                            request.Headers.Add("Cookie", "session=eyJVc2VyX0lkIjoiNTQ2IiwiVXNlcl9FbWFpbCI6ImhpdGVzaC5qb3NoaUBrb256ZS5jb20ifQ==; session.sig=wm5vA4CRl6Lk5_adFmanudPrWkc");
                                            var response = await client.SendAsync(request);
                                            response.EnsureSuccessStatusCode();
                                            Console.WriteLine(await response.Content.ReadAsStringAsync());

										
									
										{
											"head": {
												"responseTimestamp": "1526969112101",
												"version": "v1",
												"clientId": "C11",
												"signature": "TXBw50YPUKIgJd8gR8RpZuOMZ+csvCT7i0/YXmG//J8+BpFdY5goPBiLAkCzKlCkOvAQip/Op5aD6Vs+cNUTjFmC55JBxvp7WunZ45Ke2q0="
											},
											"body": {
												"resultInfo": {
													"resultStatus": "S",
													"resultCode": "0000",
													"resultMsg": "Success"
												},
												"txnToken": "fe795335ed3049c78a57271075f2199e1526969112097",
												"isPromoCodeValid": false,
												"authenticated": false
											}
										}