【问题标题】:Square Variation Stock status shows none even though there is a valid in stock quantitySquare Variation 库存状态显示无,即使有有效的库存数量
【发布时间】:2020-04-21 14:15:37
【问题描述】:

我正在尝试使用inventory/batch-change API 更新现有的变体。我的系统是现有项目的记录来源,因此我将PHYSICAL_COUNT 发布到变体。如果您深入研究变体的库存部分,一切看起来都很好;但是,主项目仪表板有一个-,并且该变体在库存部分显示none。我不确定是什么问题,因为当我发布PHYSICAL_COUNT 时,我还设置了state=IN_STOCK

这是用于更新库存的 json

API 网址:https://connect.squareup.com/v2/inventory/batch-change

{
    "idempotency_key": "XXXXXXXX",
    "changes": [
        {
            "type": "PHYSICAL_COUNT",
            "physical_count": {
                "catalog_object_id": "XXXXXXXX",
                "state": "IN_STOCK",
                "location_id": "XXXXXXXX",
                "quantity": "3",
                "occurred_at": "2020-04-20T15:02:00Z"
            }
        }
    ],
    "ignore_unchanged_counts": true
}

Square Stock None

Square Stock

【问题讨论】:

    标签: square-connect square


    【解决方案1】:

    有一个已知问题,当使用 Inventory API 并查看仪表板时,它将不同步除非您更新 Catalog API 中的项目变体以使用单个 location_overrides (无论它是否在每个位置都可用)。该字段位于CatalogObject->item_variation_data->location_overrides (https://developer.squareup.com/reference/square/catalog-api/upsert-catalog-object#modal__property-item_variation_data)。

    【讨论】:

    • 是否有关于何时修复此问题的 ETA?另外,我有 item_variation_data 中有 location_overrides 的项目,但 stock 状态仍然没有显示任何内容。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-08-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多