GET /api/v1/carts/{id} — Returns one open cart by id, with its items. Names and prices read from the LIVE catalog: a cart freezes nothing, and 'amount' is a reference figure for prioritizing recovery, not what the buyer would pay.

API
GET/api/v1/carts/{id}

Obtener un carrito

Requiere token Bearer

Devuelve un carrito abierto por su id, con sus ítems. Los nombres y precios son los del catálogo VIVO: un carrito no congela nada, y el 'amount' es una referencia para priorizar la recuperación, no lo que pagaría el comprador.

Parámetros de ruta

NombreTipoRequeridoDescripción
idstringSíID numérico del carrito, tal como lo devuelve el listado de carritos.

Respuesta

json
{
  "id": "3312",
  "customer_id": "8801",
  "customer_name": "Empresa S.A.",
  "customer_email": "compras@empresa.com",
  "notes": "Confirmar stock antes de facturar",
  "reminder_sent_at": "2026-05-14T09:00:00Z",
  "last_activity_at": "2026-05-15T12:00:00Z",
  "item_count": 4,
  "amount": 18000.0,
  "items": [
    {
      "product_id": "9201",
      "name": "Remera Premium",
      "option_id": "555",
      "option_name": "Azul / M",
      "sku": "REM-001-AZ-M",
      "quantity": 3,
      "price": 4500.0
    }
  ]
}

Código

bash
curl -X GET 'https://tu-tienda.com/api/v1/carts/{id}' \
  -H 'Authorization: Bearer YOUR_TOKEN'

Probá el endpoint

https://tu-tienda.com/api/v1/carts/%7Bid%7D
Necesitás un token para probar los endpoints. Generalo desde Configuración → ERP → API Token.