All URIs are relative to http://ce22.vg/index.php/rest/default
| Method | HTTP request | Description |
|---|---|---|
| salesShipmentTrackRepositoryV1DeleteByIdDelete | DELETE /V1/shipment/track/{id} | |
| salesShipmentTrackRepositoryV1SavePost | POST /V1/shipment/track |
bool salesShipmentTrackRepositoryV1DeleteByIdDelete($id)
Deletes a specified shipment track by ID.
<?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\SalesShipmentTrackRepositoryV1Api(
// 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 shipment track ID.
try {
$result = $apiInstance->salesShipmentTrackRepositoryV1DeleteByIdDelete($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling SalesShipmentTrackRepositoryV1Api->salesShipmentTrackRepositoryV1DeleteByIdDelete: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| id | int | The shipment track 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\SalesDataShipmentTrackInterface salesShipmentTrackRepositoryV1SavePost($salesShipmentTrackRepositoryV1SavePostBody)
Performs persist operations for a specified shipment track.
<?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\SalesShipmentTrackRepositoryV1Api(
// 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
);
$salesShipmentTrackRepositoryV1SavePostBody = new \Krak\MagentoApiClient\Model\SalesShipmentTrackRepositoryV1SavePostBody(); // \Krak\MagentoApiClient\Model\SalesShipmentTrackRepositoryV1SavePostBody |
try {
$result = $apiInstance->salesShipmentTrackRepositoryV1SavePost($salesShipmentTrackRepositoryV1SavePostBody);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling SalesShipmentTrackRepositoryV1Api->salesShipmentTrackRepositoryV1SavePost: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| salesShipmentTrackRepositoryV1SavePostBody | \Krak\MagentoApiClient\Model\SalesShipmentTrackRepositoryV1SavePostBody | [optional] |
\Krak\MagentoApiClient\Model\SalesDataShipmentTrackInterface
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]