Pin-code Serviceability

The Pincode Serviceability API is used to validates whether the specific pincodes are serviceable by SAR logistics or not.

The Serviceability API in response gives you a list of all pincode serviced by SAR logistics, with flags donating if the pincode is serviceable for both prepaid and COD package or not. Also, an “NSZ” response for an AWB would mean that the pin code is not serviceable.
Test Environment URL
https://workstation.cnetworq.com/API-sar/API/Pin-code-Serviceability?token=XXXXXXXXXXXXXXXXXX&filter_codes=
Production Environment URL
https://api.sarlogistics.in/api/Pin-code-Serviceability?token=XXXXXXXXXXXXXXXXXX&filter_codes=

*** Parameters ***

Params Mandatory Value Type Description
filter_codes Optional Integer Pincodes which you want to check for Serviceability, please enter one pincode at a time.

CURL

curl --request GET \
           --url "​https://api.sarlogistics.in/api/Pin-code-Serviceability?token=XXXXXXXXXXXXXXXXXX&filter_codes="\
          --header "Content-Type:application/json"\ 

Cancellation

Test Environment URL
https://workstation.cnetworq.com/sarlogistics/testing/order-cancel
Production Environment URL
https://api.sarlogistics.in/api/order-cancel

Cancel Order API

Cancel Order API facilitates cancellation of an existing package/order. It comes under advance API integration, as order can be cancelled from CL Panel as well.

It is POST API call. It accepts the payload data in JSON format and also returns a response in JSON.

Keys that can be updated :

"cancellation": "true"

Allowed statuses to cancel a package :

Manifested In Transit Pending Open Scheduled

Note: When an order is cancelled via the cancellation API the following conditions hold good for each type of package:

Prepaid / COD - Status of the package changes to "Returned". Pick Up - Status of the package changes to "Cancelled".

curl

curl --request POST \
           --url "​https://api.sarlogistics.in/api/order-cancel" \ 
           --header "Content-Type:application/json"\
           --header "Accept:application/json"\ 
           --header "Authorization: Token XXXXXXXXXXXXXXXXXX" \
   --data '{"waybill":"","phone":"","name":"","add":"","product_details":"","shipment_length":,"shipment_width":,"shipment_height":,"weight":"","pt":"","cod":""}'