DashForDevsDocs
DocsNewsAPI v1
dashfordevs.comSign in

© 2026 DashForDevs

DocsNewsdashfordevs.comLegalStatus
DocsGeographyStates & Regions
Introduction
Getting Started
Authentication
Products
Categories
Cart
Checkout
Blog
Reviews
Webhooks
Customers
Orders
Inventory
Shipping
Discounts
Affiliates
Email
Media & Files
Analytics & Tracking
Locations
Tax
Global Data
SEO
Error Handling
Geography
States & RegionsGeo Data in Orders
Finance
Automations
Page Types
Surveys
Billing & Subscriptions
Storefront Payments
SDK Reference
REST API
Storefront Architecture
Notifications
Security
Team & Permissions
Migrations & Import
Calendar & Appointments
Contact Forms
AI Bots
Dashboard API
Deployment
Changelog
Troubleshooting
Recipes
CLI & Deployment
Image Pipeline
White-label Platforms
Records Engine
Platform Modules
Platform Security
Site Keys & Client Sites
Use Cases
Operations

States & Regions

List US states with order and revenue data.

Updated March 29, 2026

On this page
  • Overview
  • Getting States
  • State Dropdown
  • Next Steps

Overview

DashForDevs provides geographic data for states and regions, used in shipping address forms, tax calculations, and location-based features.

Getting States

States are available through the shipping locations endpoint:

typescript
import dash from "@/lib/dash"

const { countries } = await dash.checkout.getShippingLocations()

// Each country includes its states/regions
const us = countries.find(c => c.code === "US")
us.states.forEach(state => {
  console.log(state.name, state.code)  // "Texas", "TX"
})

State Dropdown

typescript
export function StateSelect({ states, value, onChange }) {
  return (
    <select value={value} onChange={e => onChange(e.target.value)}>
      <option value="">Select state</option>
      {states.map(s => (
        <option key={s.code} value={s.code}>{s.name}</option>
      ))}
    </select>
  )
}

Next Steps

  • Geo Data in Orders — Location data on orders
  • Shipping Locations — Available destinations
  • Tax Rates — State-level tax rates
PreviousDebuggingNextGeo Data in Orders

On this page

  • Overview
  • Getting States
  • State Dropdown
  • Next Steps