Shiprocket MCP by usefulapi

v1.2.0
io.usefulapi/shiprocket Checked 1 day ago Published 1 hour ago

Read 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.

ParameterTypeDescription
channel_idintegerChannel id from shiprocket_list_channels.
fbs1 to list only Shiprocket Fulfillment (SRF) orders.
fbs_all_orders1 to list both SRF and last-mile orders.
filterstringValue to match in filter_by.
filter_bystringField to filter by.
fromstringDate in yyyy-mm-dd.
pageintegerPage number, from 1.
per_pageintegerEntries per page (1-100).
pickup_locationstringPickup location name.
searchstringSearch by AWB or the merchant's channel order id.
sortstringSort direction.
sort_bystringField to sort by.
tostringDate 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).

ParameterTypeDescription
order_id *integerShiprocket 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.

ParameterTypeDescription
filterstringValue to match in filter_by.
filter_bystringField to filter by (e.g. id).
sortstringSort direction.
sort_bystringField 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.

ParameterTypeDescription
delivery_postcode *Postcode, digits only (e.g. 110002).
pickup_postcode *Postcode, digits only (e.g. 110002).
breadthnumberBreadth in cm.
cod1 for cash on delivery, 0 for prepaid.
couriers_typeintegerCourier type filter; the vendor documents the values.
declared_valueintegerDeclared value of the shipment in rupees.
heightnumberHeight in cm.
is_return1 for a return shipment (needs declared_value).
lengthnumberLength in cm.
modestringTravel mode.
order_idintegerShiprocket order id; then cod and weight are taken from the order.
weightnumberShipment 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.

ParameterTypeDescription
awb_code *stringAWB code (tracking number).

shiprocket_track_shipment Track a shipment by id

Get the tracking events of a shipment by its Shiprocket shipment id.

ParameterTypeDescription
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.

ParameterTypeDescription
billing_address *string
billing_city *stringBilling 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 *numberPackage breadth in cm.
height *numberPackage height in cm.
length *numberPackage length in cm.
order_date *stringOrder date.
order_id *stringYour order id. Must be unique in the account.
order_items *arrayThe products in the order.
payment_method *stringCOD (cash on delivery) or Prepaid.
pickup_location *stringPickup location name from the account.
shipping_is_billing *booleantrue when the shipping address is the billing address.
sub_total *numberOrder sub total in rupees after discounts; the API does not calculate it.
weight *numberPackage weight in kg.
billing_address_2string
billing_alternate_phonePhone number, digits only (10 to 15 digits).
billing_isd_codestringCountry dialing code, e.g. +91.
billing_last_namestring
channel_idintegerChannel id; omit it for the default custom channel.
commentstring
customer_gstinstringCustomer GSTIN.
giftwrap_chargesnumberGift wrap charges in rupees.
invoice_numberstring
latitudenumberShipping address latitude.
longitudenumberShipping address longitude.
shipping_addressstringRequired when shipping_is_billing is false.
shipping_address_2string
shipping_chargesnumberShipping charges in rupees.
shipping_citystringRequired when shipping_is_billing is false.
shipping_countrystringRequired when shipping_is_billing is false.
shipping_customer_namestringRequired when shipping_is_billing is false.
shipping_last_namestring
shipping_phoneRequired when shipping_is_billing is false.
shipping_pincodeRequired when shipping_is_billing is false.
shipping_statestringRequired when shipping_is_billing is false.
total_discountnumberTotal discount in rupees.
transaction_chargesnumberTransaction 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.

ParameterTypeDescription
shipment_id *integerShiprocket shipment id.
courier_idintegerCourier id from shiprocket_list_couriers.
statusstringUse 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.

ParameterTypeDescription
order_ids *arrayShiprocket order ids to cancel.