post
https://{URL}/v1/open-api/transports/trips-detail
This method involves a POST request to retrieve detailed information about trips provided by Klikoo’s B2B.
A. Request Header
| Field | Format | Mandatory | Length | Example |
|---|---|---|---|---|
| Content-Type | string | Y | application/json | |
| Open-Api-Timestamp | yyyy-mm-dd'T'hh:mm:ss+07:00 | Y | 2024-02-07T10:28:35.000+07:0 | |
| Open-Api-Signature | Digital Signature | Y | 88 | vNMoAmiDRV+paVyD5FaidgI5k Ry2pCo8oEoQN/GBpIPuO3eicY 63b7xY0WDffScvkOZsZ1442ewa bI7Wzd22pw== |
B. Request Body
| Field | Type | Description | Required | Example |
|---|---|---|---|---|
| product_code | string | Unique identifier for the product | true | "BUS" |
| trip_id | int | The ID of the trip | true | 188328 |
C. Sample Request
{
"product_code": "BUS",
"trip_id": 188328
}
D. Response Body
| Field | Type | Description | Example |
|---|---|---|---|
| response_code | string | Contains the OpenAPI response code | “200052000” |
| response_message | string | Contains the value of OpenAPI response message | “Sukses” |
| data | object | The object containing trip detail info | |
id | int | TThe ID of the trip | 188328 |
available_seat | int | The number of available seats for the trip | 3 |
boarding_point_name | int | The name of the boarding point | "Medan Amplas" |
drop_point_name | int | The name of the drop point | "Jl. Selaparang" |
travel_name | string | The name of the travel company | "RB TEST (Do not Book)" |
vehicle_type | string | The type of vehicle used for the trip | "BUS" |
bus_type | string | The type of bus used for the trip | "Executive" |
depart_time | string | The departure time of the trip | "2024-05-01T04:45:00+07:00" |
arrival_time | string | The arrival time of the trip | "2024-05-01T14:35:00+07:00" |
lower_price | int | The lowest price for the trip | 6500 |
high_price | int | The highest price for the trip | 7000 |
| mandatory_fields | array of objects | An array of mandatory fields for booking | "PHONE", "EMAILID", "NAME" |
| seats | array of objects | An array of objects representing the available seats | |
name | string | The name or number of the seat | “19” |
column | string | The column position of the seat | 3 |
row | int | he row position of the seat | 4 |
length | string | The length of the seat | 1 |
width | string | The width of the seat | 1 |
base_price | string | The base price for the trip | 6500 |
price | string | The price for the trip | 6500 |
is_available | string | Indicates if the seat is available | true |
is_ladies_seat | array of objects | Indicates if the seat is a ladies seat | true |
type | string | The type of seat | "SEATER" |
E. Sample Response
{
"response_code": "200052000",
"response_message": "Sukses",
"data": {
"id": 188328,
"available_seat": 3,
"boarding_point_name": "Medan Amplas",
"drop_point_name": "Jl. Selaparang",
"travel_name": "RB TEST (Do not Book)",
"vehicle_type": "BUS",
"bus_type": "Executive",
"depart_time": "2024-05-01T04:45:00+07:00",
"arrival_time": "2024-05-01T14:35:00+07:00",
"lower_price": 6500,
"high_price": 7000,
"mandatory_fields": [
"PHONE",
"EMAILID",
"NAME"
],
"seats": [
{
"name": "19",
"column": 3,
"row": 4,
"length": 1,
"width": 1,
"base_price": 6500,
"price": 6500,
"is_available": true,
"is_ladies_seat": true,
"type": "SEATER"
}
]
}
}
Try It Here (Form)
To try the following endpoint, enter the example request data you want to use in the following form