Use this method to add a Vendor to Komet Sales.

Valid Tokens: Company.


Request


URL: https://api.kometsales.com/api/vendor.add

Method: POST

Content-Type: application/JSON


Input Parameters

authenticationToken (required)(string:50)

Komet Sales security token.


name (required)(string:200)

Vendor name.


portOrigin (required)(string:5)

Port of Origin code.


vendorType (required)(integer:1)

Vendor type.

Valid values: 1 = Fresh Cut | 2 = Freight & Handling | 3 = Hard Goods


code (optional)(string:10)

Vendor code.


phone1 (optional)(string:20)

Phone number one.


phone2 (optional)(string:20)

Phone number two.


phone3 (optional)(string:20)

Phone number three.


fax (optional)(string:20)

Fax number.


webPage (optional)(string:50)

Vendor’s website address.


emailForPOs (optional)(string:200)

Email addresses where the system will send the Vendor’s Purchase Orders.

You can enter multiple email addresses separated by semicolons.


contactName (optional)(string:50)

Contact person’s name.


notes (optional)(string:200)

Additional notes or comments that you want to associate with the vendor.


street (optional)(string:200)

Vendor’s street address.


city (optional)(string:50)

Vendor’s city.


state (optional)(string:50)

Vendor’s state.


zipcode (optional)(string:10)

Vendor’s ZIP code.


country (optional)(string:50)

Vendor’s country.


{
  "authenticationToken": "token_info_goes_here",
  "name": "Flores ABC",
  "portOrigin": "BOG",
  "code": "ABC",
  "phone1": "054 474 3222",
  "phone2": "054 474 3223",
  "webpage":"www.floresabc.com",
  "emailForPos": "sales@floresabc.com"
 }

Response


status (integer:1)

Transaction status.

Valid values: 1 = Success | 0 = Failure


message (string:500)

Transaction status description.


vendorId (integer:20)

Komet Sales internal Vendor ID.

{
  "status": "1",
  "message": "The Vendor was successfully saved.",
  "vendorId": 234234
 }
defaultcom.atlassian.ecosystemfc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacock2fca769f-eb06-4f24-b610-d2076922642aari:cloud:ecosystem::extension/fc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacocked34f417-51c3-4852-844e-f22771a78bf4defaultcom.atlassian.ecosystemfc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacock2fca769f-eb06-4f24-b610-d2076922642aari:cloud:ecosystem::extension/fc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacocked34f417-51c3-4852-844e-f22771a78bf4