Shiprocket MCP by usefulapi
v1.2.0Read orders, shipments, couriers and tracking; create orders and book AWBs in Shiprocket.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
shiprocket_get_wallet_balance Get wallet balance
Get the prepaid wallet balance of the Shiprocket account. Shipments are charged from this wallet. Use it before booking a shipment.
shiprocket_list_pickup_locations List pickup locations
List the pickup addresses saved in the Shiprocket account. A new order must use one of these names as its pickup_location.
shiprocket_list_channels List sales channels
List the sales channels (stores and marketplaces) integrated with the Shiprocket account, with their channel ids.
shiprocket_list_couriers List couriers
List the courier partners available to the account with their counts (serviceable and pickup pincodes, RTO and ODA counts). Use the courier ids in shiprocket_assign_awb.
shiprocket_list_orders List orders
List orders in the Shiprocket account, newest first by default. Filter by date range, status, payment method, channel or a search term (AWB or the merchant's channel order id). Use the returned Shiprocket order id with shiprocket_get_order.
| Parameter | Type | Description |
|---|---|---|
channel_id | integer | Channel id from shiprocket_list_channels. |
fbs | 1 to list only Shiprocket Fulfillment (SRF) orders. | |
fbs_all_orders | 1 to list both SRF and last-mile orders. | |
filter | string | Value to match in filter_by. |
filter_by | string | Field to filter by. |
from | string | Date in yyyy-mm-dd. |
page | integer | Page number, from 1. |
per_page | integer | Entries per page (1-100). |
pickup_location | string | Pickup location name. |
search | string | Search by AWB or the merchant's channel order id. |
sort | string | Sort direction. |
sort_by | string | Field to sort by. |
to | string | Date in yyyy-mm-dd. |
shiprocket_get_order Get an order
Get one order with its products and shipment details, by the Shiprocket order id (not the merchant's order id).
| Parameter | Type | Description |
|---|---|---|
order_id * | integer | Shiprocket order id. |
shiprocket_list_shipments List shipments
List shipments in the account with their AWB codes, couriers and statuses. Filter by id or another field.
| Parameter | Type | Description |
|---|---|---|
filter | string | Value to match in filter_by. |
filter_by | string | Field to filter by (e.g. id). |
sort | string | Sort direction. |
sort_by | string | Field to sort by (e.g. id). |
shiprocket_check_serviceability Check courier serviceability
Check which couriers serve a route between two postcodes, with the estimated delivery time and the rate for each. Give an order_id, or give cod and weight.
| Parameter | Type | Description |
|---|---|---|
delivery_postcode * | Postcode, digits only (e.g. 110002). | |
pickup_postcode * | Postcode, digits only (e.g. 110002). | |
breadth | number | Breadth in cm. |
cod | 1 for cash on delivery, 0 for prepaid. | |
couriers_type | integer | Courier type filter; the vendor documents the values. |
declared_value | integer | Declared value of the shipment in rupees. |
height | number | Height in cm. |
is_return | 1 for a return shipment (needs declared_value). | |
length | number | Length in cm. |
mode | string | Travel mode. |
order_id | integer | Shiprocket order id; then cod and weight are taken from the order. |
weight | number | Shipment weight in kg. |
shiprocket_track_awb Track a shipment by AWB
Get the tracking events of a shipment by its AWB code: current status, scans with locations and dates, and the expected delivery date.
| Parameter | Type | Description |
|---|---|---|
awb_code * | string | AWB code (tracking number). |
shiprocket_track_shipment Track a shipment by id
Get the tracking events of a shipment by its Shiprocket shipment id.
| Parameter | Type | Description |
|---|---|---|
shipment_id * | integer |
shiprocket_create_order Create a custom order
Create a custom order in Shiprocket (not stored in a catalogue). It is real account data: a second call with the same order_id fails, so check the id first. Set shipping_is_billing to false to give separate shipping details. Use a pickup_location name from shiprocket_list_pickup_locations.
| Parameter | Type | Description |
|---|---|---|
billing_address * | string | |
billing_city * | string | Billing city, up to 30 characters. |
billing_country * | string | |
billing_customer_name * | string | |
billing_email * | string | |
billing_phone * | Phone number, digits only (10 to 15 digits). | |
billing_pincode * | Postcode, digits only (e.g. 110002). | |
billing_state * | string | |
breadth * | number | Package breadth in cm. |
height * | number | Package height in cm. |
length * | number | Package length in cm. |
order_date * | string | Order date. |
order_id * | string | Your order id. Must be unique in the account. |
order_items * | array | The products in the order. |
payment_method * | string | COD (cash on delivery) or Prepaid. |
pickup_location * | string | Pickup location name from the account. |
shipping_is_billing * | boolean | true when the shipping address is the billing address. |
sub_total * | number | Order sub total in rupees after discounts; the API does not calculate it. |
weight * | number | Package weight in kg. |
billing_address_2 | string | |
billing_alternate_phone | Phone number, digits only (10 to 15 digits). | |
billing_isd_code | string | Country dialing code, e.g. +91. |
billing_last_name | string | |
channel_id | integer | Channel id; omit it for the default custom channel. |
comment | string | |
customer_gstin | string | Customer GSTIN. |
giftwrap_charges | number | Gift wrap charges in rupees. |
invoice_number | string | |
latitude | number | Shipping address latitude. |
longitude | number | Shipping address longitude. |
shipping_address | string | Required when shipping_is_billing is false. |
shipping_address_2 | string | |
shipping_charges | number | Shipping charges in rupees. |
shipping_city | string | Required when shipping_is_billing is false. |
shipping_country | string | Required when shipping_is_billing is false. |
shipping_customer_name | string | Required when shipping_is_billing is false. |
shipping_last_name | string | |
shipping_phone | Required when shipping_is_billing is false. | |
shipping_pincode | Required when shipping_is_billing is false. | |
shipping_state | string | Required when shipping_is_billing is false. |
total_discount | number | Total discount in rupees. |
transaction_charges | number | Transaction charges in rupees. |
shiprocket_assign_awb Assign an AWB to a shipment
Book a courier for a shipment and get its AWB code. It charges the wallet. Give courier_id from shiprocket_list_couriers, or omit it for the default courier. This tool does not request a courier pickup; request it in the Shiprocket panel.
| Parameter | Type | Description |
|---|---|---|
shipment_id * | integer | Shiprocket shipment id. |
courier_id | integer | Courier id from shiprocket_list_couriers. |
status | string | Use reassign to change the courier (once per 24 hours). |
shiprocket_cancel_orders Cancel orders
Cancel created orders by their Shiprocket order ids (the numeric id from shiprocket_list_orders, not your own order_id). A cancelled order's own order_id cannot be reused for a new order.
| Parameter | Type | Description |
|---|---|---|
order_ids * | array | Shiprocket order ids to cancel. |