ReplaceErrors replaces the errors for a variant
You call thisScope not enforced
POST
/v2/storefront/listing/variant/{sku}/errors
const url = 'https://api.zentail.com/v2/storefront/listing/variant/example/errors';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"submissionType":"example","errors":[{"attributeIds":["example"],"severity":"SEVERITY_UNSPECIFIED","type":"TYPE_UNSPECIFIED","message":"example"}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.zentail.com/v2/storefront/listing/variant/example/errors \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "submissionType": "example", "errors": [ { "attributeIds": [ "example" ], "severity": "SEVERITY_UNSPECIFIED", "type": "TYPE_UNSPECIFIED", "message": "example" } ] }'Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”sku
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
ReplaceErrorsRequest provides all the channel-generated errors for a SKU
object
submissionType
string
errors
Array<object>
object
attributeIds
One or more attributes that this error applies to
Array<string>
severity
string
type
- TYPE_TOO_MANY_VALUES: The attribute carries more values than the channel accepts for it. The channel rejects the whole submission over its cap, so Zentail omits this one attribute and reports it here.
string
message
Message is required if Type is TYPE_OTHER or TYPE_TOO_MANY_VALUES
string
Responses
Section titled “ Responses ”A successful response.
Media typeapplication/json
ReplaceErrorsResponse is empty
object
Examplegenerated
{}default
Section titled “default”An unexpected error response.
Media typeapplication/json
object
code
integer format: int32
message
string
details
Array<object>
object
@type
string
key
additional properties
Examplegenerated
{ "code": 1, "message": "example", "details": [ { "@type": "example" } ]}