All URIs are relative to https://api.conekta.io
Method | HTTP request | Description |
---|---|---|
create_webhook_key | POST /webhook_keys | Create Webhook Key |
delete_webhook_key | DELETE /webhook_keys/{id} | Delete Webhook key |
get_webhook_key | GET /webhook_keys/{id} | Get Webhook Key |
get_webhook_keys | GET /webhook_keys | Get List of Webhook Keys |
update_webhook_key | PUT /webhook_keys/{id} | Update Webhook Key |
WebhookKeyCreateResponse create_webhook_key(accept_language=accept_language, webhook_key_request=webhook_key_request)
Create Webhook Key
Create a webhook key
- Bearer Authentication (bearerAuth):
import conekta
from conekta.models.webhook_key_create_response import WebhookKeyCreateResponse
from conekta.models.webhook_key_request import WebhookKeyRequest
from conekta.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.conekta.io
# See configuration.py for a list of all supported configuration parameters.
configuration = conekta.Configuration(
host = "https://api.conekta.io"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization: bearerAuth
configuration = conekta.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with conekta.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = conekta.WebhookKeysApi(api_client)
accept_language = es # str | Use for knowing which language to use (optional) (default to es)
webhook_key_request = conekta.WebhookKeyRequest() # WebhookKeyRequest | (optional)
try:
# Create Webhook Key
api_response = api_instance.create_webhook_key(accept_language=accept_language, webhook_key_request=webhook_key_request)
print("The response of WebhookKeysApi->create_webhook_key:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling WebhookKeysApi->create_webhook_key: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
accept_language | str | Use for knowing which language to use | [optional] [default to es] |
webhook_key_request | WebhookKeyRequest | [optional] |
- Content-Type: application/json
- Accept: application/vnd.conekta-v2.1.0+json
Status code | Description | Response headers |
---|---|---|
200 | successful operation | - |
401 | authentication error | - |
500 | internal server error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WebhookKeyDeleteResponse delete_webhook_key(id, accept_language=accept_language)
Delete Webhook key
- Bearer Authentication (bearerAuth):
import conekta
from conekta.models.webhook_key_delete_response import WebhookKeyDeleteResponse
from conekta.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.conekta.io
# See configuration.py for a list of all supported configuration parameters.
configuration = conekta.Configuration(
host = "https://api.conekta.io"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization: bearerAuth
configuration = conekta.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with conekta.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = conekta.WebhookKeysApi(api_client)
id = '6307a60c41de27127515a575' # str | Identifier of the resource
accept_language = es # str | Use for knowing which language to use (optional) (default to es)
try:
# Delete Webhook key
api_response = api_instance.delete_webhook_key(id, accept_language=accept_language)
print("The response of WebhookKeysApi->delete_webhook_key:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling WebhookKeysApi->delete_webhook_key: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | Identifier of the resource | |
accept_language | str | Use for knowing which language to use | [optional] [default to es] |
- Content-Type: Not defined
- Accept: application/vnd.conekta-v2.1.0+json
Status code | Description | Response headers |
---|---|---|
200 | successful | * Date - The date and time that the response was sent * Content-Type - The format of the response body * Content-Length - The length of the response body in bytes * Connection - The type of connection used to transfer the response * Conekta-Media-Type - |
401 | authentication error | - |
404 | not found entity | - |
500 | internal server error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WebhookKeyResponse get_webhook_key(id, accept_language=accept_language, x_child_company_id=x_child_company_id)
Get Webhook Key
- Bearer Authentication (bearerAuth):
import conekta
from conekta.models.webhook_key_response import WebhookKeyResponse
from conekta.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.conekta.io
# See configuration.py for a list of all supported configuration parameters.
configuration = conekta.Configuration(
host = "https://api.conekta.io"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization: bearerAuth
configuration = conekta.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with conekta.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = conekta.WebhookKeysApi(api_client)
id = '6307a60c41de27127515a575' # str | Identifier of the resource
accept_language = es # str | Use for knowing which language to use (optional) (default to es)
x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional)
try:
# Get Webhook Key
api_response = api_instance.get_webhook_key(id, accept_language=accept_language, x_child_company_id=x_child_company_id)
print("The response of WebhookKeysApi->get_webhook_key:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling WebhookKeysApi->get_webhook_key: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | Identifier of the resource | |
accept_language | str | Use for knowing which language to use | [optional] [default to es] |
x_child_company_id | str | In the case of a holding company, the company id of the child company to which will process the request. | [optional] |
- Content-Type: Not defined
- Accept: application/vnd.conekta-v2.1.0+json
Status code | Description | Response headers |
---|---|---|
200 | successful | * Date - The date and time that the response was sent * Content-Type - The format of the response body * Content-Length - The length of the response body in bytes * Connection - The type of connection used to transfer the response * Conekta-Media-Type - |
401 | authentication error | - |
404 | not found entity | - |
500 | internal server error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetWebhookKeysResponse get_webhook_keys(accept_language=accept_language, x_child_company_id=x_child_company_id, limit=limit, search=search, next=next, previous=previous)
Get List of Webhook Keys
Consume the list of webhook keys you have
- Bearer Authentication (bearerAuth):
import conekta
from conekta.models.get_webhook_keys_response import GetWebhookKeysResponse
from conekta.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.conekta.io
# See configuration.py for a list of all supported configuration parameters.
configuration = conekta.Configuration(
host = "https://api.conekta.io"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization: bearerAuth
configuration = conekta.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with conekta.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = conekta.WebhookKeysApi(api_client)
accept_language = es # str | Use for knowing which language to use (optional) (default to es)
x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional)
limit = 20 # int | The numbers of items to return, the maximum value is 250 (optional) (default to 20)
search = 'search_example' # str | General order search, e.g. by mail, reference etc. (optional)
next = 'next_example' # str | next page (optional)
previous = 'previous_example' # str | previous page (optional)
try:
# Get List of Webhook Keys
api_response = api_instance.get_webhook_keys(accept_language=accept_language, x_child_company_id=x_child_company_id, limit=limit, search=search, next=next, previous=previous)
print("The response of WebhookKeysApi->get_webhook_keys:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling WebhookKeysApi->get_webhook_keys: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
accept_language | str | Use for knowing which language to use | [optional] [default to es] |
x_child_company_id | str | 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 | str | General order search, e.g. by mail, reference etc. | [optional] |
next | str | next page | [optional] |
previous | str | previous page | [optional] |
- Content-Type: Not defined
- Accept: application/vnd.conekta-v2.1.0+json
Status code | Description | Response headers |
---|---|---|
200 | successful | * Date - The date and time that the response was sent * Content-Type - The format of the response body * Content-Length - The length of the response body in bytes * Connection - The type of connection used to transfer the response * Conekta-Media-Type - |
401 | authentication error | - |
500 | internal server error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WebhookKeyResponse update_webhook_key(id, accept_language=accept_language, webhook_key_update_request=webhook_key_update_request)
Update Webhook Key
updates an existing webhook key
- Bearer Authentication (bearerAuth):
import conekta
from conekta.models.webhook_key_response import WebhookKeyResponse
from conekta.models.webhook_key_update_request import WebhookKeyUpdateRequest
from conekta.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.conekta.io
# See configuration.py for a list of all supported configuration parameters.
configuration = conekta.Configuration(
host = "https://api.conekta.io"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization: bearerAuth
configuration = conekta.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with conekta.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = conekta.WebhookKeysApi(api_client)
id = '6307a60c41de27127515a575' # str | Identifier of the resource
accept_language = es # str | Use for knowing which language to use (optional) (default to es)
webhook_key_update_request = conekta.WebhookKeyUpdateRequest() # WebhookKeyUpdateRequest | (optional)
try:
# Update Webhook Key
api_response = api_instance.update_webhook_key(id, accept_language=accept_language, webhook_key_update_request=webhook_key_update_request)
print("The response of WebhookKeysApi->update_webhook_key:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling WebhookKeysApi->update_webhook_key: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | Identifier of the resource | |
accept_language | str | Use for knowing which language to use | [optional] [default to es] |
webhook_key_update_request | WebhookKeyUpdateRequest | [optional] |
- Content-Type: application/json
- Accept: application/vnd.conekta-v2.1.0+json
Status code | Description | Response headers |
---|---|---|
200 | successful operation | - |
404 | not found entity | - |
401 | authentication error | - |
500 | internal server error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]