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
profiles.profile
Type: Name | Description | Type |
---|---|---|
given-name | Customer’s first name. | string |
family-name | Customer’s last name. | string |
Update Profile
Update the customer’s profile.
Workflow
- Start with profile
- Edit the profile object with new details
- Update profile using a
PUT
request
Read Attributes From Profile
Retrieve a list of read-only attributes for the logged in customer.
Workflow
- Start with profile
GET
the link with rel: attributes- Render the response
Read Addresses From Profile
Retrieve a list of addresses for the logged in customer.
Workflow
Read Purchases From Profile
Retrieve a list of purchases for the logged in customer.
Workflow
Read Accounts From Profile
Retrieve a list of accounts that the logged in customer is associated to.