post
https://{URL}/v1/open-api/transports/book
This method involves sending a POST request to retrieve booking data using the transaction ID provided by B2B Klikoo.
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 |
|---|---|---|---|---|
| transaction_id | string | The unique identifier for the transaction | true | "14429004" |
C. Sample Request
{
"transaction_id": "14429004"
}
D. Response Body
| Field | Type | Description | Example |
|---|---|---|---|
| response_code | string | Contains the OpenAPI response code | “201052001” |
| response_message | string | Contains the value of OpenAPI response message | “Berhasil dibuat” |
| data | object | The object containing the main data for book info | |
transaction_id | string | The unique identifier for the transaction | "14429004" |
status | string | The status of the transaction | "SUCCESS" |
| booking_codes | object | An object containing booking codes for the transaction | |
departure | string | The booking code for the departure | "59SJKRUE" |
return | string | The booking code for the return (if applicable) | "" |
E. Sample Response
{
"response_code": "201052001",
"response_message": "Berhasil dibuat",
"data": {
"transaction_id": "14429004",
"status": "SUCCESS",
"booking_codes": {
"departure": "59SJKRUE",
"return": ""
}
}
}
Try It Here (Form)
To try the following endpoint, enter the example request data you want to use in the following form