Skip to content

Latest commit

 

History

History
2157 lines (1513 loc) · 85.5 KB

OrderItemApi.md

File metadata and controls

2157 lines (1513 loc) · 85.5 KB

MagDv\Cargomart\OrderItemApi

All URIs are relative to https://cargomart.ru.

Method HTTP request Description
apiV2OrderOrderIdAfeerExpressPost() POST /api/v2/order/{orderId}/afeer-express Подтверждение везти экспресс - заказ
apiV2OrderOrderIdArchivePost() POST /api/v2/order/{orderId}/archive Добавление заказа в архив.
apiV2OrderOrderIdBidGet() GET /api/v2/order/{orderId}/bid получение списка ставок на заказ.
apiV2OrderOrderIdBidLastGet() GET /api/v2/order/{orderId}/bid/last Получение последней информации связанной с торгами.
apiV2OrderOrderIdBidPost() POST /api/v2/order/{orderId}/bid Установка ставки на заказ.
apiV2OrderOrderIdBrokerDelete() DELETE /api/v2/order/{orderId}/broker Удвление брокера с заказа.
apiV2OrderOrderIdBrokerGet() GET /api/v2/order/{orderId}/broker Получение брокера на заказ.
apiV2OrderOrderIdBrokerPut() PUT /api/v2/order/{orderId}/broker Установка брокера на заказ.
apiV2OrderOrderIdCancelPost() POST /api/v2/order/{orderId}/cancel Отмена опубликованного заказа.
apiV2OrderOrderIdCarrierSignPost() POST /api/v2/order/{orderId}/carrier-sign Подписать взятие заказа перевозчиком
apiV2OrderOrderIdCheckDigitalEcnAccessGet() GET /api/v2/order/{orderId}/check-digital-ecn-access Проверка доступа к созданию Электронной ТРН.
apiV2OrderOrderIdEcnGet() GET /api/v2/order/{orderId}/ecn Получение списка ЭТрН у заказа
apiV2OrderOrderIdEcnPost() POST /api/v2/order/{orderId}/ecn Создание ЭТрН для заказа.
apiV2OrderOrderIdEcnTemplateGet() GET /api/v2/order/{orderId}/ecn-template Скачать транспортную накладную (подготовить ссылку на скачивание)
apiV2OrderOrderIdFixPriceGet() GET /api/v2/order/{orderId}/fix-price Зафиксировать цену заказа
apiV2OrderOrderIdGet() GET /api/v2/order/{orderId} Получение информации для карточки заказа.
apiV2OrderOrderIdItineraryGet() GET /api/v2/order/{orderId}/itinerary Получение данных по точкам маршрута.
apiV2OrderOrderIdNegotiatePost() POST /api/v2/order/{orderId}/negotiate Изменение заказчиком условий заказа, чтобы ближе соответствовать поступившим предложениям от перевозчиков
apiV2OrderOrderIdOfferGet() GET /api/v2/order/{orderId}/offer получение списка предложений на заказ.
apiV2OrderOrderIdOfferPost() POST /api/v2/order/{orderId}/offer Установка предложения на заказ.
apiV2OrderOrderIdOriginalDocsAcceptPost() POST /api/v2/order/{orderId}/original-docs-accept Подтвердить принятие оригиналов документов.
apiV2OrderOrderIdOriginalDocsRejectPost() POST /api/v2/order/{orderId}/original-docs-reject Отклонить оригиналы документов.
apiV2OrderOrderIdOriginalDocsTrackingNumberPost() POST /api/v2/order/{orderId}/original-docs-tracking-number Указать трек номер отправленных документов.
apiV2OrderOrderIdPinDelete() DELETE /api/v2/order/{orderId}/pin Удаление заказа из списка закрепленных.
apiV2OrderOrderIdPinGet() GET /api/v2/order/{orderId}/pin Получить список пользователей закрепивших заказ
apiV2OrderOrderIdPinPost() POST /api/v2/order/{orderId}/pin Добавление заказа в список закрепленных.
apiV2OrderOrderIdSignPost() POST /api/v2/order/{orderId}/sign Подписаться на заказ
apiV2OrderOrderIdSignedDocumentGet() GET /api/v2/order/{orderId}/signed-document Получение документов заказа со списком титулов
apiV2OrderOrderIdSimpleDocumentGet() GET /api/v2/order/{orderId}/simple-document Получение документов заказа со списком титулов
apiV2OrderOrderIdUnarchivePost() POST /api/v2/order/{orderId}/unarchive Возврат заказа из архива.
apiV2OrderOrderIdValidateEcnDataPost() POST /api/v2/order/{orderId}/validate-ecn-data Проверка данных ЭТрН заказа перед созданием.
apiV2OrderOrderIdVisitorGet() GET /api/v2/order/{orderId}/visitor Получить список пользователей открывавших карточку заказа

