Skip to main content
POST
/
affiliates
/
deals
Get All Deals
curl --request POST \
  --url https://api.eflow.team/v1/affiliates/deals \
  --header 'Content-Type: application/json' \
  --header 'X-Eflow-Api-Key: <api-key>' \
  --data '
{
  "network_offer_ids": [
    1,
    2,
    3
  ],
  "page": 1,
  "page_size": 50
}
'
{
  "deals": [
    {
      "network_advertiser_deal_id": 123,
      "name": "<string>",
      "brand_name": "<string>",
      "deal_type": "<string>",
      "deal_status": "<string>",
      "deal_categories": [
        "<string>"
      ],
      "coupon_code": "<string>",
      "discount_amount": 123,
      "discount_type": "<string>",
      "discount_currency": "<string>",
      "threshold_amount": 123,
      "threshold_type": "<string>",
      "purchase_limit_amount": 123,
      "purchase_limit_type": "<string>",
      "valid_from": "2023-11-07T05:31:56Z",
      "valid_to": "2023-11-07T05:31:56Z",
      "relationship": {
        "deal_resources": [
          {}
        ],
        "offers": [
          {
            "network_offer_id": 123,
            "name": "<string>"
          }
        ]
      }
    }
  ],
  "paging": {
    "page": 123,
    "page_size": 123,
    "total_count": 123
  }
}

Authorizations

X-Eflow-Api-Key
string
header
required

The affiliate's API key generated from the Affiliate Portal. Uses the X-Eflow-Api-Key header.

Body

application/json
network_offer_ids
integer[]

Optional list of offer IDs to filter deals by. If omitted, returns deals for all offers the affiliate can access.

page
integer
default:1

Page number for pagination (1-based).

page_size
integer
default:50

Number of results per page.

Response

200 - application/json

OK

deals
object[]

Array of deals matching the filter criteria.

paging
object

Pagination metadata.