---
title: "Get offer discounts by offer id"
method: GET
path: "/offer/{offerId}/discounts"
tags: ["Offer"]
---

# Get offer discounts by offer id

`GET /offer/{offerId}/discounts`

## Request

- Base URL: `https://api3.autarc.energy/v1`
- URL: `https://api3.autarc.energy/v1/offer/{offerId}/discounts`
- Auth: API key in header `X-Api-Key`

Paginated live offer-level discounts of one offer ("Positionsdetails →
Rabatt"), in the order they apply (`index` ascending). Use these, not the
offer row's superseded `discount_type` / `percentage_discount` /
`absolute_discount_in_cent`. `GET /offer/{offerId}` stays the offer row only.

## Path parameters

- `offerId` string, uuid, required

## Query parameters

- `page` integer
- `limit` integer

## Response `200`

Paginated offer-level discounts of one offer

- object
  - `items` OfferDiscount[], required
    - `id` string, uuid
    - `offer_id` string, uuid
    - `company_id` string, uuid
    - `index` integer: Position of the discount; discounts apply in ascending order.
    - `name` string: Label shown on the offer, e.g. "Rabatt".
    - `discount_type` 'absolute' | 'percentage' | 'targetTotal' | 'null', nullable: `absolute`: `absolute_discount_in_cent` is the discount amount. `percentage`: `percentage_discount` percent of the running net. `targetTotal`: `absolute_discount_in_cent` is the net total the offer should land on; the discount is the running net minus that target.
    - `percentage_discount` number, nullable
    - `absolute_discount_in_cent` number, nullable
    - `max_discount_in_cent` number, nullable: Cap for the discount amount in cents, when set.
    - `created_at` string, date-time
    - `updated_at` string, date-time
    - `deleted_at` string, date-time, nullable
  - `metadata` object, required
    - `page` integer, required: Current page number
    - `limit` integer, required: Number of discounts per page
    - `total` integer, required: Total number of discounts

## Other responses

- `400`: Invalid request — missing or malformed fields, unsupported mime type or fileType, or empty file.
- `404`: The specified resource was not found

---

[API](https://skmtc.dev/autarc/apis/autarc-2-0-api.md) - [All operations](https://skmtc.dev/autarc/apis/autarc-2-0-api/llms.txt) - [OpenAPI document](https://skmtc.dev/autarc/apis/autarc-2-0-api/revisions/adfb20a40efc?raw)
