Get Customer Profile
Retrieve the authenticated customer's profile information.
Authentication
This query requires a valid customer authentication token in the Authorization header. Use the Customer Login API to retrieve the token.
Authorization: Bearer <accessToken>Arguments
This query has no required arguments.
Response
| Field | Type | Description |
|---|---|---|
id | String | Customer ID |
firstName | String | First name |
lastName | String | Last name |
email | String | Email address |
dateOfBirth | String | Date of birth (YYYY-MM-DD) |
gender | String | Gender (male/female/other) |
phone | String | Phone number |
Use Cases
- Display customer account information
- Show profile on account dashboard
- Verify customer information
- Pre-fill form fields
Error Responses
json
{
"errors": {
"authentication": ["Unauthenticated. Please login to perform this action"]
}
}
