All URIs are relative to https://cargomart.ru.
Method | HTTP request | Description |
---|---|---|
apiV2OrderOrderIdClientAccessDelete() | DELETE /api/v2/order/{orderId}/client-access | Удалить список партнеров из исключенных. |
apiV2OrderOrderIdClientAccessGet() | GET /api/v2/order/{orderId}/client-access | Получение списка исключеных партнеров. |
apiV2OrderOrderIdClientAccessPatch() | PATCH /api/v2/order/{orderId}/client-access | Отправить список партнеров на исключение. |
apiV2OrderOrderIdClonePost() | POST /api/v2/order/{orderId}/clone | Создание нового заказа из шаблона или на основании |
apiV2OrderOrderIdContactDelete() | DELETE /api/v2/order/{orderId}/contact | Список контактов на удаление из заказа. |
apiV2OrderOrderIdContactGet() | GET /api/v2/order/{orderId}/contact | Получение списка контактов. |
apiV2OrderOrderIdContactPatch() | PATCH /api/v2/order/{orderId}/contact | Отправить список контактов для добавления. |
apiV2OrderOrderIdDelete() | DELETE /api/v2/order/{orderId} | Удаление заказа |
apiV2OrderOrderIdEditGet() | GET /api/v2/order/{orderId}/edit | Получение данных для редактирования заказа |
apiV2OrderOrderIdModerationApprovePost() | POST /api/v2/order/{orderId}/moderation-approve | Опубликовать заказ под ГП. |
apiV2OrderOrderIdModerationDelete() | DELETE /api/v2/order/{orderId}/moderation | Забрать заказ на модерации ГП. |
apiV2OrderOrderIdModerationPost() | POST /api/v2/order/{orderId}/moderation | Отправка заказа на модерацию ГП. |
apiV2OrderOrderIdModerationRejectPost() | POST /api/v2/order/{orderId}/moderation-reject | Отклонение модератором заказа. |
apiV2OrderOrderIdPatch() | PATCH /api/v2/order/{orderId} | Редактирование информации о заказе |
apiV2OrderOrderIdPointPointIdDelete() | DELETE /api/v2/order/{orderId}/point/{pointId} | Удаление маршрутной точки |
apiV2OrderOrderIdPointPointIdGet() | GET /api/v2/order/{orderId}/point/{pointId} | Получение информации по кокретной точке |
apiV2OrderOrderIdPointPointIdPatch() | PATCH /api/v2/order/{orderId}/point/{pointId} | Редактирование маршрутной точки |
apiV2OrderOrderIdPointPost() | POST /api/v2/order/{orderId}/point | Создание новой маршрутной точки |
apiV2OrderOrderIdPointSwapPost() | POST /api/v2/order/{orderId}/point/swap | Изменение последовательности точек. |
apiV2OrderOrderIdPublishPost() | POST /api/v2/order/{orderId}/publish | Публикация заказа |
apiV2OrderOrderIdSavePost() | POST /api/v2/order/{orderId}/save | Перевод заказа из времменого в черновики. |
apiV2OrderOrderIdTagGet() | GET /api/v2/order/{orderId}/tag | Получение списка тэгов заказа. |
apiV2OrderOrderIdTagPut() | PUT /api/v2/order/{orderId}/tag | Запись списка тэгов. |
apiV2OrderOrderIdValidatePost() | POST /api/v2/order/{orderId}/validate | Проверка валидности заказа |
apiV2OrderPost() | POST /api/v2/order | Создание нового заказа |
apiV2OrderOrderIdClientAccessDelete($order_id, $hash_list_request)
Удалить список партнеров из исключенных.
<?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\OrderEditApi(
// 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 | Идентификатор шаблона или базового заказа.
$hash_list_request = new \MagDv\Cargomart\Dto\HashListRequest(); // \MagDv\Cargomart\Dto\HashListRequest
try {
$apiInstance->apiV2OrderOrderIdClientAccessDelete($order_id, $hash_list_request);
} catch (Exception $e) {
echo 'Exception when calling OrderEditApi->apiV2OrderOrderIdClientAccessDelete: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
order_id | string | Идентификатор шаблона или базового заказа. | |
hash_list_request | \MagDv\Cargomart\Dto\HashListRequest |
void (empty response body)
CookieTokenAuth, HeaderAuthorizationAuth
- Content-Type:
application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
apiV2OrderOrderIdClientAccessGet($order_id): \MagDv\Cargomart\Dto\OrderClientAccessListResponse
Получение списка исключеных партнеров.
<?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\OrderEditApi(
// 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->apiV2OrderOrderIdClientAccessGet($order_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OrderEditApi->apiV2OrderOrderIdClientAccessGet: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
order_id | string | Идентификатор шаблона или базового заказа. |
\MagDv\Cargomart\Dto\OrderClientAccessListResponse
CookieTokenAuth, HeaderAuthorizationAuth
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
apiV2OrderOrderIdClientAccessPatch($order_id, $hash_list_request)
Отправить список партнеров на исключение.
<?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\OrderEditApi(
// 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 | Идентификатор шаблона или базового заказа.
$hash_list_request = new \MagDv\Cargomart\Dto\HashListRequest(); // \MagDv\Cargomart\Dto\HashListRequest
try {
$apiInstance->apiV2OrderOrderIdClientAccessPatch($order_id, $hash_list_request);
} catch (Exception $e) {
echo 'Exception when calling OrderEditApi->apiV2OrderOrderIdClientAccessPatch: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
order_id | string | Идентификатор шаблона или базового заказа. | |
hash_list_request | \MagDv\Cargomart\Dto\HashListRequest |
void (empty response body)
CookieTokenAuth, HeaderAuthorizationAuth
- Content-Type:
application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
apiV2OrderOrderIdClonePost($order_id): \MagDv\Cargomart\Dto\OrderEditResponse
Создание нового заказа из шаблона или на основании
<?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\OrderEditApi(
// 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->apiV2OrderOrderIdClonePost($order_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OrderEditApi->apiV2OrderOrderIdClonePost: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
order_id | string | Идентификатор шаблона или базового заказа. |
\MagDv\Cargomart\Dto\OrderEditResponse
CookieTokenAuth, HeaderAuthorizationAuth
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
apiV2OrderOrderIdContactDelete($order_id, $id_list_request)
Список контактов на удаление из заказа.
<?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\OrderEditApi(
// 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 | Идентификатор шаблона или базового заказа.
$id_list_request = new \MagDv\Cargomart\Dto\IdListRequest(); // \MagDv\Cargomart\Dto\IdListRequest
try {
$apiInstance->apiV2OrderOrderIdContactDelete($order_id, $id_list_request);
} catch (Exception $e) {
echo 'Exception when calling OrderEditApi->apiV2OrderOrderIdContactDelete: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
order_id | string | Идентификатор шаблона или базового заказа. | |
id_list_request | \MagDv\Cargomart\Dto\IdListRequest |
void (empty response body)
CookieTokenAuth, HeaderAuthorizationAuth
- Content-Type:
application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
apiV2OrderOrderIdContactGet($order_id): \MagDv\Cargomart\Dto\OrderContactListResponse
Получение списка контактов.
<?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\OrderEditApi(
// 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->apiV2OrderOrderIdContactGet($order_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OrderEditApi->apiV2OrderOrderIdContactGet: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
order_id | string | Идентификатор шаблона или базового заказа. |
\MagDv\Cargomart\Dto\OrderContactListResponse
CookieTokenAuth, HeaderAuthorizationAuth
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
apiV2OrderOrderIdContactPatch($order_id, $id_list_request)
Отправить список контактов для добавления.
<?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\OrderEditApi(
// 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 | Идентификатор шаблона или базового заказа.
$id_list_request = new \MagDv\Cargomart\Dto\IdListRequest(); // \MagDv\Cargomart\Dto\IdListRequest
try {
$apiInstance->apiV2OrderOrderIdContactPatch($order_id, $id_list_request);
} catch (Exception $e) {
echo 'Exception when calling OrderEditApi->apiV2OrderOrderIdContactPatch: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
order_id | string | Идентификатор шаблона или базового заказа. | |
id_list_request | \MagDv\Cargomart\Dto\IdListRequest |
void (empty response body)
CookieTokenAuth, HeaderAuthorizationAuth
- Content-Type:
application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
apiV2OrderOrderIdDelete($order_id)
Удаление заказа
<?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\OrderEditApi(
// 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->apiV2OrderOrderIdDelete($order_id);
} catch (Exception $e) {
echo 'Exception when calling OrderEditApi->apiV2OrderOrderIdDelete: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
order_id | string | Идентификатор шаблона или базового заказа. |
void (empty response body)
CookieTokenAuth, HeaderAuthorizationAuth
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
apiV2OrderOrderIdEditGet($order_id): \MagDv\Cargomart\Dto\OrderEditResponse
Получение данных для редактирования заказа
<?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\OrderEditApi(
// 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->apiV2OrderOrderIdEditGet($order_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OrderEditApi->apiV2OrderOrderIdEditGet: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
order_id | string | Идентификатор шаблона или базового заказа. |
\MagDv\Cargomart\Dto\OrderEditResponse
CookieTokenAuth, HeaderAuthorizationAuth
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
apiV2OrderOrderIdModerationApprovePost($order_id): \MagDv\Cargomart\Dto\OrderEditResponse
Опубликовать заказ под ГП.
<?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\OrderEditApi(
// 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->apiV2OrderOrderIdModerationApprovePost($order_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OrderEditApi->apiV2OrderOrderIdModerationApprovePost: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
order_id | string | Идентификатор шаблона или базового заказа. |
\MagDv\Cargomart\Dto\OrderEditResponse
CookieTokenAuth, HeaderAuthorizationAuth
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
apiV2OrderOrderIdModerationDelete($order_id): \MagDv\Cargomart\Dto\OrderEditResponse
Забрать заказ на модерации ГП.
<?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\OrderEditApi(
// 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->apiV2OrderOrderIdModerationDelete($order_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OrderEditApi->apiV2OrderOrderIdModerationDelete: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
order_id | string | Идентификатор шаблона или базового заказа. |
\MagDv\Cargomart\Dto\OrderEditResponse
CookieTokenAuth, HeaderAuthorizationAuth
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
apiV2OrderOrderIdModerationPost($order_id, $order_publish_request): \MagDv\Cargomart\Dto\OrderEditResponse
Отправка заказа на модерацию ГП.
<?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\OrderEditApi(
// 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_publish_request = new \MagDv\Cargomart\Dto\OrderPublishRequest(); // \MagDv\Cargomart\Dto\OrderPublishRequest
try {
$result = $apiInstance->apiV2OrderOrderIdModerationPost($order_id, $order_publish_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OrderEditApi->apiV2OrderOrderIdModerationPost: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
order_id | string | Идентификатор шаблона или базового заказа. | |
order_publish_request | \MagDv\Cargomart\Dto\OrderPublishRequest | [optional] |
\MagDv\Cargomart\Dto\OrderEditResponse
CookieTokenAuth, HeaderAuthorizationAuth
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
apiV2OrderOrderIdModerationRejectPost($order_id, $message_request): \MagDv\Cargomart\Dto\OrderCardResponse
Отклонение модератором заказа.
<?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\OrderEditApi(
// 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 | Идентификатор шаблона или базового заказа.
$message_request = new \MagDv\Cargomart\Dto\MessageRequest(); // \MagDv\Cargomart\Dto\MessageRequest
try {
$result = $apiInstance->apiV2OrderOrderIdModerationRejectPost($order_id, $message_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OrderEditApi->apiV2OrderOrderIdModerationRejectPost: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
order_id | string | Идентификатор шаблона или базового заказа. | |
message_request | \MagDv\Cargomart\Dto\MessageRequest |
\MagDv\Cargomart\Dto\OrderCardResponse
CookieTokenAuth, HeaderAuthorizationAuth
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
apiV2OrderOrderIdPatch($order_id, $order_edit_request): \MagDv\Cargomart\Dto\OrderEditResponse
Редактирование информации о заказе
<?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\OrderEditApi(
// 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_edit_request = new \MagDv\Cargomart\Dto\OrderEditRequest(); // \MagDv\Cargomart\Dto\OrderEditRequest
try {
$result = $apiInstance->apiV2OrderOrderIdPatch($order_id, $order_edit_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OrderEditApi->apiV2OrderOrderIdPatch: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
order_id | string | Идентификатор шаблона или базового заказа. | |
order_edit_request | \MagDv\Cargomart\Dto\OrderEditRequest | [optional] |
\MagDv\Cargomart\Dto\OrderEditResponse
CookieTokenAuth, HeaderAuthorizationAuth
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
apiV2OrderOrderIdPointPointIdDelete($order_id, $point_id)
Удаление маршрутной точки
<?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\OrderEditApi(
// 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_id = 56; // int | Идентификатор маршрутной точки.
try {
$apiInstance->apiV2OrderOrderIdPointPointIdDelete($order_id, $point_id);
} catch (Exception $e) {
echo 'Exception when calling OrderEditApi->apiV2OrderOrderIdPointPointIdDelete: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
order_id | string | Идентификатор шаблона или базового заказа. | |
point_id | int | Идентификатор маршрутной точки. |
void (empty response body)
CookieTokenAuth, HeaderAuthorizationAuth
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
apiV2OrderOrderIdPointPointIdGet($order_id, $point_id): \MagDv\Cargomart\Dto\OrderPointEditResponse
Получение информации по кокретной точке
<?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\OrderEditApi(
// 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_id = 56; // int | Идентификатор маршрутной точки.
try {
$result = $apiInstance->apiV2OrderOrderIdPointPointIdGet($order_id, $point_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OrderEditApi->apiV2OrderOrderIdPointPointIdGet: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
order_id | string | Идентификатор шаблона или базового заказа. | |
point_id | int | Идентификатор маршрутной точки. |
\MagDv\Cargomart\Dto\OrderPointEditResponse
CookieTokenAuth, HeaderAuthorizationAuth
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
apiV2OrderOrderIdPointPointIdPatch($order_id, $point_id, $order_point_edit_request): \MagDv\Cargomart\Dto\OrderPointEditResponse
Редактирование маршрутной точки
<?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\OrderEditApi(
// 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_id = 56; // int | Идентификатор маршрутной точки.
$order_point_edit_request = new \MagDv\Cargomart\Dto\OrderPointEditRequest(); // \MagDv\Cargomart\Dto\OrderPointEditRequest
try {
$result = $apiInstance->apiV2OrderOrderIdPointPointIdPatch($order_id, $point_id, $order_point_edit_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OrderEditApi->apiV2OrderOrderIdPointPointIdPatch: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
order_id | string | Идентификатор шаблона или базового заказа. | |
point_id | int | Идентификатор маршрутной точки. | |
order_point_edit_request | \MagDv\Cargomart\Dto\OrderPointEditRequest |
\MagDv\Cargomart\Dto\OrderPointEditResponse
CookieTokenAuth, HeaderAuthorizationAuth
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
apiV2OrderOrderIdPointPost($order_id, $order_point_create_request): \MagDv\Cargomart\Dto\OrderPointEditResponse
Создание новой маршрутной точки
<?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\OrderEditApi(
// 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_point_create_request = new \MagDv\Cargomart\Dto\OrderPointCreateRequest(); // \MagDv\Cargomart\Dto\OrderPointCreateRequest
try {
$result = $apiInstance->apiV2OrderOrderIdPointPost($order_id, $order_point_create_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OrderEditApi->apiV2OrderOrderIdPointPost: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
order_id | string | Идентификатор шаблона или базового заказа. | |
order_point_create_request | \MagDv\Cargomart\Dto\OrderPointCreateRequest |
\MagDv\Cargomart\Dto\OrderPointEditResponse
CookieTokenAuth, HeaderAuthorizationAuth
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
apiV2OrderOrderIdPointSwapPost($order_id, $order_point_edit_swap_request)
Изменение последовательности точек.
<?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\OrderEditApi(
// 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_point_edit_swap_request = new \MagDv\Cargomart\Dto\OrderPointEditSwapRequest(); // \MagDv\Cargomart\Dto\OrderPointEditSwapRequest
try {
$apiInstance->apiV2OrderOrderIdPointSwapPost($order_id, $order_point_edit_swap_request);
} catch (Exception $e) {
echo 'Exception when calling OrderEditApi->apiV2OrderOrderIdPointSwapPost: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
order_id | string | Идентификатор шаблона или базового заказа. | |
order_point_edit_swap_request | \MagDv\Cargomart\Dto\OrderPointEditSwapRequest |
void (empty response body)
CookieTokenAuth, HeaderAuthorizationAuth
- Content-Type:
application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
apiV2OrderOrderIdPublishPost($order_id, $order_publish_request): \MagDv\Cargomart\Dto\OrderCardResponse
Публикация заказа
<?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\OrderEditApi(
// 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_publish_request = new \MagDv\Cargomart\Dto\OrderPublishRequest(); // \MagDv\Cargomart\Dto\OrderPublishRequest
try {
$result = $apiInstance->apiV2OrderOrderIdPublishPost($order_id, $order_publish_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OrderEditApi->apiV2OrderOrderIdPublishPost: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
order_id | string | Идентификатор шаблона или базового заказа. | |
order_publish_request | \MagDv\Cargomart\Dto\OrderPublishRequest | [optional] |
\MagDv\Cargomart\Dto\OrderCardResponse
CookieTokenAuth, HeaderAuthorizationAuth
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
apiV2OrderOrderIdSavePost($order_id): \MagDv\Cargomart\Dto\OrderEditResponse
Перевод заказа из времменого в черновики.
<?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\OrderEditApi(
// 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->apiV2OrderOrderIdSavePost($order_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OrderEditApi->apiV2OrderOrderIdSavePost: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
order_id | string | Идентификатор шаблона или базового заказа. |
\MagDv\Cargomart\Dto\OrderEditResponse
CookieTokenAuth, HeaderAuthorizationAuth
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
apiV2OrderOrderIdTagGet($order_id): \MagDv\Cargomart\Dto\OrderTagListResponse
Получение списка тэгов заказа.
<?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\OrderEditApi(
// 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->apiV2OrderOrderIdTagGet($order_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OrderEditApi->apiV2OrderOrderIdTagGet: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
order_id | string | Идентификатор шаблона или базового заказа. |
\MagDv\Cargomart\Dto\OrderTagListResponse
CookieTokenAuth, HeaderAuthorizationAuth
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
apiV2OrderOrderIdTagPut($order_id, $order_edit_tag_request): \MagDv\Cargomart\Dto\OrderTagListResponse
Запись списка тэгов.
<?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\OrderEditApi(
// 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_edit_tag_request = new \MagDv\Cargomart\Dto\OrderEditTagRequest(); // \MagDv\Cargomart\Dto\OrderEditTagRequest
try {
$result = $apiInstance->apiV2OrderOrderIdTagPut($order_id, $order_edit_tag_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OrderEditApi->apiV2OrderOrderIdTagPut: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
order_id | string | Идентификатор шаблона или базового заказа. | |
order_edit_tag_request | \MagDv\Cargomart\Dto\OrderEditTagRequest |
\MagDv\Cargomart\Dto\OrderTagListResponse
CookieTokenAuth, HeaderAuthorizationAuth
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
apiV2OrderOrderIdValidatePost($order_id): \MagDv\Cargomart\Dto\OrderEditResponse
Проверка валидности заказа
<?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\OrderEditApi(
// 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->apiV2OrderOrderIdValidatePost($order_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OrderEditApi->apiV2OrderOrderIdValidatePost: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
order_id | string | Идентификатор шаблона или базового заказа. |
\MagDv\Cargomart\Dto\OrderEditResponse
CookieTokenAuth, HeaderAuthorizationAuth
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
apiV2OrderPost($order_create_request): \MagDv\Cargomart\Dto\OrderEditResponse
Создание нового заказа
<?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\OrderEditApi(
// 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_create_request = new \MagDv\Cargomart\Dto\OrderCreateRequest(); // \MagDv\Cargomart\Dto\OrderCreateRequest
try {
$result = $apiInstance->apiV2OrderPost($order_create_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OrderEditApi->apiV2OrderPost: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
order_create_request | \MagDv\Cargomart\Dto\OrderCreateRequest |
\MagDv\Cargomart\Dto\OrderEditResponse
CookieTokenAuth, HeaderAuthorizationAuth
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]