Skip to content

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

FieldTypeDescription
idStringCustomer ID
firstNameStringFirst name
lastNameStringLast name
emailStringEmail address
dateOfBirthStringDate of birth (YYYY-MM-DD)
genderStringGender (male/female/other)
phoneStringPhone 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"]
  }
}

Released under the MIT License.