Definition
https://sandbox.bluesnap.com/services/2/cp/user/
The BlueSnap Retrieve User API enables you to retrieve an existing user in your BlueSnap account or any of your linked accounts.
Request Content
No content is required in the request body. Enter the relevant IDs in the request URL, as follows:
Retrieve based on User ID
Enter the userId
into the web service URL, in the format:
services/2/cp/user/{userId}
For example:
services/2/cp/user/1011582369
Response Details
If successful, the response HTTP status code is 200 OK.
The response contains the details on the retrieved userId object.
Examples
Request Example
Note:
If you need to manage an operation on behalf of a linked BlueSnap account, use the "onbehalfofmid" parameter.
curl -v -X GET https://sandbox.bluesnap.com/services/2/cp/user/23645623
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
curl -v -X GET https://sandbox.bluesnap.com/services/2/cp/user/23645623?onbehalfofmid=34234
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
Response Example
If successful, the response HTTP status code is 200 OK.
{
"userId": "1111001",
"firstName": "New",
"lastName": "User",
"email": "[email protected]",
"username": "finance 1234",
"allowViewFinancialInfo": true
}
Parameter Reference
Parameter | Description |
---|---|
onbehalfofmid | Creates, updates, retrieves, or deletes users on behalf of a linked BlueSnap account Note: This parameter specifies the ID of the BlueSnap account that owns the user, which should be linked to the BlueSnap account executing the call. |