Approve plan suggestion set
curl --request POST \
--url https://api.interchange.io/api/v2/buyer/plan-suggestion-sets/{planSuggestionSetId}/approve \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.interchange.io/api/v2/buyer/plan-suggestion-sets/{planSuggestionSetId}/approve"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.interchange.io/api/v2/buyer/plan-suggestion-sets/{planSuggestionSetId}/approve', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"planSuggestionSetId": "<string>",
"status": "<string>"
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}Optimization Suggestions
Approve plan suggestion set
Approve a plan’s whole suggestion set, clearing every member media buy’s change to apply together. There is no partial approval: a member’s budget movement is one share of a transfer computed across the plan, so approving part of a set would create or destroy budget.
POST
/
plan-suggestion-sets
/
{planSuggestionSetId}
/
approve
Approve plan suggestion set
curl --request POST \
--url https://api.interchange.io/api/v2/buyer/plan-suggestion-sets/{planSuggestionSetId}/approve \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.interchange.io/api/v2/buyer/plan-suggestion-sets/{planSuggestionSetId}/approve"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.interchange.io/api/v2/buyer/plan-suggestion-sets/{planSuggestionSetId}/approve', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"planSuggestionSetId": "<string>",
"status": "<string>"
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}Authorizations
API key or access token
Path Parameters
Plan suggestion set id. Digits only, up to 18 characters — the underlying bigint id.
Pattern:
^[1-9][0-9]{0,17}$