代商家报名返佣政策
简介
接口调用流程图

上传资质图片
示例代码
package com.java.sdk.demo;
import com.alipay.v3.ApiException;
import com.alipay.v3.ApiClient;
import com.alipay.v3.util.model.AlipayConfig;
import com.alipay.v3.Configuration;
import com.alipay.v3.api.AlipayOpenSpImageApi;
import com.alipay.v3.model.*;
import java.io.File;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class AlipayOpenSpImageApiUpload {
public static void main(String[] args) throws ApiException {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// 初始化alipay参数(全局设置一次)
AlipayConfig alipayConfig = new AlipayConfig();
alipayConfig.setServerUrl("https://openapi.alipay.com");
alipayConfig.setAppId("<-- 请填写您的AppId,例如:2019091767145019 -->");
alipayConfig.setPrivateKey("<-- 请填写您的应用私钥,例如:MIIEvQIBADANB ... ... -->");
alipayConfig.setAlipayPublicKey("<-- 请填写您的支付宝公钥,例如:MIIBIjANBg... -->");
defaultClient.setAlipayConfig(alipayConfig);
AlipayOpenSpImageApi api = new AlipayOpenSpImageApi();
File imageContent = new File("文件路径");
try {
AlipayOpenSpImageUploadResponseModel response = api.upload(imageContent);
} catch (ApiException e) {
AlipayOpenSpImageUploadDefaultResponse errorObject = (AlipayOpenSpImageUploadDefaultResponse) e.getErrorObject();
System.out.println("调用失败:" + errorObject);
}
}
}
重要入参说明
报名活动
示例代码
package com.java.sdk.demo;
import com.alipay.v3.ApiException;
import com.alipay.v3.ApiClient;
import com.alipay.v3.util.model.AlipayConfig;
import com.alipay.v3.Configuration;
import com.alipay.v3.api.AlipayOpenSpBlueseaactivityApi;
import com.alipay.v3.model.*;
import java.io.File;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class AlipayOpenSpBlueseaactivityApiCreate {
public static void main(String[] args) throws ApiException {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// 初始化alipay参数(全局设置一次)
AlipayConfig alipayConfig = new AlipayConfig();
alipayConfig.setServerUrl("https://openapi.alipay.com");
alipayConfig.setAppId("<-- 请填写您的AppId,例如:2019091767145019 -->");
alipayConfig.setPrivateKey("<-- 请填写您的应用私钥,例如:MIIEvQIBADANB ... ... -->");
alipayConfig.setAlipayPublicKey("<-- 请填写您的支付宝公钥,例如:MIIBIjANBg... -->");
defaultClient.setAlipayConfig(alipayConfig);
AlipayOpenSpBlueseaactivityApi api = new AlipayOpenSpBlueseaactivityApi();
AlipayOpenSpBlueseaactivityCreateModel data = new AlipayOpenSpBlueseaactivityCreateModel();
data.setIndoorPic("A*7j1pTrCpV8EAAAAAAAAAAAAAAQAAAA");
data.setFoodHealthLic("A*7j1pTrCpV8EAAAAAAAAAAAAAAQAAAA");
data.setShopEntrancePic("A*7j1pTrCpV8EAAAAAAAAAAAAAAQAAAA");
data.setFoodBusinessLic("A*7j1pTrCpV8EAAAAAAAAAAAAAAQAAAA");
data.setAddress("万塘路18号黄龙时代广场B座");
data.setBusinessLic("A*7j1pTrCpV8EAAAAAAAAAAAAAAQAAAA");
data.setFoodCirculateLic("A*7j1pTrCpV8EAAAAAAAAAAAAAAQAAAA");
data.setProvinceCode("310000");
data.setTobaccoLic("A*7j1pTrCpV8EAAAAAAAAAAAAAAQAAAA");
data.setDistrictCode("310006");
data.setMerchantLogon("13200132000");
data.setCityCode("310001");
data.setBizScene("BLUE_SEA_FOOD_APPLY");
data.setFoodServiceLic("A*7j1pTrCpV8EAAAAAAAAAAAAAAQAAAA");
data.setFoodProductionLic("A*7j1pTrCpV8EAAAAAAAAAAAAAAQAAAA");
data.setSubMerchantId("2088100010001000");
try {
AlipayOpenSpBlueseaactivityCreateResponseModel response = api.create(data);
} catch (ApiException e) {
AlipayOpenSpBlueseaactivityCreateDefaultResponse errorObject = (AlipayOpenSpBlueseaactivityCreateDefaultResponse) e.getErrorObject();
System.out.println("调用失败:" + errorObject);
}
}
}
重要参数说明
申请单结果通知
消息示例
ISV_GATEWAY_URL?charset=GBK&biz_content=
{
"order_id":"5881","status":"FAIL","memo":"资质不全,请重新提交"
}
&msg_method=alipay.open.sp.blueseaactivity.changed&utc_timestamp=1516797622752&version=1.1&sign_type=RSA2¬ify_id=d275fec564e62af6bedbcee73f3f05fi5x&app_id=2013121700999429&sign=I+Y/lvqYUEEc10EPdpntRhFIQ==
消息参数说明
返回结果
success
七个字符。