Fix 422 VALIDATION_ERROR: The given data was invalid
How to read a 422 VALIDATION_ERROR from the Shakewell Wallet API, including the per-template person fields that make a create-pass call fail.
Last updated 2026-11-05
{ "error": true, "error_code": "VALIDATION_ERROR", "message": "The given data was invalid.", "errors": { "template_id": ["The selected template id is invalid."] }, "timestamp": "..." }errors maps each rejected field to its messages. Fix every field listed.
Common causes
template_iddoes not exist or is on another account.personis missing. It is required when creating a pass.- A field the template requires is missing, for example an email address. Required fields come from the template's signup form.
barcode_valueis longer than 64 characters, contains non-printable characters, or is already used on your account.messageis empty or over 1,000 characters on a notification.statusis not one ofactive,inactive,suspended,expired,voided.