> ## Documentation Index
> Fetch the complete documentation index at: https://docs.thanx.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Campaigns

> Returns active campaigns for a merchant

> [!NOTE]
>
> Scope required: `rewards.issue`

This endpoint returns all active partner-initiated campaigns for a given
merchant. Only campaigns created through the Partner API are returned.

### Parameters

**merchant\_id** `string` *required*

Merchant ID

<Snippet file="pagination/params.mdx" />

### Response

**id** `string`

Campaign ID

**name** `string`

Campaign name

**objective** `string`

Campaign objective

**start\_at** `datetime`

Campaign start date (ISO8601)

**end\_at** `datetime`

Campaign end date (ISO8601)

**redeemable\_from** `datetime`

Reward redemption start date (ISO8601)

**redeemable\_to** `datetime`

Reward redemption end date (ISO8601)

**retire\_after\_days** `integer`

Reward expiry measured in days from issuance, 1-999. Null when the campaign
has no relative expiry window.

**time\_zone** `string`

Campaign time zone

**fine\_print** `string`

Terms and conditions

**variants** `array`

Campaign variants

**variant**

**id** `string`

Variant ID

**name** `string`

Variant name

**reward\_template\_id** `string`

Reward template ID (null for control variants)

<Snippet file="pagination/response.mdx" />

```bash List Campaigns theme={null}
curl https://api.thanxsandbox.com/partner/campaigns?merchant_id={merchant_id} \
  -X GET \
  -H 'X-ClientId: {client_id}' \
  -H 'Accept-Version: v4.0' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer {access_token}'
```

```json Response Example theme={null}
{
  "campaigns": [
    {
      "id": "camp_abc123",
      "name": "Summer Free Coffee",
      "objective": "Re-engage lapsed customers",
      "start_at": "2025-06-01T00:00:00Z",
      "end_at": "2025-08-31T23:59:59Z",
      "redeemable_from": "2025-06-01T00:00:00Z",
      "redeemable_to": "2025-09-30T23:59:59Z",
      "retire_after_days": null,
      "time_zone": "America/Los_Angeles",
      "fine_print": "Limit one per customer",
      "variants": [
        {
          "id": "var_treat1",
          "name": "Treatment",
          "reward_template_id": "abc123def456"
        },
        {
          "id": "var_ctrl1",
          "name": "Control",
          "reward_template_id": null
        }
      ]
    }
  ],
  "pagination": {
    "current_page": 1,
    "per_page": 10,
    "total_pages": 1
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.