Retrieving customer details
Learn how to get a customer's details.
You can use the GET /v1/customers/{customerId} resource to get a customer's details. You must provide either a customerId or ERID in the path.
The following example gets the details for a specific customer with a customerId.
curl --location --request GET 'https://api.digitalriver.com/v1/customers/{customerId}' \
--header 'Authorization: Basic <API_key>' \
...The following example gets the details for a specific customer with an ERID and requires the x-erid-as-cid=true header.The following example gets the details for a specific customer with an ERID and requires the x-erid-as-cid=true header.
curl --location --request GET 'https://api.digitalriver.com/v1/customers/{ERID}' \
--header 'Authorization: Basic <API_key>' \
--header 'header x-erid-as-cid=true' \
...{
"shopper": {
"id": "1067669580082",
"loginType": "anonymous",
"username": "[email protected]",
"externalReferenceId": "ABC123456789ABC",
"firstName": "Automation",
"lastName": "Tester",
"emailAddress": "[email protected]",
"requestToBeForgotten": {
"offset": {
"totalSeconds": 0,
"id": "Z",
"rules": {
"fixedOffset": true,
"transitions": [],
"transitionRules": []
}
},
"nano": 0,
"year": 2023,
"monthValue": 2,
"dayOfMonth": 27,
"hour": 20,
"minute": 36,
"second": 2,
"month": "FEBRUARY",
"dayOfWeek": "MONDAY",
"dayOfYear": 58
}
}
}Last updated
Was this helpful?