1.1. 背景
背景:现有虾皮付款数据为采集下载,因稳定性需求部分调整为接口对接
1.2. 验收目标
1. 虾皮Payment接口对接 ( 2个接口 )
2. ERP增加数据表 RB_Report_ShoppeV2_payment
3. 添加自定义报告,对应按时间条件下载数据
2. 功能设计
2.1. 业务流程
无
2.2.1 操作路径
1. 自定义报告 ---虾皮V2付款报告
2.2.3 虾皮Payment接口对接 ( 2个接口 )
2.2.3.1 功能点描述:
原设计:无
新增:
Documentation - Shopee Open Platform https://open.shopee.com/documents/v2/v2.payment.get_escrow_detail?module=97&type=1
Documentation - Shopee Open Platform https://open.shopee.com/documents/v2/v2.payment.get_payout_detail?module=97&type=1
v2.payment.get_escrow_detail (RB_Shopee_Account_Fee )
逻辑1:按订单号,每日进行下载更新。根据订单号进行去重处理(实际虾皮 V1 Payment 接口以前有下载过,相等于替换后存在旧表可以)
逻辑2:参考这个表,select top 10 * from RB_Shopee_Account_Fee order by id desc
v2.payment.get_payout_detail (RB_Report_ShoppeV2_payment )
逻辑1:这个接口为店铺费用合计,按接口返回数据下载存表
逻辑2:参考这个
"payout_info":
"from_currency":"VND",
"payout_currency":"USD",
"from_amount":591797912,
"payout_amount":25678.64,
"exchange_rate":"0.00",
"payout_time":1651842208,
"pay_service":"Payoneer",
"payee_id":"279016275538"
"escrow_list":
"escrow_amount":20865,
"currency":"VND",
"order_sn":"220404NF3CFFNY"
"offline_adjustment_list":
"adjustment_amount":2,
"module":"Commission Fee", (枚举,可以文本存储)
"remark":"DRC commission fee adjustment", (可以文本存储,较长 5000字符)
"scenario":"Commission Fee Adjustment"
, "adjustment_level":"shop",
"order_sn":"220322JUMMT0S0"
2.2.3 ERP增加数据表 RB_Report_ShoppeV2_payment
2.2.3.1 功能点描述:
原设计:无
新增数据表:RB_Report_ShoppeV2_payment ,用于存储上面内容,按天下载。
2.2.3 添加自定义报告,对应按时间条件下载数据
2.2.3.1 功能点描述:
原设计:无
新增
增加 2份自定义报告,实现按业务时间,来源渠道进行下载。
1. 虾皮V2店铺付款报告(RB_Report_ShoppeV2_payment)
2.虾皮V2订单付款报告((RB_Shopee_Account_Fee )


