Measura API documentation · v1
Retrieve public-facing application settings that are safe and useful for external API consumers.
GET /api/v1/app-settings
Headers:
Authorization: Bearer <api-key>
Content-Type: application/jsonScroll horizontally to see all columns.
| Parameter | Type | Description |
|---|---|---|
locale | string | Optional - ISO locale code (e.g., en, fr, es). If provided, only returns localized labels for that locale. If omitted, returns labels for the default locale (en). |
{
"success": true,
"data": {
"settings": {
"localizedLabels": {
"unitPricePropertyName": "Price per",
"unitPricePropertyValue": "kg",
"netMeasurementLabel": "Net",
"netMeasurementValue": "Weight"
},
"mergeMatchingLineItems": true
}
},
"error": null
}Scroll horizontally to see all columns.
| Field | Type | Description |
|---|---|---|
success | boolean | Indicates whether the request was successful |
data | object | Response data object |
data.settings | AppSettings | Application settings object |
data.settings.localizedLabels | LocalizedLabels | Labels for the requested locale, or English when locale is omitted. Omitted if no labels are configured for that locale. |
data.settings.mergeMatchingLineItems | boolean | Indicates whether the app is configured to merge matching line items in the cart. true means multiple cart additions with the same product/variant and options will be merged into a single line item. |
error | object | null | Error object if the request failed, null if successful |
meta | object | undefined | Optional metadata; omitted by this endpoint |
requestId | string | undefined | Optional request identifier for tracking |
Scroll horizontally to see all columns.
| Status code | Description |
|---|---|
| 401 | Unauthorized - Invalid or missing API key |
| 403 | Forbidden - Public API access is unavailable on this shop |
| 500 | Internal Server Error - Server-side error occurred |
Note
Cache-Control header with private and a max-age of 300 seconds (5 minutes). Clients should respect this cache directive.localizedLabels.en) is used.apik_<keyId>_<secret>lastUsedAt timestamp for the API key. This update is performed asynchronously and does not block the response.Related:
Request:
GET /api/v1/app-settings?locale=frResponse:
{
"success": true,
"data": {
"settings": {
"localizedLabels": {
"unitPricePropertyName": "Prix par",
"unitPricePropertyValue": "kg",
"netMeasurementLabel": "Net",
"netMeasurementValue": "Poids"
},
"mergeMatchingLineItems": true
}
},
"error": null
}