【发布时间】: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-connect square