Use this method to get a list of companies associated with the logged User.

Valid Tokens: Company.


Request


URL: https://api.kometsales.com/api/company.list

Method: GET

Content-Type: URL Parameters


Header

X-SALES-CHANNEL (string: 20)

The sales channel.

Valid values: "WEB_APP", "MOBILE_APP", "K2K" , "ECOMMERCE_LITE". 


Input parameters

authenticationToken (required) (string:50)

Komet Sales security token.


https://api.kometsales.com/api/company.list?
authenticationToken=token_info_goes_here

Response


companyResult (array)

An array of associated companies.


companyId (integer:10)

The Company ID.


companyName (String)

The Company name.


roleId (integer:10)

The User Role code within the company.

Example: 27: e-commerce user.


customerId (integer 10) 

The Customer ID.

You can get this value from the customer.list API method.


name (string 200)

The Customer name.


{
 "companyResult": 
       [ 
          { "companyId": 6316,
            "companyName": "Demo Account", 
            "roleId": 1, 
            "customerId": null, 
            "customerName": null } 
       ] 
}

defaultcom.atlassian.ecosystemfc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacockc5137802-ecae-42c8-8d24-7bccb4b34d7dari:cloud:ecosystem::extension/fc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacockd91666cc-69b7-43e0-8bfb-364375f5a1f6defaultcom.atlassian.ecosystemfc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacockc5137802-ecae-42c8-8d24-7bccb4b34d7dari:cloud:ecosystem::extension/fc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacockd91666cc-69b7-43e0-8bfb-364375f5a1f6