User
Header parameters
X-CookiestringRequiredExample:
Use X-Cookie header instead of Cookie header in "try out" section. Use Cookie header while testing in postman or other tools. Some commerce applications may support 'sesionid' instead of 'osessionid'.
osessionid=abc123Responses
200
User information retrieved
application/json
Information about the currently authenticated user. Contains profile data (name, email, phone), preferences (email/SMS/call permissions), segment information (price list, stock list, currency), selected delivery address, and authentication status. Requires authenticated session cookie.
pkintegerRequiredExample:
42first_namestringOptionalExample:
Johnlast_namestringOptionalExample:
DoephonestringOptionalExample:
905551234567emailstringOptionalExample:
john.doe@example.comemail_allowedbooleanOptionalExample:
truesms_allowedbooleanOptionalExample:
falsecall_allowedbooleanOptionalExample:
truehashed_emailstringOptionalExample:
MD5 hash of the email address
5d41402abc4b2a76b9719d911017c592date_joinedstring · date-timeOptionalExample:
2024-01-15T10:30:00Zlast_loginstring · date-timeOptionalExample:
2024-10-30T14:20:00Zgenderstring · enumOptionalExample:
MPossible values: date_of_birthstring · dateOptionalExample:
1990-05-15is_email_verifiedbooleanOptionalExample:
Whether the user's email is verified
trueis_social_networks_connectedbooleanOptionalExample:
Whether the user has connected social accounts
falseclient_typestringOptionalExample:
Client type identifier
web401
Authentication required
application/json
get/current_user/
GET /current_user/ HTTP/1.1
Host: sandbox.akinon.com
X-Cookie: osessionid=abc123
Accept: */*
{
"pk": 42,
"first_name": "John",
"last_name": "Doe",
"phone": 905551234567,
"email": "john.doe@example.com",
"email_allowed": true,
"sms_allowed": false,
"call_allowed": true,
"attributes": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"hashed_email": "5d41402abc4b2a76b9719d911017c592",
"date_joined": "2024-01-15T10:30:00Z",
"last_login": "2024-10-30T14:20:00Z",
"gender": "M",
"date_of_birth": "1990-05-15",
"is_email_verified": true,
"is_social_networks_connected": false,
"segment": {
"pk": 1,
"price_list": 1,
"stock_list": 1,
"currency": "TRY"
},
"client_type": "web",
"selected_address": {
"pk": 1,
"address_line_1": "text",
"address_line_2": "text",
"city": "text",
"postal_code": "text",
"country": "text"
}
}Last updated
Was this helpful?

