Skip to content

Returns all existing store categories

GET
/api/storecategories

Authorizations

api_key
Type: API Key (header: X-CSRF-Token)

Responses

Success.
JSON
[
{
"id": 0,
"name": "string",
"numberOfStores": 0
}
]
Authorization
api_key
cURL
curl -X GET \
'http://localhost/api/storecategories'

Samples

cURL
curl -X GET http://localhost/api/storecategories
JavaScript
fetch("http://localhost/api/storecategories")
  .then(response => response.json())
  .then(data => console.log(data));
PHP
file_get_contents("http://localhost/api/storecategories");
Python
import requests
response = requests.get("http://localhost/api/storecategories")
print(response.json())