DUMA/ API

Languages and currencies

Lists the languages the shop sells in, each with its currency. Pass a code as ?locale= on product reads.

GEThttps://api.duma-business.com/v1/store/locales

catalog:readPublishable or secret key

Responses carry Cache-Control: private, max-age=30 and Vary: Authorization, X-Api-Key, Origin.

A language with no currency of its own shows the workspace’s; meta.currency is the workspace’s currency.

Request example

Example request
curl -X GET "https://api.duma-business.com/v1/store/locales" \
  -H "Authorization: Bearer dk_pub_…"

This endpoint takes no parameters.

Response

Response · 200
{
  "data": [
    {
      "code": "en",
      "name": "English",
      "isDefault": true,
      "fallback": null,
      "currency": "GBP"
    },
    {
      "code": "uk",
      "name": "Українська",
      "isDefault": false,
      "fallback": "en",
      "currency": "UAH"
    }
  ],
  "meta": {
    "currency": "GBP"
  }
}