FieldValidationFailed (ValidationException): Amazon Creators API error
What it means
A required field is missing or has an invalid value. The fieldList in the response names it.
Message returned by the API: Request validation failed.
Typical causes
- A required field is missing (
partnerTag,marketplace,itemIds…). - PA-API 5 style PascalCase keys (
ItemIds,PartnerTag) instead of lowerCamelCase. - Values out of range, e.g. more than 10
itemIdsoritemCountabove 10. - Missing marketplace: observed message "Missing required marketplace parameter. Provide via x-marketplace header or marketplace query parameter."
How to fix it
- Read
fieldList(ormessage) and fix exactly those fields. - Convert all keys to lowerCamelCase and resource names to dot notation (
itemInfo.title). - Send the marketplace both as
x-marketplaceheader and in the body.
Not sure which part fails? Run Test credentials in the Scratchpad. It checks the token, the API access and the partner tag separately.
Example response
{
"type": "ValidationException",
"message": "Request validation failed.",
"reason": "FieldValidationFailed",
"fieldList": [
"partnerTag"
]
}Related errors
- CannotParse: The request body is not valid JSON.
- ValidationException: The request breaks one of the API’s rules. The `reason` field says which one.