Profiles
Entry Point: /profiles/{scope}/default
The profiles resource provides access to the currently logged in customer and their details. Using the resource you can retrieve and update a customer’s first name, last name, username, addresses. You can also retrieve the customer’s purchases and paymentmethods through this resource.
Read Default Profile
Retrieve the customer’s default profile. Retrieve the customer’s first name, last name, username, addresses, and link to the customer’s paymentmethods.
Workflow
- Start with root
GET
the link with rel: defaultprofile- Render the response
Response Fields
Type: profiles.profile
Name | Description | Type |
---|---|---|
given-name | Customer’s first name. | string |
family-name | Customer’s last name. | string |
Read Purchases From Profile
Retrieve a list of purchases for the logged in customer.
Workflow
- Start with profile
GET
the link with rel: purchases- Render the response
Update Profile
Update the customer’s profile.
Workflow
- Start with profile
- Edit the profile object with new detail(s)
- Update profile using a
PUT
request