Documentation is still being updated. Some content maybe unfinished.
A valid request URL is required to generate request examples{
"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.
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"
}
}WP_DEBUG is set to true.Store information retrieved successfully.
Was this page helpful?