{
"opencollection": "1.0.0",
"info": {
"name": "Pinterest Discounts API",
"version": "5.13.0"
},
"items": [
{
"info": {
"name": "Discounts",
"type": "folder"
},
"items": [
{
"info": {
"name": "Get ads credit discounts",
"type": "http"
},
"http": {
"method": "GET",
"url": "https://api.pinterest.com/v5/ad_accounts/:ad_account_id/ads_credit/discounts",
"params": [
{
"name": "ad_account_id",
"value": "",
"type": "path",
"description": "Unique identifier of an ad account."
},
{
"name": "bookmark",
"value": "",
"type": "query",
"description": "Cursor used to fetch the next page of items"
},
{
"name": "page_size",
"value": "",
"type": "query",
"description": "Maximum number of items to include in a single page of the response. See documentation on Pagination for more information."
}
],
"auth": {
"type": "oauth2",
"flow": "authorization_code",
"authorizationUrl": "https://www.pinterest.com/oauth/",
"accessTokenUrl": "https://api.pinterest.com/v5/oauth/token",
"credentials": {
"clientId": "{{clientId}}",
"clientSecret": "{{clientSecret}}"
}
}
},
"docs": "Returns the list of discounts applied to the account.\n\nThis endpoint might not be available to all apps. Learn more."
}
]
}
],
"bundled": true
}