Shipping Locations
Manage warehouse and fulfillment locations.
Updated
On this page
Overview
Get the list of countries and states your store ships to. Use this to populate address dropdowns in checkout forms.
SDK Usage
import dash from "@/lib/dash"
const { countries } = await dash.checkout.getShippingLocations()
// countries = [
// {
// id: "loc_us",
// name: "United States",
// code: "US",
// states: [
// { id: "st_tx", name: "Texas", code: "TX" },
// { id: "st_ca", name: "California", code: "CA" },
// // ...
// ]
// }
// ]