Setting up tax exemptions

Learn how to set the customer type, tax certificates, and tax identifiers.

As part of the process of configuring tax exemptions, you can set a customer's type, along with arrays of tax identifiers and tax certificates

Customer type

For details on how a customer's type is used to calculate taxes, refer to the Setting the customer type page.

Tax identifiers (legacy)

In versions 2020-12-17 and earlier, use the legacy features described in this section to manage tax identifiers. If you're on versions 2021-02-23 and later, refer to the Tax identifiers page.

Some customers have tax identifiers that allow them to purchase zero-rated goods. If you want to allow customers to apply tax identifiers to their purchases, your integration must first add the tax identifier to the customer's record. Once that operation is successfully completed, Digital River automatically attaches the tax identifier to the transaction whenever the customer creates an applicable registered checkout.

Adding tax identifiers to customers

When you create or update a customer, you can add one or more taxIdentifiers[]. For each tax identifier, you want to add, specify a type and a value. The enumerated type values typically consist of a lowercase, two-letter country code. This value is dependent on the format used in each country.

You can use the tax identifier element to validate customer-supplied data.

The following shows how to add multiple tax identifiers in a POST/customers/{id} request:

curl --location --request POST 'https://api.digitalriver.com/customers/987654321' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <API_key>' \
--data-raw '{
    "taxIdentifiers": [
        {
            "type": "uk",
            "value": "GB243609761"
        },
        {
            "type": "nl",
            "value": "NL002458380B62"
        }
    ]
}'

The response returns taxIdentifiers[] that are now saved to the customer's record:

{
    "id": "987654321",
...
    "taxIdentifiers": [
        {
            "type": "uk",
            "value": "GB243609761"
        },        
        {
            "type": "nl",
            "value": "NL002458380B62"
        }
    ],
...
}

Replacing a tax identifier

A customer can't have multiple taxIdentifiers[] of the same type. So, if you'd like to attach a new tax identifier to a customer and it has the same type as a saved tax identifier, you must first delete the existing object.

To do this, submit a POST/customers/{id} request and set the value you'd like to replace to "".

Make sure you format value without white spaces.

curl --location --request POST 'https://api.digitalriver.com/customers/987654321' \
--header 'Authorization: Bearer <API_key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "taxIdentifiers": [
        {
            "type": "nl",
            "value": ""
        }
      ]
}'

Then submit another POST/customers/{id} request with the original type and an updated value:

curl --location --request POST 'https://api.digitalriver.com/customers/987654321' \
--header 'Authorization: Bearer <API_key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "taxIdentifiers": [
        {
            "type": "nl",
            "value": "NL001868214B01"
        }
      ]
}'

Supported tax identifiers

For a complete list, refer to the supported tax identifiers section on the Tax identifiers page

Tax certificates

You can build your integration so eligible customers with valid tax certificates can make tax-exempt purchases.

To configure certificates for use in eligible transactions, you must:

Digital River also allows you to associate multiple tax certificates with a single customer.

What customers are eligible

Usually, customers who want to use a tax certificate must be a government agency, a non-profit organization, or a product reseller based in the United States.

In the US, almost all product end users are taxed. The primary exceptions are government agencies and not-for-profits. Businesses are typically only tax-exempt when reselling a product.

What transactions are eligible

In the Digital River APIs, tax certificates can only be used in registered checkouts and registered checkout-sessions. Additionally, the customer's record must contain a valid taxCertificates[] whose taxAuthority matches the transaction's shipTo.address.state or billTo.address.state. If the purchase contains physical products, Digital River compares taxAuthority to shipTo.address.state. In transactions that only contain digital goods, we compare taxAuthority to billTo.address.state.

For example, the following customer has multiple tax certificates. Since the taxAuthority of one is MN and the other is WI, if this customer requests to have physical products shipped to Minnesota or Wisconsin, that transaction is tax-exempt. However, if the customer specifies a shipping address other than these two states, Digital River applies taxes.

