Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Excerpt

This method allows you to update an existing vendor in Komet Sales.

Tip

Valid Tokens: Company.


Filter by label (Content by label)
showLabelsfalse
max5
titleRelated Articles
cqllabel in ( "vendor" , "vendor-setup" , "company-token" , "vendor-api" )

Request


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

Method: POST

Content-Type: application/

json

JSON


Input Parameters

authenticationToken 

authenticationToken (required)(string:50)

:

Komet Sales security token.


vendorId

 

(

required)(

integer:20)

:

Komet Sales internal

ID of the vendor that you want to update. You can obtain this value from the vendor.list API method.vendorType 

Vendor ID.


vendorType (optional)(integer:1)

Vendor type.

Valid values: 1

for

= Fresh Cut

,

| 2

for

= Freight

/

& Handling

or

| 3

for

= Hard

Gods. 

Goods


name (optional)(string:200)

:

Vendor name

of the vendor

.


portOrigin (optional)(string:5)

: code of the origin (MIA, BOG, MDE, etc)

Port of Origin code.


code (optional)(string:10)

:

Vendor code

of the vendor

.


phone1 (optional)(string:20)

: phone 1

Phone number one.


phone2 (optional)(string:20)

: phone 2

Phone number two.


phone3 (optional)(string:20)

: phone 3

Phone number three.


fax (optional)(string:20)

: fax

Fax number.


webPage (optional)(string:50)

: web site

Vendor’s website address.


emailForPOs (optional)(string:200)

: email

Email addresses where the

vendor

system will

receive the purchase orders. You may enter a set of

send the Vendor’s Purchase Orders.

You can enter multiple email addresses separated by semicolons.


contactName (optional)(string:50)

: name of the contact person

Contact person’s name.


notes (optional)(string:200)

: any additional

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

name

.


state (optional)(string:50)

:

Vendor’s state

name

.


zipcode (optional)(string:10)

: zip/postal

Vendor’s ZIP code.


country (optional)(string:50)

:

Vendor’s country

name

.

Sample Request


Code Block
{
  "authenticationToken": "token_info_goes_here",
  "vendorId":"234234",
  "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

Transaction status.

1 for success or 0 for failure.

Valid values: 1 = Success | 0 = Failure


message (string:500)

: description of the status of the transaction

Transaction status description.


vendorId (integer:20)

: vendor

Komet Sales internal Vendor ID

that was just updated

.

Sample Response


Code Block
{
  "status": "1",
  "message": "success",
  "vendorId": 234234
 }
Panel
titleRelated Articles
Filter by label (Content by label)showLabelsfalsemax10showSpacefalsesorttitlecqllabel in ( "vendor-setup" , "vendors" )labelsvendors vendor-setup