Key | Value | Description |
---|---|---|
Content-Type | application/json | |
Authorization | Bearer {token} | Partner token |
Key | Type | Required | Description |
---|---|---|---|
_id | string | true | Service ID |
requests | array | true | List of special request object or [] |
Key | Type | Required | Description |
---|---|---|---|
address | string | true | Text address |
lat | float | true | Latitude |
lng | float | true | Longitude |
name | string | true | Name of receiver or sender |
mobile | string | true | Mobile phone of receiver or sender |
cod | int | false | COD amount in this stop point |
formatted_address | string | false | Formatted text address |
short_address | string | false | Short address text |
address_code | string | false | Address code |
remarks | string | false | A note for supplier |
item_value | int | false | Item's value |
Key | Type | Required | Description |
---|---|---|---|
_id | string | true | ID of the special request (e.g SGN-BIKE-TIPS) |
num | int | false | Number of unit special request if it's PER_UNIT type |
tier_code | string | false | Code of selected tier if it's TIER type |
option_code | string | false | Code of selected option (e.g option in SGN-BIKE-FRAGILE |
option_detail | string | false | Option detail of selected option |
Key | Type | Required | Description |
---|---|---|---|
_id | int | true | Item ID |
store_id | int | true | Store ID |
name | string | true | Item name |
price | int | true | Item price |
num | int | true | Number of item |
Key | Type | Required | Description |
---|---|---|---|
path | array | true | List of stop point object |
payment_method | string | true | Payment method to pay order |
services | array | true | List of service object |
order_time | float | false | Time when user want to broadcast order to supplier |
promo_code | string | false | Promo code to apply for discount |
idle_until | float | false | Time when user want to broadcast order to supplier |
items | array | false | List of items to log in orders |
Key | Type | Required | Description |
---|---|---|---|
weight | float | true | Item weight (kg) |
length | float | false | Item length (m) |
width | float | false | Item witdth (m) |
height | float | false | Item height (m) |
description | description | false | Item description |
[
{
"service_id": "SGN-BIKE",
"data": {
"distance": 11.6298,
"duration": 3166,
"user_main_account": 0,
"user_bonus_account": 0,
"currency": "VND",
"total_pay": 72000,
"polyline_points": "qmv`Agy_jSpFeBy@wB^y@{AqE`HqBuA}CZgBp@cb@j@iAYo@~Ksi@r@MJq@sBaAaNiVy@qDTaAsJaJfDoCkAsCfAk@q]_k@gn@ik@aBjBeCwBdCvBaG|G~DtDhNfCd`@f]hPpWwB~EjZxXU`AVtBxAdCsAdDB`AjOnNRbA_DlOgGdYo@h@b@rAm@j]MtDe@`AhPd^",
"polylines": "qmv`Agy_jSpFeBy@wB^y@{AqE`HqBuA}CZgBp@cb@j@iAYo@~Ksi@r@MJq@sBaAaNiVy@qDTaAsJaJfDoCkAsCfAk@q]_k@gn@ik@aBjBeCwBdCvBaG|G~DtDhNfCd`@f]hPpWwB~EjZxXU`AVtBxAdCsAdDB`AjOnNRbA_DlOgGdYo@h@b@rAm@j]MtDe@`AhPd^",
"total_balance": 0,
"is_post_paid": false,
"is_child_account": false,
"online_pay": 0,
"payment_method": "CASH",
"distance_fee": 62000,
"request_fee": 5000,
"stop_fee": 5000,
"vat_fee": 0,
"discount": 0,
"total_fee": 72000,
"item_fee": 0,
"item_vat_fee": 0,
"item_discount": 0,
"cod_commission_fee": 0,
"requests": [
{
"_id": "SGN-BIKE-TIP",
"num": 1,
"price": 5000
}
],
"stoppoint_price": 5000,
"special_request_price": 5000,
"vat": 0,
"distance_price": 62000,
"voucher_discount": 0,
"subtotal_price": 72000,
"total_price": 72000,
"surge_rate": 0
},
"error": null
},
{
"service_id": "SGN-POOL",
"data": null,
"error": {
"http_code": 406,
"code": "INVALID_MAX_COD",
"title": "COD is not valid",
"description": "Rất tiếc, dịch vụ này chỉ hỗ trợ tổng COD tối đa đ{{ data.max_cod }}",
"internal": ""
}
}
]
HTTP Status | Code | Meaning |
---|---|---|
406 | INVALID_FUTURE_ORDER_TIME | Advanced booking time is not valid (e.g more than 1 month from now) |
406 | NOT_SUPPORT_ADVANCE_BOOKING | Service does not support advanced booking |
406 | SERVICE_NOT_VALID_AT_PICKUP | Service does not available at the pickup point |
406 | INVALID_PICKUP_AREA | Service does not available in this area |
406 | INVALID_DELIVERY_AREA | Service does not support delivery in this area |
400 | MISSING_PATH_INFO | Path does not contain enough stop point |
406 | INVALID_MAX_DISTANCE | Distance violate max_distance configured in service |
406 | INVALID_MAX_STOP_POINT | Number of stop point in path exceed max_stop_point of service |
406 | INVALID_MIN_STOP_POINT | Number of stop point in path is less than min_stop_point of service |
HTTP Status | Code | Meaning |
---|---|---|
400 | BAD_REQUEST | Request contains invalid data |