You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sellerReturnReasonCode argument is required in ReturnItem. It is also labeled as required in Amazon SP API doc, however it is not included in the response.
The schema files provided by Amazon use the same request and response type definitions and they have the same required values even though in reality in many cases, they're only required in the requests and missing from responses. I'm not sure what the best solution to this is.
The current solution is to remove the required fields on a case by case basis when we refactor the schema, but this also removes it for the request too. Another option is to just ignore the required list in responses, but the downside here is that we make more values nullable that is required. A third option is to keep a list somewhere of which required fields in requests are not required in responses.
Option 3 would definitely be best from a developer experience standpoint, but would take some additional work to update and maintain. I think I'm unlikely to get around to implementing that feature anytime soon, so for now I'm going to stick to just removing the fields, but if anyone else wants to set that up, I'm happy to review the PR.
Problem description:
sellerReturnReasonCode argument is required in ReturnItem. It is also labeled as required in Amazon SP API doc, however it is not included in the response.
https://developer-docs.amazon.com/sp-api/docs/fulfillment-outbound-api-v2020-07-01-reference#returnitem
Error:
Code
The text was updated successfully, but these errors were encountered: