Lingxing
切换旧版

创建已完成的成本补录单

接口信息

API Path请求协议请求方式令牌桶容量
/erp/sc/routing/inventoryReceipt/CostChangeOrder/finishCostChangeOrderHTTPSPOST1

请求参数

typeinteger必填
补录类型—只支持入库成本(1)
示例 1
widinteger必填
仓库ID
示例 1
remarkstring必填
备注
示例 成本补录单备注
listarray<object>必填
成本补录子项
隐藏子属性
product_idinteger必填
产品ID
示例 1
seller_id,对应[查询亚马逊店铺列表](/api-docs/BasicData/SellerLists)接口对应字段【sid】string
否
fnskustring
FNSKU,默认为空
relation_order_outstring必填
入库单号
示例 IB250514006
unit_cost_pricenumber必填
变更后采购单价
示例 10
unit_fee_pricenumber必填
变更后单位费用
示例 6

请求示例

{
  "type": 1,
  "wid": 1,
  "remark": "成本补录单备注",
  "list": [
    {
      "product_id": 1,
      "seller_id": 0,
      "fnsku": "",
      "relation_order_out": "IB250514006",
      "unit_cost_price": 10.0000,
      "unit_fee_price": 6.0000
    },
    {
      "product_id": 2,
      "seller_id": 0,
      "fnsku": "X000001",
      "relation_order_out": "IB250514007",
      "unit_cost_price": 15.5000,
      "unit_fee_price": 5.2000
    }
  ]
}

返回结果

Json Object

codestring必填
状态码,0 成功 参数示例: 0
示例 0
messagestring必填
提示消息
示例 success
error_detailsstring必填
错误信息
示例 error_msg
request_idstring必填
请求链路id
示例 81CA6A9A-A5C4-8B5E-5FED-E1C2EC04753C
response_timestring必填
响应时间
示例 2025-05-20 00:00:00
dataarray<object>必填
响应数据
隐藏子属性
order_snstring必填
成本补录单号
示例 CA2505220016

返回成功示例

{
    "code": 0,
    "message": "success",
    "error_details": [],
    "request_id": "6DB9CEC4-C9B6-9175-36C7-CE7A2CFC3968",
    "response_time": "2021-09-03 10:38:21",
    "data": {"order_sn":"CA2505220016"}
}