Newer Version Available

This content describes an older version of this product. View Latest

Commerce Webstore My Profile

Retrieve the buyer's account details. Update buyer account details. The API retrieves or updates the buyer’s details by identifying the buyer user’s ID within the logged-in context.
Resource
1/commerce/webstores/${webstoreId}/myprofile
Resource example
1https://yourInstance.salesforce.com/services/data/v62.0/commerce/webstores/0ZExx000000005rGAA/myprofile
Available version
52.0
HTTP methods
GET, PATCH
GET is supported in API version 52.0 and later.
PATCH is supported in API version 59.0 and later.
Request body for PATCH
JSON example
1{
2  "firstName": "Morton",
3  "lastName": "Breitenberg",
4  "email": "noreply@example.com",
5  "phoneNumber": "+16102347740"
6}
Properties
Name Type Description Required or Optional Available Version
email String The email address of the buyer. Optional 59.0
firstName String The first name of the buyer. Optional 59.0
lastName String The last name of the buyer. Optional 59.0
phoneNumber String The phone number of the buyer. Optional 59.0
Response body for GET and PATCH
Buyer Profile Detail