v1
latestOpenAPI 3.0.02026-08-062903562.2 MBPromo Code
listCampaignPromoCodes
Retrieves a list of all Promo Codes made for the specified Campaign
get/campaigns/{campaign}/promo-codes
Path parameters
campaigninteger required
Example:227362
Primary identifier of specified Campaign
Query parameters
pageinteger
Example:1
Indicator of which page of results to return
per_pageinteger
Example:20
Number of entries to return in each page of results
Response
Success
Example response
{
"current_page": 1,
"data": [
{
"adjustment_amount": 10,
"adjustment_type": "percentage",
"applications_count": 22,
"code": "TENPERCENTOFF",
"ends_at": "2021-04-23T08:23:21Z",
"id": 8273,
"is_active": true,
"quantity": 100,
"starts_at": "2021-04-23T08:23:21Z",
"updated_at": "2021-04-23T10:25:03Z",
"campaign_id": 227362
}
],
"first_page_url": "{host}/campaigns/227362/promo-codes?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "https://pro.gofundme.com/api/2.0/resource?page=1",
"next_page_url": "https://pro.gofundme.com/api/2.0/resource?page=2",
"path": "https://pro.gofundme.com/api/2.0/resource",
"per_page": 20,
"prev_page_url": "https://pro.gofundme.com/api/2.0/resource?page=1",
"links": [
{
"label": "1",
"url": "{host}/{resource}?page=1",
"active": true
}
],
"to": 1,
"total": 1
}