【问题标题】:Eror "price must be consistent across all products" etsy错误“所有产品的价格必须一致”etsy
【发布时间】:2018-12-07 10:12:36
【问题描述】:

我发送“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
                        )

                )

【问题讨论】:

    标签: php rest api etsy


    【解决方案1】:

    我遇到了同样的问题,而且你还必须添加参数 [price_on_property],即使 Etsy Api 说它是可选的。

    【讨论】:

      【解决方案2】:

      当您尝试更新库存时,您不会将整个 Money 对象包含为 json。价格仅作为双倍值提供。 (例如“价格=29.99”)

      它看起来更像这样

      [offerings] => Array
                      (
                          [0] => Array
                              (
                                  [price] => 145.00
                                  [quantity] => 7
                                  [is_enabled] => 1
                                  [is_deleted] => 0
                              )
      
                      )
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2017-03-10
        • 2019-10-29
        • 2012-08-16
        • 1970-01-01
        • 1970-01-01
        • 2022-06-22
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多