---
title: "Query coupons"
method: POST
path: "/coupons/search"
tags: ["Coupons"]
---

# Query coupons

`POST /coupons/search`

Use when listing or searching coupons (e.g. promo management). Returns a paginated list; supports filtering and sorting.

## Request body

- TypesCouponFilter
  - `coupon_codes` string[]
  - `coupon_ids` string[]
  - `expand` string
  - `filters` TypesFilterCondition[]
    - `data_type` 'string' | 'number' | 'date' | 'array'
    - `field` string
    - `operator` 'eq' | 'contains' | 'not_contains' | 'gt' | 'lt' | 'gte' | 'in' | 'not_in' | 'before' | 'after'
    - `value` TypesValue
      - `array` string[]
      - `boolean` boolean
      - `date` string
      - `number` number
      - `string` string
  - `limit` integer
  - `offset` integer
  - `order` 'asc' | 'desc'
  - `sort` TypesSortCondition[]
    - `direction` 'asc' | 'desc'
    - `field` string
  - `status` 'published' | 'deleted' | 'archived'

## Response `200`

OK

- ListCouponsResponse
  - `items` CouponResponse[]
    - `amount_off` string
    - `cadence` 'once' | 'repeated' | 'forever'
    - `coupon_code` string
    - `created_at` string, date-time
    - `created_by` string
    - `currency` string
    - `duration_in_periods` integer
    - `environment_id` string
    - `id` string
    - `max_redemptions` integer
    - `metadata` object
    - `name` string
    - `percentage_off` string
    - `redeem_after` string
    - `redeem_before` string
    - `rules` object
    - `status` 'published' | 'deleted' | 'archived'
    - `tenant_id` string
    - `total_redemptions` integer
    - `type` 'fixed' | 'percentage'
    - `updated_at` string, date-time
    - `updated_by` string
  - `pagination` TypesPaginationResponse
    - `limit` integer
    - `offset` integer
    - `total` integer

## Other responses

- `400` — Invalid request
- `500` — Server error

---

[API](https://skmtc.net/flexprice/apis/flexprice-api.md) · [All operations](https://skmtc.net/flexprice/apis/flexprice-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/flexprice/flexprice-api/revisions/562f13cf61dd/schema)
