How to introduce Wix Stores products via API?

Question:
How to add Wix Stores products via API? I created a page on my website and added some elements to create products in Wix Stores through that page. I wrote the code and followed the instructions in the Stores API documentation. I created a token key in a file on the http-funtions.js website and pasted it into the code structure. When I click the button, no error appears in the log but the product is not added. It seems that blank JSON is returned.

Product:
Editor

To add products to Wix Stores via API, ensure that your request is correctly formatted and authenticated. First, enable Velo (Dev Mode) and generate an API key with the necessary Stores: Products Write permissions. Use wix-fetch or fetch to send a POST request to wix-stores.v2.products.createProduct with the required product details (name, price, description, etc.). Ensure your http-functions.js file correctly processes the request and that the API key is included in the headers. If the JSON response is blank, check your API permissions and verify the payload structure. You can also log the request and response using console.log(response.json()) to debug any issues. Let me know if you need help troubleshooting.

Hello, thank you for your help, after a few hours I leave the json result here. It seems like I’m not being able to capture an image on the ulpload button, the price and cost are displayed as json instead of a number

{
“produto”: {
“name”: “tapete”,
“description”: “Lindo”,
“priceData”: {
“price”: 1000
},
“costAndProfitData”: {
“itemCost”: 520
},
“brand”: “Loja dos Tapetes”,
“productOptions”: ,
“visible”: true,
“productType”: “physical”,
“media”:
},
“colecoes”: [
“All Products”
]
}

com resposta: Erro ao enviar para o backend: SyntaxError: Unexpected token ‘<’, "

I would like to share the code but there are many lines

you can shere the code correctly formatted using the preformatted text icon </> in the reply