Welcome to ShipRocket’s API Documentation. Get a clear understanding of all the sections and codes that are used in ShipRocket’s API. ShipRocket API uses the JSON syntax. First you need to register with ShipRocket and create an account. Simply click on this link to complete the simple sign up process. Please note that to utilise the ShipRocket API's, you need to upgrade your plan to Advance or Pro. To get access to use the API's, you need to call to +91-9266623006 our customer care or send a mail to [email protected], stating that you would like to use ShipRocket Open API's. After that you will have to provide an alternate email id which will be used for the ShipRocket API.
This PHP package is automatically generated by the Swagger Codegen project:
- API version: 1.0
- Build package: io.swagger.codegen.languages.PhpClientCodegen
PHP 5.5 and later
To install the bindings via Composer, add the following to composer.json
:
{
"repositories": [
{
"type": "git",
"url": "https://github.com//.git"
}
],
"require": {
"/": "*@dev"
}
}
Then run composer install
Download the files and include autoload.php
:
require_once('/path/to/SwaggerClient-php/vendor/autoload.php');
To run the unit tests:
composer install
./vendor/bin/phpunit
Please follow the installation procedure and then run the following:
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\AuthenticationApi(
// 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()
);
$body = new \Swagger\Client\Model\GetTokenRequest(); // \Swagger\Client\Model\GetTokenRequest |
try {
$result = $apiInstance->getToken($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AuthenticationApi->getToken: ', $e->getMessage(), PHP_EOL;
}
?>
All URIs are relative to https://apiv2.shiprocket.in
Class | Method | HTTP request | Description |
---|---|---|---|
AuthenticationApi | getToken | POST /v1/external/auth/login | Access Token |
ChannelsApi | getAll2 | GET /v1/external/channels | Get all channels |
CountriesApi | getCountries | GET /v1/external/countries | Countries |
CountriesApi | getZones | GET /v1/external/countries/show/{id} | Get all zones |
CouriersApi | awbCreation | POST /v1/external/courier/assign/awb | AWB Creation |
CouriersApi | checkServiceability | GET /v1/external/courier/serviceability/ | Check Serviceability |
CouriersApi | pickupCreation | POST /v1/external/courier/generate/pickup | Get Pickup Details |
DiscrepancyApi | discrepancy | GET /v1/external/billing/discrepancy | Get discrepancy Details |
FileImportsApi | v1ExternalErrorsIdCheckGet | GET /v1/external/errors/{id}/check | Get file import results from Bulk order, products, listing imports. |
InventoryApi | getInventories | GET /v1/external/inventory | Get Details of orders with inventories |
InventoryApi | updateInventory | PUT /v1/external/inventory/{id}/update | Update Inventory |
LabelApi | generateLabel | POST /v1/external/courier/generate/label | Generate Label |
ListingsApi | bulkImport1 | POST /v1/external/listings/import | Import Catalog mappings |
ListingsApi | exportMapped | GET /v1/external/listings/export/mapped | Export Mapped |
ListingsApi | exportSample | GET /v1/external/listings/sample | Export sample |
ListingsApi | exportUnMapped | GET /v1/external/listings/export/unmapped | Export Unmapped |
ListingsApi | getAll | GET /v1/external/listings | Get all Listings |
ListingsApi | map | POST /v1/external/listings/link | Map |
ManifestsApi | generateManifest | POST /v1/external/manifests/generate | Generate Manifests |
ManifestsApi | getManifests | POST /v1/external/orders/print/manifest | Get manifest |
OrdersApi | bulkImport2 | POST /v1/external/orders/import | Bulk Import |
OrdersApi | bulkSample1 | GET /v1/external/orders/sample | Get sample format for Orders Import |
OrdersApi | cancelOrders | POST /v1/external/orders/cancel | Cancel an order |
OrdersApi | changeAddress | POST /v1/external/orders/address/update | |
OrdersApi | createCustomOrder | POST /v1/external/orders/create/adhoc | Create Custom order |
OrdersApi | createLinkedOrder_ | POST /v1/external/orders/create | Create Channel Order |
OrdersApi | exportOrders | POST /v1/external/orders/export | |
OrdersApi | fetchOrders | GET /v1/external/orders/fetch | Fetch |
OrdersApi | fulfillment | PATCH /v1/external/orders/fulfill | Add inventory for order product |
OrdersApi | generateInvoice | POST /v1/external/orders/print/invoice | Generate Invoice |
OrdersApi | getAllOrders | GET /v1/external/orders | Get all orders |
OrdersApi | getOrder | GET /v1/external/orders/show/{id} | Get order Details |
OrdersApi | mapping | PATCH /v1/external/orders/mapping | Map orders products |
OrdersApi | syncStatus | GET /v1/external/orders/status | Sync status |
OrdersApi | track | GET /v1/external/orders/track | Get tracking Details |
ProductsApi | add | POST /v1/external/products | Add new Products |
ProductsApi | bulkExport | GET /v1/external/products/export | Bulk Sample |
ProductsApi | bulkImport | POST /v1/external/products/import | Bulk import |
ProductsApi | bulkSample | GET /v1/external/products/sample | Get a sample format to Import Products |
ProductsApi | getProducts | GET /v1/external/products | Get Products |
ProductsApi | show | GET /v1/external/products/show/{id} | Show |
ShipmentsApi | details | GET /v1/external/shipments/{id} | Get shipment Details of specific orders |
ShipmentsApi | getAllShipments | GET /v1/external/shipments | Get shipment Details |
StatementApi | satement | GET /v1/external/account/details/statement | Get statement Details |
TrackingApi | aWBTracking | GET /v1/external/courier/track/awb/{awb_code} | Get AWB tracking Details |
TrackingApi | shipmentTracking | GET /v1/external/courier/track/shipment/{shipment_id} | Get shipment Tracking Details |
- AddProduct422
- AddProduct422Errors
- AddRequest
- AwbCreationRequest
- AwbCreationResponse
- AwbCreationResponseResponse
- AwbCreationResponseResponseData
- AwbCreationResponseResponseDataAssignedDateTime
- AwbError500
- AwbTrackingRequest
- AwbTrackingResponse
- BulkExportResponse
- CancelOrdersRequest
- CancelOrdersResponse
- ChangeAddressRequest
- ChannelsRequest
- ChannelsRequestBaseChannel
- ChannelsRequestBaseChannelSettingsSample
- ChannelsRequestData
- ChannelsRequestSettings
- CheckServiceabilityError
- CheckServiceabilityResponse
- CreateLinkedOrderRequest
- CreateLinkedOrderRequestOrderItems
- CreateLinkedOrderResponse
- CreateQuickOrderRequest
- CreateQuickOrderRequestOrderItems
- CreateQuickOrderResponse
- DetailsResponse
- DiscrepancyResponse
- Export401
- FileImportResponse
- FulfillmentRequest
- FulfillmentRequestData
- FulfillmentResponse
- GenerateInvoiceRequest
- GenerateInvoiceResponse
- GenerateLabelRequest
- GenerateLabelResponse
- GenerateManifestRequest
- GenerateManifestResponse
- GetAllResponse
- GetAllResponseData
- GetCountriesResponse
- GetInventoriesResponse
- GetInventoriesResponseData
- GetInventoriesResponseMeta
- GetInventoriesResponseMetaPagination
- GetManifestsRequest
- GetManifestsResponse
- GetOrderResponse
- GetOrderResponseData
- GetOrderResponseDataProducts
- GetOrderResponseDataShipments
- GetOrderResponseMeta
- GetOrderResponseMetaPagination
- GetOrderResponseMetaPaginationLinks
- GetProductsResponse
- GetProductsResponseData
- GetProductsResponseMeta
- GetProductsResponseMetaPagination
- GetTokenRequest
- GetTokenResponse
- GetZonesResponse
- Import403
- Listing400
- Login422Error
- Login422ErrorErrors
- MapRequest
- MappingRequest
- MappingRequestData
- MappingResponse
- MappingResponseInner
- Model400Error
- Model401Error
- Model404Error
- Model405Error
- PickupCreationRequest
- PickupCreationResponse
- PickupCreationResponseResponse
- ProductImportResponse
- SatementResponse
- ShipmentTrackingRequest
- ShipmentTrackingResponse
- Show400
- ShowResponse
- UpdateInventoryResponse
- UpdateInventoryResponseData
- Type: API key
- API key parameter name: Authorization
- Location: HTTP header