- 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
Customer - Update Profile
POST
https://test-api.ucuzyolu.com/customer/profile
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
name
string
required
email
string
required
phone
string
required
gender
enum<string>
required
Allowed values:
MF
birthDate
string
required
identityNumber
string
required
milecardinfo
array [object {2}]
optional
milecardAirlineCode
string
optional
milecardNo
string
optional
passportinfo
array [object {3}]
optional
passportNationality
string
required
passportNumber
string
required
passportValidDate
string
required
Example
{
"name": "John Due",
"email": "johndue1@example.com",
"phone": "+905322808035",
"gender": "M",
"birthDate": "1989-04-20",
"identityNumber": "49852133948",
"milecardinfo": [
{
"milecardAirlineCode": "TK",
"milecardNo": "228382"
}
],
"passportinfo": [
{
"passportNationality": "TR",
"passportNumber": "39238202-2020",
"passportValidDate": "2029-12-01"
}
]
}
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/customer/profile' \
--header 'client-id: 302382-1928283273-237723829-292999' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "John Due",
"email": "johndue1@example.com",
"phone": "+905322808035",
"gender": "M",
"birthDate": "1989-04-20",
"identityNumber": "49852133948",
"milecardinfo": [
{
"milecardAirlineCode": "TK",
"milecardNo": "228382"
}
],
"passportinfo": [
{
"passportNationality": "TR",
"passportNumber": "39238202-2020",
"passportValidDate": "2029-12-01"
}
]
}'
Responses
🟢200OK
application/json
Body
data
object (Customer Profile)
required
id
integer
required
name
string
required
email
string <email>
required
phone
string
required
notifications
object
required
birthDate
string <date> | null
required
accountNumber
string
required
identityNumber
string | null
optional
milecardinfo
array [object {2}]
optional
passportinfo
array [object {3}]
required
success
boolean
required
code
integer
required
message
string
required
Example
{
"data": {
"id": 1,
"name": "John Due",
"email": "johndue7@example.com",
"phone": "+905322808035",
"newsletter": {
"sms": false,
"email": false,
"push": false
},
"company": null,
"birthDate": "1989-04-20",
"accountNumber": "UY1723742891",
"identityNumber": null,
"membershipType": "individual"
},
"success": true,
"code": 0,
"message": ""
}
Modified at 2024-11-28 01:29:13