GET
/ext/dispatch/{id}
curl \
--request GET 'https://dev.hubz.nyotek.com/ext/dispatch/{id}'
Response examples (200)
{
"data": {
"id": "01HQ0PV32FMRA1XGT609QFV2VJ",
"created_at": "string",
"modified_at": "string",
"r_id": "DYJ7XZ7",
"assigned_driver_id": "01HQ0PV32FMRA1XGT609QFV2VJ",
"pickup": {
"ref_id": "b93d16aa-e34d-4c65-b6ef-acdcca470615",
"lat": 24.712181,
"lng": 46.679747,
"address_line": "ابي البدر الموسوي, As Sulimaniyah, Riyadh 12244, Saudi Arabia"
},
"destination": {
"ref_id": "b93d16aa-e34d-4c65-b6ef-acdcca470615",
"lat": 24.712181,
"lng": 46.679747,
"address_line": "ابي البدر الموسوي, As Sulimaniyah, Riyadh 12244, Saudi Arabia"
},
"user_metadata": {
"id": "15ed2668-f118-40c3-a52c-8ad90fe11ed7",
"username": "theUser",
"firstName": "John",
"lastName": "James",
"email": "john@email.com",
"phone": 9669876654321
},
"vendor_logo_url": "https://picsum.photos/200/300",
"vendor_id": "15ed2668-f118-40c3-a52c-8ad90fe11ed7",
"vendor_name": {
"ar-sa": "جملة عربية",
"en-us": "English based text"
},
"vendor_oid": "15ed2668-f118-40c3-a52c-8ad90fe11ed7",
"vendor_sid": "15EEDFRG",
"vendor_bid": "15ed2668-f118-40c3-a52c-8ad90fe11ed7",
"media_url": {
"1": "https://picsum.photos/200/300",
"2": "https://picsum.photos/200/400"
},
"vendor_payload": {
"pickup_wait_time": 20,
"order_price": 123.65,
"currency": "SAR",
"payment_type": "AMEX",
"order_details": [
{
"item_name": {
"ar-sa": "جملة عربية",
"en-us": "English based text"
},
"count": 2,
"price": 23.45
}
]
},
"status": [
{
"status": "accepted",
"status_captured_time": "2024-02-28 12:05:24.992",
"ref_id": "01HQ0PV32FMRA1XGT609QFV2VJ",
"ref_type": "user"
}
]
}
}
Response examples (401)
{
"error": "generic error",
"error_desc": "identifier 45 not found"
}
Response examples (500)
{
"error": "generic error",
"error_desc": "identifier 45 not found"
}