LogoLogo
System status
Admin APIs reference
Admin APIs reference
  • Admin APIs reference
  • Order management
    • Refunds
    • Retrieve an order (synchronous API)
    • Retrieve an invoice (synchronous API)
    • Manage orders (synchronous API)
  • Customer management
    • Retrieve a customer (synchronous API)
    • Manage a customer (synchronous API)
  • Subscription mangement
    • Manage a subscription
    • Renew a subscription
    • Apply an immediate midterm change
    • Manage subscription payments
    • Modify the subscription's external reference ID
    • Manage the subscription's address
    • Get all orders
    • Retrieve subscriptions with pending actions
    • Retrieve subscriptions
    • Manage a perpetual price
    • Update a subscription's email address
  • Site management
    • Get authorized countries
  • Product management
    • Manage products (asynchronous API)
    • Retrieve a product (synchronous API)
    • Retrieve the product task status (synchronous API)
  • Offer Management
    • Manage offers (synchronous API)
    • Retrieve an offer (synchronous API)
  • Webhook management
    • Manage webhook events
  • Payment source
    • Source management
  • File management
    • Retrieve a file
Powered by GitBook
On this page
  1. Customer management

Retrieve a customer (synchronous API)

PreviousManage orders (synchronous API)NextManage a customer (synchronous API)

Last updated 1 year ago

Get a customer details

get

Retrieves the details of a customer.

Authorizations
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
GET /v1/customers/{customerId} HTTP/1.1
Host: api.digitalriver.com
Authorization: Basic username:password
Accept: */*
{
  "shopper": {
    "id": "1067669580082",
    "loginType": "anonymous",
    "username": "jswanson@digitalriver.com",
    "externalReferenceId": "ABC123456789ABC",
    "firstName": "Automation",
    "lastName": "Tester",
    "emailAddress": "jswanson@digitalriver.com",
    "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
    }
  }
}