All URIs are relative to https://api.conekta.io, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
createWebhookKey() | POST /webhook_keys | Create Webhook Key |
deleteWebhookKey() | DELETE /webhook_keys/{id} | Delete Webhook key |
getWebhookKey() | GET /webhook_keys/{id} | Get Webhook Key |
getWebhookKeys() | GET /webhook_keys | Get List of Webhook Keys |
updateWebhookKey() | PUT /webhook_keys/{id} | Update Webhook Key |
createWebhookKey($accept_language, $webhook_key_request): \Conekta\Model\WebhookKeyCreateResponse
Create Webhook Key
Create a webhook key
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: bearerAuth
$config = Conekta\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Conekta\Api\WebhookKeysApi(
// 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
$webhook_key_request = new \Conekta\Model\WebhookKeyRequest(); // \Conekta\Model\WebhookKeyRequest
try {
$result = $apiInstance->createWebhookKey($accept_language, $webhook_key_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling WebhookKeysApi->createWebhookKey: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
accept_language | string | Use for knowing which language to use | [optional] [default to 'es'] |
webhook_key_request | \Conekta\Model\WebhookKeyRequest | [optional] |
\Conekta\Model\WebhookKeyCreateResponse
- 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]
deleteWebhookKey($id, $accept_language): \Conekta\Model\WebhookKeyDeleteResponse
Delete Webhook key
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: bearerAuth
$config = Conekta\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Conekta\Api\WebhookKeysApi(
// 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
try {
$result = $apiInstance->deleteWebhookKey($id, $accept_language);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling WebhookKeysApi->deleteWebhookKey: ', $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'] |
\Conekta\Model\WebhookKeyDeleteResponse
- 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]
getWebhookKey($id, $accept_language, $x_child_company_id): \Conekta\Model\WebhookKeyResponse
Get Webhook Key
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: bearerAuth
$config = Conekta\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Conekta\Api\WebhookKeysApi(
// 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->getWebhookKey($id, $accept_language, $x_child_company_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling WebhookKeysApi->getWebhookKey: ', $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\WebhookKeyResponse
- 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]
getWebhookKeys($accept_language, $x_child_company_id, $limit, $search, $next, $previous): \Conekta\Model\GetWebhookKeysResponse
Get List of Webhook Keys
Consume the list of webhook keys you have
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: bearerAuth
$config = Conekta\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Conekta\Api\WebhookKeysApi(
// 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
$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.
$limit = 20; // int | The numbers of items to return, the maximum value is 250
$search = 'search_example'; // string | General order search, e.g. by mail, reference etc.
$next = 'next_example'; // string | next page
$previous = 'previous_example'; // string | previous page
try {
$result = $apiInstance->getWebhookKeys($accept_language, $x_child_company_id, $limit, $search, $next, $previous);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling WebhookKeysApi->getWebhookKeys: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
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] |
limit | int | The numbers of items to return, the maximum value is 250 | [optional] [default to 20] |
search | string | General order search, e.g. by mail, reference etc. | [optional] |
next | string | next page | [optional] |
previous | string | previous page | [optional] |
\Conekta\Model\GetWebhookKeysResponse
- 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]
updateWebhookKey($id, $accept_language, $webhook_key_update_request): \Conekta\Model\WebhookKeyResponse
Update Webhook Key
updates an existing webhook key
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: bearerAuth
$config = Conekta\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Conekta\Api\WebhookKeysApi(
// 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
$webhook_key_update_request = new \Conekta\Model\WebhookKeyUpdateRequest(); // \Conekta\Model\WebhookKeyUpdateRequest
try {
$result = $apiInstance->updateWebhookKey($id, $accept_language, $webhook_key_update_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling WebhookKeysApi->updateWebhookKey: ', $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'] |
webhook_key_update_request | \Conekta\Model\WebhookKeyUpdateRequest | [optional] |
\Conekta\Model\WebhookKeyResponse
- 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]