Validate a product draft for an ad server source
curl --request POST \
--url https://api.interchange.io/api/v2/storefront/esa/{esaId}/products:validate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.interchange.io/api/v2/storefront/esa/{esaId}/products:validate"
payload = {}
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({})
};
fetch('https://api.interchange.io/api/v2/storefront/esa/{esaId}/products:validate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"valid": true,
"issues": [
{
"code": "<string>",
"message": "<string>",
"field": "<string>",
"severity": "error"
}
],
"errors": [
{
"message": "<string>",
"field": "<string>",
"code": "<string>"
}
],
"warnings": [
"<unknown>"
]
}{
"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": {}
}
}Storefront Ad Server Catalog
Validate a product draft for an ad server source
Validate a complete product request against the ad server source without persisting it. Returns field-level blocking errors and advisory warnings.
POST
/
esa
/
{esaId}
/
products:validate
Validate a product draft for an ad server source
curl --request POST \
--url https://api.interchange.io/api/v2/storefront/esa/{esaId}/products:validate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.interchange.io/api/v2/storefront/esa/{esaId}/products:validate"
payload = {}
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({})
};
fetch('https://api.interchange.io/api/v2/storefront/esa/{esaId}/products:validate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"valid": true,
"issues": [
{
"code": "<string>",
"message": "<string>",
"field": "<string>",
"severity": "error"
}
],
"errors": [
{
"message": "<string>",
"field": "<string>",
"code": "<string>"
}
],
"warnings": [
"<unknown>"
]
}{
"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
Ad server source connection id. The wire field remains esaId for API compatibility.
Required range:
0 < x <= 9007199254740991Example:
123
Body
application/json
Full salesagent WholesaleProductRequest update body for an ad-server source product. The upstream endpoint requires a complete replacement body; unknown/extra fields are forwarded as-is.