{
    "id": "543790170336",
    ...
    "taxCertificates": [
        {
            "companyName": "Acme Inc",
            "taxAuthority": "MN",
            "startDate": "2021-04-07T00:00:00Z",
            "endDate": "2022-04-07T00:00:00Z",
            "fileId": "b87c6b64-e919-45d6-bf49-016bed76134a"
        },
        {
            "companyName": "Beta Inc",
            "taxAuthority": "WI",
            "startDate": "2021-04-07T00:00:00Z",
            "endDate": "2022-02-07T00:00:00Z",
            "fileId": "542d9a68-8eb4-4bda-b3fb-67b68e9f6846"
        }
    ],
    ...
}

How we validate tax certificates

Since Digital River is the reseller of record, we subject a customer's taxCertificates[] to a verification process. When customers supply their certificate during a checkout, we issue a temporary exemption for that individual transaction.

If we determine that a customer's document isn't a valid, state-accepted exemption certificate, we mark the account as in review. While in this state, certificates can't be used to make tax-exempt purchases.

We then email the customer to request additional documentation. If the customer fails to provide a valid certificate, we send another follow-up email. If that request doesn't produce the necessary documentation, we move the certificate into an unapproved state. This means it won't be applied to future transactions.

On your site, we recommend that you inform customers that they might receive a follow-up email from Digital River requesting more information about their tax certificate.

On the other hand, if our review determines that a certificate is valid, we automatically apply a tax exemption to all future eligible transactions. However, once the tax certificate's endDate elapses, that exemption no longer applies.

No methods currently exist to query the APIs and determine the status of a tax certificate. Additionally, at this time, you can't subscribe to webhook events that notify you when a certificate's state has been updated.

Collecting tax certificate information

If your site intends to offer tax-exempt purchases, provide a form for customers to enter their certificate information. The form must contain fields that collect:

  • The name of the company/organization/agency that was issued the tax exemption

  • The name of the tax authority (i.e., the US state) that issued the certificate

  • The start and end dates of the tax exemption

You'll also need to give customers a way to upload a copy of their certificate. Restrict the format of the uploaded file to PDF, JPG, or PNG and its size to 10 MB or less.

Certificates of exemption must be addressed to Digital River. This is because we act as the reseller of record. The correct address depends on the selling entity that is facilitating the transaction. So, during the checkout process, use sellingEntity.id or sellingEntity.name to determine the appropriate address disclosure to display to customers:

sellingEntity.id

sellingEntity.name

Address disclosure

DR_INC-ENTITY

Digital River, Inc.

Please address exemption certificates to:

Digital River, Inc.

10380 Bren Road West

Minnetonka, MN 55343

C5_INC-ENTITY

DR globalTech Inc.

Please address exemption certificates to:

DR globalTech, Inc.

10380 Bren Road West

Minnetonka, MN 55343

After you collect the document, use it to create a tax certificate file.

Creating tax certificate files

Once customers upload their tax certificate, submit a POST /files request to create a file in Digital River's system. In the request, make sure you define file and set purpose to tax_document_customer_upload.

From the response, retrieve id and use it to add the tax certificate to the customer.

curl --location --request POST 'https://api.digitalriver.com/files' \
--header 'Authorization: Bearer <Secret API key>' \
--header 'Cookie: incap_ses_1326_1638494=4ge4JL7HAx4pSa+KgOZmEkYOhWMAAAAAWIAkzLY4az9RKmTc8wx7Gg==; nlbi_1638494_2412637=cJ4AarfeUj2bpwP2iXZ5LAAAAAABc9D7iTv2m9SVHn69MYyb; visid_incap_1638494=a3up5REJQh+kLGuEgzmHj4ZpK2MAAAAAQUIPAAAAAABqxJXXizaCb2KT7rDTLZAM; visid_incap_2137235=YibR5HAMTw28J10M4p6Omyb+vWEAAAAAQUIPAAAAAADLOejzH/0oGlmJVXjAkh4Q' \
--data-raw '{
    "purpose": "tax_document_customer_upload",
    "fileName": "tax_certficate_John_Doe.pdf",
    "file": "JVBERi0xLjQKJeLjz9MKNCAwIG9iago8PC9Db2xvclNwYWNlWy9JbmRleGVkL0RldmljZVJHQiAyNTUoAAAAXGJcYlxiHBwcXClcKVwpQUFBXl5eh4eHra2twcHBzs7O1tbW3t7e5+fn7+/v9/f3AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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+XS9Sb290IDEwIDAgUi9TaXplIDEyPj4Kc3RhcnR4cmVmCjEwNzk0CiUlRU9GCg=="
}'

