getCompanyDetails
Description
Return company id and company name based on company token
Request
Url - {baseUrl}/API/v7/index.php
These parameters will be sent in the request body. (POST method)
Parameter | Data Type | Description | Â |
---|---|---|---|
CompanyToken | Token | - | Mandatory |
Request | Text | - | Mandatory |
Request (XML)
<?xml version="1.0" encoding="utf-8"?>
<API3G>
<CompanyToken>DC3305AA-A025-4B8B-989B-A8921DD31094</CompanyToken>
<Request>getCompanyDetails</Request>
</API3G>
Response (XML)
Success
<?xml version="1.0" encoding="UTF-8"?>
<API3G>
<Code>000</Code>
<Explanation>Success</Explanation>
<CompanyId>1294</CompanyId>
<CompanyName>Kenya Airways Test Account</CompanyName>
</API3G>
Error if company token is not valid
<?xml version="1.0" encoding="UTF-8"?>
<API3G>
<Code>802</Code>
<Explanation>Wrong CompanyToken</Explanation>
</API3G>
Error if company token is not provided
Â