Use this method to add a new user to your E-Commerce Account. You can create up to ten users at the same time.

Valid Tokens: Component and Company.


Request


URL: https://api.kometsales.com/api/v2/user/e-commerce

Method: POST

Content-Type: application/JSON


Headers

X-ACCOUNT (required)(integer:20)

ID of the Company using the API.

Please ask the Komet Sales team to provide this ID. 


authenticationToken (required)(string:50)

Komet Sales security token.


Input parameters

customerCodes (required)(string:20)

Customer code assigned to the new user.

If the code already exists, the system associates the new customer to the selected code.


First Name (required)(string:200)

First name of the new user.


Last Name (required)(string:200)

Last name of the new user.


Email (required)(string:500)

Email address associated to the new user.


Login (required)(string:500)

Username selected to login into the system. 


{
  "customerCodes": ["B310","C910"],
  "firstName": "John",
  "lastName": "Gomez",
  "email": "jgomez1@kometsales.com",
  "login": "jgomez1@kometsales.com"
}


Response


message (string:200)

Transaction status description.


status (boolean:1)

Transaction status.

Valid values: 1 = Success | 0 = Failure


{
    "message": "User was successfully created.",
    "status": "1"
}

defaultcom.atlassian.ecosystemfc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacock6ecbb867-a408-43a2-ab01-48ece909b09aari:cloud:ecosystem::extension/fc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacockdcb230d2-045f-4273-b18b-2346abb3c66fdefaultcom.atlassian.ecosystemfc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacock6ecbb867-a408-43a2-ab01-48ece909b09aari:cloud:ecosystem::extension/fc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacockdcb230d2-045f-4273-b18b-2346abb3c66f