LogoLogo
System status
Commerce API references
Commerce API references
  • Commerce API references
  • Warnings and error codes
    • Errors
    • Error codes
      • HTTP response status codes
      • Error format for Shopper APIs
      • Error codes for Shopper APIs
        • 400 Bad Request
        • 401 Unauthorized
        • 403 Forbidden
        • 404 Not Found
        • 405 Method Not Allowed
        • 409 Conflict
        • 412 Precondition Failed
        • 413 Payload Too Large
        • 500 Internal Server Error
      • Error format for Admin APIs
        • Async error objects
        • Sync error objects
        • Deployment objects
        • Warning objects
      • Error codes for Admin APIs
        • Error patterns
        • Supported image types
        • Asynchronous response error codes
        • Deployment error codes
        • Synchronous response error codes
  • Commerce API reference guide
    • API structure
      • API keys
      • Supported OAuth and Commerce API formats
      • Mini cart widget
      • Custom attributes
      • Fields used as keys
      • Fields and expand query parameters
      • Caching responses
      • CORS support
      • JSONP support
      • Transport
      • Service profiles
      • Supported protocols and formats
      • Elements
      • Rate limiting
      • Locale and currency
      • Exchange rate
      • Product identifier
      • Product external reference identifier (ERID)
      • Customer external reference identifier ERID
      • Cancel request process
      • Failover and redundancy
      • Troubleshooting API calls
    • Shopper APIs reference
      • Carts
        • Offers
          • Offer types
          • POP offers
          • Applied offers
          • Eligible offers
      • Orders
      • Returns
      • Links
    • Admin APIs reference
      • Subscriptions
      • Sites
      • Products
      • Live changes
      • Authorized shipping and billing countries
      • Merchandising
      • Disclosures
    • Glossary
Powered by GitBook
On this page
  • Using an external reference identifier for a customer
  • Specifying an external reference identifier when creating and getting a customer
  • Create a full access token using the external reference identifier
  1. Commerce API reference guide
  2. API structure

Customer external reference identifier ERID

Understand the customer ERID.

PreviousProduct external reference identifier (ERID)NextCancel request process

Last updated 4 months ago

The Remote User Management (also known as SSO) service requires an externalReferenceID as a customer identifier.

You must specify a unique externalReferenceID for each user because several objects use it. Failure to do so may violate your contract with Digital River and will cause users to get cross-linked.

You must specify a unique inbound userKey (in response to LoginRequest, GetUserRequest) for each user in the clients' database.

Using an external reference identifier for a customer

When you , you can specify the external reference ID. You can also update a customer using the resource.

Specifying an external reference identifier when creating and getting a customer

The shopper object in the payload for a request (where the client maintains the login credentials) includes an externalReferenceId as shown in line 5:

{
 		"shopper": {
 			"firstname": "John",
			"lastname": "Johnson",
 			"externalreferenceid": "abc123",
 			"emailaddress": "jjohnson@myCompany.com",
 			"locale": "en_US",
 			"currency": "USD"
	 	}
 }

Create a full access token using the external reference identifier

For the Client Credentials confidential flow only, you can create a full access token on behalf of a customer by passing in the external_reference_id form parameter in the payload:

grant_type=client_credentials&dr_external_reference_id=partner-shopper-id

When you use the ap resource to get a customer, you can use the expand query parameter to get the customer's external reference identifier. The GET does not return the external reference identifier field by default. Refer to the Shopper resource for more information about getting and creating customers.

For more information, see under the .

#v1-shoppers-me
POST oauth20/token
Token API
POST /shoppers/me
POST /shoppers
create a customer