All URIs are relative to http://ce22.vg/index.php/rest/default
| Method | HTTP request | Description |
|---|---|---|
| rmaTrackManagementV1AddTrackPost | POST /V1/returns/{id}/tracking-numbers | |
| rmaTrackManagementV1GetShippingLabelPdfGet | GET /V1/returns/{id}/labels | |
| rmaTrackManagementV1GetTracksGet | GET /V1/returns/{id}/tracking-numbers | |
| rmaTrackManagementV1RemoveTrackByIdDelete | DELETE /V1/returns/{id}/tracking-numbers/{trackId} |
bool rmaTrackManagementV1AddTrackPost($id, $rmaTrackManagementV1AddTrackPostBody)
Add 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\RmaTrackManagementV1Api(
// 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 |
$rmaTrackManagementV1AddTrackPostBody = new \Krak\MagentoApiClient\Model\RmaTrackManagementV1AddTrackPostBody(); // \Krak\MagentoApiClient\Model\RmaTrackManagementV1AddTrackPostBody |
try {
$result = $apiInstance->rmaTrackManagementV1AddTrackPost($id, $rmaTrackManagementV1AddTrackPostBody);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RmaTrackManagementV1Api->rmaTrackManagementV1AddTrackPost: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| id | int | ||
| rmaTrackManagementV1AddTrackPostBody | \Krak\MagentoApiClient\Model\RmaTrackManagementV1AddTrackPostBody | [optional] |
bool
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string rmaTrackManagementV1GetShippingLabelPdfGet($id)
Get shipping label int the PDF format
<?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\RmaTrackManagementV1Api(
// 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 |
try {
$result = $apiInstance->rmaTrackManagementV1GetShippingLabelPdfGet($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RmaTrackManagementV1Api->rmaTrackManagementV1GetShippingLabelPdfGet: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| id | int |
string
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Krak\MagentoApiClient\Model\RmaDataTrackSearchResultInterface rmaTrackManagementV1GetTracksGet($id)
Get track list
<?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\RmaTrackManagementV1Api(
// 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 |
try {
$result = $apiInstance->rmaTrackManagementV1GetTracksGet($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RmaTrackManagementV1Api->rmaTrackManagementV1GetTracksGet: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| id | int |
\Krak\MagentoApiClient\Model\RmaDataTrackSearchResultInterface
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
bool rmaTrackManagementV1RemoveTrackByIdDelete($id, $trackId)
Remove 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\RmaTrackManagementV1Api(
// 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 |
$trackId = 56; // int |
try {
$result = $apiInstance->rmaTrackManagementV1RemoveTrackByIdDelete($id, $trackId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RmaTrackManagementV1Api->rmaTrackManagementV1RemoveTrackByIdDelete: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| id | int | ||
| trackId | int |
bool
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]