LogoLogo
System Status
  • Digital River API
  • Getting started
  • Using our services
    • Local pricing
    • Item classification
    • Subscriptions
    • e-Invoicing
  • Integration options
    • Low-code checkouts
      • Implementing a Prebuilt Checkout
      • Implementing a Components checkout
      • Offering local pricing
      • Using a shipping endpoint
      • Processing subscription acquisitions
      • Adding custom fields
      • Offering store credit
      • Displaying policies and getting consent
      • Collecting e-invoice information
      • Handling completed checkout-sessions
    • Direct integrations
      • Standard flow
      • Building checkouts
        • Checking out guest and registered customers
        • Describing line items
          • Setting the price of an item
          • Managing items with shared SKU identifiers
        • Providing address information
        • Handling shipping choice
        • Tax identifiers
        • Applying a discount
        • Setting the customer type
        • Providing the IP address
        • Selecting a currency
        • Initiating a charge
        • Setting the purchase location
        • Configuring taxes
        • Accessing regulatory fee information
        • Localizing invoices and credit memos
        • Providing an upstream identifier
        • Applying store credit
        • Handling e-invoicing requirements
        • Landed cost
        • Tax calculation inputs
        • Selling entities
        • Payment sessions
        • Applying store credit (legacy)
        • Country specs
      • Building payment workflows
        • Handling redirect payment methods
        • Handling delayed payment methods
      • Subscription acquisitions
        • Handling subscription acquisitions
        • Handling external subscription acquisitions
        • Subscription information
      • Digital River coordinated fulfillments
        • Checking inventory levels
        • Using shipping quotes
        • Reserving inventory items
        • Managing a fulfillment order
        • Cancelling a fulfillment order
    • Connectors
  • Order management
    • Processing orders
    • Handling a rejected order
    • Accessing invoices and credit memos
    • Fulfilling goods and services
    • Capturing and cancelling charges
    • Payment reauthorizations
    • Handling reversals
      • Return basics
        • Digital River coordinated returns
        • Third party coordinated returns
      • Refund basics
        • Issuing refunds
        • Refunding asynchronous payment methods
      • Disputes and chargebacks
    • Customer notifications
    • Responding to events
      • Events
        • Key event types
        • All event types
      • Webhooks
        • Creating a webhook
        • Digital River API safelist
        • Digital River signature
      • Expanding events
      • Preventing webhooks from getting disabled
    • Distributor model
  • Subscription Management
    • Managing a subscription
    • Managing an external subscription
  • Payments
    • Payment solutions
      • Drop-in payments
        • How Drop-in payments work
        • Drop-in payments integration guide
      • DigitalRiver.js with Elements
        • Elements integration guide
        • Configuring payment methods
          • Configuring Afterpay
          • Configuring Alipay+ (cross-border)
          • Configuring Alipay (domestic)
          • Configuring Amazon Pay
          • Configuring Apple Pay
          • Configuring Bancontact
          • Configuring BNP Paribas
          • Configuring BLIK
          • Configuring CCAvenue
          • Configuring Clearpay
          • Configuring Credit Cards
          • Configuring FPX Online Banking
          • Configuring Google Pay
          • Configuring iDEAL
          • Configuring Klarna
          • Configuring Konbini
          • Configuring Online Banking (IBP)
          • Configuring Online Banking (Korea Bank Transfer)
          • Configuring PayCo
          • Configuring PayPal
          • Configuring SEPA Direct Debit
          • Configuring Trustly
          • Configuring Wire Transfer
          • Common payment sources
          • Common payment objects
    • Supported payment methods
      • Afterpay
      • Alipay (domestic)
      • Alipay+ (cross-border)
      • Amazon Pay
      • Apple Pay
      • Bancontact
      • BNP Paribas
      • BLIK
      • CCAvenue
      • Clearpay
      • Credit Cards
      • FPX Online Banking
      • Google Pay
      • iDEAL
      • Klarna
      • Konbini
      • Korea Bank Transfer (Online Banking)
      • Online Banking (IBP)
      • Pay with Installments France
      • PayCo
      • PayPal
      • PayPal Billing Agreement
      • PayPal Credit
      • PayPal Pay in 3
      • PayPal Pay in 4
      • PayPal RatenZahlung (Installment Payment)
      • SEPA Direct Debit
      • Trustly
      • Wire Transfer
    • Source basics
      • Managing sources
      • Handling credit card sources
      • Retrieving sources
    • Authorization declines
    • PSD2 and SCA
      • How to ensure SCA compliance
    • Payment testing scenarios
  • Product management
    • Product basics
    • Managing SKUs
    • Using product details
    • Grouping SKUs
    • SKU-inventory item pairs
    • Managing inventory items
    • Regulatory fees
      • What are regulatory fees?
        • Fees terminology
        • Regulatory fee management
        • European regulatory fees
        • Compliance obligations
        • WEEE directive requirements
        • Copyright directive requirements
        • Compliance challenges
      • Managing regulatory fees
  • Customer management
    • Customer basics
    • Creating and updating customers
    • Setting up tax exemptions
    • Recording a customer's request to be forgotten
  • Financial reporting
    • Financials basics
    • Sales transactions
      • Returning a list of sales transactions
      • Getting a sales transaction by ID
    • Sales summaries
      • Returning a list of sales summaries
      • Getting a sales summary by ID
    • Payouts
      • Returning a list of payouts
      • Getting a payout by ID
      • Get a list of transactions included in payout by ID
  • Developer resources
    • Digital River API reference
    • DigitalRiver.js reference
      • Including DigitalRiver.js
      • Initializing DigitalRiver.js
      • DigitalRiver object
      • Elements
        • Amazon Pay element
        • Apple Pay elements
        • Google Pay elements
        • IBAN element
        • iDEAL element
        • Konbini elements
        • Compliance element
        • Offline Refund elements
        • Online Banking elements
        • Tax Identifier element
        • Invoice attribute element
        • Delayed Payment Instructions element
        • PayPal elements
      • Guidelines for capturing payment details
      • Security
      • Digital River payment objects
      • Error types, codes, and objects
    • DigitalRiverCheckout.js reference
      • Including DigitalRiverCheckout.js
      • Initializing DigitalRiverCheckout.js
        • DigitalRiverCheckout configuration object
      • DigitalRiverCheckout object
        • Configuring Prebuilt Checkout
          • Performing actions
          • Defining experience
        • Components
          • Configuring components
          • Address component
          • Shipping component
          • Tax identifier component
          • Invoice component
          • Wallet component
          • Payment component
          • Compliance component
          • Order summary component
          • Thank you component
        • Rendering a checkout button
          • Performing actions on the checkout button
        • Determining the checkout's status
      • Accessing country and currency
    • DynamicPricing.js reference
    • Postman collection
  • administration
    • Sign in
    • Digital River Dashboard
      • Digital River Dashboard quick start guide
      • Key features
      • Reset your password
      • Test and production environments
      • Account
        • Adding an account
        • Switching accounts
        • Account access
      • Profile settings
        • Viewing your personal information
        • Changing your password
        • Updating your phone number
        • Enabling multi-factor authentication
      • Finance
        • Payouts
          • Viewing your payout details
          • Filtering your payouts
          • Exporting your payouts
        • Sales summaries
          • Viewing your sales summaries details
          • Filtering your sales summaries
          • Exporting your sales summaries
          • Exporting your sales summary details
        • Transactions
          • Viewing your transaction details
          • Filtering your transactions
          • Exporting your transactions
      • Order management
        • Orders
          • Searching for orders
          • Filtering your orders
          • Viewing the order details
          • Cancelling items
          • Fulfilling items
          • Downloading an invoice
          • Downloading a credit memo
          • Creating shipping labels
          • Recording a customer's request to be forgotten
          • Viewing returns and refunds
          • Creating a return
          • Accepting a return
          • Creating a refund
          • Viewing the order's timeline
        • Checkouts
          • Searching for checkouts
          • Filtering your checkouts
          • Viewing the checkout details
        • Prebuilt Checkout links
          • Generate Prebuilt Checkout links
          • View and work with Prebuilt Checkout link details
          • Add a customer during Prebuilt Checkout
          • Add a product during Prebuilt Checkout
      • Customers
        • Viewing customer details
        • Searching for customers
        • Filtering your customers
        • Editing account information
        • Adding a customer
        • Tax IDs and certificates
          • Adding a tax certificate
          • Adding a tax ID
          • Deleting a tax ID
        • Metadata
          • Adding metadata
          • Editing metadata
        • Manage subscriptions from the Customer Details page
        • Disabling a customer
        • Recording a customer's request to be forgotten
        • Deleting a customer
      • Catalog
        • SKUs
          • Viewing the SKU details
          • Searching for SKUs
          • Filtering your SKUs
          • Adding a SKU
          • Editing a SKU
          • Deleting a SKU
          • Adding a fee to a SKU
          • Editing a fee
          • Deleting a fee
          • Viewing product tariff codes
        • Managing customer subscriptions from Digital River Dashboard
      • Developers
        • API keys
          • Updating your API version
          • Getting your API keys
          • Changing the API version for your key
          • Creating a restricted key
          • Editing a restricted key
          • Deleting a restricted key
          • Rotating keys
        • Webhooks
          • Creating a webhook
          • Editing a webhook
          • Deleting a webhook
          • Rotating a webhook's secret
        • API logs
          • Filtering the API log
          • Viewing the API log details
        • Event logs
          • Filtering the events log
          • Viewing the event details
      • Settings
        • Users and roles
          • Roles
          • Searching for a user by name or email
          • Filtering your users and roles
          • Adding a user
          • Editing a user
          • Deleting a user
        • Prebuilt Checkout
        • Payment methods
          • Viewing your payment methods
          • Viewing payment method details
            • Enabling currencies
            • Managing countries
          • Enabling or disabling a payment method
  • General Resources
    • eCompass
    • eCompass documentation
    • Release notes
      • 2024
      • 2023
      • 2022
      • 2021
      • 2020
      • 2019
    • Standards and certifications
      • Certification process
      • Compliance requirements
      • Documentation requirements
      • Integration checklists
        • Admin portal
        • Products and SKUs
        • Customers and tax exemptions
        • Checkouts, payment sources, and orders
        • Disclosures, compliance statements, and emails
        • Fulfillments and cancellations
        • Customer portal
        • Order refund synchronization
        • Reversals
        • Error handling
      • Test and use cases
    • Commerce infrastructure
    • Versioning
    • Glossary
