Publish products with specified currency amount through Rest Api

yehony
Tourist
5 0 4

Request via rest api

post /admin/api/2020-07/products.json

I want to publish the product with a specified currency amount, but the returned publication result is not what I expected

request body

requ.jpg

reponse result

{F6A72177-B1F7-4B0C-B279-00E6B843BB5B}_20200723113546.jpg

The result I want is

"presentment_prices": [
{
"price": {
"currency_code": "EUR",
"amount": "200"
},
"compare_at_price": "300"
}
]

or

"presentment_prices": [
{
"price": {
"currency_code": "USD",
"amount": "172.80"
},
"compare_at_price": "259.20"
}
]

0 Likes