Retrieve a customer (synchronous API)
Retrieves the details of a customer.
Authorizations
AuthorizationstringRequired
For system access use case, use API key/secret in the Authorization header, the API key should be set up with sufficient role.
Path parameters
customerIdstringRequired
The customer identifier of either an authenticated customer or an anonymous customer
Header parameters
x-erid-as-cidbooleanOptional
Set to true if you want to use the external reference identifier (ERID) in the path instead of the customer identifier (customerId).
Responses
200
Successful response.
application/json
400
- Bad request.
application/json
401
- Please verify your API key and secret (if applicable) is correct.
403
- Customer with provided external reference identifier is not unique on the site.
application/json
404
- Customer cannot be found.
application/json
get
/v1/customers/{customerId}GET /v1/customers/{customerId} HTTP/1.1
Host: api.digitalriver.com
Authorization: Basic username:password
Accept: */*
{
"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
