我发送“ https://openapi.etsy.com/v2/listings/listing_id/inventory”,但收到错误消息“所有产品的价格必须一致”
这就是我提供的产品:
[offerings] => Array
(
[0] => Array
(
[price] => Array
(
[amount] => 14500
[divisor] => 100
[currency_code] => USD
[currency_formatted_short] => $145.00
[currency_formatted_long] => $145.00 USD
[currency_formatted_raw] => 145.00
)
[quantity] => 7
[is_enabled] => 1
[is_deleted] => 0
)
)
答案 0 :(得分:0)
我遇到了同样的问题,即使Etsy Api说它是可选的,您也必须添加参数[price_on_property]。
答案 1 :(得分:0)
当您尝试更新库存时,不会将整个Money对象都包含为json。价格仅作为双精度值提供。 (例如“ price = 29.99”)
看起来更像这样
[offerings] => Array
(
[0] => Array
(
[price] => 145.00
[quantity] => 7
[is_enabled] => 1
[is_deleted] => 0
)
)