Remote Configuration

The remote configuration is used to store configurations affecting our clients such as the Backoffice and our applications. However, the fulfillmenttools backend is not using these remote configurations.

The remote configuration is a simple configuration key-value store. Based on a key, different values and value types can be saved. Furthermore, every entry can contain a specific scope, meaning that configurations can be made available only to certain user groups or clients.

Create / Update

Add Scope

Read All

Read Single

Delete Remote Config

Delete Scope

Example JSON

{
    "id": "REMOTE-CONFIG-ID-001",
    "key": "SHOW_RETURN_SECTION",
    "value": false,
    "valueType": "BOOLEAN",
    "groups": [
        "FULFILLMENT",
        "BACKOFFICE"
    ],
    "scopes": [
        {
            "id": "SCOPE-ID-0001",
            "facilityRefs": [
                "FACILITY-ID-001"
            ],
            "userRefs": [
                "USER-ID-001",
                "USER-ID-003"
            ]
        }
    ],
    "created": "2023-01-10T09:32:00.000+00:00",
    "lastModified": "2023-01-10T10:54:00.000+00:00",
    "version": 7
}

JSON Field Descriptions

key

The unique key that identifies the Remote Config entry, this can be freely chosen at entry creation.

value & valueType

The value of the key-value pair. With the valueType, the clients can identify the technical type of the value field for parsing.

groups

At creation every entry can (but it doesn't have to) have one or multiple groups. This are only simple strings that can defined free. If a client call later the API, this group-strings can be uses as filter. This way, every client gets only the configurations that are important to them.

scopes

Defines a specific scope where the configuration is available. It is possible to add different facilities and/or users. The facility and user declarations AND-linked.

Example:

"scopes": [{
    "id": "SCOPE-1234",
    "facilityRefs": [
        "FACILITY-4711",
        "FACILITY-4712"
    ],
    "userRefs": [
        "USER-40",
        "USER-43"
    ]
}]

In the example above the configuration will be only returned for user USER-40 or USER-43 that are working in facility FACILITY-4711 or FACILITY-4712. All other user and facility combinations will not get this Remote Configuration entry.

{
  "groups": [
    "BACKOFFICE"
  ],
  "key": "INBOUND_VIEW_ENABLED",
  "value": true,
  "valueType": "BOOLEAN"
}

Available Remote Configurations

Last updated