Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Current »

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

Valid Tokens: Company.


Related Articles

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 } 
       ] 
}

  • No labels