Powered by GitBook
On this page
  • Classifying items in the checkout
  • Accessing a product's tariff codes
  1. Using our services

Item classification

Gain a better understanding of how the item classification service works and how you can use it to sell your products across international borders

PreviousLocal pricingNextSubscriptions

Last updated 2 months ago

Effective item classification is crucial for businesses operating in multiple markets. It ensures compliance with international trade regulations, appropriate taxation, and seamless cross-border transactions. Digital River's item classification service optimizes this process, tailoring it to the specific requirements of each country where you sell your products. This document provides essential information to help you understand and navigate the complexities of item classification at checkouts.

Digital River's item classification service takes the information you give us about your products and identifies the for each country where you sell your products.

On this page, you'll find information on:

Classifying items in the checkout

To trigger a call to the item classification service at checkout, ensure your Digital River representative has enabled the feature. Additionally, you must configure your or checkout so that:

  • shipFrom.address.country (or items[].shipFrom.address.country) and shipTo.address.country are assigned different values.

Not all transactions involving shipping goods from one country to another invoke a call to item classification. In some cases, due to trade agreements between nations, products in international shipments don't require tariff codes. For details, refer to .

  • There's at least one , each of which must have a description that has a maximum length of 4000 characters and a that's either sent in or stored in the referenced by skuId.

  • Each of these items[] must also have one or more product taxonomies. Depending on how you send us your product data, you can build these classification schemes by defining itemBreadcrumb or categories. For details, refer to:

    • on

    • on .

  • is either omitted, undefined, or assigned a value of DDP.

