All URIs are relative to https://openapi.alipay.com
Method | HTTP request | Description |
---|---|---|
batchquery | POST /v3/alipay/marketing/card/template/batchquery | 会员卡模板批量查询 |
create | POST /v3/alipay/marketing/card/template/create | 会员卡模板创建 |
modify | POST /v3/alipay/marketing/card/template/modify | 会员卡模板修改 |
query | GET /v3/alipay/marketing/card/template/query | 会员卡模板查询接口 |
AlipayMarketingCardTemplateBatchqueryResponseModel batchquery(alipayMarketingCardTemplateBatchqueryModel)
会员卡模板批量查询
会员卡模板批量查询
// Import classes:
import com.alipay.v3.ApiClient;
import com.alipay.v3.ApiException;
import com.alipay.v3.Configuration;
import com.alipay.v3.util.*;
import com.alipay.v3.api.models.*;
import com.alipay.v3.api.AlipayMarketingCardTemplateApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://openapi.alipay.com");
// 设置alipayConfig参数(全局设置一次)
AlipayConfig config = new AlipayConfig();
config.setAppId("app_id");
config.setPrivateKey("private_key");
config.setAlipayPublicKey("alipay_public_key");
config.setEncryptKey("encrypt_key");
defaultClient.setAlipayConfig(config);
AlipayMarketingCardTemplateApi apiInstance = new AlipayMarketingCardTemplateApi(defaultClient);
AlipayMarketingCardTemplateBatchqueryModel alipayMarketingCardTemplateBatchqueryModel = new AlipayMarketingCardTemplateBatchqueryModel(); // AlipayMarketingCardTemplateBatchqueryModel |
try {
AlipayMarketingCardTemplateBatchqueryResponseModel result = apiInstance.batchquery(alipayMarketingCardTemplateBatchqueryModel);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AlipayMarketingCardTemplateApi#batchquery");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
alipayMarketingCardTemplateBatchqueryModel | AlipayMarketingCardTemplateBatchqueryModel | [optional] |
AlipayMarketingCardTemplateBatchqueryResponseModel
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | common response | - |
0 | 请求失败 | - |
AlipayMarketingCardTemplateCreateResponseModel create(alipayMarketingCardTemplateCreateModel)
会员卡模板创建
会员卡模板创建
// Import classes:
import com.alipay.v3.ApiClient;
import com.alipay.v3.ApiException;
import com.alipay.v3.Configuration;
import com.alipay.v3.util.*;
import com.alipay.v3.api.models.*;
import com.alipay.v3.api.AlipayMarketingCardTemplateApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://openapi.alipay.com");
// 设置alipayConfig参数(全局设置一次)
AlipayConfig config = new AlipayConfig();
config.setAppId("app_id");
config.setPrivateKey("private_key");
config.setAlipayPublicKey("alipay_public_key");
config.setEncryptKey("encrypt_key");
defaultClient.setAlipayConfig(config);
AlipayMarketingCardTemplateApi apiInstance = new AlipayMarketingCardTemplateApi(defaultClient);
AlipayMarketingCardTemplateCreateModel alipayMarketingCardTemplateCreateModel = new AlipayMarketingCardTemplateCreateModel(); // AlipayMarketingCardTemplateCreateModel |
try {
AlipayMarketingCardTemplateCreateResponseModel result = apiInstance.create(alipayMarketingCardTemplateCreateModel);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AlipayMarketingCardTemplateApi#create");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
alipayMarketingCardTemplateCreateModel | AlipayMarketingCardTemplateCreateModel | [optional] |
AlipayMarketingCardTemplateCreateResponseModel
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | common response | - |
0 | 请求失败 | - |
AlipayMarketingCardTemplateModifyResponseModel modify(alipayMarketingCardTemplateModifyModel)
会员卡模板修改
会员卡模板修改
// Import classes:
import com.alipay.v3.ApiClient;
import com.alipay.v3.ApiException;
import com.alipay.v3.Configuration;
import com.alipay.v3.util.*;
import com.alipay.v3.api.models.*;
import com.alipay.v3.api.AlipayMarketingCardTemplateApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://openapi.alipay.com");
// 设置alipayConfig参数(全局设置一次)
AlipayConfig config = new AlipayConfig();
config.setAppId("app_id");
config.setPrivateKey("private_key");
config.setAlipayPublicKey("alipay_public_key");
config.setEncryptKey("encrypt_key");
defaultClient.setAlipayConfig(config);
AlipayMarketingCardTemplateApi apiInstance = new AlipayMarketingCardTemplateApi(defaultClient);
AlipayMarketingCardTemplateModifyModel alipayMarketingCardTemplateModifyModel = new AlipayMarketingCardTemplateModifyModel(); // AlipayMarketingCardTemplateModifyModel |
try {
AlipayMarketingCardTemplateModifyResponseModel result = apiInstance.modify(alipayMarketingCardTemplateModifyModel);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AlipayMarketingCardTemplateApi#modify");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
alipayMarketingCardTemplateModifyModel | AlipayMarketingCardTemplateModifyModel | [optional] |
AlipayMarketingCardTemplateModifyResponseModel
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | common response | - |
0 | 请求失败 | - |
AlipayMarketingCardTemplateQueryResponseModel query(templateId)
会员卡模板查询接口
会员卡模板查询接口
// Import classes:
import com.alipay.v3.ApiClient;
import com.alipay.v3.ApiException;
import com.alipay.v3.Configuration;
import com.alipay.v3.util.*;
import com.alipay.v3.api.models.*;
import com.alipay.v3.api.AlipayMarketingCardTemplateApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://openapi.alipay.com");
// 设置alipayConfig参数(全局设置一次)
AlipayConfig config = new AlipayConfig();
config.setAppId("app_id");
config.setPrivateKey("private_key");
config.setAlipayPublicKey("alipay_public_key");
config.setEncryptKey("encrypt_key");
defaultClient.setAlipayConfig(config);
AlipayMarketingCardTemplateApi apiInstance = new AlipayMarketingCardTemplateApi(defaultClient);
String templateId = "20160718000000001"; // String | 会员卡模板id。调用alipay.marketing.card.template.create(会员卡模板创建接口)创建模板后同步返回。
try {
AlipayMarketingCardTemplateQueryResponseModel result = apiInstance.query(templateId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AlipayMarketingCardTemplateApi#query");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
templateId | String | 会员卡模板id。调用alipay.marketing.card.template.create(会员卡模板创建接口)创建模板后同步返回。 | [optional] |
AlipayMarketingCardTemplateQueryResponseModel
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | common response | - |
0 | 请求失败 | - |