查询芝麻 GO 普通版模板
模板查询接口
接口调用
请求示例
AlipayClient alipayClient = new DefaultAlipayClient("https://openapi.alipay.com/gateway.do","app_id","your private_key","json","GBK","alipay_public_key","RSA2");
ZhimaMerchantZmgoTemplateQueryRequest request = new ZhimaMerchantZmgoTemplateQueryRequest();
request.setBizContent("{" +
" \"template_no\":\"ZMGO_TPL2021061601004538\"," +
" \"partner_id\":\"208830****697946\"" +
"}");
ZhimaMerchantZmgoTemplateQueryResponse response = alipayClient.execute(request);
if(response.isSuccess()){
System.out.println("调用成功");
} else {
System.out.println("调用失败");
}
响应示例
{
"zhima_merchant_zmgo_template_query_response": {
"basic_config": {
"template_name": "购物节直播活动",
"partner_id": "2088531780000000",
"isv_pid": "2088121746200000",
"biz_type": "yunyinshang",
"out_biz_no": "202939382829193287262717",
"merchant_custom_logo": "https://gw-office.alipayobjects.com/bmw-prod/2b591125-b059-4de7-b013-5818f0bdd7ca.png",
"contact": "15811273965",
"template_no": "ZMGO_TPL20210616****4538"
},
"obligation_config": {
"obligation_template": "OBTL001",
"obligation_times": "3",
"obligation_amount": 15,
"promise_type_desc": "3天内打车2次"
},
"right_config": {
"custom_benefit_desc": "购机直降585元",
"custom_sub_benefit_desc": "需完成任务24期"
},
"open_config": {
"freeze_amount": "23.00",
"period_mode": "FIX_DATE",
"period_time": "7",
"appoint_date": "2022-06-01 00:00:00",
"min_sign_interval": "0",
"support_expire_deferral": true,
"custom_open_tip_list": "[{ruleTitle:当月欠费扣款30元,ruleIndex:1,ruleDesc:任务期内,若25日前手机号处于欠费状态,则将在该月扣除30元保证金},{ruleTitle:未完成任务最高扣款585元,ruleIndex:2,ruleDesc:提前退出或欠费超过92天均视为未完成任务,将扣回已享优惠,最高585元}]",
"card_color_scheme": "C_BLACK",
"custom_open_tips": "退回先享的补贴"
},
"settlement_config": {
"settlement_type": "fulfillTimesCustomSettlement",
"custom_fee_name": "未完成任务结算费用",
"cycle_flex_withhold_config": {
"cycle_flex_withhold_total_period_count": 24,
"cycle_flex_withhold_max_price": 30,
"cycle_flex_withhold_fee_name": "月费"
},
"fulfilltimes_custom_settlement_plan": "[{\"MAX_AMOUNT\":0.7,\"FULFILL_TIMES\":0},{\"MAX_AMOUNT\":0.6,\"FULFILL_TIMES\":1}]",
"exp_stop_time_mode": "ABSOLATE_DATE",
"exp_stop_time": "2022-06-01 00:00:00",
"exp_stop_delay_days": 7,
"cycle_withhold_config": {
"withhold_mode": "FIX_DAY_MONTHLY",
"period_type": "DAY",
"period": "1",
"support_cycle_withhold_high_mode": true,
"deduct_plan": [
"{\\\"periodNum\\\":\\\"1\\",
"\\\"actualPrice\\\":\\\"12\\\"",
"\\\"originalPrice\\\":\\\"22\\\"}\""
],
"support_exemption_period": true,
"exemption_period": "1"
}
},
"quit_config": {
"quit_type": "QUIT_COMMON",
"quit_jump_url": "https://pages.tmall.com/wow/z/hdwk/profit/tasks?&disableNav=YES&spma=xjk&spmb=21038795",
"quit_desc": "点击退出"
},
"ext_config": {
"text_content_fill_rule_id": "HTPCFR_20220715001",
"text_content_fill_variable": "variable@@@value|||variable@@@value"
}
}
}
修改于 2023-11-23 03:25:36