---
title: "Get Deal By ID"
method: GET
path: "/affiliates/offers/{offerId}/deals/{dealId}"
tags: ["Affiliate Deals"]
---

# Get Deal By ID

`GET /affiliates/offers/{offerId}/deals/{dealId}`

## Request

- Base URL: `https://api.eflow.team/v1`
- URL: `https://api.eflow.team/v1/affiliates/offers/{offerId}/deals/{dealId}`
- Auth: API key in header `X-Eflow-Api-Key`
- TypeScript: <https://skmtc.dev/everflow/apis/everflow-network-api-tracking-domains/docs/affiliates/offers/:offerId/deals/:dealId/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `offerId` integer, required
- `dealId` integer, required

## Query parameters

- `locations` boolean
- `products` boolean
- `resources` boolean
- `trackings` boolean

## Response `200`

- object
  - `network_advertiser_deal_id` integer, required: Unique identifier for the deal.
  - `network_id` integer: Network ID the deal belongs to.
  - `name` string, required: Deal name.
  - `description` string: Deal description.
  - `brand_name` string: Brand associated with the deal.
  - `deal_type` string, required: Type of deal (e.g. coupon, promotion, sale).
  - `deal_status` string, required: Current status of the deal (active, paused, expired).
  - `deal_categories` string[], required: Categories assigned to the deal.
  - `scope` string: Scope of the deal.
  - `restrictions` string: Any restrictions that apply to the deal.
  - `coupon_code` string: Coupon code associated with the deal, if applicable.
  - `coupon_code_discount_amount` number: Flat discount amount for the coupon code.
  - `coupon_code_discount_percentage` number: Percentage discount for the coupon code.
  - `coupon_code_discount_currency_id` string: Currency ID for the coupon code discount amount.
  - `threshold_amount` number: Minimum purchase amount threshold to activate the deal.
  - `threshold_amount_currency_id` string: Currency ID for the threshold amount.
  - `threshold_quantity` integer: Minimum quantity threshold to activate the deal.
  - `purchase_limit_amount` number: Maximum purchase amount for the deal.
  - `purchase_limit_amount_currency_id` string: Currency ID for the purchase limit amount.
  - `purchase_limit_quantity` integer: Maximum quantity limit for the deal.
  - `date_valid_from` integer: Start date and time when the deal becomes valid.
  - `date_valid_to` integer: End date and time when the deal expires.
  - `date_valid_timezone_id` integer: Timezone ID for the deal validity dates.
  - `time_created` integer: Unix timestamp when the deal was created.
  - `time_saved` integer: Unix timestamp when the deal was last saved.
  - `time_deleted` integer: Unix timestamp when the deal was deleted. 0 if not deleted.
  - `relationship` object: Related entities for this deal. May be empty if no data exists for the requested relationship types.
    - `locations` object[]: Location restrictions (only if requested).
    - `products` object[]: Associated products (only if requested).
    - `resources` object[]: Deal resources (only if requested).
    - `trackings` object[]: Tracking configurations (only if requested).

## Other responses

- `404`: Deal not found or not visible to the authenticated affiliate.

---

[API](https://skmtc.dev/everflow/apis/everflow-network-api-tracking-domains.md) - [All operations](https://skmtc.dev/everflow/apis/everflow-network-api-tracking-domains/llms.txt) - [OpenAPI document](https://skmtc.dev/everflow/apis/everflow-network-api-tracking-domains/revisions/39242cee0e32?raw)
