Update Storefront selection override
curl --request PUT \
--url https://api.interchange.io/api/v2/buyer/storefronts/{storefrontId}/selection-override \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.interchange.io/api/v2/buyer/storefronts/{storefrontId}/selection-override"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.interchange.io/api/v2/buyer/storefronts/{storefrontId}/selection-override', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"buyerCustomerId": 4503599627370496,
"storefrontId": "<string>",
"decision": "DEFAULT"
}{
"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": {}
}
}Storefronts
Update Storefront selection override
Set an Always include or Always exclude decision for the authenticated buyer account and one exact Storefront, or return it to Default. Requires ADMIN role on the current account.
PUT
/
storefronts
/
{storefrontId}
/
selection-override
Update Storefront selection override
curl --request PUT \
--url https://api.interchange.io/api/v2/buyer/storefronts/{storefrontId}/selection-override \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.interchange.io/api/v2/buyer/storefronts/{storefrontId}/selection-override"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.interchange.io/api/v2/buyer/storefronts/{storefrontId}/selection-override', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"buyerCustomerId": 4503599627370496,
"storefrontId": "<string>",
"decision": "DEFAULT"
}{
"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
Storefront ID
Required range:
1 <= x <= 9007199254740991Body
application/json
Buyer-account override for one exact Storefront. DEFAULT removes the override.
Available options:
DEFAULT, ALWAYS_INCLUDE, ALWAYS_EXCLUDE Response
Update Storefront selection override
Current buyer-account override for one exact Storefront after the update.