WORKING
FeatureFlags
post
/v1/featuresCreate or update a feature flag. Omit merchantId for a global (network-wide) flag; set it for a per-merchant override, which wins over the global value when both exist.
Parameters
| optional |
Request body
| Field | Type | Required |
|---|---|---|
| key | string | yes |
| merchantId | string (uuid) | — |
| enabled | boolean | yes |
| description | string | — |
Response (201)
| Field | Type | Required |
|---|---|---|
| id | string (uuid) | — |
| key | string | — |
| merchantId | string,null (uuid) | — |
| enabled | boolean | — |
| description | stringnull | — |
| updatedAt | string (date-time) | — |
get
/v1/featuresList feature flags — global flags merged with a merchant's overrides when merchantId is supplied
Parameters
| merchantId | query | optional |
Response (200)
get
/v1/features/{key}/checkCheck whether a single flag is enabled, resolving a merchant override over the global default
Parameters
| key | path | required |
| merchantId | query | optional |
Response (200)
| Field | Type | Required |
|---|---|---|
| key | string | — |
| enabled | boolean | — |