- Auth
- Customer
- Passengers
- invoice Info
- Favorite Flights
- Notifications
- Fast Actions
- Customer - Get ProfileGET
- Customer - Update ProfilePOST
- Customer - Update PasswordPOST
- Search History - FlightGET
- Customer - Remove AccountDELETE
- Utils
- Flight
- Bus
- Hotel
- Socket
- Auto Completes
- Queue / Socket
- Misc
- Payment
- Orders
- Blog
- Contents
- Refund
- Notifications
- Checkout
- Otp VerifyPOST
- StatusGET
Bus - Search
POST
https://test-api.ucuzyolu.com/bus/search
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Header Params
api-version
string
required
Example:
1.1
client-id
string
optional
Default:
302382-1928283273-237723829-292999
Body Params application/json
origin
integer
required
destination
integer
required
date
string <date>
required
Example
{
"origin": 738,
"destination": 84,
"date": "2024-10-21"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://test-api.ucuzyolu.com/bus/search' \
--header 'api-version: 1.1' \
--header 'client-id: 302382-1928283273-237723829-292999' \
--header 'Content-Type: application/json' \
--data-raw '{
"origin": 738,
"destination": 84,
"date": "2024-10-21"
}'
Responses
🟢200OK
application/json
Body
data
object
required
jobId
string
required
status
string
required
attempts
integer
required
payload
object
required
success
boolean
required
code
integer
required
message
string
required
Example
{
"data": {
"jobId": "r7BinwQynYYUKR0r",
"status": "queued",
"attempts": 0,
"payload": {
"success": true,
"journeyId": "pno9agpcf8YsrQ7QNMaVXnUSF6jG0c9FJIA7",
"searchId": "8646AD79-617F-4A34-B64E-123865ED4245",
"searchStatus": "pending",
"originId": 738,
"destinationId": 84,
"origin": "738",
"destination": "84",
"results": [],
"attributes": [],
"ttl": 3600
}
},
"success": true,
"code": 102,
"message": ""
}
Modified at 2024-12-30 15:17:35