All URIs are relative to http://ce22.vg/index.php/rest/default
Method | HTTP request | Description |
---|---|---|
salesOrderManagementV1AddCommentPost | POST /V1/orders/{id}/comments | |
salesOrderManagementV1CancelPost | POST /V1/orders/{id}/cancel | |
salesOrderManagementV1GetCommentsListGet | GET /V1/orders/{id}/comments | |
salesOrderManagementV1GetStatusGet | GET /V1/orders/{id}/statuses | |
salesOrderManagementV1HoldPost | POST /V1/orders/{id}/hold | |
salesOrderManagementV1NotifyPost | POST /V1/orders/{id}/emails | |
salesOrderManagementV1UnHoldPost | POST /V1/orders/{id}/unhold |
bool salesOrderManagementV1AddCommentPost($id, $salesOrderManagementV1AddCommentPostBody)
Adds a comment to a specified order.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: OAuth2
$config = Krak\MagentoApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Krak\MagentoApiClient\Api\SalesOrderManagementV1Api(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = 56; // int | The order ID.
$salesOrderManagementV1AddCommentPostBody = new \Krak\MagentoApiClient\Model\SalesOrderManagementV1AddCommentPostBody(); // \Krak\MagentoApiClient\Model\SalesOrderManagementV1AddCommentPostBody |
try {
$result = $apiInstance->salesOrderManagementV1AddCommentPost($id, $salesOrderManagementV1AddCommentPostBody);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling SalesOrderManagementV1Api->salesOrderManagementV1AddCommentPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | The order ID. | |
salesOrderManagementV1AddCommentPostBody | \Krak\MagentoApiClient\Model\SalesOrderManagementV1AddCommentPostBody | [optional] |
bool
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
bool salesOrderManagementV1CancelPost($id)
Cancels a specified order.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: OAuth2
$config = Krak\MagentoApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Krak\MagentoApiClient\Api\SalesOrderManagementV1Api(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = 56; // int | The order ID.
try {
$result = $apiInstance->salesOrderManagementV1CancelPost($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling SalesOrderManagementV1Api->salesOrderManagementV1CancelPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | The order ID. |
bool
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Krak\MagentoApiClient\Model\SalesDataOrderStatusHistorySearchResultInterface salesOrderManagementV1GetCommentsListGet($id)
Lists comments for a specified order.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: OAuth2
$config = Krak\MagentoApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Krak\MagentoApiClient\Api\SalesOrderManagementV1Api(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = 56; // int | The order ID.
try {
$result = $apiInstance->salesOrderManagementV1GetCommentsListGet($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling SalesOrderManagementV1Api->salesOrderManagementV1GetCommentsListGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | The order ID. |
\Krak\MagentoApiClient\Model\SalesDataOrderStatusHistorySearchResultInterface
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string salesOrderManagementV1GetStatusGet($id)
Gets the status for a specified order.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: OAuth2
$config = Krak\MagentoApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Krak\MagentoApiClient\Api\SalesOrderManagementV1Api(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = 56; // int | The order ID.
try {
$result = $apiInstance->salesOrderManagementV1GetStatusGet($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling SalesOrderManagementV1Api->salesOrderManagementV1GetStatusGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | The order ID. |
string
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
bool salesOrderManagementV1HoldPost($id)
Holds a specified order.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: OAuth2
$config = Krak\MagentoApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Krak\MagentoApiClient\Api\SalesOrderManagementV1Api(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = 56; // int | The order ID.
try {
$result = $apiInstance->salesOrderManagementV1HoldPost($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling SalesOrderManagementV1Api->salesOrderManagementV1HoldPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | The order ID. |
bool
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
bool salesOrderManagementV1NotifyPost($id)
Emails a user a specified order.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: OAuth2
$config = Krak\MagentoApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Krak\MagentoApiClient\Api\SalesOrderManagementV1Api(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = 56; // int | The order ID.
try {
$result = $apiInstance->salesOrderManagementV1NotifyPost($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling SalesOrderManagementV1Api->salesOrderManagementV1NotifyPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | The order ID. |
bool
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
bool salesOrderManagementV1UnHoldPost($id)
Releases a specified order from hold status.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: OAuth2
$config = Krak\MagentoApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Krak\MagentoApiClient\Api\SalesOrderManagementV1Api(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = 56; // int | The order ID.
try {
$result = $apiInstance->salesOrderManagementV1UnHoldPost($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling SalesOrderManagementV1Api->salesOrderManagementV1UnHoldPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | The order ID. |
bool
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]