The Vitau API is organized around REST. Our API receives and returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs. To authenticate the client each request must provide its personal API KEY. Clients are trusted to safeguard the key.Documentation Index
Fetch the complete documentation index at: https://docs.vitau.mx/llms.txt
Use this file to discover all available pages before exploring further.
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.