All URIs are relative to https://cargomart.ru.
Method | HTTP request | Description |
---|---|---|
apiV2OrderOrderIdExpeditorPaymentGet() | GET /api/v2/order/{orderId}/expeditor-payment | Получения списка оплат |
apiV2OrderOrderIdExpeditorPaymentGet($order_id): \MagDv\Cargomart\Dto\ExpeditorPaymentResponse
Получения списка оплат
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: CookieTokenAuth
$config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKey('token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKeyPrefix('token', 'Bearer');
// Configure API key authorization: HeaderAuthorizationAuth
$config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new MagDv\Cargomart\Api\ExpeditorPaymentApi(
// If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`.
// This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface
new GuzzleHttp\Client(),
$config
);
$order_id = 'order_id_example'; // string | Идентификатор заказа
try {
$result = $apiInstance->apiV2OrderOrderIdExpeditorPaymentGet($order_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ExpeditorPaymentApi->apiV2OrderOrderIdExpeditorPaymentGet: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
order_id | string | Идентификатор заказа |
\MagDv\Cargomart\Dto\ExpeditorPaymentResponse
CookieTokenAuth, HeaderAuthorizationAuth
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]