GET
/
promo_codes
curl --request GET \
  --url https://v2.firstpromoter.com/api/v2/company/promo_codes \
  --header 'Account-ID: <account-id>' \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": 123,
    "code": "<string>",
    "reward": {
      "id": 123,
      "name": "<string>"
    },
    "ext_id": "<string>",
    "description": "<string>",
    "company_id": 123,
    "promoter_campaign_id": 123,
    "metadata": {},
    "details": {},
    "archived_at": "2023-11-07T05:31:56Z"
  }
]

Authorizations

Authorization
string
header
required

API key passed as a Bearer token in the Authorization header. You can find your API Key on Your FirstPromoter Dashboard. Navigate to Settings → Integrations section → Manage API Keys

Headers

Account-ID
string
required

Account id. You can find your Account ID on Your FirstPromoter Dashboard. Navigate to Settings → Integrations

Query Parameters

promoter_campaign_id
integer

Filters promo codes by promoter campaign id

Response

200
application/json

List of promo codes

The response is of type object[].