List per-buyer media-buy auto-approve overrides
curl --request GET \
--url https://api.interchange.io/api/v2/storefront/buyer-auto-approvals \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.interchange.io/api/v2/storefront/buyer-auto-approvals"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.interchange.io/api/v2/storefront/buyer-auto-approvals', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"items": [
{
"id": "42",
"storefrontId": "1234",
"buyerCustomerId": 804,
"buyerName": "Coca-Cola",
"autoApproveEnabled": true,
"reason": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"createdBy": "<string>",
"createdByCustomerId": 123,
"updatedByCustomerId": 123,
"policyBypassCount": 0,
"lastPolicyBypassAt": "2023-11-07T05:31:56Z"
}
],
"total": 4503599627370495,
"eligibleBuyers": [
{
"buyerCustomerId": 804,
"buyerName": "Coca-Cola",
"mediaBuyCount": 12,
"lastMediaBuyAt": "2023-11-07T05:31:56Z"
}
]
}{
"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": {}
}
}Storefront
List per-buyer media-buy auto-approve overrides
List the per-buyer media-buy auto-approve overrides on the storefront (enabled and disabled rows), with each buyer’s resolved name.
GET
/
buyer-auto-approvals
List per-buyer media-buy auto-approve overrides
curl --request GET \
--url https://api.interchange.io/api/v2/storefront/buyer-auto-approvals \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.interchange.io/api/v2/storefront/buyer-auto-approvals"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.interchange.io/api/v2/storefront/buyer-auto-approvals', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"items": [
{
"id": "42",
"storefrontId": "1234",
"buyerCustomerId": 804,
"buyerName": "Coca-Cola",
"autoApproveEnabled": true,
"reason": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"createdBy": "<string>",
"createdByCustomerId": 123,
"updatedByCustomerId": 123,
"policyBypassCount": 0,
"lastPolicyBypassAt": "2023-11-07T05:31:56Z"
}
],
"total": 4503599627370495,
"eligibleBuyers": [
{
"buyerCustomerId": 804,
"buyerName": "Coca-Cola",
"mediaBuyCount": 12,
"lastMediaBuyAt": "2023-11-07T05:31:56Z"
}
]
}{
"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
Response
List per-buyer media-buy auto-approve overrides
Per-buyer media-buy auto-approve overrides plus the storefront-scoped buyers eligible for a new override.
Show child attributes
Show child attributes
Required range:
0 <= x <= 9007199254740991Every buyer known to this storefront through submitted media buys. Includes buyers with existing enabled or disabled overrides so clients can reconcile the complete trust roster.
Show child attributes
Show child attributes