Vendor Contacts
Retrieve and manage vendor contact records.
| Field | Data Type | POST | PATCH |
|---|---|---|---|
| VendorContactId | Int32 | X | X |
| VendorID | String | X | X |
| Priority | Int32 | X | X |
| Name | String | X | X |
| Title | String | X | X |
| WorkPhone | String | X | X |
| CellPhone | String | X | X |
| Fax | String | X | X |
| String | X | X | |
| PreferredOrderMethod | String | X | X |
Key: VendorContactId, VendorID, Priority, Name
Endpoints
GET
URL: https://{site}.mvpplant.com/ODataApi/v1/VendorContacts
Description: Retrieve vendor contact records.
POST
URL: https://{site}.mvpplant.com/ODataApi/v1/VendorContacts
Description: Create a vendor contact record.
Body: Send the property values marked in the POST column.
PATCH
URL: https://{site}.mvpplant.com/ODataApi/v1/VendorContacts(VendorContactId=vendorContactId,VendorID='vendorID',Priority=priority,Name='name')
Description: Update an existing vendor contact 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/VendorContacts?$select=VendorID,Name,Title,EMail -
Sort by vendor and priority:
https://{site}.mvpplant.com/ODataApi/v1/VendorContacts?$orderby=VendorID,Priority -
Return the first 10 records:
https://{site}.mvpplant.com/ODataApi/v1/VendorContacts?$top=10
Notes
- Use the composite key
VendorContactId,VendorID,Priority, andNameto identify a vendor contact record.
