Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
125 lines (88 sloc) 4.18 KB

Swagger\Client\TrackingApi

All URIs are relative to https://apiv2.shiprocket.in

Method HTTP request Description
aWBTracking GET /v1/external/courier/track/awb/{awb_code} Get AWB tracking Details
shipmentTracking GET /v1/external/courier/track/shipment/{shipment_id} Get shipment Tracking Details

aWBTracking

\Swagger\Client\Model\AwbTrackingResponse aWBTracking($awb_code, $body)

Get AWB tracking Details

Get a JSON of tracking data by AWB.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$apiInstance = new Swagger\Client\Api\TrackingApi(
    // 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
);
$awb_code = 56; // int | awb code
$body = new \Swagger\Client\Model\AwbTrackingRequest(); // \Swagger\Client\Model\AwbTrackingRequest | 

try {
    $result = $apiInstance->aWBTracking($awb_code, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TrackingApi->aWBTracking: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
awb_code int awb code
body \Swagger\Client\Model\AwbTrackingRequest

Return type

\Swagger\Client\Model\AwbTrackingResponse

Authorization

Bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

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

shipmentTracking

\Swagger\Client\Model\ShipmentTrackingResponse shipmentTracking($shipment_id, $body)

Get shipment Tracking Details

Get a JSON of tracking data by Shipment id.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$apiInstance = new Swagger\Client\Api\TrackingApi(
    // 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
);
$shipment_id = 56; // int | Shipment ID
$body = new \Swagger\Client\Model\ShipmentTrackingRequest(); // \Swagger\Client\Model\ShipmentTrackingRequest | 

try {
    $result = $apiInstance->shipmentTracking($shipment_id, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TrackingApi->shipmentTracking: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
shipment_id int Shipment ID
body \Swagger\Client\Model\ShipmentTrackingRequest

Return type

\Swagger\Client\Model\ShipmentTrackingResponse

Authorization

Bearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

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

You can’t perform that action at this time.