Use this method to get a list of accounts associated with a Customer.

Valid tokens: User. 


Request


URL: https://api.kometsales.com/api/customer.by.user.list

Method: GET

Content-Type: URL Parameters


Header

X-ACCOUNT (required)(integer:20)

Company ID that is using the API.

Please ask the Komet Sales team for this ID. 


Input parameters

authenticationToken (required)(string:50)

Komet Sales security token. 


 https://api.kometsales.com/api/customer.by.user.list?
authenticationToken=token_info_goes_here

Response


message (String)

Transaction status description.


status (integer:1)

Transaction status.

Valid values: 1 = Success | 0 = Failure


customerResult (array)

An array containing the Customers associated to the User. 


userId (integer: 20)

Komet Sales Internal User ID. 


customerName (string: 200)

Customer name.


customerId (integer: 20)

Customer ID.


companyName (string: 200)

Company name.


companyId (integer: 20)

Company ID.


{
	"status": 1, 
	"customerResult": 
	[
    	{
	      "userId": 761,
    	  "customerName": "ACADEMY FLORIST OPERATIONS",
		  "customerId": 8927,
	      "companyId": 7233,
	      "companyName": "ABC Flowers Company"
  	  	}
    ]
}
defaultcom.atlassian.ecosystemfc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacock08649f5a-8f34-44f7-ba94-fd70e0abb4cbari:cloud:ecosystem::extension/fc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacocka0ac8c12-577f-4fdd-a9a7-51477c690615defaultcom.atlassian.ecosystemfc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacock08649f5a-8f34-44f7-ba94-fd70e0abb4cbari:cloud:ecosystem::extension/fc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacocka0ac8c12-577f-4fdd-a9a7-51477c690615