Zypp EV API Document

Basic Authentication-
Username: <put here provided username>
Password: <put here provided password>

GET

Get All Shops API

Use Case

This API is used to get the list of outlets/hub of merchant.

Request Body
Attribute Description Example
URL

http://13.126.228.36/mobycy/api/merchant/secure/v1/ext/shops

shopId Long Response-:
{
  "code": 2000,
  "data": [
    {
        "shopId": 135,
        "shopName": "demo shop",
        "shopLat": 28.458108,
        "shopLon": 77.061608,
        "shopCity": "Gurgoan",
        "shopState": "Gurgoan",
        "shopMobile": "1000000031",
        "shopEmail": "demo@zypp.app",
        "deliveryTypeText": "-"
    }
   ],
  "message": "Success"
}
shopName String
shopLat Double
shopLon Double
shopCity String
shopState String
shopMobile String
shopEmail String
deliveryTypeText String

POST

Create Order API

Use Case

This API is used to get the list of outlets/hub of merchant.

Request Body
Attribute Description Example
URL

http://13.126.228.36/mobycy/api/merchant/secure/v1/ext/order

ordRefId String Request JSON:-
{
  "orderDetails": {
      "ordRefId": "er_138",
      "shopId": 135,
      "srcAddr": "Sector 56, Gurgaon",
      "destAddr": "Orchid Island, Sector 51, Gurgaon",
      "shopName": "pickup",
      "shopMobile": "",
      "srcLat": 30.422713,
      "srcLng": 78.096274,
      "destLat": 30.422713,
      "destLng": 78.096274
   },
   "customerDetails": {
      "name": "Krishna",
      "mobile": "991212999"
  }
}
shopId Long
srcAddr String
destAddr String
shopName String
shopMobile String
srcLat Double
srcLng Double
destLat Double
destLng Double
name String
mobile String


Response Body
Attribute Description Example
merOrdId Long Response-:
{
   "code": 2000,
   "data": {
     "orderDetails": {
       "merOrdId": 4630,
       "merchantId": 83,
       "shopId": 135,
       "ordRefId": "er_138",
       "rideId": 526849,
       "deliveryType": 3,
       "rateApplyId": 52,
       "paymentMode": 1,
       "srcAddr": "Sector 56, Gurgaon",
       "destAddr": "Orchid Island, Sector 51, Gurgaon",
       "srcLat": 30.422713,
       "srcLng": 78.096274,
       "destLat": 30.422713,
       "destLng": 78.096274,
       "estDuration": 0.0,
       "estDistance": 0.0,
       "createdTime": "2021-07-14 05:38:26.0",
       "shopName": "pickup",
       "shopMobile": "",
       "deliveryCharges": 40.0,
       "orderLink": "WnlwcHlANDYzMA=="
     },
     "customerDetails": {
       "name": "Krishna",
       "mobile": "991212999"
     },
     "taskStatus": 40000,
     "taskStatusMsg": ""
   },
   "message": "Order Already Created!! Delivery Charges Rs.40.0. "
}
merchantId Long
shopId Long
ordRefId String
rideId Long
deliveryType Integer
rateApplyId Long
paymentMode Integer
srcAddr String
destAddr String
srcLat Double
srcLng Double
destLat Double
destLng Double
estDuration Double
estDistance Double
createdTime String
shopName String
shopMobile String
deliveryCharges Double
orderLink String
name String
mobile String
taskStatus Integer
taskStatusMsg String

GET

Get Order Details API

Use Case

This API is used to get the list of outlets/hub of merchant.

Request Parameter
merOrdId: <Put here orderId>

Request Body
Attribute Description Example
URL

http://13.126.228.36/mobycy/api/merchant/secure/v1/ext/order

merOrdId Long Response-:
{
  "code": 2000,
  "data": [
    {
        "merOrdId": 4630,
        "shopId": 135,
        "ordRefId": "er_138",
        "shopName": "pickup",
        "riderTaskId": 4630,
        "rideId": 526849,
        "customerName": "Krishna",
        "customerMobile": "991212999",
        "customerAddress": "Orchid Island, Sector 51, Gurgaon",
        "estDistance": 0.0,
        "estDuration": 0.0,
        "taskStatus": 11,
        "srcAddr": "Sector 56, Gurgaon",
        "orderCreatedTime": "2021-07-14 05:38:27.0",
        "orderModifiedTime": "2021-07-14 05:38:26.0",
        "estDeliveryTime": "2021-08-02 10:55:41",
        "srcLat": 30.422713,
        "srcLng": 78.096274,
        "destLat": 30.422713,
        "destLng": 78.096274,
        "shopMobile": "",
        "scheduledTime": "2021-07-14 05:38:26.0",
        "taskStatusText": "No Rider Found"
    }
   ],
  "message": "Order in details"
}
shopId Long
ordRefId String
shopName String
riderTaskId Long
rideId Long
customerName String
customerMobile String
customerAddress String
estDistance Double
estDuration Double
taskStatus Integer
srcAddr String
orderCreatedTime String
orderModifiedTime String
estDeliveryTime String
srcLat Double
srcLng Double
destLat Double
destLng Double
shopMobile String
scheduledTime String
taskStatusText String

GET

Get Order Track API

Use Case

This API is used to get the list of outlets/hub of merchant.

Request Parameter
merOrdId: <Put here orderId>

Request Body
Attribute Description Example
URL

http://13.126.228.36/mobycy/api/merchant/secure/v1/ext/order/track

riderTaskId Long Response-:
{
  "code": 2000,
  "data": [
    {
        "riderTaskId": 4630,
        "merOrdId": 4630,
        "driverId": null,
        "startTime": "2021-07-14 05:38:26.0",
        "endTime": "2021-07-14 05:48:27.0",
        "trackRideList": [],
    }
   ],
  "message": "Order Track Details"
}
merOrdId Long
driverId Long
startTime String
endTime String
trackRideList Array

POST

Cancel Order API

Use Case

This API is used to get the list of outlets/hub of merchant.

Request Parameter
merOrdId: <Put here orderId>

Response Body
Attribute Description Example
URL

http://13.126.228.36/mobycy/api/merchant/secure/v1/ext/order/cancel

Response-:
{
  "code": 40051,
  "message": "Cancellation Failed! You cannot cancel this task"
}

GET

Check Driver Availability API

Use Case

This API is used to get the list of outlets/hub of merchant.

Request Parameter
lat: <Put here latitude>
lng: <Put here longitude>

Request Body
Attribute Description Example
URL

http://13.126.228.36/mobycy/api/merchant/secure/v1/ext/service/availability

Response-:
{
  "code": 40051,
  "message": "Cancellation Failed! You cannot cancel this task"
}