官网订单资金流水同步猫链系统,当官网有资金流水产生时,订单流水会通知到猫链系统
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
official_funds_record_request | OfficialFundsRecordRequest | 必须 | 官网资金流水通知请求对象 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | DataResult | 返回结果对象 | |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AliyunGscFundsFlowNotifyRequest req = new AliyunGscFundsFlowNotifyRequest(); AliyunGscFundsFlowNotifyRequest.OfficialFundsRecordRequest obj1 = new AliyunGscFundsFlowNotifyRequest.OfficialFundsRecordRequest(); List<AliyunGscFundsFlowNotifyRequest.MainOrderFinanceDTO> list3 = new ArrayList<AliyunGscFundsFlowNotifyRequest.MainOrderFinanceDTO>(); AliyunGscFundsFlowNotifyRequest.MainOrderFinanceDTO obj4 = new AliyunGscFundsFlowNotifyRequest.MainOrderFinanceDTO(); list3.add(obj4); obj4.setMainBizOrderId( "mainorderid1" ); obj4.setCreateDate(StringUtils.parseDateTime( "2022-09-23 09:00:00" )); obj4.setBizDate(StringUtils.parseDateTime( "2022-09-23 10:00:00" )); obj4.setSellerId( "gmall" ); obj4.setSaleType( "sell/proxy" ); List<AliyunGscFundsFlowNotifyRequest.SubOrderFinanceDTO> list7 = new ArrayList<AliyunGscFundsFlowNotifyRequest.SubOrderFinanceDTO>(); AliyunGscFundsFlowNotifyRequest.SubOrderFinanceDTO obj8 = new AliyunGscFundsFlowNotifyRequest.SubOrderFinanceDTO(); list7.add(obj8); obj8.setSubBizOrderId( "子订单号" ); obj8.setAuctionId( "商品ID" ); obj8.setAuctionTitle( "商品名称" ); obj8.setOutItemId( "item id" ); obj8.setOutItemName( "item名称" ); obj8.setOutSkuId( "sku id" ); obj8.setOutSkuName( "sku名称" ); obj8.setPrice(50L); obj8.setFreight(80L); obj8.setAmount(100L); obj8.setAmountType( "member_point" ); obj8.setPayType( "weixin" ); obj8.setCurrencyType( "yuan" ); obj8.setQty(10L); obj8.setPointGrant(11L); obj8.setReturnAmount(12L); obj8.setReturnAmountType( "currency" ); obj8.setReturnCurrencyType( "fen" ); obj8.setUid( "p_mainorderid1" ); obj8.setReturnPointGrant(13L); list5.setSubOrders(list7); obj1.setPayments(list3); List<AliyunGscFundsFlowNotifyRequest.MainOrderFinanceDTO> list10 = new ArrayList<AliyunGscFundsFlowNotifyRequest.MainOrderFinanceDTO>(); AliyunGscFundsFlowNotifyRequest.MainOrderFinanceDTO obj11 = new AliyunGscFundsFlowNotifyRequest.MainOrderFinanceDTO(); list10.add(obj11); obj11.setMainBizOrderId( "mainorderid2" ); obj11.setCreateDate(StringUtils.parseDateTime( "2022-09-23 09:00:00" )); obj11.setBizDate(StringUtils.parseDateTime( "2022-09-23 10:00:00" )); obj11.setSellerId( "gmall" ); obj11.setSaleType( "sell/proxy" ); List<AliyunGscFundsFlowNotifyRequest.SubOrderFinanceDTO> list14 = new ArrayList<AliyunGscFundsFlowNotifyRequest.SubOrderFinanceDTO>(); AliyunGscFundsFlowNotifyRequest.SubOrderFinanceDTO obj15 = new AliyunGscFundsFlowNotifyRequest.SubOrderFinanceDTO(); list14.add(obj15); obj15.setSubBizOrderId( "子订单号" ); obj15.setAuctionId( "商品ID" ); obj15.setAuctionTitle( "商品名称" ); obj15.setOutItemId( "item id" ); obj15.setOutItemName( "item名称" ); obj15.setOutSkuId( "sku id" ); obj15.setOutSkuName( "sku名称" ); obj15.setPrice(100L); obj15.setFreight(80L); obj15.setPointGrant(11L); obj15.setQty(10L); list12.setSubOrders(list14); obj1.setConfirms(list10); List<AliyunGscFundsFlowNotifyRequest.MainOrderFinanceDTO> list17 = new ArrayList<AliyunGscFundsFlowNotifyRequest.MainOrderFinanceDTO>(); AliyunGscFundsFlowNotifyRequest.MainOrderFinanceDTO obj18 = new AliyunGscFundsFlowNotifyRequest.MainOrderFinanceDTO(); list17.add(obj18); obj18.setMainBizOrderId( "mainorderid3" ); obj18.setCreateDate(StringUtils.parseDateTime( "2022-09-23 09:00:00" )); obj18.setBizDate(StringUtils.parseDateTime( "2022-09-23 10:00:00" )); obj18.setSellerId( "gmall" ); obj18.setSaleType( "sell/proxy" ); List<AliyunGscFundsFlowNotifyRequest.SubOrderFinanceDTO> list21 = new ArrayList<AliyunGscFundsFlowNotifyRequest.SubOrderFinanceDTO>(); AliyunGscFundsFlowNotifyRequest.SubOrderFinanceDTO obj22 = new AliyunGscFundsFlowNotifyRequest.SubOrderFinanceDTO(); list21.add(obj22); obj22.setSubBizOrderId( "子订单号" ); obj22.setAuctionId( "前端商品ID" ); obj22.setAuctionTitle( "前端商品名称" ); obj22.setOutItemId( "外部item id" ); obj22.setOutItemName( "外部item名称" ); obj22.setOutSkuId( "外部sku id" ); obj22.setOutSkuName( "sku名称" ); obj22.setReturnAmount(120L); obj22.setReturnAmountType( "member_point" ); obj22.setQty(11L); obj22.setReturnCurrencyType( "fen" ); obj22.setUid( "p_mainorderid1" ); obj22.setReturnPointGrant(13L); list19.setSubOrders(list21); obj1.setRefunds(list17); req.setOfficialFundsRecordRequest(obj1); AliyunGscFundsFlowNotifyResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 | < aliyun_gsc_funds_flow_notify_response > < result > < code >00000000</ code > < message >成功</ message > </ result > </ aliyun_gsc_funds_flow_notify_response > |
1 2 3 4 5 6 | < error_response > < code >50</ code > < msg >Remote service error</ msg > < sub_code >isv.invalid-parameter</ sub_code > < sub_msg >非法参数</ sub_msg > </ error_response > |
错误码 | 错误描述 | 解决方案 |
---|