User endpoint v2
This page describes the user endpoint, which can be used to log in a user and retrieve their address and payment information from your SAP Commerce Cloud service.
With this endpoint, you can:
- 
Log in a user and retrieve their access token.
 - 
Get, update and delete the stored addresses for a given user.
 - 
Get, update and delete the stored payment methods for a given user.
 
POST
GET
PUT
Update user addresses
Updates the addresses of a user.
Parameters
| Parameter | Description | Type | Data Type | 
|---|---|---|---|
  | 
required The definition name.  | 
  | 
  | 
  | 
required The connection name.  | 
  | 
  | 
  | 
required The user ID.  | 
  | 
  | 
  | 
required The address ID.  | 
  | 
  | 
  | 
required The user’s access token.  | 
  | 
  | 
Update payment methods
Updates the payment methods of a user.
Parameters
| Parameter | Description | Type | Data Type | 
|---|---|---|---|
  | 
required The definition name.  | 
  | 
  | 
  | 
required The connection name.  | 
  | 
  | 
  | 
required The user ID.  | 
  | 
  | 
  | 
required The payment method ID.  | 
  | 
  | 
  | 
required The user’s access token.  | 
  | 
  | 
DELETE
Remove user addresses
Deletes the addresses of a user.
Parameters
| Parameter | Description | Type | Data Type | 
|---|---|---|---|
  | 
required The definition name.  | 
  | 
  | 
  | 
required The connection name.  | 
  | 
  | 
  | 
required The user ID.  | 
  | 
  | 
  | 
required The address ID.  | 
  | 
  | 
  | 
required The user’s access token.  | 
  | 
  | 
Remove payment methods
Deletes the payment methods of a user.
Parameters
| Parameter | Description | Type | Data Type | 
|---|---|---|---|
  | 
required The definition name.  | 
  | 
  | 
  | 
required The connection name.  | 
  | 
  | 
  | 
required The user ID.  | 
  | 
  | 
  | 
required The payment method ID.  | 
  | 
  | 
  | 
required The user’s access token.  | 
  | 
  |