API ReferenceCampaigns
Get campaign coupons
Lists the flyer/promo codes for your campaign. Each row's `code` is the value to send as `coupon` when recording a tracking event. Scoped to your client — a campaign that is not yours returns an empty page.
Lists the flyer/promo codes for your campaign. Each row's code is the value to send as coupon when recording a tracking event. Scoped to your client — a campaign that is not yours returns an empty page.
Authorization
clientKey AuthorizationBearer <token>
Your Oppizi client key. Send it as Authorization: Bearer <client-key>. Scoped to your client account only.
In: header
Path Parameters
id*string
Campaign id (must belong to your client).
Query Parameters
first?integer
Page size 1..500 (default 50).
Range
1 <= value <= 500Default
50skip?integer
Page offset (default 0).
Default
0Response Body
application/json
application/json
curl -X GET "https://example.com/client/campaigns/string/coupons"{ "success": true, "data": { "nodes": [ { "id": "string", "code": "CHI-9114-014", "tag": "string", "item_type_id": "string", "campaign_id": "string", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" } ], "totalCount": 0 }}{ "success": false, "error": "Unauthorized"}