Mark all notifications as read
curl --request POST \
--url https://api.interchange.io/api/v2/storefront/notifications/read-all \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"brandAgentId": 123
}
'import requests
url = "https://api.interchange.io/api/v2/storefront/notifications/read-all"
payload = { "brandAgentId": 123 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({brandAgentId: 123})
};
fetch('https://api.interchange.io/api/v2/storefront/notifications/read-all', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"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": {}
}
}Notifications
Mark all notifications as read
Mark all notifications as read for the authenticated user. Optionally scope to a single brandAgentId.
POST
/
notifications
/
read-all
Mark all notifications as read
curl --request POST \
--url https://api.interchange.io/api/v2/storefront/notifications/read-all \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"brandAgentId": 123
}
'import requests
url = "https://api.interchange.io/api/v2/storefront/notifications/read-all"
payload = { "brandAgentId": 123 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({brandAgentId: 123})
};
fetch('https://api.interchange.io/api/v2/storefront/notifications/read-all', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"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": {}
}
}⌘I