Vendors

Vendors

Retrieve and manage vendor records.

FieldData TypePOSTPATCH
VendorIDStringXX
DescriptionStringXX
Address1StringXX
Address2StringXX
CityStringXX
StateStringXX
ZipCodeStringXX
CountryStringXX
PhoneStringXX
FaxStringXX
WebStringXX
TypeStringXX
AccountNoStringXX
CurrencyStringXX
TaxCodeStringXX
PaymentTermsStringXX
ShipViaStringXX
IsActiveBooleanXX
NotesStringXX
CreatedByString
DateCreatedDateTime
EditedByString
DateEditedDateTime

Key: VendorID

Required property: VendorID

Endpoints

GET

URL: https://{site}.mvpplant.com/ODataApi/v1/Vendors

Description: Retrieve vendor records.

POST

URL: https://{site}.mvpplant.com/ODataApi/v1/Vendors

Description: Create a vendor record.

Body: Send the property values marked in the POST column.

PATCH

URL: https://{site}.mvpplant.com/ODataApi/v1/Vendors('vendorID')

Description: Update an existing vendor record.

Body: Send only the property values you want to update from the PATCH column.

OData Query Examples

  • Select specific fields:
    https://{site}.mvpplant.com/ODataApi/v1/Vendors?$select=VendorID,Description,Currency

  • Filter active vendors:
    https://{site}.mvpplant.com/ODataApi/v1/Vendors?$filter=IsActive eq true

  • Sort by vendor ID:
    https://{site}.mvpplant.com/ODataApi/v1/Vendors?$orderby=VendorID

  • Return the first 10 records:
    https://{site}.mvpplant.com/ODataApi/v1/Vendors?$top=10

Notes

  • CreatedBy, DateCreated, EditedBy, and DateEdited are system-generated fields.
  • Use VendorID as the key field for vendor records.