Skip to main content
GET
/
store
{
  "version": "4.6.0",
  "title": "Example Store",
  "description": "Your trusted online retailer for electronics, clothing, and more",
  "home_url": "https://example-store.com",
  "language": "en_US",
  "gmt_offset": "-5",
  "timezone_string": "America/New_York",
  "store_address": {
    "address": "123 Commerce Street",
    "address_2": "Suite 500",
    "city": "New York",
    "state": "NY",
    "postcode": "10001",
    "country": "US"
  },
  "routes": {
    "/cart": "Manage shopping cart",
    "/cart/add-item": "Add item to cart",
    "/cart/items": "Get cart items",
    "/products": "Browse products",
    "/products/categories": "Browse product categories",
    "/login": "User authentication",
    "/logout": "User logout"
  }
}
Both the version and routes only return when WP_DEBUG is set to true.

Response

200 - application/json

Store information retrieved successfully.

version
string

CoCart version.

title
string

Store title.

description
string

Store description.

home_url
string

Store home URL.

language
string

Store language.

gmt_offset
string

GMT offset.

timezone_string
string

Timezone string.

store_address
object

Store address information.

routes
object

Available API routes.

I