Skip to content

Get Single Country State

Retrieve detailed information for a specific state or province.

Endpoint

GET /api/shop/countries/{countryId}/states/{stateId}

Request Headers

HeaderRequiredDescription
Content-TypeYesapplication/json
X-STOREFRONT-KEYYesYour storefront API key

Path Parameters

ParameterTypeRequiredDescription
countryIdintegerYesCountry ID
stateIdintegerYesState/Province ID

Response Fields (200 OK)

FieldTypeDescription
idintegerState ID
countryIdintegerAssociated country ID
codestringState/province code
namestringState/province name
createdAtstringCreation date

Use Cases

  • Validate state/province selection
  • Get state details for display
  • Verify address information
  • Load shipping tax rates by state

Released under the MIT License.