---
title: "Cart rule condition attributes"
method: GET
path: "/marketing/cart-rules/condition-attributes"
tags: ["Admin Marketing: Promotions"]
---

# Cart rule condition attributes

`GET /marketing/cart-rules/condition-attributes`

## Request

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

Every attribute a condition can test, grouped as on the admin form, each with its `type` and selectable `options`, plus the operators each type accepts. Build `conditions` entries as `{ attribute: key, operator, value, attribute_type: type }`.

## Response `200`

Condition attributes and operators.

## Other responses

- `401`: Unauthenticated.
- `403`: No permission.

## Changes

- **2026-10-28** `3198f11be70f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/bagisto/apis/bagisto-admin-api/changes/marketing/cart-rules/condition-attributes/get.md)

---

[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)
