Lấy thông tin chi tiết đơn hàng Warehouse
Lấy thông tin chi tiết của đơn hàng Warehouse
- cURL
- JavaScript
curl --request GET \
--url https://apistg.ahamove.com/api/v1/partner/warehouse/order/{_id} \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <Token STG>'
var myHeaders = new Headers();
myHeaders.append('Content-Type', 'application/json');
myHeaders.append('Authorization', 'Bearer <Token STG>');
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow',
};
fetch(
'https://apistg.ahamove.com/api/v1/partner/warehouse/order/{_id}',
requestOptions
)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.log('error', error));
HTTP Request
GET https://apistg.ahamove.com/api/v1/partner/warehouse/order/<_id>
Authorization
| Key | Giá trị | Mô tả |
|---|---|---|
| Authorization | Bearer <TOKEN_STG> | Token của User tạo đơn |
Header
| Key | Giá trị |
|---|---|
| Content-Type | application/json |
Query Parameters
| Parameter | Type | Yêu cầu | Mô tả |
|---|---|---|---|
| _id | String | Có | Mã đơn hàng Warehouse (PARTNER_ABCXXXXXXXX) |
Response
JSON response example:
{
"_id": "PARTNER_ABCXXXXXXXX",
...# order detail
}
Status-Code: 200 OK
Các lỗi thường gặp
| Mã lỗi | Nội dung | Mô tả |
|---|---|---|
404 | Not Found | Không tìm thấy token |
401 | Unauthorized | Không được cấp phép |
500 | Internal Server Error | Hệ thống của chúng tôi có lỗi xảy ra. Xin thử lại sau |
503 | Service Unavailable | Chúng tôi tạm thời đang không hoạt động để bảo trì. Xin vui lòng thử lại sau |