If the goods are shipping and (1) description and/or (2) itemBreadcrumb / categories are missing, then a request to create or update either of these API resources returns the following error:

400
{
    "type": "badeterminingrors": [
        {
            "code": "missing_parameter",
            "message": "itemBreadcrumb and description required"
        }
    ]
}

We highly recommend that your SKUs and productDetails also have a url, image , and countryOfOrigin. Defining these parameters gives the classification service more data for determining a product's tariff codes.

In general, sending detailed, high-quality data in the request increases the probability that the service will return tariff codes that match the values assigned to your products by each importation country.

It's important that these predicted and actual tariff codes are the same. If they're not, customers might be assessed too much or too little import taxes and duties at checkout. Incorrectly classified products can also result in non-compliance penalties, delays at the border, and even, in extreme cases, seizure of the goods or revoking import privileges.

Accessing a product's tariff codes

In this section, we’ll guide you through accessing a product's tariff codes using the Digital River API. Properly assigned tariff codes are essential for accurately calculating duties and taxes during international transactions. By ensuring that each product is correctly classified, you can avoid potential compliance issues and ensure smooth cross-border shipping.

{
    "id": "4d690796-cb01-42e3-bc6c-1eb56f8a5386",
   ...
    "shipTo": {
        "address": {
           ...
            "country": "DE"
        },
        ...
    },
    "shipFrom": {
        "address": {
            "country": "US"
        }
    },
    ...
    "items": [
        {
            "id": "110f9716-4480-44a8-9c13-a9a447c0e95a",
            "skuId": "3feb3c3d-a584-44c9-8426-086bc9677994",
            "productDetails": {
                "id": "3feb3c3d-a584-44c9-8426-086bc9677994",
                "name": "Gungnir",
                ...
                "image": "https://en.wikipedia.org/wiki/Gungnir#/media/File:Odin-Lawrie-Highsmith.jpeg",
                "url": "https://en.wikipedia.org/wiki/Gungnir",
                "skuGroupId": "62b05273-ec28-44ab-9e55-a7a3eef99fdb",
                "description": "The mighty spear of Odin",
                "countryOfOrigin": "NO",
                "itemBreadcrumb": "Spears > Ancient > Mens > Metal"
            },
            ...
            "tariffCode": "7078638506",
            ...
        }
    ],
    ...
}
{
    "id": "277803930336",
   ...
    "shipTo": {
        "address": {
            ...
            "country": "DE"
        },
        ...
    },
    "shipFrom": {
        "address": {
            "country": "US"
        }
    },
    ...
    "items": [
        {
            "id": "209354060336",
            "skuId": "3feb3c3d-a584-44c9-8426-086bc9677994",
            "productDetails": {
                "id": "3feb3c3d-a584-44c9-8426-086bc9677994",
                "name": "Gungnir",
                ...
                "image": "https://en.wikipedia.org/wiki/Gungnir#/media/File:Odin-Lawrie-Highsmith.jpeg",
                "url": "https://en.wikipedia.org/wiki/Gungnir",
                "skuGroupId": "62b05273-ec28-44ab-9e55-a7a3eef99fdb",
                "weight": 431,
                "weightUnit": "kg",
                "description": "The mighty spear of Odin",
                "countryOfOrigin": "NO",
                "itemBreadcrumb": "Spears > Ancient > Mens > Metal"
            },
            ...
            "tariffCode": "7078638506",
            ...
        }
    ],
    ...
    "checkoutId": "4d690796-cb01-42e3-bc6c-1eb56f8a5386"
}

