post
https://{URL}/v1/open-api/transports/destinations
This method involves a POST request to retrieve the destination 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 | "band" |
C. Sample Request
{
"product_code": "BUS",
"keyword": "band"
}
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 | The object containing boarding location info | |
| cities | array of objects | The list of objects containing cities data from the departure point | |
id` | int | The ID of the city | 436 |
name | string | The name of the city or departure name | “Bandung” |
address | string | The address or location of departure | “Semua terminal / titik keberangkatan di Bandung” |
type | string | Type or location of departure | “CITY” |
| terminals | array of objects | The list of objects containing terminals data from departure point | |
id | int | The ID of the terminal | 271038 |
name | string | The name of the terminal or departure name | “Bandung trace center (btc)” |
address | string | The terminal address or location of departure | “” |
type | string | The type of departure | “LOCATION” |
E. Sample Response
{
"response_code": "201022001",
"response_message": "Berhasil dibuat",
"data": {
"cities": [
{
"id": 436,
"name": "Bandung",
"address": "Semua terminal / titik kedatangan di Bandung",
"type": "CITY"
}
],
"terminals": [
{
"id": 271038,
"name": "Bandung trace center (btc)",
"address": "",
"type": "LOCATION"
}
]
}
}
Try It Here (Form)
To try the following endpoint, enter the example request data you want to use in the following form