Overview

This method allows you to add a vendor into Komet Sales.

Request

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): name of the vendor.
  • portOrigin (required)(string:5): code of the origin (MIA, BOG, MDE, etc).
  • vendorType (required)(integer:1): 1 for Fresh Cut, 2 for Freight / Handling or 3 for Hard Gods. 
  • code (optional)(string:10): code of the vendor.
  • phone1 (optional)(string:20): phone 1.
  • phone2 (optional)(string:20): phone 2.
  • phone3 (optional)(string:20): phone 3.
  • fax (optional)(string:20): fax.
  • webPage (optional)(string:50): web site address.
  • emailForPOs (optional)(string:200): email addresses where the vendor will receive the purchase orders. You may enter a set of email addresses separated by semicolons.
  • contactName (optional)(string:50): name of the contact person.
  • notes (optional)(string:200): any additional notes or comments that you want to associate with the vendor.
  • street (optional)(string:200): street address.
  • city (optional)(string:50): city name.
  • state (optional)(string:50): state name.
  • zipcode (optional)(string:10): zip/postal code.
  • country (optional)(string:50): country name.

{
  "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

Output:

  • status (integer:1): transaction status. 1 for success or 0 for failure.
  • message (string:500): description of the status of the transaction.
  • vendorId (integer:20): vendor internal ID that was just created.

{
  "status": "1",
  "message": "The Vendor was successfully saved.",
  "vendorId": 234234
 }