Activity configuration
Read the reference lists that power the activity catalogue: languages, currencies, types, categories, and locations.
GET/Activity/v2/config
Access requires the permission activity_config
Fetch this once and cache it. Use it to build filter menus and to map the ids that appear on products to their names. Send SessionId as a query parameter.
Path parameters
None.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
SessionId | string | Yes | Your session id. |
Request
curl "https://api.hermeseus.com/api/Activity/v2/config?SessionId=8f3c81d2-4a5b-4c6d-9e0f-1a2b3c4d5e6f"
const res = await fetch("https://api.hermeseus.com/api/Activity/v2/config?SessionId=8f3c81d2-4a5b-4c6d-9e0f-1a2b3c4d5e6f");
const data = await res.json();import requests
res = requests.get(
"https://api.hermeseus.com/api/Activity/v2/config",
params={"SessionId": "8f3c81d2-4a5b-4c6d-9e0f-1a2b3c4d5e6f"},
)
data = res.json()Response
| Field | Type | Description |
|---|---|---|
languages | array | Supported content languages. |
currencies | array | Known currencies. |
types | array | Product types, with id and name. |
categories | array | Category tree, with id and name. |
locations | array | Countries and cities. |
data.user | object | Your account and wallet, as seen by the gateway. |
Cache it.
This data changes rarely. Fetch it on start-up rather than on every request.