In the following SKU, the list of tariffCodes[] has been shortened for demonstration purposes.

SKU
{
    "id": "130015182",
    "name": "Blue Aviator - XXXL",
    ...
    "description": " T-shirts, singlets and other vests of cotton, knitted or crocheted.",
    ...
    "physical": false,
    "itemBreadcrumb": "Apparel > Knitted or crocheted > Cotton > T-shirts; Apparel > Knitted or crocheted > Cotton > Singlets; Apparel > Knitted or crocheted > Cotton > Vests",
    "tariffRecord": {
        "hsCode": "610910",
        "tariffCodes": [
            {
                "country": "AX",
                "code": "6109100090",
                "status": "CLASSIFIED"
            },
            {
                "country": "AL",
                "code": "61091000",
                "status": "CLASSIFIED"
            },
            ...
            {
                "country": "NZ",
                "code": "6109101200F",
                "status": "CLASSIFIED"
            },
            ...
            {
                "country": "MF",
                "status": "PENDING"
            },
            ...
            {
                "country": "VC",
                "code": "61091010",
                "status": "CLASSIFIED"
            },
            {
                "country": "WS",
                "code": "61091090",
                "status": "CLASSIFIED"
            },
            ...
            {
                "country": "FR",
                "code": "6109100010",
                "status": "CLASSIFIED"
            },
            {
                "country": "GF",
                "code": "6109100010",
                "status": "CLASSIFIED"
            },
            ...
        ]
    }
}