Adding tax certificates to existing customers

After creating a tax certificate file, pass the customer's unique identifier as a path parameter in a POST /customers/{id}. In the body of the request, use taxCertificate to send the information your form collected, as well as the identifier of the file.

curl --location --request POST 'https://api.digitalriver.com/customers/541670080336' \
--header 'Content-Type: application/json' \
...
--data-raw '{
    "taxCertificate":{
        "companyName": "Acme Inc",
        "taxAuthority": "MN",
        "startDate":"2021-04-07T13:47:13Z",
        "endDate":"2025-04-07T13:47:13Z",
        "fileId": "9d149880-7306-49da-b37b-8440649ae9c2"
    }
}'

Company name

The companyName should indicate the name of the company or organization that has been granted the tax exemption.

Tax authority

Since tax certificates only apply to US-based customers, taxAuthority corresponds to the issuing state. The value you assign should be formatted to conform to the USPS two-letter state and possession abbreviation standard. These are the same abbreviations used in the ISO 3166-2 subdivision codes.

Start and end dates

The startDate and endDate values correspond to the issue and expiration dates of the tax certificate, respectively.

In the request, make sure startDate and endDate adhere to the date and time format used in the Digital River APIs.

Tax certificates can be difficult to interpret. As a result, your customers might be unable to determine appropriate input dates. If this is the case, define startDate as the first date of the current month and endDate as the last date of the current month. This allows us time to review the certificate, determine its validity, and set the applicable dates.

File identifier

Retrieve the identifier of the tax certificate file that you created and use it to define fileID.

Verifying the tax certificate exists

Once you add a tax certificate to the customer's record, send a GET /customers/{id} request and parse the response to verify the object has been successfully added to taxCertificates[].

{
    "id": "541670080336",
    "createdTime": "2021-08-23T20:30:06Z",
    "updatedTime": "2021-08-23T20:33:53Z",
    ...
    "taxCertificates": [
        {
            "companyName": "Acme Inc",
            "taxAuthority": "MN",
            "startDate": "2021-04-07T00:00:00Z",
            "endDate": "2025-04-07T00:00:00Z",
            "fileId": "9d149880-7306-49da-b37b-8440649ae9c2"
        }
    ],
    "locale": "en_US",
    "type": "business"
}

Adding multiple tax certificates to a customer

You can only send one taxCertificate in a POST /customers or POST /customers/{id} request. But a customer can have multiple taxCertificates[].

At checkout-time, Digital River determines which (if any) are applicable.

{
    "id": "543790170336",
    "createdTime": "2021-09-08T20:58:15Z",
    "updatedTime": "2021-09-08T22:09:59Z",
    ...
    "taxCertificates": [
        {
            "companyName": "Acme Inc",
            "taxAuthority": "MN",
            "startDate": "2021-04-07T00:00:00Z",
            "endDate": "2022-04-07T00:00:00Z",
            "fileId": "b87c6b64-e919-45d6-bf49-016bed76134a"
        },
        {
            "companyName": "Beta Inc",
            "taxAuthority": "WI",
            "startDate": "2021-04-07T00:00:00Z",
            "endDate": "2022-02-07T00:00:00Z",
            "fileId": "542d9a68-8eb4-4bda-b3fb-67b68e9f6846"
        }
    ],
    "locale": "en_US",
    "type": "business"
}

Last updated