Retrieve a list of vendors

OData

P4W utilizes OData when querying database through API calls. Following example retrieves first 20 vendors, including assigned clients if applicable.

GET https://{tenant_name}.p4warehouse.com/odata/Vendor

Query Parameters

NameTypeDescription

$expand*

String

Client base

$orderby*

String

Vendor code

$top*

Integer

Number of vendors to retrieve

Use OData syntax (https://www.odata.org/documentation/) to personalize queries through API calls.

Example of OData query

https://{tenant_name}.p4warehouse.com/odata/Vendor
?$expand=Client($select=Id,Name)&$orderby=VendorCode&$top=20&$count=true