---
title: "Cart rule detail"
method: GET
path: "/marketing/cart-rules/{id}"
tags: ["Admin Marketing: Promotions"]
---

# Cart rule detail

`GET /marketing/cart-rules/{id}`

## Request

- Base URL: `http://localhost:8000/api/admin`
- URL: `http://localhost:8000/api/admin/marketing/cart-rules/{id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/bagisto/apis/bagisto-admin-api/docs/marketing/cart-rules/:id/get.ts> (a function with typed inputs; its response is checked against the schema)

Cart rule detail

## Path parameters

- `id` integer, required

## Response `200`

Single cart rule with conditions, channels and customerGroups (object arrays) resolved.

## Other responses

- `404`: Cart rule not found.

---

[API](https://skmtc.dev/bagisto/apis/bagisto-admin-api.md) - [All operations](https://skmtc.dev/bagisto/apis/bagisto-admin-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bagisto/apis/bagisto-admin-api/revisions/3198f11be70f?raw)
