Unrecognized fields `additiona_data` Error

If you send a request to an API route and receive the following error:

Code
1{2  "type": "invalid_data", 3  "message": "Invalid request: Unrecognized fields: 'additional_data'"4}

Why this Error Occured#

This error occurs when you send the additional_data request body parameter to a route that doesn't support it.

The Additional Data property is useful to pass custom data to an API route, but it's not supported by all API routes.


How to Fix it#

For the list of API routes that support passing additional_data, refer to the Additional Data documentation.

If the route you need isn't on the list, you have to create a custom API route with your desired functionality.

Was this page helpful?
Ask Anything
FAQ
What is Medusa?
How can I create a module?
How can I create a data model?
How do I create a workflow?
How can I extend a data model in the Product Module?
Recipes
How do I build a marketplace with Medusa?
How do I build digital products with Medusa?
How do I build subscription-based purchases with Medusa?
What other recipes are available in the Medusa documentation?
Chat is cleared on refresh
Line break