In the unlikely event that a tarriffCodes[] has a status of CANNOT_BE_CLASSIFIED, work with your Digital River representative to resolve the issue.

For example, even if you never sell one of your products in an individual country, we might already know its country-specific tariffCodes[].code because certain groups of nations, such as those in the European Union, have trade agreements in place that standardize these values among their member

So, to take one example, if your product sells in Germany, we might not know the full code assigned to it by that country. But once the classification service decides and status moves to CLASSIFIED, we create a tariffCodes[] for each country participating in the EU system and assigning the same code to each. It means that, in the future, when customers in any of these nations purchase that product, we'll already have the value we need.

At checkout, we assign each applicable items[] a tariffCode. The tariff codes are passed to the once the order is successfully created and passed to that resource.

If you select either , you can find the checkoutId in the with a of .

The first time you sell a product in a country, it can take 24-48 hours before it is successfully classified. As a result, items[].tariffCode might initially be assigned a default, harmonized value until its full, country-specific code is determined and added to subsequent and .

You'll need to look at tariffRecord.tariffCodes[] in the to determine the status of a product classification request. Alternatively, you can get this information on the .

If you pass at checkout time, Digital River creates a to represent that object.

Each element of a tariffCodes[] contains a status whose possible values are PENDING, CLASSIFIED, and CANNOT_BE_CLASSIFIED. If status is CLASSIFIED, then the element also contains a code that is specific to that importation country.

Over time, as you ship more of your products to an increasing number of countries, the service has methods to expedite the classification process and make each items[].tariffCode assigned to an more precise.

Additionally, once we assign a to a single country-specific code, we can extract its first six digits, which is universal among all nations, and store it in the SKU's tariffRecord.hsCode. We can then assign that value to items[].tariffCodes in future shipping to countries for which we don't yet have a full code.

landed cost
skuGroupId
productDetails
SKU
Managing SKUs
Using product details
How to use the item classification service in the checkout
How to access a product's tariff codes
low-code checkout option
event
SKU details page in the Digital River Dashboard
productDetails
type
tariff codes
Cross border
shippingChoice.shippingTerms
cross-border
physical items[]
Item breadcrumb and categories
order
checkouts
orders
SKUs resource
SKU
SKU's
order
SKU
orders
checkout_session.order.created
checkout
session
Item breadcrumb