---
title: "List the business's promo codes, newest first, each with how many bookings have used it"
method: GET
path: "/promo_codes"
tags: ["promo_codes"]
---

# List the business's promo codes, newest first, each with how many bookings have used it

`GET /promo_codes`

## Request

- Base URL: `https://daybag.io/api/v1`
- URL: `https://daybag.io/api/v1/promo_codes`
- Auth: HTTP bearer

## Response `200`

Success

- object
  - `data` object[], required
    - `id` string, required
    - `org_id` string, required
    - `code` string, required: As guests give it, upper-cased: 3 to 20 letters, digits and dashes
    - `percent_off` integer, nullable, required: Percent off a booking's total, 1 to 100; null when it takes an amount off
    - `amount_off` integer, nullable, required: Off a booking's total, in the currency's minor units (cents; whole yen for zero-decimal currencies), never below zero; null when it takes a percent off
    - `offering_id` string, nullable, required: The one offering it's for; null for any offering
    - `max_uses` integer, nullable, required: How many bookings may use it; null for no limit
    - `uses` integer, required: Bookings made with it
    - `starts_at` string, nullable, required: ISO 8601 timestamp (UTC)
    - `ends_at` string, nullable, required: ISO 8601 timestamp (UTC)
    - `active` boolean, required: false: switched off, it can't be used
    - `created_at` string, required: ISO 8601 timestamp (UTC)

## Other responses

- `default`: Error

---

[API](https://skmtc.dev/daybag/apis/daybooked-io-api.md) · [All operations](https://skmtc.dev/daybag/apis/daybooked-io-api/llms.txt) · [OpenAPI document](https://skmtc.dev/daybag/apis/daybooked-io-api/revisions/1f576dead370?raw)
