Daewoo Express COD Home Delivery - API Integration Guide - Version 1.3-1
Daewoo Express COD Home Delivery - API Integration Guide - Version 1.3-1
6
UPDATED ON 08th September, 2021
DEPBS – COD HOME DELIVERY API INTEGRATION GUIDE Version 1.6
COPYRIGHT
This is unpublished, confidential document of DEPBS (Daewoo Express Pakistan Bus Service).
No part of this document may be reproduced, stored in retrieval form, adopted or transmitted
in any form or by any means, electronic, mechanical, photographic, graphic, optic or otherwise,
translated in any language or computer language, without prior written permission from DEPBS.
This document has been prepared with all due diligence, however, DEPBS, makes no
representation or warranties with respect to the contents hereof and shall not be responsible for
any loss or damage caused to the user by the direct or indirect use of this document and the
accompanying information. Furthermore DEPBS, reserves the right to alter, modify or otherwise
change in any manner the content hereof, without the obligation to notify any person of such
revision or changes. All registered and trademarked names referred to in this document are
owned by their respective owners.
Page 2 of 16
DAEWOO EXPRESS BUS SERVICE PAKISTAN
DOCUMENT HISTORY
TABLE OF CONTENTS
SR NO TITLE PAGE
1 INTRODUCTION 5
2 PRE-REQUISITES 6
3 API METHODS 6
3.1 GET LOCATIONS 6
3.2 QUICK BOOK 7
3.3 TRACKING 10
3.4 QUICK CANCEL 12
3.5 CALCULATE TARIFF 14
Page 4 of 16
DAEWOO EXPRESS BUS SERVICE PAKISTAN
DEPBS – COD HOME DELIVERY API INTEGRATION GUIDE Version 1.6
1. INTRODUCTION
This API Integration Guide is a technical integration document for clients to interface DEPBS cargo
system and allow them for booking Cash on Delivery (Home Delivery) consignments over the
Internet.
It shows how to use various functionalities and describes interfacing specifications to furnish a
consignment booking request.
API provides access to its functionalities through below listed web services:
Page 5 of 16
DAEWOO EXPRESS BUS SERVICE PAKISTAN
DEPBS – COD HOME DELIVERY API INTEGRATION GUIDE Version 1.6
2. PRE-REQUISITES
To use DEPBS Cargo APIs each client must have below listed pre requisites provided by
DEPBS.
1- API Key: Provided by Daewoo.
2- API User: Provided by Daewoo.
3- API Password: Provided by Daewoo.
3. WEB SERVICES
Below is the list of web services to perform various functionalities to book a COD consignment
or to track a consignment.
Page 6 of 16
DAEWOO EXPRESS BUS SERVICE PAKISTAN
DEPBS – COD HOME DELIVERY API INTEGRATION GUIDE Version 1.6
try{
}}
{MessageBox.Show(ex.Message);}
Response Body:
{
"Success":true,
"Error":false,
"Response":"",
"ResponseDetail":"",
"Data":[
{
"terminal_id":10,
"terminal_name":"FAISALABAD"
},
{
"terminal_id":14,
"terminal_name":"HYD (LATIFABAD)"
}
]
}
Page 7 of 16
DAEWOO EXPRESS BUS SERVICE PAKISTAN
DEPBS – COD HOME DELIVERY API INTEGRATION GUIDE Version 1.6
Page 8 of 16
DAEWOO EXPRESS BUS SERVICE PAKISTAN
DEPBS – COD HOME DELIVERY API INTEGRATION GUIDE Version 1.6
Response Body:
{
"Success": true,
"Error": false,
"Validations": true,
"Response": "Consignment Has been saved succesfully!",
"TrackNo": "181291509",
"Barcode": "3000000003",
"CashCollection": "2000",
"OrderId": "000000"
}
Page 9 of 16
DAEWOO EXPRESS BUS SERVICE PAKISTAN
DEPBS – COD HOME DELIVERY API INTEGRATION GUIDE Version 1.6
3.3. Tracking
This service method allows you to track the consignment in real-time.
WEB SERVICE quickTrack
DESCRIPTION Real-time tracking
API Link api/booking/quickTrack?trackingNo=[Tracking_No]
Request Type HTTP GET Request
INPUT PARAMETERS
PARAMETERS DESCRIPTION MANDATORY/OPTIONAL DATA TYPE
Unique Tracking # assigned to consignment by
trackingNo Mandatory String
Quick-Track API method.
OUT PARAMETERS
KEY DESCRIPTION DATA FORMAT DATA TYPE
Boolean value indicating if the operation is
Success JSON Boolean
successful or not.
Boolean value indicating if any error is occurred
Error JSON Boolean
during the request operation.
Response API response. JSON String
CurrentTrackStatus Consignment Tracking information. JSON JSON Object
TrackingDetails Consignment Home-Delivery tracking details. JSON JSON Object
Response Body:
{
"Result": {
"Success": true,
"Error": false,
"Response": "Tracking Successfull",
"CurrentTrackStatus": [
{
"track_no": 181302021,
Page 10 of 16
DAEWOO EXPRESS BUS SERVICE PAKISTAN
DEPBS – COD HOME DELIVERY API INTEGRATION GUIDE Version 1.6
"order_id": "157598",
"booking_date_time": "2018-10-03T09:39:06.08",
"customer": "ELO API COD HD CREDIT",
"payment_mode_name": "COD CREDIT - (1) Service Charges Included In Product Price",
"CODMode": "SC In Product Price",
"source_terminal": "FAISALABAD",
"source_ccp": "MAIN",
"destination_terminal": "LAHORE",
"destination_ccpi": "THOKAR",
"status_name": "Booked",
"amount_cod": 2000,
"remarks": "",
"web_track_code": 4198,
"tweight": 1.2,
"tpieces": 1,
"tqty": 1,
"sender_name": "ELO API COD HD CREDIT",
"sender_contact1": "",
"sender_address1": "",
"sender_city": "FAISALABAD",
"sender_cnic": "",
"sender_email": "",
"receiver_name": "Arif",
"receiver_contact1": "03364199945",
"receiver_address1": "Multan,Pakistan",
"receiver_city": "Multan",
"receiver_cnic": "3630234219423",
"receiver_email": "[email protected]"
}
],
"TrackingDetails": [
{
"booking_no": 181291509,
"BarCode": 3000000003,
"Date": "Oct 1 2018 11:15AM",
"PortalDate": "2018-10-01 11:15:50",
"Status": "OR - ON ROUTE",
"Status_Reason": "ON ROUTE",
"TransactionTerminal": "LAHORE - THOKAR",
"add_user": "KASHIF",
"remarks": "",
"Collector_Name": "",
"Collector_Contact": "",
"Collector_Cnic": "",
"Rem": "Sheet # 26817 | Delivery # 8397",
"Collector_Relation": ""
},
{
"booking_no": 181291509,
"BarCode": 3000000003,
"Date": "01/10/2018 11:16:01",
"PortalDate": "01/10/2018 11:16:01",
"Status": "OK - DELIVERED",
"Status_Reason": "DELIVERED",
Page 11 of 16
DAEWOO EXPRESS BUS SERVICE PAKISTAN
DEPBS – COD HOME DELIVERY API INTEGRATION GUIDE Version 1.6
Page 12 of 16
DAEWOO EXPRESS BUS SERVICE PAKISTAN
DEPBS – COD HOME DELIVERY API INTEGRATION GUIDE Version 1.6
Response Body:
{
"Success": true, "Error": false, "Response": "Booking has been cancelled."
}
Page 13 of 16
DAEWOO EXPRESS BUS SERVICE PAKISTAN
DEPBS – COD HOME DELIVERY API INTEGRATION GUIDE Version 1.6
Page 14 of 16
DAEWOO EXPRESS BUS SERVICE PAKISTAN
DEPBS – COD HOME DELIVERY API INTEGRATION GUIDE Version 1.6
Response Body:
{
"Success": true,
"Error": false,
"Validations": true,
"Response": "",
"ServiceCharges": 208
}
Page 15 of 16
DAEWOO EXPRESS BUS SERVICE PAKISTAN
DEPBS – COD HOME DELIVERY API INTEGRATION GUIDE Version 1.6
THANK YOU
DEPBS
DAEWOO EXPRESS PAKISTAN BUS SERVICE
MIS TEAM, ALL COPY RIGHTS RESERVED 2018 - 2020
Page 16 of 16
DAEWOO EXPRESS BUS SERVICE PAKISTAN