跳到主要内容
版本:202506

创建库存层级

POST 

/openapi/2025-06/inventory_levels

为指定地点和库存项初始化库存层级记录。

请求

请求体必填

    inventory_item_idstring必填

    库存项 ID

    location_idstring必填

    地点 ID

响应

OK

数据结构
    codestring

    错误码

    messagestring

    错误信息

    data object
    inventory_level object

    库存层级

    inventory_item_idstring

    库存项 ID

    location_idstring

    地点 ID

    stockint64

    库存数量

    updated_atstring

    最后更新时间,ISO-8601 格式