Skip to content

Get Customer Profile

Retrieve the authenticated customer's profile information.

Endpoint

GET /api/shop/customers/profile

Request Headers

HeaderRequiredDescription
X-STOREFRONT-KEYYesYour storefront API key
AuthorizationYesBearer token (customer login required)

Response Fields (200 OK)

FieldTypeDescription
customerobjectCustomer profile data

Customer Fields

FieldTypeDescription
idintegerCustomer ID
firstNamestringFirst name
lastNamestringLast name
emailstringEmail address
phonestringPhone number
genderstringGender (M/F/Other)
dateOfBirthstringBirth date (YYYY-MM-DD)
statusstringAccount status
createdAtstringAccount creation date
updatedAtstringLast update date

Use Cases

  • Display customer information
  • Show account details in dashboard
  • Verify customer information
  • Pre-fill profile forms
  • Display greeting with customer name

Released under the MIT License.