SmartShipAPIDocumentationV1 21
SmartShipAPIDocumentationV1 21
{
"username":"[email protected]",
"password":"e10adc3949ba59abbe56e057f20f883e",
"client_id":"1ZT6T60OPZ6LGOHOS99IV0ES5UA4",
"client_secret":"!K3V@Y_7LSD(MUG44ZG4ZTJLZ7FE8)_XI2*_D^5QL9MYGT",
"grant_type":"password"
}
3
*Replace these test credentials with your live account credentials (found in the API
credentials section of My Profile tab on smartship.in as shown int the above screenshot) to
start punching live orders.
URL:https://oauth.smartship.in/loginToken.php
Header:
Content-Type:application/json
Method:
POST
Request (Json):
{
"username": "<Your email address>",
"password": "<MD5 of your account password>",
”client_id”:"<Shared client Id>",
"client_secret":"<Shared client secret>",
"grant_type":"password" //Constant String
}
Failure (Json):
{
"error":"invalid_grant",
"error_description":"Invalid username and password combination"
}
Points to consider:
● Access Token is valid for 1 Hour Only.
4
2) Hub Registration API
URL:https://api.smartship.in/v2/app/Fulfillmentservice/hubRegistration
Header:
Content-Type: application/json
Authorization:BearerXXXXXX
Method:
POST
Request (Json):
{
"hub_details":{
"hub_name":"Delhi Warehouse",
"pincode":"122001",
"city":"Gurgaon",
"state":"Harayana",
"address1":"G-167,Sector40",
"address2":"First Floor, Near Police Station ",
"hub_phone":"9999613323",
"delivery_type_id":2
}
}
5
Successful Case:
Response (Json):
{
"status":1,
"code":200,
"message":"success",
"data":{
"info":"Hub registered successfully",
"hub_id":1239
},
"extra":null
}
Failed Case:
Response (Json):
{
"status":0,
"code":200,
"message":"OK",
"data":{
"message":{
"info":"Hub registration failed",
"validation_error":[
"invalid pincode"
]
}
},
"extra":null
}
URL:https://api.smartship.in/v2/app/Fulfillmentservice/orderRegistrationOneStep
Header:
Content-Type: application/json
Authorization:BearerXXXXXX
Method:
POST
Request (Json):
{
6
"request_info":{
"client_id":"",
"run_type":"create"
},
"orders":[
{
"client_order_reference_id":"TEST_23_935",
"shipment_type":1,
"order_collectable_amount":"1000",
"total_order_value":"0",
"payment_type":"cod",
"package_order_weight":"300",
"package_order_length":"12",
"package_order_height":"5",
"package_order_width":"8",
"shipper_hub_id":"28329",
"shipper_gst_no":"29ABCDE1234F2Z5",
"order_invoice_date":"20-10-2021",
"order_invoice_number":"TEST_COD_935",
"is_return_qc":"0",
"return_reason_id":"0",
"order_meta":{
"preferred_carriers":[
1,
3,
279
]
},
"product_details":[
{
"client_product_reference_id":"127779866",
"product_name":"Milton Bottle 750ML",
"product_category":"computer",
"product_hsn_code":"02069010",
"product_quantity":"1",
"product_invoice_value":"100",
"product_gst_tax_rate":"5",
"product_taxable_value":"100",
"product_sgst_amount":"2",
"product_sgst_tax_rate":"2",
"product_cgst_amount":"2",
"product_cgst_tax_rate":"2"
}
],
"consignee_details":{
"consignee_name":"Sachin Dubey",
"consignee_phone":"9876543210",
7
"consignee_email":"[email protected]",
"consignee_complete_address":"Plot 1268 Ground Floor Toshika Niwas Sector
46 In front of Guru Nank Park",
"consignee_pincode":"122001"
}
}
]
}
Response (Json):
{
"status":1,
"code":200,
"message":"success",
"data":{
"total_records":1,
"total_success_orders":1,
"request_id":1277601,
"total_eliminated_orders":0,
"success_order_details":{
"orders":[
{
"index":0,
"client_order_reference_id":"TEST_23_935",
"request_order_id":4165281,
"cost_estimation":{
"forward":{
"freight_charges":"24.00",
"region":"Within City",
"fuel_surcharge":0,
"fuel_surcharge_percentage":"0.00",
"insurance_type":"fov",
"insurance_charges_percentage":"0.25",
"maximum_insured_value":"5000.00",
"insurance_charges":0.25,
"cod_charges":"30.00",
"shipping_cost":54.25,
"shipping_cost_tax_amount":9.765,
"total_shipping_cost":64.015
},
"rto":{
"fuel_surcharge":0,
"fuel_surcharge_percentage":"0.00",
"freight_charges":"24.00",
"region":"Within City",
"shipping_cost_tax_amount":4.32,
"total_shipping_cost":28.32
8
}
},
"sc_confirmation_no":4129805,
"message":"Successfully Punched",
"transition":false,
"dss_carrier_allocation":true,
"carrier_name":"Delhivery-SS",
"awb_assigned":true,
"awb_number":"3159416113866",
"code":4,
"carrier_id":"3",
"carrier_code":"DSSE",
"route_code":"GGN/DPC"
}
],
"shipping_info":{
"label_url":"https://smartship.in/images/excel_upload/shipping_label/20-10-
2021/shipping-label-A4-b9df8bd80f2076d4da62b2f7c20779dc.pdf"
}
},
"errors":null
},
"extra":null
}
PointsToConsider:
● One Step Order Registration API gives leverage to our customers not
only to successfully register their respective orders into smartship
system , but also takes care of carrier allocation and tracking (awb)
number assignment etc. without much a do.
● There is though a limit to One Step Order Registration API of 10 orders at one
go.
● To bypass that limit, customers can use our Order Registration API
(below) and provide any number of orders to process.
9
● Our Order Registration API (below) runs on batch system, where order
registration along with series of other tasks (starting from carrier
allocation to Awb assignment) runs as background job to process one
complete batch.
URL:https://api.smartship.in/v2/app/Fulfillmentservice/orderRegistration
Header:
Content-Type: application/json
Authorization:BearerXXXXXX
Method:
POST
Request (Json):
{
"request_info":{
"ip_address":"14.142.227.166",
"run_type":"create",
"browser_name":"Mozila",
"location":"Delhi",
"shipment_type":1
},
"orders":[
{
"client_order_reference_id":"TEST_ORDER-619",
"order_collectable_amount":"100",
"total_order_value":"150",
"payment_type":"cod",
"package_order_weight":"7400",
"package_order_length":"10",
"package_order_height":"10",
"package_order_width":"20",
"shipper_hub_id":"28329”,
“shipper_gst_no":"",
"order_invoice_date":"22-03-2021",
"order_invoice_number":"invoice12",
"order_meta":{
"preferred_carriers":[
1,
3,
279
]
},
10
"product_details":[
{
"client_product_reference_id":"P20",
"product_name":"Crucial 1TB SSD",
"product_category":"computer",
"product_hsn_code":"8471",
"product_quantity":"2",
"product_invoice_value":"1000",
"product_gst_tax_rate":"1.2",
"product_taxable_value":"100",
"product_sgst_amount":"5",
"product_sgst_tax_rate":"5",
"product_cgst_amount":"5",
"product_cgst_tax_rate":"5"
},
{
"client_product_reference_id":"P21",
"product_name":"HP Envy 360p Laptop",
"product_category":"computer",
"product_hsn_code":"8471",
"product_quantity":"3",
"product_invoice_value":"1000",
"product_gst_tax_rate":"1.2",
"product_taxable_value":"100",
"product_sgst_amount":"5",
"product_sgst_tax_rate":"5",
"product_cgst_amount":"5",
"product_cgst_tax_rate":"5"
},
{
"client_product_reference_id":"P22",
"product_name":"Hynix 16GB LPDDR4 RAM",
"product_category":"computer",
"product_hsn_code":"8471",
"product_quantity":"3",
"product_invoice_value":"1000",
"product_gst_tax_rate":"1.2",
"product_taxable_value":"100",
"product_sgst_amount":"5",
"product_sgst_tax_rate":"5",
"product_cgst_amount":"5",
"product_cgst_tax_rate":"5"
}
],
"consignee_details":{
"consignee_name":"Sachin Dubey",
"consignee_phone":"9555474254",
11
"consignee_email":"[email protected]",
"consignee_complete_address":"Plot 1268 Ground Floor Toshika Niwas Sector
46 In front of Guru Nank Park",
"consignee_pincode":"122001"
}
}
]
}
Response (Json):
{
"status":1,
"code":200,
"message":"success",
"data":{
"summary":{
"start_time":"21-10-2021 11:53:12",
"end_time":"21-10-2021 11:53:12",
"time_taken":0.37027788162231445
},
"total_records":1,
"total_success_orders":1,
"request_id":1280994,
"total_eliminated_orders":0,
"success_order_details":[
{
"index":0,
"client_order_reference_id":"TEST_ORDER-619",
"request_order_id":4171896,
"cost_estimation":{
"forward":{
"freight_charges":318,
"region":"Within City",
"fuel_surcharge":0,
"fuel_surcharge_percentage":"0.00",
"insurance_type":"fov",
"insurance_charges_percentage":"0.25",
"maximum_insured_value":"5000.00",
"insurance_charges":0.375,
"cod_charges":"30.00",
"shipping_cost":348.375,
"shipping_cost_tax_amount":62.7075,
"total_shipping_cost":411.0825
},
"rto":{
"fuel_surcharge":12.5,
"fuel_surcharge_percentage":"10.00",
"freight_charges":125,
12
"region":"Within City",
"shipping_cost_tax_amount":24.75,
"total_shipping_cost":162.25
}
},
"sc_confirmation_no":4136420,
"message":"Successfully Punched"
}
],
"errors":null
},
"extra":null
}
Request Field Details:
13
orders Numeric Amount to be collected Yes
-“order_collectable_amount from customer. Non-zero
” in case of COD order.
14
product_details Varchar Client’s product No
-“client_product_reference_i id for reference
d”
product_detail Varchar Name of product Yes
s -“product_na
me”
product_details Varchar Category of product No
-“product_category”
15
applicable, then both If the
fields sgst and cgst are sgst/ugst tax
requIred.Else, is
igstismandatory. applicable,the
n both fields s
Note:* Please pass blank in gst andcgst are
other gst fields. Do not pass required.
‘0’ as 0 is tax applicable on Else, igst
some product categories is mandato
ry
“product_cgst_amount” Numeric If the sgst/ugst tax is Yes. If the
applicable, then both sgst/ugst tax
fields sgst and cgst are r is ap plIcabl
equIred.Else, igst is e,then both
mandatory. fields sgst and
Note:* Please pass blank in cgst are
other gst fields. Do not required.
pass‘0’ as 0is tax applicableo Else, igst
n some product categories is mandato
ry.
“product_igst_amount” Numeric If the sgst/ugst tax is Yes. If the
applicable, then both sgst/ugst tax
fields sgst /ugst and cgs is applIcabl
t are required. Else, e,then both
Igst is mandatory. fields sgst/ugs
Note:*Please pass blank in t and cgst are
other gst fields. Do not required.
pass ‘0’ as 0 is tax applicable Else,Igst is
on some product categories mandatory.
16
“product_sgst_rate” Numeric If the sgst/ugst tax is Yes. If the
applicable, then both sgst/ugst tax
fields sgst /ugst and cgs is applIcabl
t are required. Else, e,then both
Igst is mandatory. fields sgst/ugs
Note:*Please pass blank in t and cgst are
other gst fields. Do not required.
pass ‘0’ as 0 is tax applicable Else,Igst is
on some product categories mandatory.
Field Description
17
“data-total_records” Count of orders present in request
Header:
Content-Type: application/json
Authorization:BearerXXXXXX
Method:
POST
Request (Json):
18
{
"filters":{
"filter_type":{
"and":{
"status":{
"status_code":"1,2,3,4,5,6,7,8",
"check_type":"Y"
},
"request_order_id":"166,167,168,169",
"client_order_reference_id":"SHP06,SHP07,SHP08,SHP09",
"payment_type":"cod",
"created_date":{
"from":"2018-03-27",
"to":"2018-03-28"
},
"updated_date":{
"from":"2018-03-27",
"to":"2018-03-28"
}
}
}
},
"sort_by":{
"fields":"request_order_id",
"type":"desc"
},
"limit":{
"offset":0,
"limit":1
}
}
19
client_order_refere Varchar Contains No
nce_id comma
separated client
order reference
id
payment_type Varchar Contains payment No
type (cod or
prepaid)
created_date JsonObject from:starting No
date, to:ending
date Date
Format:“yyyy-mm-
dd”
updated_date JsonObject from:starting No
date, to:ending
date Date
Format:“yyyy-mm-
dd”
sort_by JsonObject fields:name of No
fields to sort
order details,
type: asc or desc
Response(Json):
{
"status":1,
"code":200,
"message":"success",
"data":{
"summary":{
"start_time":"11-05-201813:15:13",
"end_time":"11-05-201813:15:14",
"time_taken":0.40403199195862,
"total_records":56,
"confirmed_orders":47,
"pending_orders":5
},
"orders_details":{
"121":{
"order_details":{
"request_order_id":"121",
"request_id":"51",
20
"client_id":"client_id_of_3pl_shared_by_faas",
"client_order_reference_id":"OD00081",
"client_order_reference_type":"client",
"order_collectable_amount":"0",
"total_order_value":"499",
"payment_type":"prepaid",
"package_order_weight":"500",
"package_order_length":"40",
"package_order_width":"10",
"package_order_height":"20",
"status":"9",
"shipper_gst_no":"29ABCDE1234F2Z5",
"hash":"82297e9727b6bcfe026c12c77418f5bd",
"”order_effective_weight”":"1600",
"order_invoice_date":"0000-00-00 00:00:00",
"order_invoice_number":null,
"order_ewaybill_number":null,
"order_ewaybill_expiry_date":"0000-00-0000:00:00",
"added_on":"2018-03-2912:41:17",
"Updated_on":"2018-04-1713:49:56",
"status_description":"NonServiceable"
},
"hub_details":{
"shipper_hub_id":"1234",
"shipper_name":"faas_test_shiiper",
"shipper_email":"[email protected]",
"shipper_address":"teast_faas_adderss",
"shipper_phone":"9876543210",
"shipper_pincode":"122001",
"”shipper_city”":"Patna",
"shipper_state":"Bihar",
"shipper_state_code":"BH"
},
"consignee_details":{
"consignee_id":"124",
"consignee_name":"Anil01",
"consignee_address":"Sector40",
"consignee_pincode":"122001",
"consignee_email":"[email protected]",
"consignee_phone":"9444877840",
"”consignee_city”":"”Gurgaon”",
"consignee_state":"Haryana",
"consignee_state_code":"HR",
"consignee_country_code":"IN"
},
"product_details":[
{
21
"order_product_id":null,
"request_order_id":"121",
"client_product_reference_id":"P00001",
"client_product_reference_type":"client",
"product_name":"Round Neck Dark Blue T-ShirtSize 01",
"product_category":"fashion",
"product_hsn_code":"50072010",
"product_price":"0",
"product_discount":null,
"product_quantity":"1",
"product_invoice_value":null,
"product_gst_tax_rate":null,
"added_on":"2018-03-2912:41:17",
"updated_on":"0000-00-0000:00:00",
"product_meta_id":null,
"key":null,
"value":null
},
{
"order_product_id":null,
"request_order_id":"121",
"client_product_reference_id":"P00002",
"client_product_reference_type":"client",
"product_name":"Round Neck Dark Blue T-ShirtSize 02",
"product_category":"fashion",
"product_hsn_code":"50072011",
"product_price":"0",
"product_discount":null,
"product_quantity":"2",
"product_invoice_value":null,
"product_gst_tax_rate":null,
"added_on":"2018-03-2912:41:17",
"updated_on":"2018-05-1112:54:20",
"product_meta_id":null,
"key":null,
"value":null
}
],
"order_meta_details":{
"dss_carrier_id":{
"order_meta_id":"338711",
"dss_carrier_id":"2"
},
"carrier_name":{
"order_meta_id":"338712",
"carrier_name":"Xpressbees"
},
22
"awb_no":{
"order_meta_id":"338715",
"awb_no":"1386418000163"
}
}
}
}
},
"extra":null
}
23
shipper_gst_no shipper’s gst number
Hash Unused
consignee_id consignee’s id
24
product_name Name of product within order
dss_carrier_id Carrier Id
PointsToConsider:
● Use orderDetails API (above) to track the exact / true status of any order.
You can pass total order count in <limit> field to fetch the details.
URL:
https://api.smartship.in/v2/app/Fulfillmentservice/createManifest
Header:
Content-Type: application/json
Authorization:BearerXXXXXX
Method:
POST
Request (Json):
{
"client_order_reference_ids":[
"TEST_23_937"
],
"preferred_pickup_date":"",
"shipment_type":1
}
Response (Json):
{
"status":1,
"code":200,
"message":"success",
"data":{
"errors":null,
"valid_orders_for_manifest_creation":[
"TEST_23_937"
],
"manifest_details":{
"hub_id":{
"28329":{
"carrier_ids":{
"3":{
"order_id":[
"TEST_23_937"
],
"manifest_id":951368,
"carrier_name":"Delhivery-SS"
}
}
}
}
},
"summary":{
"request_id":1260182,
"total_orders_count":1,
"total_success_orders_count":1,
"failed_order_count":0,
"manifest_ids":[
951368
],
"manifest_pdf":{
"manifest_url":"https://smartship.in/images/excel_upload/manifest_pdf/
manifest-details-20a9fd0aa4e23733acdbfac3345fe1dc-21-10-2021.pdf",
"file_size":8169
},
"start_time":"21-10-2021 10:26:45",
"end_time":"21-10-2021 10:26:45",
26
"time_taken":0.249284029006958
}
},
"extra":null
}
Header:
Content-Type: application/json
Authorization:BearerXXXXXX
Method:
POST
Successful Cases:
a) Request(Json):
{
"hub_ids":
[1221,
1234
]
}
Response(Json):
{
"status":1,
"code":200,
"message":"success",
"data":{
"valid_hubs":{
"1355":{
"hub_name":"Delhi Warehouse",
"hub_phone":"9999613323",
"pincode":"122001",
"city":"Gurgaon",
"state":"Haryana",
"address1":"G-167,Sector40",
"address2":"FirstFloor,NearPoliceStation"
}
},
"invalid_hub_ids":[
]
},
"extra":null
}
b) Request (Json):
{
28
"hub_ids":""
}
Response (Json):
{
"status":1,
"code": 200,
"message": "success",
"data":{
"valid_hubs"
: {"1234":{
"hub_name": "Delhi
Warehouse",
"hub_phone":"9999613323",
"pincode":"122001",
"city":"Patna",
"state":"Bihar",
"address1":"teast_faas_adderss”,
"address2":null
},"1235":{
"hub_name": "ABC
Warehouse",
"hub_phone":"9999713323",
"pincode":"122001",
"city":"Gurgaon",
"state":"Haryana",
"address1": "Plot-80,sector-44",
"address2":"Plot-112,sector-44"
}
},
"invalid_hub_ids":[]
},
"extra":null
}
Failed Case:
Request (Json):
{
"hub_ids":
[1923,
1253
]
}
Response (Json):
{
29
"status":0,
"code": 200,
"message": "OK",
"data":{
"message":
{"valid_hubs
":[],
"invalid_hub_ids": [1923,
1253],
”info”:"hub_details not found"
}
},
"extra":null
}
URL:https://api.smartship.in/v2/app/Fulfillmentservice/updateHubDetails
Header:
Content-Type: application/json
Authorization:BearerXXXXXX
Method:
POST
Successful Case:
Request (Json):
{
"hub_id":"1234",
"hub_name":"Delhi Warehouse",
"hub_phone":"9999613323",
"pincode":"122001",
"city":"Gurgaon",
"state":"Haryana",
"address1":"ad1",
"address2":"ad2"
}
Response (Json):
{
"status":1,
"code": 200,
"message": "success",
"data":{
"info":"hub data updated successfully"
30
},
"extra":null
}
Failed Cases:
1) Request (Json):
{
"hub_id":"1354",
"hub_name": "Delhi
Warehouse",
"hub_phone":"9999613323",
"pincode":"226004",
"city": "Lucknow",
"state": "Uttar
Pradesh",
"address1":"ad1",
"address2":"ad2"
}
Response (Json):
{
"status":0,
"code": 200,
"message": "OK",
"data":{
"message":{
“info":"invalid hub_id"
}
},
"extra":null
}
2) Request (Json):
{
"hub_id":"1236",
"hub_name": "Delhi
Warehouse",
"hub_phone":"9999613323",
"pincode":"226004",
"city":"Lucknow",
"state":"",
"address1":"ad1",
"address2":"ad2"
}
Response (Json):
31
{
"status":200,
"code":41000,
"message":"invalid_inputs",
"data":null,
"extra":null
}
3) Request (Json):
{
"hub_id":"1235",
"hub_name": "Delhi
Warehouse",
"hub_phone":"9999613323",
"pincode":"22600",
"city": "Lucknow",
"state": "uttar pradesh",
"address1":"ad1",
"address2":"ad2"
}
Response (Json):
{
"status":0,
"code":200,
"message":"OK",
"data":{
"message":{
"info":"Hub data invalid",
"validation_error":[
"invalid pincode"
]
}
},
"extra":null
}
URL:https://api.smartship.in/v2/app/Fulfillmentservice/deleteHub
Header:
Content-Type: application/json
Authorization:BearerXXXXXX
Method:
POST
32
Successful Case:
Request (Json):
{
"hub_ids":
[1237
]
}
Response (Json):
{
"status":1,
"code":200,
"message":"success",
"data":{
"info":"hub deleted successfully"
},
"extra":null
}
Failed Case:
Request (Json):
{
"hub_ids":
[1236,
1221
]
}
Response (Json):
{
"status":0,
"code":200,
"message":"OK",
"data":{
"message":{
"invalid_hubs":[
1221
],
"info":"invalid hub passed"
}
},
"extra":null
}
Header:
Content-Type: application/json
Authorization:BearerXXXXXX
Method:
POST
Request (Json):
{
"request_order_id":"184,183",
”client_order_ref_id”:"od02"
}
Response (Json):
{
"status":1,
"code":200,
"message":"success",
"data":{
"error":{
"invalid_request_order_ids":[
]
},
"url":"http://admin.smartship.in/images/excel_upload/shipping_label/16-04-2018/
shipping-label-f0d9bb91b344618ab9fcf740c0e62526.pdf"
},
"extra":null
}
34
5) Cancel Order API
URL:https://api.smartship.in/v2/app/Fulfillmentservice/orderCancellation
OR
https://api.smartship.in/v2/app/Fulfillmentservice/orderCancel
Header:
Content-Type: application/json
Authorization:BearerXXXXXX
Method:
POST
Request (Json):
{
"request_info":{
"ip_address":"14.142.227.166",
"”browser_name”":"”Mozilla”",
"location":"Delhi"
},
"orders":{
"client_order_reference_ids":[
"OD00200",
"OD00201"
],
"request_order_ids":[
]
}
}
35
tShip request
order ids
Response (Json):
{
"status":1,
"code":200,
"message":"success",
"data":{
"order_cancellation_details":{
"failure":{
"OD00200":{
"message":"Change Order Status Priviledge Denied"
}
},
"successful":[
"OD00201"
]
}
},
"extra":null
}
URL:https://api.smartship.in/v2/app/Fulfillmentservice/ServiceabilityHubWise
Header:
Content-Type: application/json
Authorization:BearerXXXXXX
Method:
36
POST
Request (Json):
Request (json):
{
"order_info":{
"source_pincode":122001,
"destination_pincode":122050,
"order_weight":0,
37
"order_value":0,
"preferred_carriers":[
1,3,279
],
"delivery_type":1
},
"request_info":{
"extra_info":false,
"cost_info":false
}
}
Response (Json):
{
"status":1,
"code":200,
"message":"success",
"data":{
"serviceability_status":true,
"hub_serviceability":{
"1353":{
"pickup_cod_serviceability_status":true,
38
"pickup_prepaid_serviceability_status":true,
"pickup_serviceability_status":true,
"delivery_cod_serviceability_status":true,
"delivery_prepaid_serviceability_status":true,
"delivery_serviceability_status":true,
"cod_serviceability_status":true,
"prepaid_serviceability_status":true,
"serviceability_status":true,
"cost_info":{
"cost":"21.00",
"tat":"3.00",
"rto_cost":"21.00",
"region_name":"WithinCity"
},
"hub_id":1353
}
},
"time_taken":0.083376169204712,
"request_id":"1pUfqG"
},
"extra":null
}
URL:https://api.smartship.in/v2/app/Fulfillmentservice/HubServiceablePincodes
Header:
Content-Type: application/json
Authorization:BearerXXXXXX
39
Method:
POST
Request (Json):
{
"request_info":
{"format":"csv"
},
"hub_info":{
"start":10,
"limit":3,
"hub_id":1353
}
}
Response (Json):
{
"status":1,
"code":200,
40
"message":"success",
"data":{
"serviceable_pincodes":{
"hub_serviceable_pincodes":{
"data_url":"http://smartship.in/images/
excel_upload/mis_data/Hub-1353-12-06-
2020.csv",
"file_size":146
}
},
"start":10,
"limit":3,
"time_taken":4.2403399944305
},
"extra":null
}
{
"status":1,
"code":200,
"message":"success",
"data":{
"serviceable_pincodes":[
{
"destination_pincode":"110011",
"cod_carriers":"1",
"prepaid_carriers":"1",
"region_id":"1",
"region_name":"WithinCity"
},
{
"destination_pincode":"110012",
"cod_carriers":"1",
"prepaid_carriers":"1",
"region_id":"1",
"region_name":"WithinCity"
},
{
"destination_pincode":"110013",
"cod_carriers":"1",
"prepaid_carriers":"1",
"region_id":"1",
41
"region_name":"WithinCity"
}
],
"start":10,
"limit":3,
"time_taken":4.2417559623718
},
"extra":null
}
URL:https://api.smartship.in/v2/app/Fulfillmentservice/getOrdersManifestPdf
Header:
Content-Type: application/json
Authorization:BearerXXXXXX
Method:
POST
Request (Json):
{
"client_order_reference_ids":
["OD00200"
]
}
OR
{
"manifest_ids":[
1323910
]
}
*Orders should
42
already be in
manifested
status
manifest_ids Numeric Comma Yes
seperated
manifest ids
*Orders should
already be in
manifested
status
"summary":[
],
"manifest_details":{
"manifest_url":"https://smartship.in/images/excel_upload/
manifest_pdf/manifest-details-08f5c17e1bd1d71b16cdbdcec45f8908-12-
06-2020.pdf",
"file_size":8029
}
},
"extra":null
}
Failure Response(JSON)
{
"status":1,
"code":200,"message":"suc
cess","data":{
"manifest_details":false,
"error":"No valid order found"
},
"extra":null
}
43
Response Field Details:
44
9) Carrier Serviceable Pincodes API
URL: http://api.smartship.in/v2/app/Fulfillmentservice/CarrierServiceablePincodes
Header:
Content-Type: application/json
Authorization:BearerXXXXXX
Method:
POST
Request (Json):
{
"carrier_info":{
"payment_type":"",
"carrier_id":[
"279"
]
}
}
Response (Json):
{
"status":1,
"code":200,
"message":"success",
"data":{
"279":{
"valid_pincode":{
"count":3844,
"data_url":"http://fqaadmin.smartship.in/images/excel_upload/mis_data/Carrier-
279-23-03-2022.csv",
"file_size":76916
},
"invalid_pincode":{
"count":0,
"data_url":null,
"file_size":null
}
}
},
"extra":null
}
45
Request Field Details:
URL:-
http://api.smartship.in/v2/app/Fulfillmentservice/orderReattempt
Header:
Content-Type: application/json
Authorization:BearerXXXXXX
Method:
POST
Request(JSON):
{
"orders": [
{
"request_order_id": "10977589",
"action_id": "1",
"comments": "la",
"next_attempt_date": "2023-04-01",
"client_order_reference_id": [""],
"address": "test_addresss",
"phone" : 9876543211,
"names" : "sachin",
"alternate_address" : "Unitech Cyber Park",
"alternate_number" : ""
}
46
]
}
Response(JSON):-
{
"status": 1,
"code": 200,
"message": "success",
"data": {
"success_orders": [
{
"request_order_id": "10977589",
"action_id": "1",
"comments": "la",
"next_attempt_date": "2023-04-01",
"client_order_reference_id": "NDR_test_op",
"address": "test_addresss",
"phone": 9876543211,
"names": "sachin",
"alternate_address": "Unitech Cyber Park",
"alternate_number": ""
}
],
"errors": null
},
"extra": null
}
47
for
requesting
NDR
“next_attempt_date” Date(YYYY- Next attempt Yes
mm-dd) date to be
passed
should be
greater than
today but
less than
next 10 days
from current
date
URL:
https://api.smartship.in/v1/Trackorder?request_order_ids=130
OR
https://api.smartship.in/v1/Trackorder?order_reference_ids=OD00204
OR
https://api.smartship.in/v1/Trackorder?tracking_numbers=3159417320681
Header:
48
Content-Type: application/json
Authorization:BearerXXXXXX
Method:
GET
Response (Json):
{
"status":1,
"code":200,
"message":"success",
"data":{
"scans":{
"130":[
{
"request_order_id":"130",
"order_reference_id":"OD00204",
"tracking_number":"EQ235340552IN",
"carrier_name":"Aramex",
"date_time":"03-04-201812:08:41",
"location":"Panipat_PC (Haryana)",
"action":"Shipped to RTO",
"status_code":"",
"status_description":""
},
{
"request_order_id":"130",
"order_reference_id":"OD00204",
"tracking_number":"EQ235340552IN",
"carrier_name":"Aramex",
"date_time":"03-04-201812:08:40",
"location":"Panipat_PC (Haryana)",
"action":"Shipped to RTO",
"status_code":"",
"status_description":""
},
{
"request_order_id":"130",
"order_reference_id":"OD00204",
"tracking_number":"EQ235340552IN",
"carrier_name":"Aramex",
"date_time":"03-04-201812:08:40",
"location":"Panipat_PC (Haryana)",
"action":"RTO to RTO Delivered",
"status_code":"",
"status_description":""
},
49
{
"request_order_id":"130",
"order_reference_id":"OD00204",
"tracking_number":"EQ235340552IN",
"carrier_name":"Aramex",
"date_time":"02-04-201812:08:40",
"location":"Delhi",
"action":"Manifested to shipped",
"status_code":"",
"status_description":""
},
{
"request_order_id":"130",
"order_reference_id":"OD00204",
"tracking_number":"EQ235340552IN",
"carrier_name":"Aramex",
"date_time":"02-04-201812:08:40",
"location":"Panipat_PC (Haryana)",
"action":"Shipped to RTO",
"status_code":"",
"status_description":""
},
{
"request_order_id":"130",
"order_reference_id":"OD00204",
"tracking_number":"EQ235340552IN",
"carrier_name":"Aramex",
"date_time":"02-04-201812:08:39",
"location":"Delhi",
"action":"Manifested to shipped",
"status_code":"",
"status_description":""
}
]
}
},
"extra":[
]
}
50
order_reference_id Client’s reference id
Action Description
0 Open
2 Confirmed
4 Manifested
10 Shipped
11 Delivered
18 Return To Origin
24 Courier Assigned
27 In Transit
28 RTO In Transit
51
30 Out For Delivery
199/201 RTO-Delivered to FC
52
RATE CALCULATOR API SPECIFICATION
URL :https://api.smartship.in/v2/app/Fulfillmentservice/rateCalculator
Request:
{
"order_info":{
"email":"[email protected]",
"source_pincode":122001,
"destination_pincode":122050,
"order_weight":500,
"order_value":1000,
"payment_type": "cod", //cod or prepaid
"length": "10",
"width": "10",
"height": "10",
"shipment_type": "forward/return",
"preferred_carriers":[
1,3,279
]
},
"request_info":{
"extra_info":false
}
}
Respone:
{
"status":1,
"code":200,
"message":"success",
"data":{
"carrier_info":{
"1":{
"carrier_id":"3",
"carrier_name":"Delhivery SS"
"cost":"21.00",
"tat":"3.00",
"rto_cost":"21.00",
"region_name":"WithinCity"
},
"2":{
"carrier_id":"1",
"carrier_name":Bluedart-DartPlus"
"cost":"21.00",
"tat":"3.00",
"rto_cost":"21.00",
"region_name":"WithinCity"
}
},
"time_taken":0.083376169204712
}
}
53
Request Fields Details:
54
Requirements for callback functionality
1. Callback url and shared access token to be given by seller/merchant.
Also, scans are pushed twice and if no success response is received, then
further scans are not pushed.
55