All URIs are relative to https://api.conekta.io, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
getCharges() | GET /charges | Get A List of Charges |
ordersCreateCharge() | POST /orders/{id}/charges | Create charge |
ordersCreateCharges() | POST /orders/{id}/add_charges | Create charges |
updateCharge() | PUT /charges/{id} | Update a charge |
getCharges($accept_language, $x_child_company_id, $limit, $search, $next, $previous): \Conekta\Model\GetChargesResponse
Get A List of Charges
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: bearerAuth
$config = Conekta\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Conekta\Api\ChargesApi(
// 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->getCharges($accept_language, $x_child_company_id, $limit, $search, $next, $previous);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ChargesApi->getCharges: ', $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\GetChargesResponse
- 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]
ordersCreateCharge($id, $charge_request, $accept_language, $x_child_company_id): \Conekta\Model\ChargeOrderResponse
Create charge
Create charge for an existing orden
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: bearerAuth
$config = Conekta\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Conekta\Api\ChargesApi(
// 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
$charge_request = new \Conekta\Model\ChargeRequest(); // \Conekta\Model\ChargeRequest | requested field for a charge
$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->ordersCreateCharge($id, $charge_request, $accept_language, $x_child_company_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ChargesApi->ordersCreateCharge: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | Identifier of the resource | |
charge_request | \Conekta\Model\ChargeRequest | requested field for a charge | |
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\ChargeOrderResponse
- 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]
ordersCreateCharges($id, $charge_request, $accept_language, $x_child_company_id): \Conekta\Model\ChargesOrderResponse
Create charges
Create charges for an existing orden
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: bearerAuth
$config = Conekta\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Conekta\Api\ChargesApi(
// 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
$charge_request = new \Conekta\Model\ChargeRequest(); // \Conekta\Model\ChargeRequest | requested field for a charge
$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->ordersCreateCharges($id, $charge_request, $accept_language, $x_child_company_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ChargesApi->ordersCreateCharges: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | Identifier of the resource | |
charge_request | \Conekta\Model\ChargeRequest | requested field for a charge | |
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\ChargesOrderResponse
- 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]
updateCharge($id, $charge_update_request, $accept_language, $x_child_company_id): \Conekta\Model\ChargeResponse
Update a charge
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: bearerAuth
$config = Conekta\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Conekta\Api\ChargesApi(
// 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
$charge_update_request = new \Conekta\Model\ChargeUpdateRequest(); // \Conekta\Model\ChargeUpdateRequest | requested field for update a charge
$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->updateCharge($id, $charge_update_request, $accept_language, $x_child_company_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ChargesApi->updateCharge: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | Identifier of the resource | |
charge_update_request | \Conekta\Model\ChargeUpdateRequest | requested field for update a charge | |
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] |
- 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]