Documentation is still being updated. Some content maybe unfinished.
cURL
curl --request GET \ --url {protocol}://{host}/wp-json/cocart/v2/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" } }
Gets general store information including routes and configuration.
WP_DEBUG
true
Store information retrieved successfully.
CoCart version.
Store title.
Store description.
Store home URL.
Store language.
GMT offset.
Timezone string.
Store address information.
Available API routes.
Was this page helpful?