Trouble with API endpoint: Creates a product #3983
-
Hi, we have problems creating a product using the Solidus API (https://solidus.docs.stoplight.io/api-reference/products/create-product). The OpenAPI definition does not have explicit or referenced explanation for request body properties, then we use the Developers Guide (https://guides.solidus.io/developers/products-and-variants/products.html) for that. to reproduce the failure with simple curl (replace host and key with valid values):
The error received is:
We change price from string to number and get same error, maybe there is an error in request or missing something else. Hope is not an issue, Can anyone redirect us to an API call working example? Thanks. ------------------------ Comment ------------------------ The previous curl call was made changing the privilege to admin, Super Admin, StoreAdmin (just in case) The headers returned by the call are:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Can you please try with:
I usually look at specs files when something seems off in the API documentation. Not showing the correct body in the example requests is definitely something we should take a look at soon (any help is welcome). |
Beta Was this translation helpful? Give feedback.
Can you please try with:
I usually look at specs files when something seems off in the API documentation. Not showing the correct body in the example requests is definitely something we should take a look at soon (any help is welcome).