Endpoint
| URL |
/PartnerAPI/Stations/user/getListScheduleTime |
| Method |
POST |
Headers schema
| Header |
Required |
Mô tả |
| clientId hoặc clientid |
Yes |
Mã định danh đối tác |
| apiKey hoặc apikey |
Yes |
Khóa xác thực API của đối tác |
Body schema
| Field |
Type |
Required |
Rule |
Mô tả |
| stationsId |
number |
Yes |
required, integer, min 0 |
ID trạm đăng kiểm. |
| date |
string |
Yes |
required, dd/MM/yyyy |
Ngày cần lấy khung giờ theo định dạng dd/MM/yyyy. |
| vehicleType |
number |
Yes |
required, valid [1, 2, 3] |
Loại phương tiện theo enum hệ thống. |
Sample Request
curl --location '{HOST_NAME}/PartnerAPI/Stations/user/getListScheduleTime' \
--header 'Content-Type: application/json' \
--header 'clientId: TESTCLIENT' \
--header 'apiKey: 07e73e61-0dce-4b39-8ecf-06ef70b35c08' \
--data '{
"stationsId": 1,
"date": "TEST_VALUE",
"vehicleType": 1
}'
Success response
{
"statusCode": 200,
"error": null,
"message": "Success",
"data": [
{
"scheduleTime": "08:00 - 08:30",
"scheduleTimeStatus": 1,
"totalSchedule": 10,
"totalBookingSchedule": 3
}
]
}
Mã lỗi
| HTTP |
Mã lỗi |
Mô tả |
| 400 |
Validation Error
|
Payload không đúng schema. |
| 429 |
QUOTA_EXCEEDED
|
apiKey không hợp lệ hoặc vượt quota. |
| 500 |
UNKNOWN_ERROR
|
Lỗi không xác định. |
Data test cho developer
- clientId: TESTCLIENT
- apiKey: 07e73e61-0dce-4b39-8ecf-06ef70b35c08
Cần thay bằng dữ liệu môi trường thật khi tích hợp.