EXCHANGE_REASON
Changed on:
7 Aug 2025
| Setting Area | Workflow, UI component | 
|---|---|
| Supported context levels: | RETAILER | 
Overview
This setting holds the default values for the settings. When a user creates an exchange, this system pulls the values from the setting.
Values
| Data Type | Values | 
|---|---|
| JSON | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 
Configuration example
1POST: {{fluentApiHost}}/graphql
2
3// create a postman environment variable:
4// Variable: json_value
5// initial val + current value: 
6[
7    {
8        "label": "Customer Satisfaction",
9        "value": "MATCHOFFER"
10    },
11    {
12        "label": "Change of Mind",
13        "value": "CHANGEOFMIND"
14    },
15    {
16        "label": "Change Variant",
17        "value": "CHANGEVARIANT"
18    }
19]
20
21
22GraphQL variables:
23{
24	"retailerId": {{retailer_id}},
25    "lobValue" : {{json_value}}
26}
27
28
29GraphQL Query:
30mutation CreateSetting($retailerId:Int! , $lobValue:Json)  {
31createSetting(input: {
32		name: "EXCHANGE_REASON", 
33		valueType: "JSON", 
34		lobValue:$lobValue , 
35		context: "RETAILER", 
36		contextId:$retailerId}) {
37    id
38    name
39  }
40}Update example
1POST: {{fluentApiHost}}/graphql
2
3// create a postman environment variable:
4// Variable: json_value
5// initial val + current value: 
6[
7    {
8        "label": "Customer Satisfaction",
9        "value": "MATCHOFFER"
10    },
11    {
12        "label": "Change of Mind",
13        "value": "CHANGEOFMIND"
14    },
15    {
16        "label": "Change Variant",
17        "value": "CHANGEVARIANT"
18    }
19]
20
21
22GraphQL variables:
23{
24	"retailerId": {{retailer_id}},
25    "lobValue" : {{json_value}}
26}
27
28
29mutation updateSetting($retailerId:Int! , $lobValue:Json) {
30updateSetting(input: {
31        id: 5001471,
32		name: "EXCHANGE_REASON", 
33		valueType: "JSON", 
34        lobValue: $lobValue,
35		context: "RETAILER", 
36		contextId: $retailerId}) {
37    id
38    name
39  }
40}
41
42