Search…
Getting a site's authorized shipping countries
Learn how to retrieve a site's authorized shipping countries.
You can use the GET /sites/{siteId}/authorized-shipping-countries resource to retrieve a list of all countries that are authorized to purchase products from your site. The list of authorized shipping countries is configured in Global Commerce.
cURL
1
curl --location --request GET 'https://{host}/sites/{siteId}/authorized-shipping-countries' \
2
--header 'Content-Type: application/json' \
3
--header 'authorization: bearer ***\
Copied!
You will receive a 200 OK response. The response returns data by locale and countries.
JSON
1
{  
2
"authorizedShippingCountries": [        
3
{          
4
"locale": "en_US",          
5
"countries": [            
6
{              
7
"displayName": "Taiwan",              
8
"countryCode": "TW"            
9
},            
10
{              
11
"displayName": "Japan",              
12
"countryCode": "JP"            
13
}          
14
]        
15
},        
16
{          
17
"locale": "en_GB",          
18
"countries": [            
19
{              
20
"displayName": "France",              
21
"countryCode": "FR"            
22
},            
23
{              
24
"displayName": "Germany",              
25
"countryCode": "DE"            
26
}          
27
]        
28
}      
29
]
30
}
Copied!
To get the list of authorized shipping countries by locale, add ?locale at the end of the request. For example:
GET 'https://{host}/sites/{siteId}/authorized-shipping-countries?locale=en_US'
Last modified 8mo ago
Copy link