文档中心 > API类目 > 阿里健康API

alibaba.alihealth.btob.refundorder.confirm (B2B销退单出库回传)

B2B销退单出库回传

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
b2b_refund_confirm_dto B2bRefundConfirmDTO 必须 回传对象
  • └ refund_order_code
  • String
  • 必须
  • JKRSO251104155228525
  • 销退单号
  • refund_item_list
  • B2bRefundConfirmItemDTO []
  • 必须
  • 回传明细
  • 回传明细
  • └ out_quantity
  • Number
  • 可选
  • 10
  • 出库数量
  • └ produce_date
  • String
  • 可选
  • 2021-10-11 00:00:00
  • 生产日期
  • └ valid_date
  • String
  • 可选
  • 2024-10-11 00:00:00
  • 有效日期
  • └ batch_code
  • String
  • 可选
  • 4R7D55
  • 生产批号
  • └ sc_item_id
  • Number
  • 可选
  • 67342342
  • 货品ID
  • └ bar_code
  • String
  • 可选
  • 69343434
  • 条码
  • └ delivery_name
  • String
  • 可选
  • 五常门店
  • 门店名称
  • └ delivery_code
  • String
  • 必须
  • SHANGOU_123
  • 门店编码

响应参数

名称 类型 示例值 描述
result JkResult 响应结果类
  • └ success
  • Boolean
  • false
  • 是否成功
  • └ error_code
  • String
  • SYS_ERROR
  • 系统错误
  • └ error_msg
  • String
  • 系统错误
  • 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthBtobRefundorderConfirmRequest req = new AlibabaAlihealthBtobRefundorderConfirmRequest();
AlibabaAlihealthBtobRefundorderConfirmRequest.B2bRefundConfirmDTO obj1 = new AlibabaAlihealthBtobRefundorderConfirmRequest.B2bRefundConfirmDTO();
obj1.setRefundOrderCode("JKRSO251104155228525");
List<AlibabaAlihealthBtobRefundorderConfirmRequest.B2bRefundConfirmItemDTO> list3 = new ArrayList<AlibabaAlihealthBtobRefundorderConfirmRequest.B2bRefundConfirmItemDTO>();
AlibabaAlihealthBtobRefundorderConfirmRequest.B2bRefundConfirmItemDTO obj4 = new AlibabaAlihealthBtobRefundorderConfirmRequest.B2bRefundConfirmItemDTO();
list3.add(obj4);
obj4.setOutQuantity(10L);
obj4.setProduceDate("2021-10-11 00:00:00");
obj4.setValidDate("2024-10-11 00:00:00");
obj4.setBatchCode("4R7D55");
obj4.setScItemId(67342342L);
obj4.setBarCode("69343434");
obj1.setRefundItemList(list3);
obj1.setDeliveryName("五常门店");
obj1.setDeliveryCode("SHANGOU_123");
req.setB2bRefundConfirmDto(obj1);
AlibabaAlihealthBtobRefundorderConfirmResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_btob_refundorder_confirm_response>
    <result>
        <success>false</success>
        <error_code>SYS_ERROR</error_code>
        <error_msg>系统错误</error_msg>
    </result>
</alibaba_alihealth_btob_refundorder_confirm_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部