- Auth
- Login/Guest Login
- Register
- Remember
- Auth Otp VerifyPOST
- Auth - LogoutDELETE
- Auth - StateGET
- 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
Auth - Set New Password
POST
https://test-api.ucuzyolu.com/auth/password/reset/{{rememberToken}}
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Header Params
client-id
string
optional
Default:
302382-1928283273-237723829-292999
Body Params application/json
password
string
required
password_confirmation
string
required
Example
{
"password": "112233Aa",
"password_confirmation": "112233Aa"
}
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 -g --request POST 'https://test-api.ucuzyolu.com/auth/password/reset/{{rememberToken}}' \
--header 'client-id: 302382-1928283273-237723829-292999' \
--header 'Content-Type: application/json' \
--data-raw '{
"password": "112233Aa",
"password_confirmation": "112233Aa"
}'
Responses
🟢200OK
application/json
Body
data
object (Auth Payload)
required
id
integer
required
name
string
required
phone
string
required
email
string
required
newsletter
object
optional
birthDate
string <date>
optional
identityNumber
string | null
optional
accountNumber
string | null
optional
type
enum<string>
required
Allowed values:
guestuser
lastloginAt
string | null
optional
expireAt
string
required
token
string
required
loginToken
string
optional
success
boolean
required
code
integer
required
message
string
required
Example
{
"data": {
"id": 1,
"name": "John Due",
"phone": "+905320000000",
"email": "johndue@example.com",
"newsletter": {
"sms": false,
"email": false,
"push": false
},
"type": "user",
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJjcmVhdGVkX2F0IjoiMjAyNC0wNi0wNiAwMjozNzo1OCIsImlkIjoxLCJuYW1lIjoiSm9obiBEdWUiLCJwaG9uZSI6Iis5MDUzMjAwMDAwMDAiLCJlbWFpbCI6ImpvaG5kdWVAZXhhbXBsZS5jb20iLCJuZXdzbGV0dGVyIjp7InNtcyI6ZmFsc2UsImVtYWlsIjpmYWxzZSwicHVzaCI6ZmFsc2V9LCJiaXJ0aF9kYXRlIjoiMTk4OS0wNC0yMCIsImlkZW50aXR5X251bWJlciI6bnVsbCwiYWNjb3VudF9udW1iZXIiOiJVWTE3MTU1NjkxMDAiLCJ0eXBlIjoidXNlciIsImxhc3Rsb2dpbl9hdCI6IjIwMjQtMDYtMDVUMjM6Mzc6NTguMjIxNDIyWiIsImV4cGlyZV9hdCI6IjIwMjQtMDYtMDZUMjM6Mzc6NTguMjIyMTIxWiJ9.lHNfubKgAOVRb7FvhEMDC4DV3ix0NZs51O_h0UnDG1Q",
"birthDate": "1989-04-20",
"identityNumber": null,
"accountNumber": "UY1715569100",
"lastloginAt": "2024-06-05T23:37:58.221422Z",
"expireAt": "2024-06-06T23:37:58.222121Z",
"loginToken": "ygvkPHyhuHWT9S3po3aD152LrE83Y3bS"
},
"success": true,
"code": 0,
"message": ""
}
🟠422Parameter Error
🟢200Otp Required
Modified at 2024-12-10 22:11:40