Fetching resources
Name | Value type | Description | Example |
---|---|---|---|
page | int | A page number within the paginated result set. | ?page=1 |
limit | int | Number of results to return per page. | ?limit=10 |
search | string | Returns all objects that contain the string in the specified lookup fields | ?search=advil |
ordering | string | Field name to order the results. Prefix the value with ’-’ to reverse results. | ?ordering=-created_at |
field-name | string | Filter results against the specified value. | ?ean_key=0123456 |
Building Vitau’s cart URL
Since there is no API interaction needed this is the simplest and quickest way to enable your customers to purchase the products they need! The pre-made cart is a feature we use at Vitau and several commercial alliances use to direct a patient directly to the checkout of the products they use. The base url is the following https://vitau.mx/carrito Sending the following query params:- productos: EANs of the products inside the cart, separated by commas
- cantidades: numbers separated by commas, indicating the amount of each product you wish to have in your cart, following the same order of productos.