Scenario


I have tried printing a (New) Amazon Shipping label and I am seeing an error returned:


Error: InvalidInput: Invalid input 7 validation errors detected: Value at 'returnTo.phoneNumber' failed to satisfy constraint: Member must have length greater than or equal to 1; Value at 'returnTo.city' failed to satisfy constraint: Member must have length greater than or equal to 1; Value '' at 'returnTo.countryCode' failed to satisfy constraint: Member must have length greater than or equal to 1; Value at 'returnTo.postalCode' failed to satisfy constraint: Member must have length greater than or equal to 1; Value at 'returnTo.addressLine1' failed to satisfy constraint: Member must have length greater than or equal to 1; Value at 'returnTo.addressLine2' failed to satisfy constraint: Member must have length greater than or equal to 1; Value at 'returnTo.email' failed to satisfy constraint: Member must satisfy regular expression pattern: [^@]+@[^@\.]+(\.[^@\.]+)+


Solution


This error is being returned when some field/fields (but not all of them) were populated in Shipping > Integrations > (New) Amazon Shipping > Config > Return Address:




Return Address information is not mandatory and is not required to be populated. If fields are populated - Linnworks will attempt to send this data, if fields are empty - Linnworks will not submit anything.


To fix this, you can use one of the solutions above:


1. If you do not need the Return Address to be populated from the Linnworks side, go to Shipping > Integrations > (New) Amazon Shipping > Config > Return Address > and empty all the boxes > Save.


The return address will be taken from the Amazon backend and Linnworks will not submit any values.


2. If you need to have the Return Address specified in Linnworks, go to Shipping > Integrations > (New) Amazon Shipping > Config > Return Address > and make sure that all boxes are populated with the required values.


Linnworks will attempt to submit the Return Address to Amazon.


If the error message will still be the same, feel free to contact Linnworks Technical Support!