Skip to main content
GET
/
cart
/
{store_id}
Ver Carrinho
curl --request GET \
  --url https://api.example.com/cart/{store_id}
{
  "cart_id": "cart_001",
  "store_id": "store_001",
  "items": [
    {
      "product_uid": "prd_001",
      "product_name": "Pizza Margherita",
      "quantity": 1,
      "points_cost": 200,
      "image_url": "https://..."
    }
  ],
  "total_points": 200,
  "user_balance": 350,
  "can_checkout": true
}

Ver Carrinho

Retorna o carrinho de compras do usuário em um estabelecimento.

Path Parameters

store_id
string
required
ID do estabelecimento

Request

curl -X GET "https://api.indiqai.com/api/v1/cart/store_001" \
  -H "Authorization: Bearer <token>"

Response

{
  "cart_id": "cart_001",
  "store_id": "store_001",
  "items": [
    {
      "product_uid": "prd_001",
      "product_name": "Pizza Margherita",
      "quantity": 1,
      "points_cost": 200,
      "image_url": "https://..."
    }
  ],
  "total_points": 200,
  "user_balance": 350,
  "can_checkout": true
}