Updating the subscriber's email address

Learn how to update the subscriber's email address.

You can update a subscriber's email address so they can receive future notifications using their preferred email address.

Digital River supports the following email types:

email address typeDescription

The email address the shopper uses to sign in to their account. You can change the shopper's email address in the cart before placing the order.

The billing email address the shopper provided when placing an order. You can change the shopper's billing address in the cart before placing the order.

The shipping email address the shopper provided when placing an order. You can change the shopper's shipping address in the cart before placing the order.

When creating a subscription, subscription-relevant information from the original acquisition, including the billing email address, is copied to the subscription. You can update a shopper's billing email address for a specific subscription or all of the shopper's subscriptions.

When creating a subscription, subscription-relevant information from the original acquisition, including the shipping email address, is copied to the subscription. You can update a shopper's shipping email address for a specific subscription or all of the shopper's subscriptions.

You can combine the notifications for a specific shopper by creating an event rule per each notification. You update email notifications using Global Commerce.

Email address update phases

There are three phases when you can update an email address:

Phase

Update the email address AFTER you submit the order and BEFORE you create the subscription.

Update an email address for a subscription.

Changing the billing and shipping email addresses in the cart before placing the order  

Commerce API 

You can use one of the following calls to change the billing or shipping email address from the cart.

Digital River-hosted storefront page 

It depends on how your cart is customized. Contact your account representative for more information.

Email addresses created after submitting an order

Requisition billing and requisition shipping email addresses

When a shopper submits an order, the system creates two email addresses for the order: 

  • Requisition billing email address

  • Requisition shipping email address

The requisition billing email address and requisition shipping email address are snapshots belonging to the order. The requisition billing email address is the shopper's billing address associated with their chosen payment method. When the shopper places the order, the action disconnects the requisition billing email address from the payment method.  

Orders placed by Commerce API

The requisition billing email address for a physical product order comes from the billing address associated with the shopper's payment method/payment option used to place the order. (The billing address includes the email address.) The shopper provides the requisition shipping email address; if the shopper does not specify the shipping email address, the shopper's system copies the requisition billing email address to the requisition shipping email address. 

The requisition shipping email address for a non-physical product order comes from the requisition billing address. (The billing address includes the email address.)  The system copies the requisition billing email address to the requisition shipping email address.  

Orders placed by Digital River-hosted solution with legacy payments

When an authenticated shopper signs into your storefront and your Digital River-hosted storefront billing address page provides an Email field, the system copies the shopper's owner email address to the requisition billing email address.  

An anonymous shopper flow should provide an Email field on the storefront page where the shopper can provide their email address. 

Orders placed by Digital River-hosted solution with CloudPay (Checkout.js) 

A Digital River-hosted solution leverages Checkout.js to support the payment source, and Checkout.js leverages the Commerce API/apply-payment-method API to attach the source to the cart for both authenticated and anonymous shoppers. So, the system uses the requisition billing email address as the source's billing email address in the cart.

Subscription billing and shipping email addresses

If the shopper submits a subscription order, the system creates two more email addresses for the subscription:  

  • Subscription billing email address

  • Subscription shipping email address

The subscription billing address is associated with the shopper's subscription and recurring payment method. You can update the subscription email address for a shopper's specific subscription or all of the shopper's subscriptions.

Owner's email address

If the shopper is authenticated and has an account they can use to sign in, the system also associates an owner's email address with the shopper. The owner's email address applies only to the authenticated shopper and is not associated with the shopper's order or subscription.

When the authenticated user signs in to their account, they can manage their email addresses from their account and add several often-used payment methods to their account. Each payment method is associated with bills in the shopper's address book. The billing address includes an email address we call the billing email address.

Updating the subscriber's email address for a specific subscription

A long-term subscriber sometimes needs to change their subscription email address for a specific subscription. Use the POST /v1/subscriptions/{subscriptionId}/email request to update a subscription customer's ship-to and bill-to email address so they can receive notifications. You need to include the email address (emailAddress) in the payload. The email address should use a valid email format and not exceed 255 characters. In the following example, the value of the emailAddress is jdoe@acme.com.

curl --location --request POST 'http://{host}/v1/subscriptions/{subscriptionId}/email' \
--header 'Content-Type:  application/json' \
--header 'authorization: bearer ***\
--data-raw '{
 "emailAddress" : "jdoe@acme.com"
}'

You will receive a 202 Accepted response.

The missing email address parameter

If the email address parameter is missing, you will see a 400 Bad Request error message with a validation-error code.

{
  "errors": {
    "error": [
      {
        "code": "validation-error",
        "subcode": "required-data-missing",
        "description": "Missing required field: emailAddress"
      }
    ]
  }
}

Email address is more than 255 characters

An email address cannot exceed 255 characters. If the email address is more than 255 characters, you will see a 400 Bad Request error message with an invalid-request code.

curl --location --request POST 'http://{host}/v1/shoppers/me?applyEmailToSubscriptions=true' \
--header 'Content-Type:  application/json' \
--header 'authorization: bearer ***\
--data-raw '{
 "emailAddress" : "jdoe@acme.com"
}'

Updating the subscriber's email address for all subscriptions

A long-term subscriber sometimes needs to change their subscription email address for all subscriptions. Use the POST /v1/shoppers/me?applyEmailToSubscriptions=true request to update a subscription customer's ship-to and bill-to email addresses for all subscriptions so they can receive notifications. You need to include the email address (emailAddress). The email address should use a valid email format and not exceed 255 characters. In the following example, the value of the emailAddress is jdoe@acme.com.

curl --location --request POST 'http://{host}/v1/shoppers/me?applyEmailToSubscriptions=true' \
--header 'Content-Type:  application/json' \
--header 'authorization: bearer ***\
--data-raw '{
 "emailAddress" : "jdoe@acme.com"
}'

You will receive a 204 No Content response.

Last updated