apiV2OrderOrderIdAfeerExpressPost()

apiV2OrderOrderIdAfeerExpressPost($order_id): \MagDv\Cargomart\Dto\OrderCardResponse

Подтверждение везти экспресс - заказ

Example

<?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\OrderItemApi(
    // 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->apiV2OrderOrderIdAfeerExpressPost($order_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrderItemApi->apiV2OrderOrderIdAfeerExpressPost: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
order_id string Идентификатор шаблона или базового заказа.

Return type

\MagDv\Cargomart\Dto\OrderCardResponse

Authorization

CookieTokenAuth, HeaderAuthorizationAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiV2OrderOrderIdArchivePost()

apiV2OrderOrderIdArchivePost($order_id): \MagDv\Cargomart\Dto\OrderCardResponse

Добавление заказа в архив.

Example

<?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\OrderItemApi(
    // 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->apiV2OrderOrderIdArchivePost($order_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrderItemApi->apiV2OrderOrderIdArchivePost: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
order_id string Идентификатор заказа

Return type

\MagDv\Cargomart\Dto\OrderCardResponse

Authorization

CookieTokenAuth, HeaderAuthorizationAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiV2OrderOrderIdBidGet()

apiV2OrderOrderIdBidGet($order_id): \MagDv\Cargomart\Dto\BidListResponse

получение списка ставок на заказ.

Example

<?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\OrderItemApi(
    // 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->apiV2OrderOrderIdBidGet($order_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrderItemApi->apiV2OrderOrderIdBidGet: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
order_id string Идентификатор шаблона или базового заказа.

Return type

\MagDv\Cargomart\Dto\BidListResponse

Authorization

CookieTokenAuth, HeaderAuthorizationAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiV2OrderOrderIdBidLastGet()

apiV2OrderOrderIdBidLastGet($order_id): \MagDv\Cargomart\Dto\BidLastResponse

Получение последней информации связанной с торгами.

Example

<?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\OrderItemApi(
    // 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->apiV2OrderOrderIdBidLastGet($order_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrderItemApi->apiV2OrderOrderIdBidLastGet: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
order_id string Идентификатор шаблона или базового заказа.

Return type

\MagDv\Cargomart\Dto\BidLastResponse

Authorization

CookieTokenAuth, HeaderAuthorizationAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiV2OrderOrderIdBidPost()

apiV2OrderOrderIdBidPost($order_id, $bid_push_request): \MagDv\Cargomart\Dto\BidLastResponse

Установка ставки на заказ.

Example

<?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\OrderItemApi(
    // 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 | Идентификатор шаблона или базового заказа.
$bid_push_request = new \MagDv\Cargomart\Dto\BidPushRequest(); // \MagDv\Cargomart\Dto\BidPushRequest

try {
    $result = $apiInstance->apiV2OrderOrderIdBidPost($order_id, $bid_push_request);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrderItemApi->apiV2OrderOrderIdBidPost: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
order_id string Идентификатор шаблона или базового заказа.
bid_push_request \MagDv\Cargomart\Dto\BidPushRequest

Return type

\MagDv\Cargomart\Dto\BidLastResponse

Authorization

CookieTokenAuth, HeaderAuthorizationAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiV2OrderOrderIdBrokerDelete()

apiV2OrderOrderIdBrokerDelete($order_id)

Удвление брокера с заказа.

Example

<?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\OrderItemApi(
    // 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 {
    $apiInstance->apiV2OrderOrderIdBrokerDelete($order_id);
} catch (Exception $e) {
    echo 'Exception when calling OrderItemApi->apiV2OrderOrderIdBrokerDelete: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
order_id string Идентификатор шаблона или базового заказа.

Return type

void (empty response body)

Authorization

CookieTokenAuth, HeaderAuthorizationAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiV2OrderOrderIdBrokerGet()

apiV2OrderOrderIdBrokerGet($order_id): \MagDv\Cargomart\Dto\BrokerResponse

Получение брокера на заказ.

Example

<?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\OrderItemApi(
    // 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->apiV2OrderOrderIdBrokerGet($order_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrderItemApi->apiV2OrderOrderIdBrokerGet: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
order_id string Идентификатор шаблона или базового заказа.

Return type

\MagDv\Cargomart\Dto\BrokerResponse

Authorization

CookieTokenAuth, HeaderAuthorizationAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiV2OrderOrderIdBrokerPut()

apiV2OrderOrderIdBrokerPut($order_id, $broker_put_request): \MagDv\Cargomart\Dto\BrokerResponse

Установка брокера на заказ.

Example

<?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\OrderItemApi(
    // 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 | Идентификатор шаблона или базового заказа.
$broker_put_request = new \MagDv\Cargomart\Dto\BrokerPutRequest(); // \MagDv\Cargomart\Dto\BrokerPutRequest

try {
    $result = $apiInstance->apiV2OrderOrderIdBrokerPut($order_id, $broker_put_request);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrderItemApi->apiV2OrderOrderIdBrokerPut: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
order_id string Идентификатор шаблона или базового заказа.
broker_put_request \MagDv\Cargomart\Dto\BrokerPutRequest

Return type

\MagDv\Cargomart\Dto\BrokerResponse

Authorization

CookieTokenAuth, HeaderAuthorizationAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiV2OrderOrderIdCancelPost()

apiV2OrderOrderIdCancelPost($order_id): \MagDv\Cargomart\Dto\OrderCardResponse

Отмена опубликованного заказа.

Example

<?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\OrderItemApi(
    // 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->apiV2OrderOrderIdCancelPost($order_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrderItemApi->apiV2OrderOrderIdCancelPost: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
order_id string Идентификатор шаблона или базового заказа.

Return type

\MagDv\Cargomart\Dto\OrderCardResponse

Authorization

CookieTokenAuth, HeaderAuthorizationAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiV2OrderOrderIdCarrierSignPost()

apiV2OrderOrderIdCarrierSignPost($order_id): \MagDv\Cargomart\Dto\OrderCardResponse

Подписать взятие заказа перевозчиком

Подписать взятие заказа перевозчиком

Example

<?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\OrderItemApi(
    // 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->apiV2OrderOrderIdCarrierSignPost($order_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrderItemApi->apiV2OrderOrderIdCarrierSignPost: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
order_id string Идентификатор заказа.

Return type

\MagDv\Cargomart\Dto\OrderCardResponse

Authorization

CookieTokenAuth, HeaderAuthorizationAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiV2OrderOrderIdCheckDigitalEcnAccessGet()

apiV2OrderOrderIdCheckDigitalEcnAccessGet($order_id, $point_index_from, $point_index_to): \MagDv\Cargomart\Dto\OrderEcnCheckAccessResponse

Проверка доступа к созданию Электронной ТРН.

Example

<?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\OrderItemApi(
    // 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 | Идентификатор заказа.
$point_index_from = 56; // int | Индекс пункта погрузки из маршрута.
$point_index_to = 56; // int | Индекс пункта выгрузки из маршрута.

try {
    $result = $apiInstance->apiV2OrderOrderIdCheckDigitalEcnAccessGet($order_id, $point_index_from, $point_index_to);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrderItemApi->apiV2OrderOrderIdCheckDigitalEcnAccessGet: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
order_id string Идентификатор заказа.
point_index_from int Индекс пункта погрузки из маршрута.
point_index_to int Индекс пункта выгрузки из маршрута.

Return type

\MagDv\Cargomart\Dto\OrderEcnCheckAccessResponse

Authorization

CookieTokenAuth, HeaderAuthorizationAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiV2OrderOrderIdEcnGet()

apiV2OrderOrderIdEcnGet($order_id, $filter_index_from, $filter_index_to, $filter_type, $filter_status_group, $filter_status, $filter_is_active, $page, $per_page): \MagDv\Cargomart\Dto\OrderEcnListResponse

Получение списка ЭТрН у заказа

Example

<?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\OrderItemApi(
    // 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 | Идентификатор шаблона или базового заказа.
$filter_index_from = 56; // int | Индекс пункта откуда.
$filter_index_to = 56; // int | Индекс пункта куда.
$filter_type = new \MagDv\Cargomart\Dto\\MagDv\Cargomart\Dto\EcnType(); // \MagDv\Cargomart\Dto\EcnType | Тип ТРН.
$filter_status_group = new \MagDv\Cargomart\Dto\\MagDv\Cargomart\Dto\EcnStatusGroup(); // \MagDv\Cargomart\Dto\EcnStatusGroup | Обобщенный статус ТРН.
$filter_status = new \MagDv\Cargomart\Dto\\MagDv\Cargomart\Dto\EcnStatus(); // \MagDv\Cargomart\Dto\EcnStatus | Статус ТРН.
$filter_is_active = True; // bool | Выбрать только активные.
$page = 1; // int | Номер страницы для постраничной навигации
$per_page = 20; // int | Количество элементов на страницу

try {
    $result = $apiInstance->apiV2OrderOrderIdEcnGet($order_id, $filter_index_from, $filter_index_to, $filter_type, $filter_status_group, $filter_status, $filter_is_active, $page, $per_page);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrderItemApi->apiV2OrderOrderIdEcnGet: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
order_id string Идентификатор шаблона или базового заказа.
filter_index_from int Индекс пункта откуда. [optional]
filter_index_to int Индекс пункта куда. [optional]
filter_type \MagDv\Cargomart\Dto\EcnType Тип ТРН. [optional]
filter_status_group \MagDv\Cargomart\Dto\EcnStatusGroup Обобщенный статус ТРН. [optional]
filter_status \MagDv\Cargomart\Dto\EcnStatus Статус ТРН. [optional]
filter_is_active bool Выбрать только активные. [optional]
page int Номер страницы для постраничной навигации [optional] [default to 1]
per_page int Количество элементов на страницу [optional] [default to 20]

Return type

\MagDv\Cargomart\Dto\OrderEcnListResponse

Authorization

CookieTokenAuth, HeaderAuthorizationAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiV2OrderOrderIdEcnPost()

apiV2OrderOrderIdEcnPost($order_id, $ecn_additional_data): \MagDv\Cargomart\Dto\OrderEcnResponse

Создание ЭТрН для заказа.

Example

<?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\OrderItemApi(
    // 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 | Идентификатор заказа.
$ecn_additional_data = new \MagDv\Cargomart\Dto\EcnAdditionalData(); // \MagDv\Cargomart\Dto\EcnAdditionalData

try {
    $result = $apiInstance->apiV2OrderOrderIdEcnPost($order_id, $ecn_additional_data);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrderItemApi->apiV2OrderOrderIdEcnPost: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
order_id string Идентификатор заказа.
ecn_additional_data \MagDv\Cargomart\Dto\EcnAdditionalData

Return type

\MagDv\Cargomart\Dto\OrderEcnResponse

Authorization

CookieTokenAuth, HeaderAuthorizationAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiV2OrderOrderIdEcnTemplateGet()

apiV2OrderOrderIdEcnTemplateGet($order_id, $format, $point_index): \MagDv\Cargomart\Dto\FileLinkResponse

Скачать транспортную накладную (подготовить ссылку на скачивание)

Example

<?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\OrderItemApi(
    // 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 | Идентификатор заказа.
$format = new \MagDv\Cargomart\Dto\\MagDv\Cargomart\Dto\EcnTemplateFormatEnum(); // \MagDv\Cargomart\Dto\EcnTemplateFormatEnum | Формат формирования накладной.
$point_index = array(56); // int[] | Индексы точек погрузки, которые указать в ТН, 2-шт

try {
    $result = $apiInstance->apiV2OrderOrderIdEcnTemplateGet($order_id, $format, $point_index);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrderItemApi->apiV2OrderOrderIdEcnTemplateGet: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
order_id string Идентификатор заказа.
format \MagDv\Cargomart\Dto\EcnTemplateFormatEnum Формат формирования накладной. [optional]
point_index int[] Индексы точек погрузки, которые указать в ТН, 2-шт [optional]

Return type

\MagDv\Cargomart\Dto\FileLinkResponse

Authorization

CookieTokenAuth, HeaderAuthorizationAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiV2OrderOrderIdFixPriceGet()

apiV2OrderOrderIdFixPriceGet($order_id): \MagDv\Cargomart\Dto\OrderFixPriceResponse

Зафиксировать цену заказа

Зафиксировать цену заказа

Example

<?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\OrderItemApi(
    // 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->apiV2OrderOrderIdFixPriceGet($order_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrderItemApi->apiV2OrderOrderIdFixPriceGet: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
order_id string Идентификатор заказа.

Return type

\MagDv\Cargomart\Dto\OrderFixPriceResponse

Authorization

CookieTokenAuth, HeaderAuthorizationAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiV2OrderOrderIdGet()

apiV2OrderOrderIdGet($order_id): \MagDv\Cargomart\Dto\OrderCardResponse

Получение информации для карточки заказа.

Example

<?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\OrderItemApi(
    // 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->apiV2OrderOrderIdGet($order_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrderItemApi->apiV2OrderOrderIdGet: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
order_id string Идентификатор шаблона или базового заказа.

Return type

\MagDv\Cargomart\Dto\OrderCardResponse

Authorization

CookieTokenAuth, HeaderAuthorizationAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiV2OrderOrderIdItineraryGet()

apiV2OrderOrderIdItineraryGet($order_id, $with): \MagDv\Cargomart\Dto\ItineraryListResponse

Получение данных по точкам маршрута.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new MagDv\Cargomart\Api\OrderItemApi(
    // 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()
);
$order_id = 'order_id_example'; // string | Идентификатор шаблона или базового заказа.
$with = array('with_example'); // string[] | Связанные данные, добавить реальное местоположение машины

try {
    $result = $apiInstance->apiV2OrderOrderIdItineraryGet($order_id, $with);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrderItemApi->apiV2OrderOrderIdItineraryGet: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
order_id string Идентификатор шаблона или базового заказа.
with string[] Связанные данные, добавить реальное местоположение машины [optional]

Return type

\MagDv\Cargomart\Dto\ItineraryListResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiV2OrderOrderIdNegotiatePost()

apiV2OrderOrderIdNegotiatePost($order_id, $order_negotiate_request): \MagDv\Cargomart\Dto\OrderCardResponse

Изменение заказчиком условий заказа, чтобы ближе соответствовать поступившим предложениям от перевозчиков

Example

<?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\OrderItemApi(
    // 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 | Идентификатор заказа
$order_negotiate_request = new \MagDv\Cargomart\Dto\OrderNegotiateRequest(); // \MagDv\Cargomart\Dto\OrderNegotiateRequest

try {
    $result = $apiInstance->apiV2OrderOrderIdNegotiatePost($order_id, $order_negotiate_request);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrderItemApi->apiV2OrderOrderIdNegotiatePost: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
order_id string Идентификатор заказа
order_negotiate_request \MagDv\Cargomart\Dto\OrderNegotiateRequest

Return type

\MagDv\Cargomart\Dto\OrderCardResponse

Authorization

CookieTokenAuth, HeaderAuthorizationAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiV2OrderOrderIdOfferGet()

apiV2OrderOrderIdOfferGet($order_id): \MagDv\Cargomart\Dto\OrderOfferListResponse

получение списка предложений на заказ.

Example

<?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\OrderItemApi(
    // 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->apiV2OrderOrderIdOfferGet($order_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrderItemApi->apiV2OrderOrderIdOfferGet: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
order_id string Идентификатор шаблона или базового заказа.

Return type

\MagDv\Cargomart\Dto\OrderOfferListResponse

Authorization

CookieTokenAuth, HeaderAuthorizationAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiV2OrderOrderIdOfferPost()

apiV2OrderOrderIdOfferPost($order_id, $offer_push_request): \MagDv\Cargomart\Dto\OrderCardResponse

Установка предложения на заказ.

Example

<?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\OrderItemApi(
    // 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 | Идентификатор шаблона или базового заказа.
$offer_push_request = new \MagDv\Cargomart\Dto\OfferPushRequest(); // \MagDv\Cargomart\Dto\OfferPushRequest

try {
    $result = $apiInstance->apiV2OrderOrderIdOfferPost($order_id, $offer_push_request);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrderItemApi->apiV2OrderOrderIdOfferPost: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
order_id string Идентификатор шаблона или базового заказа.
offer_push_request \MagDv\Cargomart\Dto\OfferPushRequest

Return type

\MagDv\Cargomart\Dto\OrderCardResponse

Authorization

CookieTokenAuth, HeaderAuthorizationAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiV2OrderOrderIdOriginalDocsAcceptPost()

apiV2OrderOrderIdOriginalDocsAcceptPost($order_id): \MagDv\Cargomart\Dto\OrderCardResponse

Подтвердить принятие оригиналов документов.

Example

<?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\OrderItemApi(
    // 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->apiV2OrderOrderIdOriginalDocsAcceptPost($order_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrderItemApi->apiV2OrderOrderIdOriginalDocsAcceptPost: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
order_id string Идентификатор шаблона или базового заказа.

Return type

\MagDv\Cargomart\Dto\OrderCardResponse

Authorization

CookieTokenAuth, HeaderAuthorizationAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiV2OrderOrderIdOriginalDocsRejectPost()

apiV2OrderOrderIdOriginalDocsRejectPost($order_id, $reject_document_request): \MagDv\Cargomart\Dto\OrderCardResponse

Отклонить оригиналы документов.

Example

<?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\OrderItemApi(
    // 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 | Идентификатор шаблона или базового заказа.
$reject_document_request = new \MagDv\Cargomart\Dto\RejectDocumentRequest(); // \MagDv\Cargomart\Dto\RejectDocumentRequest

try {
    $result = $apiInstance->apiV2OrderOrderIdOriginalDocsRejectPost($order_id, $reject_document_request);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrderItemApi->apiV2OrderOrderIdOriginalDocsRejectPost: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
order_id string Идентификатор шаблона или базового заказа.
reject_document_request \MagDv\Cargomart\Dto\RejectDocumentRequest

Return type

\MagDv\Cargomart\Dto\OrderCardResponse

Authorization

CookieTokenAuth, HeaderAuthorizationAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiV2OrderOrderIdOriginalDocsTrackingNumberPost()

apiV2OrderOrderIdOriginalDocsTrackingNumberPost($order_id, $tracking_number_request): \MagDv\Cargomart\Dto\OrderCardResponse

Указать трек номер отправленных документов.

Example

<?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\OrderItemApi(
    // 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 | Идентификатор шаблона или базового заказа.
$tracking_number_request = new \MagDv\Cargomart\Dto\TrackingNumberRequest(); // \MagDv\Cargomart\Dto\TrackingNumberRequest

try {
    $result = $apiInstance->apiV2OrderOrderIdOriginalDocsTrackingNumberPost($order_id, $tracking_number_request);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrderItemApi->apiV2OrderOrderIdOriginalDocsTrackingNumberPost: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
order_id string Идентификатор шаблона или базового заказа.
tracking_number_request \MagDv\Cargomart\Dto\TrackingNumberRequest

Return type

\MagDv\Cargomart\Dto\OrderCardResponse

Authorization

CookieTokenAuth, HeaderAuthorizationAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiV2OrderOrderIdPinDelete()

apiV2OrderOrderIdPinDelete($order_id): \MagDv\Cargomart\Dto\OrderPinResponse

Удаление заказа из списка закрепленных.

Example

<?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\OrderItemApi(
    // 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->apiV2OrderOrderIdPinDelete($order_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrderItemApi->apiV2OrderOrderIdPinDelete: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
order_id string Идентификатор шаблона или базового заказа.

Return type

\MagDv\Cargomart\Dto\OrderPinResponse

Authorization

CookieTokenAuth, HeaderAuthorizationAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiV2OrderOrderIdPinGet()

apiV2OrderOrderIdPinGet($order_id): \MagDv\Cargomart\Dto\OrderUsersResponse

Получить список пользователей закрепивших заказ

Example

<?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\OrderItemApi(
    // 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->apiV2OrderOrderIdPinGet($order_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrderItemApi->apiV2OrderOrderIdPinGet: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
order_id string Идентификатор шаблона или базового заказа.

Return type

\MagDv\Cargomart\Dto\OrderUsersResponse

Authorization

CookieTokenAuth, HeaderAuthorizationAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiV2OrderOrderIdPinPost()

apiV2OrderOrderIdPinPost($order_id): \MagDv\Cargomart\Dto\OrderPinResponse

Добавление заказа в список закрепленных.

Example

<?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\OrderItemApi(
    // 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->apiV2OrderOrderIdPinPost($order_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrderItemApi->apiV2OrderOrderIdPinPost: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
order_id string Идентификатор заказа

Return type

\MagDv\Cargomart\Dto\OrderPinResponse

Authorization

CookieTokenAuth, HeaderAuthorizationAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiV2OrderOrderIdSignPost()

apiV2OrderOrderIdSignPost($order_id, $order_sign_create_request): \MagDv\Cargomart\Dto\OrderCardResponse

Подписаться на заказ

Подписаться на заказ

Example

<?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\OrderItemApi(
    // 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 | Идентификатор заказа.
$order_sign_create_request = new \MagDv\Cargomart\Dto\OrderSignCreateRequest(); // \MagDv\Cargomart\Dto\OrderSignCreateRequest

try {
    $result = $apiInstance->apiV2OrderOrderIdSignPost($order_id, $order_sign_create_request);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrderItemApi->apiV2OrderOrderIdSignPost: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
order_id string Идентификатор заказа.
order_sign_create_request \MagDv\Cargomart\Dto\OrderSignCreateRequest

Return type

\MagDv\Cargomart\Dto\OrderCardResponse

Authorization

CookieTokenAuth, HeaderAuthorizationAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiV2OrderOrderIdSignedDocumentGet()

apiV2OrderOrderIdSignedDocumentGet($order_id): \MagDv\Cargomart\Dto\OrderSignedDocumentListResponse

Получение документов заказа со списком титулов

Example

<?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\OrderItemApi(
    // 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->apiV2OrderOrderIdSignedDocumentGet($order_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrderItemApi->apiV2OrderOrderIdSignedDocumentGet: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
order_id string Идентификатор заказа.

Return type

\MagDv\Cargomart\Dto\OrderSignedDocumentListResponse

Authorization

CookieTokenAuth, HeaderAuthorizationAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiV2OrderOrderIdSimpleDocumentGet()

apiV2OrderOrderIdSimpleDocumentGet($order_id): \MagDv\Cargomart\Dto\OrderSimpleDocumentResponse

Получение документов заказа со списком титулов

Example

<?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\OrderItemApi(
    // 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->apiV2OrderOrderIdSimpleDocumentGet($order_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrderItemApi->apiV2OrderOrderIdSimpleDocumentGet: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
order_id string Идентификатор заказа.

Return type

\MagDv\Cargomart\Dto\OrderSimpleDocumentResponse

Authorization

CookieTokenAuth, HeaderAuthorizationAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiV2OrderOrderIdUnarchivePost()

apiV2OrderOrderIdUnarchivePost($order_id): \MagDv\Cargomart\Dto\OrderCardResponse

Возврат заказа из архива.

Example

<?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\OrderItemApi(
    // 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->apiV2OrderOrderIdUnarchivePost($order_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrderItemApi->apiV2OrderOrderIdUnarchivePost: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
order_id string Идентификатор заказа

Return type

\MagDv\Cargomart\Dto\OrderCardResponse

Authorization

CookieTokenAuth, HeaderAuthorizationAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiV2OrderOrderIdValidateEcnDataPost()

apiV2OrderOrderIdValidateEcnDataPost($order_id, $ecn_additional_data): \MagDv\Cargomart\Dto\BaseMessageResponse

Проверка данных ЭТрН заказа перед созданием.

Example

<?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\OrderItemApi(
    // 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 | Идентификатор заказа.
$ecn_additional_data = new \MagDv\Cargomart\Dto\EcnAdditionalData(); // \MagDv\Cargomart\Dto\EcnAdditionalData

try {
    $result = $apiInstance->apiV2OrderOrderIdValidateEcnDataPost($order_id, $ecn_additional_data);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrderItemApi->apiV2OrderOrderIdValidateEcnDataPost: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
order_id string Идентификатор заказа.
ecn_additional_data \MagDv\Cargomart\Dto\EcnAdditionalData

Return type

\MagDv\Cargomart\Dto\BaseMessageResponse

Authorization

CookieTokenAuth, HeaderAuthorizationAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiV2OrderOrderIdVisitorGet()

apiV2OrderOrderIdVisitorGet($order_id): \MagDv\Cargomart\Dto\OrderUsersResponse

Получить список пользователей открывавших карточку заказа

Example

<?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\OrderItemApi(
    // 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->apiV2OrderOrderIdVisitorGet($order_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrderItemApi->apiV2OrderOrderIdVisitorGet: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
order_id string Идентификатор шаблона или базового заказа.

Return type

\MagDv\Cargomart\Dto\OrderUsersResponse

Authorization

CookieTokenAuth, HeaderAuthorizationAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]