Skip to main content
POST
/
notifications
/
read-all
Mark all notifications as read
curl --request POST \
  --url https://api.interchange.io/api/v2/buyer/notifications/read-all \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "brandAgentId": 123
}
'
import requests

url = "https://api.interchange.io/api/v2/buyer/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/buyer/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": {}
}
}

Authorizations

Authorization
string
header
required

API key or access token

Body

application/json
brandAgentId
number

Response

Mark all notifications as read