---
title: "List discounts"
method: GET
path: "/draft_trips/{trip_uuid}/discounts"
tags: ["Discounts"]
---

# List discounts

`GET /draft_trips/{trip_uuid}/discounts`

## Request

- Base URL: `https://api.wetravel.com/v2`
- URL: `https://api.wetravel.com/v2/draft_trips/{trip_uuid}/discounts`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-Api-Key`

Get Discounts

## Path parameters

- `trip_uuid` string, required

## Response `200`

Get Discounts

- object
  - `data` Discount[]
    - `id` string: ID of the discount code
    - `name` string, required: Name of the discount code
    - `amount` integer, required: Amount of the discount code
    - `quantity` integer: How many times this discount code can be used. You can set it to null for "unlimited" value. (NOTE: setting "null" value is not possible in this editor)
    - `discount_type` 'amount' | 'percentage', required: Type of discount code
    - `duration` object: Discount duration details
      - `duration_reference` 'trip_start_date' | 'absolute', required: Reference for applying offsets or selecting dates. If `trip_start_date` is selected, the discount will be applied based on the start date of the trip. Either `start_offset_days` or `end_offset_days` must be provided. If `absolute` is selected, the discount will be applied based on the absolute start and end dates provided. Either `start_date` or `end_date` must be provided.
      - `start_date` string, date: Start date of the discount.
      - `end_date` string, date: End date of the discount
      - `start_offset_days` integer: Number of days before the reference to start the discount
      - `end_offset_days` integer: Number of days before the reference to end the discount
    - `created_at` integer: Time at which the object was created. Measured in seconds since the Unix epoch.

---

[API](https://skmtc.dev/wetravel/apis/trips-builder-api.md) - [All operations](https://skmtc.dev/wetravel/apis/trips-builder-api/llms.txt) - [OpenAPI document](https://skmtc.dev/wetravel/apis/trips-builder-api/revisions/57bdbcf06273?raw)
