billing
Redeem ad credits
Changed onRedeem ads credit on behalf of the ad account id and apply it towards billing.
This endpoint might not be available to all apps. Learn more.
post/ad_accounts/{ad_account_id}/ads_credit/redeem
Request
- Base URLhttps://api.pinterest.com/v5
- AuthOAuth 2Authorization codehttps://www.pinterest.com/oauth/Token URLhttps://api.pinterest.com/v5/oauth/tokenScopesads:write, billing:write
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
ad_account_idstring required
Unique identifier of an ad account.
Request body
Example request
{
"offerCodeHash": "138e9e0ff7e38cf511b880975eb574c09aa9d5e1657590ab0431040da68caa67",
"validateOnly": true
}Response
The request has succeeded.
Example response
{
"offerCodeHash": "138e9e0ff7e38cf511b880975eb574c09aa9d5e1657590ab0431040da68caa67",
"validateOnly": true,
"success": false,
"errorCode": 2708,
"errorMessage": "The offer has already been redeemed by this advertiser"
}Changes
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
the response optional property
became read-only for the status - info
the response optional property
became read-only for the status - info
the response optional property
became read-only for the status - info
added the success response with the status
- info
- info
endpoint added
- info