All URIs are relative to https://api.ageras.com/v2
Method | HTTP request | Description |
---|---|---|
checkoutsCreate | POST /checkouts | |
checkoutsGet | GET /checkouts/{checkout_id} | |
checkoutsIndex | GET /checkouts | |
checkoutsUpdate | PUT /checkouts/{checkout_id} |
\Ageras\Api\CheckoutResource checkoutsCreate($checkout_resource)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: jwt
Ageras\Api\Configuration::getDefaultConfiguration()->setApiKey('token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Ageras\Api\Configuration::getDefaultConfiguration()->setApiKeyPrefix('token', 'Bearer');
// Configure HTTP basic authorization: login
Ageras\Api\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Ageras\Api\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
$api_instance = new Ageras\Api\Api\CheckoutsApi();
$checkout_resource = new \Ageras\Api\CheckoutResource(); // \Ageras\Api\CheckoutResource |
try {
$result = $api_instance->checkoutsCreate($checkout_resource);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CheckoutsApi->checkoutsCreate: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
checkout_resource | \Ageras\Api\CheckoutResource |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Ageras\Api\CheckoutResource checkoutsGet($checkout_id )
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: jwt
Ageras\Api\Configuration::getDefaultConfiguration()->setApiKey('token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Ageras\Api\Configuration::getDefaultConfiguration()->setApiKeyPrefix('token', 'Bearer');
// Configure HTTP basic authorization: login
Ageras\Api\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Ageras\Api\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
$api_instance = new Ageras\Api\Api\CheckoutsApi();
$checkout_id = "checkout_id_example"; // string |
try {
$result = $api_instance->checkoutsGet($checkout_id );
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CheckoutsApi->checkoutsGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
checkout_id | string |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Ageras\Api\CheckoutResult checkoutsIndex($criteria)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: jwt
Ageras\Api\Configuration::getDefaultConfiguration()->setApiKey('token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Ageras\Api\Configuration::getDefaultConfiguration()->setApiKeyPrefix('token', 'Bearer');
// Configure HTTP basic authorization: login
Ageras\Api\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Ageras\Api\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
$api_instance = new Ageras\Api\Api\CheckoutsApi();
$criteria = [
'checkout_id' => "checkout_id_example"; // string | Id of checkouts to retrieve
'client_id' => "client_id_example"; // string | Clients
'partner_id' => "partner_id_example"; // string | Partners
'limit' => 56; // int | The number of resources to be returned.
'page' => 56; // int | The page position in the result.
'query' => "query_example"; // string | The search wildcard.
];
try {
$result = $api_instance->checkoutsIndex($criteria);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CheckoutsApi->checkoutsIndex: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
checkout_id | string | Id of checkouts to retrieve | [optional] |
client_id | string | Clients | [optional] |
partner_id | string | Partners | [optional] |
limit | int | The number of resources to be returned. | [optional] |
page | int | The page position in the result. | [optional] |
query | string | The search wildcard. | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Ageras\Api\CheckoutResource checkoutsUpdate($checkout_id , $checkout_resource)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: jwt
Ageras\Api\Configuration::getDefaultConfiguration()->setApiKey('token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Ageras\Api\Configuration::getDefaultConfiguration()->setApiKeyPrefix('token', 'Bearer');
// Configure HTTP basic authorization: login
Ageras\Api\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Ageras\Api\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
$api_instance = new Ageras\Api\Api\CheckoutsApi();
$checkout_id = "checkout_id_example"; // string |
$checkout_resource = new \Ageras\Api\CheckoutResource(); // \Ageras\Api\CheckoutResource |
try {
$result = $api_instance->checkoutsUpdate($checkout_id , $checkout_resource);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CheckoutsApi->checkoutsUpdate: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
checkout_id | string | ||
checkout_resource | \Ageras\Api\CheckoutResource |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]