post
https://{URL}/v1/open-api/transports/sources
This method involves a POST request to retrieve the departure location 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" |
| keyword | string | Keyword for find the departure location | false | "Jak" |
C. Sample Request
{
"product_code": "BUS",
"keyword": "jakarta"
}
D. Response Body
| Field | Type | Description | Example |
|---|---|---|---|
| response_code | string | Contains the OpenAPI response code | “201022001” |
| response_message | string | Contains the value of OpenAPI response message | “Berhasil dibuat” |
| data | object | An object containing the main data for the boarding location info | |
| cities | array of objects | An array of objects representing cities | |
id | int | The value of the current page in the paginated result set | “20613653-98eb-4106 -88b5-f86b46560134” |
name | string | The value of the previous page in the paginated result set (if any) | “SUCCESS” |
address | string | The value of the next page in the paginated result set (if any) | “123242432333132” |
type | string | The type of location departure | |
| terminals | array of objects | An arrays of object representing terminals from departure point | |
id | int | The ID of the terminal | 1102384 |
name | string | The name of the terminal or departure name | “Terminal Lebak Bulus” |
address | string | The terminal address or location of departure | “Lebak Bulus” |
type | string | The type of departure | “LOCATION” |
E. Sample Response
{
"response_code": "201022001",
"response_message": "Berhasil dibuat",
"data": {
"cities": [
{
"id": 132,
"name": "Jakarta",
"address": "Semua terminal / titik keberangkatan di Jakarta",
"type": "CITY"
}
],
"terminals": [
{
"id": 1102384,
"name": "Terminal Lebak Bulus",
"address": "Lebak bulus",
"type": "LOCATION"
}
]
}
}
Try It Here (Form)
To try the following endpoint, enter the example request data you want to use in the following form