Lingxing
切换旧版

创建已完成的采购退货单

POST/erp/sc/routing/purchase/purchase_return_order/createPurchaseReturnOrder

支持创建采购退货单,状态为“已完成”

接口信息

API Path请求协议请求方式令牌桶容量
/erp/sc/routing/purchase/purchase_return_order/createPurchaseReturnOrderHTTPSPOST1

请求参数

purchase_order_snstring必填
采购单号
return_methodinteger必填
退货方式,1:退货扣款 2:退货补货
replenish_methodinteger
补货方式,1:源单补货【退货方式为2时必填】
fee_part_typeinteger必填
分摊方式,0:不分摊 1:按金额 2:按数量
shipping_currencystring必填
退货运费币种,支持CNY、USD,当源单币种为CNY时,运费币种只能为CNY
shipping_pricenumber
退货运费
other_currencystring必填
其他费用币种,支持CNY、USD,当源单币种为CNY时,其他费用币种只能为CNY
other_feenumber
其他费用
return_reasonstring
退货原因
remarkstring
单据备注
item_listarray<object>必填
退货产品
隐藏子属性
purchase_order_item_idinteger必填
采购单子项id
return_good_numinteger
良品退货量,良品退货量和次品退货量不可同时为空
return_bad_numinteger
次品退货量,良品退货量和次品退货量不可同时为空
expect_arrive_timestring
预计到货时间,退货补货可设置该字段
deduction_amountnumber
退货金额,退货方式为退货扣款时必填,填写值不可大于扣款数量*含税单价
remarkstring
备注

请求示例

{
    "purchase_order_sn": "PO220513032",
    "return_method": 1,
    "replenish_method": 0,
    "fee_part_type": 0,
    "shipping_currency": "CNY",
    "shipping_price": 1,
    "other_currency": "CNY",
    "other_fee": 1,
    "return_reason": "产品颜色差异大",
    "remark": "DP0001退货",
    "item_list": [
        {
            "purchase_order_item_id": 19302,
            "return_good_num": 5,
            "return_bad_num": 5,
            "expect_arrive_time": "",
            "deduction_amount": 10,
            "remark": "颜色差异"
        }
    ]
}

返回结果

Json Object

codeinteger必填
状态码,0 成功
示例 0
messagestring必填
消息提示
示例 success
error_detailsstring必填
错误信息
示例 []
request_idstring必填
请求链路id
示例 C1309FC7-1EC2-9B67-901A-2A0156CC7C25
response_timestring必填
响应时间
示例 2022-05-20 11:48:25
dataobject必填
响应数据
隐藏子属性
order_snstring必填
采购退货单号
示例 PR220520003