Vendors
Get the list of Vendors
Path
GET /odata/Vendors
Description
Returns the paged list of existing Vendors within a logged organization. You can filter the results by the strict match using the $filter
parameter–entity eq ‘string’. Or filter the results by the partial match using $filter
=contains parameter–contains(entity, ‘string’).
Request parameters
Parameter |
Explanation |
---|---|
api-version: string default: 1.0 in header |
The requested API version. |
$search: string in query |
Picks the value in all possible fields. |
$filter: string in query |
Filters the results, based on a Boolean condition. |
$orderby: string in query |
Sorts the results. |
$top: string in query |
Returns only the first n results. |
$skip: string in query |
Skips the first n results. |
Authorization: string default: Bearer access_token in header |
Specify the type of the token (bearer) and then insert the access_token , which was obtained during authentication. |
Responses
Response |
Explanation |
---|---|
200 OK | OK |
400 Bad Request | Incorrect input data or organization ID does not match with the organization ID user is logged in. |
400 Bad Request | The limit for the $top query has been exceeded. The value from the incoming request is 'N' (N is your value from the request). You can find the data on the current limit here. |
401 Unauthorized | Incorrect specified access_token or access_token got expired. |
403 Forbidden | User doesn’t have appropriate privileges. |
500 Internal Server Error | Server encountered an unexpected condition that prevented it from fulfilling the request. |
Properties
Property |
Explanation |
---|---|
vendorId: string (uuid) | Unique Identifier of the Vendor |
vendorNo: string | Code of the Supplier who sells products |
vendorName: string | Name of the Vendor |
organizationId: string (uuid) | Unique Identifier of the Organization |
organizationNo: string | Indentification Number of the Organization |
organizationName: string | Name of the Organization |
vendorNotes: string | Comments concerning the Vendor |
dateAdded: string (date-time) | Date when the Vendor was added |
addedBy: string (uuid) | Unique Identifier of the user who added the Vendor |
addedByName: string | Name of the user who added the Vendor |
lastUpdated: string (date-time) | Last Date when the Vendor was updated |
lastUpdatedBy: string (uuid) | Unique Identifier of the last user who updated the Vendor |
lastUpdatedByName: string | Name of the last user who updated the Vendor |
activeStatus: boolean | Is the Vendor active or not? |
url: string | Uniform Resource Locator |
systemVendorName: string | Name of the System Vendor |
ediVendorNo: string | Code of the Supplier EDI who sells products |
Response Content-types: APPLICATION/JSON, APPLICATION/XML
Response example (200 OK)
Response example (200 OK)
{
"items": [
{
"vendorId": "00000000-0000-0000-0000-000000000000",
"vendorNo": "string",
"vendorName": "string",
"organizationId": "00000000-0000-0000-0000-000000000000",
"organizationNo": "string",
"organizationName": "string",
"vendorNotes": "string",
"dateAdded": "string (date-time)",
"addedBy": "00000000-0000-0000-0000-000000000000",
"addedByName": "string",
"lastUpdated": "string (date-time)",
"lastUpdatedBy": "00000000-0000-0000-0000-000000000000",
"lastUpdatedByName": "string",
"activeStatus": "boolean",
"url": "string",
"systemVendorName": "string",
"ediVendorNo": "string"
}
],
"nextPageLink": "string",
"count": "integer (int64)"
}
Get the specified Vendor
Path
GET /odata/Vendors({vendorId})
Description
Returns the details of the Vendor specified by ID.
Request body
Parameter |
Explanation |
---|---|
vendorId: string (uuid) required in path |
Enter the ID of the Vendor here. |
api-version: string default: 1.0 in header |
The requested API version. |
Authorization: string default: Bearer access_token in header |
Specify the type of the token (bearer) and then insert the access_token , which was obtained during authentication. |
Responses
Response |
Explanation |
---|---|
200 OK | OK |
400 Bad Request | Incorrect input data or organization ID does not match with the organization ID user is logged in. |
401 Unauthorized | Incorrect specified access_token or access_token got expired. |
403 Forbidden | User doesn’t have appropriate privileges. |
404 Not Found | Specified ID is absent in the system. |
500 Internal Server Error | Server encountered an unexpected condition that prevented it from fulfilling the request. |
Properties
Property |
Explanation |
---|---|
vendorId: string (uuid) | Unique Identifier of the Vendor |
vendorNo: string | Code of the Supplier who sells products |
vendorName: string | Name of the Vendor |
organizationId: string (uuid) | Unique Identifier of the Organization |
organizationNo: string | Indentification Number of the Organization |
organizationName: string | Name of the Organization |
vendorNotes: string | Comments concerning the Vendor |
dateAdded: string (date-time) | Date when the Vendor was added |
addedBy: string (uuid) | Unique Identifier of the user who added the Vendor |
addedByName: string | Name of the user who added the Vendor |
lastUpdated: string (date-time) | Last Date when the Vendor was updated |
lastUpdatedBy: string (uuid) | Unique Identifier of the last user who updated the Vendor |
lastUpdatedByName: string | Name of the last user who updated the Vendor |
activeStatus: boolean | Is the Vendor active or not? |
url: string | Uniform Resource Locator |
systemVendorName: string | Name of the System Vendor |
ediVendorNo: string | Code of the Supplier EDI who sells products |
Response Content-types: APPLICATION/JSON, APPLICATION/XML
Response example (200 OK)
Response example (200 OK)
{
"vendorId": "00000000-0000-0000-0000-000000000000",
"vendorNo": "string",
"vendorName": "string",
"organizationId": "00000000-0000-0000-0000-000000000000",
"organizationNo": "string",
"organizationName": "string",
"vendorNotes": "string",
"dateAdded": "string (date-time)",
"addedBy": "00000000-0000-0000-0000-000000000000",
"addedByName": "string",
"lastUpdated": "string (date-time)",
"lastUpdatedBy": "00000000-0000-0000-0000-000000000000",
"lastUpdatedByName": "string",
"activeStatus": "boolean",
"url": "string",
"systemVendorName": "string",
"ediVendorNo": "string"
}
Get the list of Vendors
Path
POST /odata/Vendors/GetVendorsInfo(facilityId={facilityId})
Description
Returns the details of the predefined Vendor(s) within the Facility specified by ID.
Request body
Enter the value of the vendor(s) from the existing template.
Request parameters
Parameter |
Explanation |
---|---|
facilityId: string (uuid) required in path |
Enter the ID of the Facility. |
api-version: string default: 1.0 in header |
The requested API version. |
Authorization: string default: Bearer access_token in header |
Specify the type of the token (bearer) and then insert the access_token , which was obtained during authentication. |
Request Content-types: APPLICATION/JSON, APPLICATION/XML
Request Example
Request Example
{
"value": ["00000000-0000-0000-0000-000000000000"]
}
Responses
Response |
Explanation |
---|---|
200 OK | OK |
400 Bad Request | Incorrect input data or organization ID does not match with the organization ID user is logged in. |
401 Unauthorized | Incorrect specified access_token or access_token got expired. |
403 Forbidden | User doesn’t have appropriate privileges. |
500 Internal Server Error | Server encountered an unexpected condition that prevented it from fulfilling the request. |
Properties
Property |
Explanation |
---|---|
vendorId: string (uuid) | Unique Identifier of the Vendor |
vendorName: string | Name of the Vendor |
vendorNo: string | Code of the Supplier who sells products |
address1: string | The first Address for shipping or billing purposes |
address2: string | The second Address for shipping or billing purposes |
city: string | City |
state: string | State |
zip: string | Zip |
country: string | Country |
url: string | Uniform Resource Locator |
accountNumber: string | Number of the Vendor Account |
activeStatus: boolean | Is the Vendor active or not? |
lastUpdated: string (date-time) | Last Date when the Vendor was updated |
leadTime: integer (int32) | Allowed Time for the Completion |
Response Content-types: APPLICATION/JSON, APPLICATION/XML
Response example (200 OK)
Response example (200 OK)
[
{
"vendorId": "00000000-0000-0000-0000-000000000000",
"vendorName": "string",
"vendorNo": "string",
"address1": "string",
"address2": "string",
"city": "string",
"state": "string",
"zip": "string",
"country": "string",
"url": "string",
"accountNumber": "string",
"activeStatus": "boolean",
"lastUpdated": "string (date-time)",
"leadTime": "integer (int32)"
}
]