Cliquéalo for developers

Inventory

Read your published cars, add them, change them, archive them, and report which other platforms they're on.

Read your inventory

GET /inventario (permission inventario:leer) lists your dealership's published cars.

curl "https://www.cliquealo.mx/api/v1/inventario?limit=48&marca=nissan&orden=precio_asc&lang=en" \
  -H "x-cliquealo-api-key: $CLIQUEALO_API_KEY"
{ "ok": true, "limit": 48, "offset": 0, "total": 48, "publicaciones": [ { "slug": "nissan-versa-2021", "titulo": "Nissan Versa 2021", "precio_centavos": "23900000", "moneda": "MXN" } ] }

Filters (all optional; an empty or invalid value is ignored):

ParameterWhat it filters
qFree search: make, model, title, neighborhood, ZIP code, city, or state
marcaMake in lowercase with hyphens, for example nissan or mercedes-benz
carroceria, transmision, combustibleCodes from the catalog
entidadTwo-digit state code, for example 14 (Jalisco)
ciudadState and municipality: 14:039 (Guadalajara)
anioMin, anioMax, precioMinMxn, precioMaxMxnYear and price ranges (pesos)
financiamiento=trueOnly cars with financing available
ordenrelevancia, recientes, precio_asc, precio_desc, or anio_desc
langes or en: title and description in English when the car has a translation
platform and statusTogether: cars with that status on another platform; status=pending is what's still to publish there

Paginating

limit goes from 1 to 48 (12 by default) and offset from 0. total is how many cars came in this page, not the size of your inventory: keep requesting with offset + limit until total is less than limit.

A car's details

GET /inventario/{slug} returns everything in the list plus description, color, body type, transmission, fuel, features, publish date, and every photo (url, plus w400 and w800 when resized versions exist). A car that doesn't exist, isn't published, or belongs to another dealership responds the same way: 404 «Publicación no encontrada.».

Add a car

POST /inventario (permission inventario:escribir) creates the car as a draft, under whoever created the key (or the dealership owner if that person is gone). It isn't shown on the site and doesn't use a spot in your plan until someone publishes it from the panel.

curl https://www.cliquealo.mx/api/v1/inventario \
  -H "x-cliquealo-api-key: $CLIQUEALO_API_KEY" -H "content-type: application/json" \
  -d '{"marca":"Toyota","modelo":"Corolla","anio":2023,"precio_centavos":35000000,"moneda":"MXN","codigo_postal":"44600","fotos":["https://your-system.com/photos/1.jpg"]}'
{ "ok": true, "id": "…", "slug": "toyota-corolla-2023", "estado": "borrador", "marca": "Toyota", "modelo": "Corolla", "fotos_en_cola": 1 }
  • Required: marca, modelo, anio, precio_centavos (100 cents = 1 peso), and moneda (MXN or USD).
  • Optional: kilometraje, color, carroceria, transmision, combustible, version, puertas, descripcion, codigo_postal, colonia, and fotos. A field that doesn't exist responds 400 campo_desconocido.
  • Makes, models, colors, body types, transmissions, and fuels that aren't in the catalog are recognized ("VW" is Volkswagen) or added. The response says how they ended up.
  • codigo_postal sets the state, city, and neighborhood. Without it, the car takes your dealership's location.
  • fotos: up to 50 public https URLs, JPG, PNG, or WebP up to 12 MB. They're downloaded in the background in that order; one that can't be downloaded is skipped.

A draft doesn't show up in reads

GET /inventario and GET /inventario/{slug} only see published cars. To confirm a new car, use the POST response.

Change a car

PUT /inventario/{slug} changes only what you send among precio_centavos, kilometraje, color, version, puertas, and descripcion. null or empty text clears version, puertas, or descripcion. Make and model can't change (400 campo_no_editable): if it's another car, add it. An archived car responds 409 archivada.

Archive a car

DELETE /inventario/{slug} archives the car: it stops showing on the site and isn't deleted. Repeating it responds 200. If your dealership's agreement doesn't allow removing cars with interested buyers, it responds 409 retiro_no_permitido with the reason.

Other platforms

With the plataformas:reportar permission, your system reports which other platforms it published each of your cars on and looks it up later:

curl https://www.cliquealo.mx/api/v1/inventario/toyota-corolla-2023/publicaciones \
  -H "x-cliquealo-api-key: $CLIQUEALO_API_KEY" -H "content-type: application/json" \
  -d '{"platform":"mercadolibre_manual","status":"published","external_id":"MLM123","external_url":"https://auto.mercadolibre.com.mx/MLM-123"}'

platform is facebook_marketplace or mercadolibre_manual; status is pending, published, failed (with error), or removed. GET on the same route returns what was reported.

Previous routes

/listings, /listings/{slug}, and /listings/{slug}/mark-published still respond the same way, with the Deprecation, Sunset, and Link headers pointing to the new route. They stop responding after February 24, 2027.