GET
/
promo_codes
/
{id}
curl --request GET \
  --url https://v2.firstpromoter.com/api/v2/company/promo_codes/{id} \
  --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

Access token passed as a Bearer token in the Authorization header

Headers

Account-ID
string
required

Account identifier that specifies which account is making the request

Example:

"acc_123456"

Path Parameters

id
integer
required

ID of the promo code

Response

200
application/json
Promo code details

The response is of type object.