Overview

This method returns a list of accounts associated to the customer user.

Request

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

  • Method: GET
  • Content-Type: URL Params.

Header

  • X-ACCOUNT (required)(integer:20): Company ID that is using the API. Please ask Komet Sales team to have this ID. 

Input parameters:

  • authenticationToken (required)(string:50): Komet Sales security token. This method only accepts user's tokens. 

 

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

Response

Output:

    • message (String):  description of the transaction status.
    • status (integer:1): transaction status. 1 for success or 0 for failure.
    • customerResult (array): array of customers associated to the user. 
      • userId (integer: 20): Internal User ID. 
      • customerName (string: 200): Customer name.
      • customerId (integer: 20): Customer Id.
      • companyName (string: 200): Company name.
      • companyId (integer: 20): CompanyId Id.
Sample
{
	"status": 1, 
	"customerResult": 
	[
    	{
	      "userId": 761,
    	  "customerName": "ACADEMY FLORIST OPERATIONS",
		  "customerId": 8927,
	      "companyId": 7233,
	      "companyName": "ABC Flowers Company"
  	  	}
    ]
}