|
1
|
If you send a request to an API route and receive the following error: |
|
2
|
|
|
3
|
```json |
|
4
|
{ |
|
5
|
"type": "invalid_data", |
|
6
|
"message": "Invalid request: Unrecognized fields: 'additional_data'" |
|
7
|
} |
|
8
|
``` |
|
9
|
|
|
10
|
## Why this Error Occurred |
|
11
|
|
|
12
|
This error occurs when you send the `additional_data` request body parameter to a route that doesn't support it. |
|
13
|
|
|
14
|
The [Additional Data property](https://docs.medusajs.com/learn/fundamentals/api-routes/additional-data) is useful to pass custom data to an API route, but it's not supported by all API routes. |
|
15
|
|
|
16
|
--- |
|
17
|
|
|
18
|
## How to Fix it |
|
19
|
|
|
20
|
For the list of API routes that support passing `additional_data`, refer to the [Additional Data documentation](https://docs.medusajs.com/learn/fundamentals/api-routes/additional-data). |
|
21
|
|
|
22
|
If the route you need isn't on the list, you have to create a custom API route with your desired functionality. |