Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Getting a site's authorized shipping countries

Learn how to retrieve a site's authorized shipping countries.

You can use the GET /v1/sites/{siteId}/authorized-shipping-countries resource to retrieve a list of all countries authorized to purchase products from your site. The list of authorized shipping countries is configured in Global Commerce.

curl --location --request GET 'https://api.digitalriver.com/v1/sites/{siteId}/authorized-shipping-countries' \
--header 'authorization: Basic ***\
...

You will receive a 200 OK response. The response returns data by locale and county.

{  
   "authorizedShippingCountries": [        
      {          
         "locale": "en_US",          
         "countries": [            
            {              
               "displayName": "Taiwan",              
               "countryCode": "TW"            
            },            
            {              
               "displayName": "Japan",              
               "countryCode": "JP"            
            }          
         ]        
      },        
      {          
         "locale": "en_GB",          
         "countries": [            
            {              
               "displayName": "France",              
               "countryCode": "FR"            
            },            
            {              
               "displayName": "Germany",              
               "countryCode": "DE"            
            }          
         ]        
      }      
   ]
}

Add the ?locale query parameter at the end of the request to get the list of authorized shipping countries by locale. For example:

curl --location --request GET 'https://api.digitalriver.com/v1/sites/{siteId}/authorized-shipping-countries?locale=en_US' \
--header 'authorization: Basic ***\
...

See the query parameters for more information.

Last updated