# Time prediction

# API-3.2.2 Predicted quote time

POST /order/takeaway/precompletetime

API type Request API
Usage Get quote time, please refer to Quote time

# Request

Name Type Mandatory Default Description Remarks
client_merchant_id string Y - Store ID in client system
user_address string(255) N * - User address Please refer to How to pass user address and location
user_location string Y * - User location coordinates Please refer to How to pass user address and location

Example:

{
    "auth": {
        // Authentication
    },
    "data": {
        "meta":{
            // Language and region settings
        },
        "client_merchant_id": "STORE-123",
        "user_location": "22.3902837102,114.0042115195"
    }
}

# Response

Name Type Description Remarks
time int Predicted quote time Unit : Minute
time_range string Predicted quote time range Example:"30-40"
{
    "error": 0,
    "data": {
        "time": 20,
        "time_range": "20-40"
    }
}

# API-3.2.3 Predicted accept time

POST /order/takeaway/preassigntime

API type Request API
Usage Get Accept time. Please refer to Accept time

# Request

Name Type Mandatory Default Description Remarks
client_merchant_id string Y - Store ID in client system

Example :

{
    "auth": {
        // Authentication
    },
    "data": {
        "meta":{
            // Language and region settings
        },
        "client_merchant_id": "STORE-123"
    }
}

# Response

Name Type Description Remarks
time int Predicted accept time Unit : Minute
time_range string Predicted accept time range Example: "30-40"
{
    "error": 0,
    "data": {
        "time": 5,
        "time_range": "5-10"
    }
}

# API-3.4.2 Predicted showup time

POST /order/takeaway/prepickuptime

API type Request API
Usage Get Showup time. Please refer to Showup time

# Request

Name Type Mandatory Default Description Remarks
order_id string(128) Y - Order ID in Zeek platform
client_merchant_id string Y - Store ID in client system

Example:

{
    "auth": {
        // Authentication
    },
    "data": {
        "meta":{
            // Language and region settings
        },
        "order_id": "FD20180615080181522",
        "client_merchant_id": "STORE-123"
    }
}

# Response

Name Type Description Remarks
time int Predicted showup time - Unit : Minute
- it returns -1 before order is accepted by partner, OR after partner have shown up at the store
time_range string Predicted showup time range Example: "30-40"

Example:

{
    "error": 0,
    "data": {
        "time": 5,
        "time_range": "5-10"
    }
}

# API-3.4.3 Predicted delivery time

POST /order/takeaway/predeliverytime

API type Request API
Usage Get Delivery time. Please refer to Delivery time

# Request

Name Type Mandatory Default Description Remarks
order_id string(128) Y - Order ID in Zeek platform
client_merchant_id string Y - Store ID in client system

Example:

{
    "auth": {
        // Authentication
    },
    "data": {
        "meta":{
            // Language and region settings
        },
        "order_id": "FD20180615080181522",
        "client_merchant_id": "STORE-123"
    }
}

# Response

Name Type Description Remarks
time int Predicted delivery time - Unit : Minute
- It returns -1 after the order is completed.
time_range string Predicted delivery time range Example: "30-40"

Example:

{
    "error": 0,
    "data": {
        "time": 5,
        "time_range": "5-10"
    }
}