Skip to content

Latest commit

 

History

History
116 lines (78 loc) · 4.09 KB

File metadata and controls

116 lines (78 loc) · 4.09 KB

Krak\MagentoApiClient\SalesShipmentTrackRepositoryV1Api

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

salesShipmentTrackRepositoryV1DeleteByIdDelete

bool salesShipmentTrackRepositoryV1DeleteByIdDelete($id)

Deletes a specified shipment track by ID.

Example

<?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;
}
?>

Parameters

Name Type Description Notes
id int The shipment track ID.

Return type

bool

Authorization

OAuth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

salesShipmentTrackRepositoryV1SavePost

\Krak\MagentoApiClient\Model\SalesDataShipmentTrackInterface salesShipmentTrackRepositoryV1SavePost($salesShipmentTrackRepositoryV1SavePostBody)

Performs persist operations for a specified shipment track.

Example

<?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;
}
?>

Parameters

Name Type Description Notes
salesShipmentTrackRepositoryV1SavePostBody \Krak\MagentoApiClient\Model\SalesShipmentTrackRepositoryV1SavePostBody [optional]

Return type

\Krak\MagentoApiClient\Model\SalesDataShipmentTrackInterface

Authorization

OAuth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]