All URIs are relative to https://api.conekta.io, except if the operation defines another base path.
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 |
createRuleBlacklist($create_risk_rules_data, $accept_language): \Conekta\Model\BlacklistRuleResponse
Create blacklisted rule
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: bearerAuth
$config = Conekta\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Conekta\Api\AntifraudApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$create_risk_rules_data = new \Conekta\Model\CreateRiskRulesData(); // \Conekta\Model\CreateRiskRulesData | requested field for blacklist rule
$accept_language = es; // string | Use for knowing which language to use
try {
$result = $apiInstance->createRuleBlacklist($create_risk_rules_data, $accept_language);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AntifraudApi->createRuleBlacklist: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
create_risk_rules_data | \Conekta\Model\CreateRiskRulesData | requested field for blacklist rule | |
accept_language | string | Use for knowing which language to use | [optional] [default to 'es'] |
\Conekta\Model\BlacklistRuleResponse
- Content-Type:
application/json
- Accept:
application/vnd.conekta-v2.1.0+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
createRuleWhitelist($accept_language, $create_risk_rules_data): \Conekta\Model\WhitelistlistRuleResponse
Create whitelisted rule
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: bearerAuth
$config = Conekta\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Conekta\Api\AntifraudApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$accept_language = es; // string | Use for knowing which language to use
$create_risk_rules_data = new \Conekta\Model\CreateRiskRulesData(); // \Conekta\Model\CreateRiskRulesData
try {
$result = $apiInstance->createRuleWhitelist($accept_language, $create_risk_rules_data);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AntifraudApi->createRuleWhitelist: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
accept_language | string | Use for knowing which language to use | [optional] [default to 'es'] |
create_risk_rules_data | \Conekta\Model\CreateRiskRulesData | [optional] |
\Conekta\Model\WhitelistlistRuleResponse
- Content-Type:
application/json
- Accept:
application/vnd.conekta-v2.1.0+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteRuleBlacklist($id, $accept_language, $x_child_company_id): \Conekta\Model\DeletedBlacklistRuleResponse
Delete blacklisted rule
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: bearerAuth
$config = Conekta\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Conekta\Api\AntifraudApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = 6307a60c41de27127515a575; // string | Identifier of the resource
$accept_language = es; // string | Use for knowing which language to use
$x_child_company_id = 6441b6376b60c3a638da80af; // string | In the case of a holding company, the company id of the child company to which will process the request.
try {
$result = $apiInstance->deleteRuleBlacklist($id, $accept_language, $x_child_company_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AntifraudApi->deleteRuleBlacklist: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | Identifier of the resource | |
accept_language | string | Use for knowing which language to use | [optional] [default to 'es'] |
x_child_company_id | string | In the case of a holding company, the company id of the child company to which will process the request. | [optional] |
\Conekta\Model\DeletedBlacklistRuleResponse
- Content-Type: Not defined
- Accept:
application/vnd.conekta-v2.1.0+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteRuleWhitelist($id, $accept_language, $x_child_company_id): \Conekta\Model\DeletedWhitelistRuleResponse
Delete whitelisted rule
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: bearerAuth
$config = Conekta\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Conekta\Api\AntifraudApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = 6307a60c41de27127515a575; // string | Identifier of the resource
$accept_language = es; // string | Use for knowing which language to use
$x_child_company_id = 6441b6376b60c3a638da80af; // string | In the case of a holding company, the company id of the child company to which will process the request.
try {
$result = $apiInstance->deleteRuleWhitelist($id, $accept_language, $x_child_company_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AntifraudApi->deleteRuleWhitelist: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | Identifier of the resource | |
accept_language | string | Use for knowing which language to use | [optional] [default to 'es'] |
x_child_company_id | string | In the case of a holding company, the company id of the child company to which will process the request. | [optional] |
\Conekta\Model\DeletedWhitelistRuleResponse
- Content-Type: Not defined
- Accept:
application/vnd.conekta-v2.1.0+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getRuleBlacklist($accept_language): \Conekta\Model\RiskRulesList
Get list of blacklisted rules
Return all rules
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: bearerAuth
$config = Conekta\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Conekta\Api\AntifraudApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$accept_language = es; // string | Use for knowing which language to use
try {
$result = $apiInstance->getRuleBlacklist($accept_language);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AntifraudApi->getRuleBlacklist: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
accept_language | string | Use for knowing which language to use | [optional] [default to 'es'] |
- Content-Type: Not defined
- Accept:
application/vnd.conekta-v2.1.0+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getRuleWhitelist($accept_language): \Conekta\Model\RiskRulesList
Get a list of whitelisted rules
Return all rules
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: bearerAuth
$config = Conekta\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Conekta\Api\AntifraudApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$accept_language = es; // string | Use for knowing which language to use
try {
$result = $apiInstance->getRuleWhitelist($accept_language);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AntifraudApi->getRuleWhitelist: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
accept_language | string | Use for knowing which language to use | [optional] [default to 'es'] |
- Content-Type: Not defined
- Accept:
application/vnd.conekta-v2.1.0+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]