All URIs are relative to http://ce22.vg/index.php/rest/default
| Method | HTTP request | Description |
|---|---|---|
| rmaRmaRepositoryV1DeleteDelete | DELETE /V1/returns/{id} | |
| rmaRmaRepositoryV1GetGet | GET /V1/returns/{id} |
bool rmaRmaRepositoryV1DeleteDelete($id, $rmaRmaRepositoryV1DeleteDeleteBody)
Delete RMA
<?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\RmaRmaRepositoryV1Api(
// 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 = "id_example"; // string |
$rmaRmaRepositoryV1DeleteDeleteBody = new \Krak\MagentoApiClient\Model\RmaRmaRepositoryV1DeleteDeleteBody(); // \Krak\MagentoApiClient\Model\RmaRmaRepositoryV1DeleteDeleteBody |
try {
$result = $apiInstance->rmaRmaRepositoryV1DeleteDelete($id, $rmaRmaRepositoryV1DeleteDeleteBody);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RmaRmaRepositoryV1Api->rmaRmaRepositoryV1DeleteDelete: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | ||
| rmaRmaRepositoryV1DeleteDeleteBody | \Krak\MagentoApiClient\Model\RmaRmaRepositoryV1DeleteDeleteBody | [optional] |
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\RmaDataRmaInterface rmaRmaRepositoryV1GetGet($id)
Return data object for specified RMA 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\RmaRmaRepositoryV1Api(
// 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->rmaRmaRepositoryV1GetGet($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RmaRmaRepositoryV1Api->rmaRmaRepositoryV1GetGet: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| id | int |
\Krak\MagentoApiClient\Model\RmaDataRmaInterface
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]