Skip to main content
GET
/
api
/
v2
/
storefront
/
countries
/
default
Get Default Country
curl --request GET \
  --url https://demo.spreecommerce.org/api/v2/storefront/countries/default
{
  "data": {
    "id": "1",
    "type": "country",
    "attributes": {
      "iso": "US",
      "iso3": "USA",
      "iso_name": "UNITED STATES",
      "name": "United States",
      "states_required": true,
      "zipcode_required": true,
      "default": true
    },
    "relationships": {
      "states": {
        "data": [
          {
            "abbr": "NY",
            "name": "New York"
          }
        ]
      }
    }
  },
  "included": [
    {
      "abbr": "NY",
      "name": "New York"
    }
  ]
}

Query Parameters

include
string
fields[country]
string

Response

200 - application/vnd.api+json
data
object
required
included
State · object[]