Loading
Salesforce B2C Commerce 版本说明
不允许 PUT/PATCH /inventory_lists/{}/product_inventory_records/{} 出现负分配金额

不允许 PUT/PATCH /inventory_lists/{}/product_inventory_records/{} 出现负分配金额

通过 OCAPI 22.10 版,PUT /inventory_lists/{}/product_inventory_records/{}PATCH /inventory_lists/{}/product_inventory_records/{} 资源不再允许传入负分配量。向 ProductInventoryRecordAllocation 添加了约束。

方式:如果以负分配量调用这些资源,则返回以下错误响应:

状态代码:400 
"type":"PropertyConstraintViolationException" 
"message":"为请求解码时出错。文件 'product_inventory_record' 中的属性 '$.allocation.amount' 违反值约束。"
 
正在加载
Salesforce Help | Article