All URIs are relative to https://api.conekta.io
Method | HTTP request | Description |
---|---|---|
createRuleBlacklist | POST /antifraud/blacklists | Create blacklisted rule |
createRuleWhitelist | POST /antifraud/whitelists | Create whitelisted rule |
deleteRuleBlacklist | DELETE /antifraud/blacklists/{id} | Delete blacklisted rule |
deleteRuleWhitelist | DELETE /antifraud/whitelists/{id} | Delete whitelisted rule |
getRuleBlacklist | GET /antifraud/blacklists | Get list of blacklisted rules |
getRuleWhitelist | GET /antifraud/whitelists | Get a list of whitelisted rules |
BlacklistRuleResponse createRuleBlacklist(createRiskRulesData, acceptLanguage)
Create blacklisted rule
// Import classes:
//import io.conekta.AntifraudApi;
AntifraudApi apiInstance = new AntifraudApi();
CreateRiskRulesData createRiskRulesData = new CreateRiskRulesData(); // CreateRiskRulesData | requested field for blacklist rule
String acceptLanguage = es; // String | Use for knowing which language to use
try {
BlacklistRuleResponse result = apiInstance.createRuleBlacklist(createRiskRulesData, acceptLanguage);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AntifraudApi#createRuleBlacklist");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
createRiskRulesData | CreateRiskRulesData | requested field for blacklist rule | |
acceptLanguage | String | Use for knowing which language to use | [optional] [default to es] [enum: es, en] |
- Content-Type: application/json
- Accept: application/vnd.conekta-v2.1.0+json
WhitelistlistRuleResponse createRuleWhitelist(acceptLanguage, createRiskRulesData)
Create whitelisted rule
// Import classes:
//import io.conekta.AntifraudApi;
AntifraudApi apiInstance = new AntifraudApi();
String acceptLanguage = es; // String | Use for knowing which language to use
CreateRiskRulesData createRiskRulesData = new CreateRiskRulesData(); // CreateRiskRulesData |
try {
WhitelistlistRuleResponse result = apiInstance.createRuleWhitelist(acceptLanguage, createRiskRulesData);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AntifraudApi#createRuleWhitelist");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
acceptLanguage | String | Use for knowing which language to use | [optional] [default to es] [enum: es, en] |
createRiskRulesData | CreateRiskRulesData | [optional] |
- Content-Type: application/json
- Accept: application/vnd.conekta-v2.1.0+json
DeletedBlacklistRuleResponse deleteRuleBlacklist(id, acceptLanguage, xChildCompanyId)
Delete blacklisted rule
// Import classes:
//import io.conekta.AntifraudApi;
AntifraudApi apiInstance = new AntifraudApi();
String id = 6307a60c41de27127515a575; // String | Identifier of the resource
String acceptLanguage = es; // String | Use for knowing which language to use
String xChildCompanyId = 6441b6376b60c3a638da80af; // String | In the case of a holding company, the company id of the child company to which will process the request.
try {
DeletedBlacklistRuleResponse result = apiInstance.deleteRuleBlacklist(id, acceptLanguage, xChildCompanyId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AntifraudApi#deleteRuleBlacklist");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | Identifier of the resource | [default to null] |
acceptLanguage | String | Use for knowing which language to use | [optional] [default to es] [enum: es, en] |
xChildCompanyId | String | In the case of a holding company, the company id of the child company to which will process the request. | [optional] [default to null] |
- Content-Type: Not defined
- Accept: application/vnd.conekta-v2.1.0+json
DeletedWhitelistRuleResponse deleteRuleWhitelist(id, acceptLanguage, xChildCompanyId)
Delete whitelisted rule
// Import classes:
//import io.conekta.AntifraudApi;
AntifraudApi apiInstance = new AntifraudApi();
String id = 6307a60c41de27127515a575; // String | Identifier of the resource
String acceptLanguage = es; // String | Use for knowing which language to use
String xChildCompanyId = 6441b6376b60c3a638da80af; // String | In the case of a holding company, the company id of the child company to which will process the request.
try {
DeletedWhitelistRuleResponse result = apiInstance.deleteRuleWhitelist(id, acceptLanguage, xChildCompanyId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AntifraudApi#deleteRuleWhitelist");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | Identifier of the resource | [default to null] |
acceptLanguage | String | Use for knowing which language to use | [optional] [default to es] [enum: es, en] |
xChildCompanyId | String | In the case of a holding company, the company id of the child company to which will process the request. | [optional] [default to null] |
- Content-Type: Not defined
- Accept: application/vnd.conekta-v2.1.0+json
RiskRulesList getRuleBlacklist(acceptLanguage)
Get list of blacklisted rules
Return all rules
// Import classes:
//import io.conekta.AntifraudApi;
AntifraudApi apiInstance = new AntifraudApi();
String acceptLanguage = es; // String | Use for knowing which language to use
try {
RiskRulesList result = apiInstance.getRuleBlacklist(acceptLanguage);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AntifraudApi#getRuleBlacklist");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
acceptLanguage | String | Use for knowing which language to use | [optional] [default to es] [enum: es, en] |
- Content-Type: Not defined
- Accept: application/vnd.conekta-v2.1.0+json
RiskRulesList getRuleWhitelist(acceptLanguage)
Get a list of whitelisted rules
Return all rules
// Import classes:
//import io.conekta.AntifraudApi;
AntifraudApi apiInstance = new AntifraudApi();
String acceptLanguage = es; // String | Use for knowing which language to use
try {
RiskRulesList result = apiInstance.getRuleWhitelist(acceptLanguage);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AntifraudApi#getRuleWhitelist");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
acceptLanguage | String | Use for knowing which language to use | [optional] [default to es] [enum: es, en] |
- Content-Type: Not defined
- Accept: application/vnd.conekta-v2.1.0+json