Endpoint - User Config

This request is made in two situations:

Firstly when a customer is going through the integration wizard to integrate the channel. To complete the wizard returns "UserConfig" as the step name and this will indicate the wizard is complete.

The second instance is when the config is loaded the call is made to load any dynamic ConfigItems that may be required to show on the Linnworks config UI. SaveConfigEndpoint will be called on each wizard step and when the config is saved.

If the config is loaded and the StepName is not "UserConfig" it will load the config wizard and take them through the stages until "UserConfig" is returned. This can be especially useful if the user is required to go through additional steps down the line such as updating an auth token.

Request

Post

UserConfigRequest

Field NameTypeDescription
AuthorizationTokenStringToken that you generated for this customer.

Sample

{
	"AuthorizationToken": "a8e53e86eead4b69beaa0afcc29b67fb",
}

Response

UserConfigResponse

Field NameTypeDescription
IsConfigActiveBooleanIdentifies whether the integration profile is in Active mode. Meaning the customer completed the integration wizard and can use the integration
ConfigStatusStringConfiguration stage name. You must provide the same name to the UpdateConfig endpoint
ConfigStageConfigStageConfig stage class. See Endpoint - User Config - ConfigState
WizardStepDescriptionStringDescription of the current wizard step.
IsErrorBooleanIndicates if there is an error
ErrorMessageString / nullError message

ConfigStage

Field NameTypeDescription
WizardStepDescriptionStringDescription of the configuration stage
WizardStepTitleStringTitle of the configuration stage
ConfigItemsConfigItem[]List of ConfigItems. See Endpoint - User Config - ConfigItem

ConfigItem

Field NameTypeDescription
ConfigItemIdStringUnique name for the config item (MAX 20 chars)
NameStringValue displayed on the user interface
DescriptionstringTooltip text for the config item
GroupNameStringConfig item group name. Config item will be rendered on the UI grouped by this value
SortOrderIntegerSort order of the config item. Config items will be rendered on the screen in this order
SelectedValueStringSelected value
RegExValidationString/nullRegEx validation
RegExErrorString/nullError message that will be displayed when RegEx validation fails
MustBeSpecifiedBooleanIdentifies whether the config item must have value specified
ReadOnlyBooleanIdentifies whether the field is read only
ListValuesConfgItemListItem[]List of ConfigItemListItem. The config item ValueType =5 (LIST) can have a list of available values the user can select from the drop down list. See Endpoint - User Config - ConfigListItem
ValueTypeIntegerString = 0,
Integer = 1,
Double = 2,
Boolean = 3,
Password = 4,
List = 5

ConfigListItem

Field NameTypeDescription
DisplayStringUser friendly visible value.
ValueStringDrop down item value.

Sample

{
  "IsConfigActive": false,
  "ConfigStatus": "StageStatusName",
  "ConfigStage": {
    "WizardStepDescription": "Description of the stage.",
    "WizardStepTitle": "Title of the wizard Stage",
    "ConfigItems": [
      {
        "ConfigItemId": "ITEM1",
        "Name": "Config Item 1",
        "Description": "Description Item 1",
        "GroupName": "Group item",
        "SortOrder": 1,
        "SelectedValue": "",
        "RegExValidation": null,
        "RegExError": null,
        "MustBeSpecified": true,
        "ReadOnly": false,
        "ListValues": [
          {
            "Display": "List Value 1",
            "Value": "1"
          }
        ],
        "ValueType": 5
      }
    ]
  },
  "IsError": false,
  "ErrorMessage": null
}