You can add URL parameters to your API requests to filter and refine the results returned by the API. This allows you to retrieve only the specific data you need.
https://www.venddor.com.br/api/resource?filter1=value1&filter2=value2
You can specify filters by adding URL parameters that match object field names and their desired values.
This example retrieves all products with non-free shipping.
curl --user admin@example.com:APIkey -X GET 'https://www.venddor.com.br/api/products?free_shipping=N'
You can combine multiple conditions by adding several URL parameters, separated by the &
character.
This example retrieves all downloadable products (is_edp=Y) associated with company ID 1.
curl --user admin@example.com:APIkey -X GET 'https://www.venddor.com.br/api/products?is_edp=Y&company_id=1'
The API response will contain:
products
key)search
keyerror
object will be returned instead{ "products": { "15": { "product_id": "15", "product": "Product Name", "company_id": "1", "is_edp": "Y", "price": "29.99" // Other product fields... }, "22": { // Another matching product... } }, "search": { "is_edp": "Y", "company_id": "1" } }