Countries
Get All Countries
GET https://api.bigcommerce.com/stores/{store_hash}/v2/countriesRequest
Get a list of all countries available. A country or territory, identifiable by an ISO 3166 country code.
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
- Accept in header with default of application/json - stringrequired
- Content-Type in header with default of application/json - stringrequired
- page in query - numberNumber of pages.
- limit in query - numberCount per page.
- country in query - string
- country_iso2 in query - string
- country_iso3 in query - string
example
Response
Body
array | application/json
idinteger
Id of the country.Example: 13countrystring
Country name.Example: Australiacountry_iso2string
2-letter country code.Example: AUcountry_iso3string
3-letter country code.Example: AUSstatesobject
Refers to thestates
object return inGET
countries requests.
example
Get a Country
GET https://api.bigcommerce.com/stores/{store_hash}/v2/countries/{id}Request
Returns a single Country. Gets a country. A country or territory, identifiable by an ISO 3166 country code.
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
- id in path - integerrequiredThe ID of the country.
- Accept in header with default of application/json - stringrequired
- Content-Type in header with default of application/json - stringrequired
example
Response
Body
object | application/json
idinteger
Id of the country.Example: 13countrystring
Country name.Example: Australiacountry_iso2string
2-letter country code.Example: AUcountry_iso3string
3-letter country code.Example: AUSstatesobject
Refers to thestates
object return inGET
countries requests.
response
Get a Count of All Countries
GET https://api.bigcommerce.com/stores/{store_hash}/v2/countries/countRequest
Returns a count of all countries.
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
example
Response
Body
object | application/json
countinteger
Min: 1
response
Did you find what you were looking for?