Inventory Pro
Skip to main content

Contents

api

Vendors

Vendors

A vendor record represents a supplier — a company you purchase inventory from.

The Vendor Object

The list response (GET /Vendor/All) returns a projected subset. The single response (GET /Vendor/{id}) returns the raw vendor entity.

List shape:

{
  "rec": 201,
  "shortId": "ACME-FASTENERS",
  "name": "Acme Fasteners Inc",
  "contact": "Mark Brennan",
  "phone": "555-0200",
  "fax": "555-0201",
  "email": "[EMAIL]",
  "address1": "456 Supply Blvd",
  "address2": "",
  "city": "Chicago",
  "state": "IL",
  "zip": "60601",
  "country": "US",
  "notes": "",
  "currency": "USD",
  "status": "Active",
  "modified": "2025-01-20T14:22:00Z"
}
FieldTypeDescription
recintegerInternal vendor record ID
shortIdstringUnique vendor identifier
namestringVendor name
contactstringPrimary contact name
phonestringPhone number
faxstringFax number
emailstringEmail address
address1stringPrimary address line
address2stringSecondary address line
citystringCity
statestringState or province
zipstringPostal code
countrystringCountry code
notesstringNotes
currencystringCurrency code
statusstringActive or Discontinued
modifieddatetimeLast modification timestamp

Note: The single-vendor response (GET /Vendor/{id}) returns the full vendor entity, which includes additional fields beyond the list projection.


List Active Vendors

GET /Vendor

Returns active (non-discontinued) vendors with standard pagination parameters. Discontinued vendors are excluded. Supports modifiedSince filtering.

{
  "value": [
    {
      "rec": 201,
      "shortId": "ACME-FASTENERS",
      "name": "Acme Fasteners Inc",
      "contact": "Mark Brennan",
      "phone": "555-0200",
      "fax": "555-0201",
      "email": "[EMAIL]",
      "address1": "456 Supply Blvd",
      "address2": "",
      "city": "Chicago",
      "state": "IL",
      "zip": "60601",
      "country": "US",
      "notes": "",
      "currency": "USD",
      "status": "Active",
      "modified": "2025-01-20T14:22:00Z"
    }
  ],
  "totalCount": 29,
  "page": 1,
  "pageSize": 25,
  "pageCount": 2,
  "hasMore": true
}

List All Vendors

GET /Vendor/All

Returns all vendors (including discontinued) with standard pagination parameters. Supports modifiedSince filtering.

{
  "value": [
    {
      "shortId": "ACME-FASTENERS",
      "name": "Acme Fasteners Inc",
      "contact": "Mark Brennan",
      "phone": "555-0200",
      "fax": "555-0201",
      "email": "[EMAIL]",
      "address1": "456 Supply Blvd",
      "address2": "",
      "city": "Chicago",
      "state": "IL",
      "zip": "60601",
      "country": "US",
      "notes": "",
      "currency": "USD",
      "status": "Active",
      "modified": "2025-01-20T14:22:00Z"
    },
    {
      "rec": 202,
      "shortId": "GREATLAKES-SUPPLY",
      "name": "Great Lakes Supply Co",
      "contact": "Lisa Vogel",
      "phone": "555-0300",
      "fax": "",
      "email": "[EMAIL]",
      "address1": "200 Lakeshore Dr",
      "address2": "",
      "city": "Milwaukee",
      "state": "WI",
      "zip": "53202",
      "country": "US",
      "notes": "",
      "currency": "USD",
      "status": "Active",
      "modified": "2025-01-20T14:22:00Z"
    }
  ],
  "totalCount": 31,
  "page": 1,
  "pageSize": 25,
  "pageCount": 2,
  "hasMore": true
}

Get a Vendor

GET /Vendor/{id}

Returns the full vendor entity by ShortID. Returns 404 if the vendor does not exist.

GET /Vendor/ACME-FASTENERS
{
  "shortId": "ACME-FASTENERS",
  "name": "Acme Fasteners Inc",
  "address1": "456 Supply Blvd",
  "address2": "",
  "city": "Chicago",
  "state": "IL",
  "zip": "60601",
  "country": "US",
  "phone": "555-0200",
  "fax": "555-0201",
  "email": "[EMAIL]",
  "contact": "Mark Brennan"
}

Create or Update a Vendor

POST /Vendor

Upserts a vendor. If ShortID matches an existing record it is updated; otherwise a new record is created.

Request

{
  "ShortID": "ACME-FASTENERS",
  "Name": "Acme Fasteners Inc",
  "Contact1": "Mark Brennan",
  "Phone": "555-0200",
  "Fax": "555-0201",
  "Email": "[EMAIL]",
  "Address1": "456 Supply Blvd",
  "Address2": "",
  "City": "Chicago",
  "State": "IL",
  "Zip": "60601",
  "Country": "US",
  "Currency": "USD",
  "Status": "Active"
}
FieldTypeRequiredDescription
ShortIDstringYesUnique identifier. Used to match existing records on upsert.
NamestringYesVendor name
AccNostringNoAccount number
Contact1stringNoPrimary contact name
Contact2stringNoSecondary contact name
PhonestringNoPhone number
FaxstringNoFax number
EmailstringNoEmail address
Address1stringNoPrimary address line
Address2stringNoSecondary address line
CitystringNoCity
StatestringNoState or province
ZipstringNoPostal code
CountrystringNoCountry code
NotesstringNoNotes
CurrencystringNoCurrency code
StatusstringNoActive or Discontinued
WebsitestringNoWebsite URL

Note: The write body uses PascalCase field names. ShortID and Name are required.

Response

{
  "shortID": "ACME-FASTENERS",
  "status": "imported"
}

Discontinue a Vendor

DELETE /Vendor/{id}

Marks the vendor as discontinued. Historical purchase order records are preserved. Returns 200 with a confirmation message.

DELETE /Vendor/ACME-FASTENERS
"Vendor Discontinued: ACME-FASTENERS"

Permissions

ActionPermission
List / GetSuppliers List (SecurityID 19)
Create / Update / DiscontinueCreate/Modify Supplier (SecurityID 20)