Hermeseus

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

NameTypeRequiredDescription
SessionIdstringYesYour 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

FieldTypeDescription
languagesarraySupported content languages.
currenciesarrayKnown currencies.
typesarrayProduct types, with id and name.
categoriesarrayCategory tree, with id and name.
locationsarrayCountries and cities.
data.userobjectYour account and wallet, as seen by the gateway.
Cache it. This data changes rarely. Fetch it on start-up rather than on every request.