Fluent Commerce Logo
Docs
Sign In

APPEASEMENT_REASON

Setting

Changed on:

17 Jan 2024

Setting AreaUI component, Workflow, Orders
Supported context levels:RETAILER

Overview

This setting captures the list of reasons for appeasement used by a customer care representative while creating an appeasement.

Values

Data TypeValues
JSON

see example

Configuration example

1POST: {{fluentApiHost}}/graphql
2
3// create a postman environment variable:
4// Variable: json_value
5// initial val + current value: 
6{
7
8    "active": [
9
10        {  
11
12            "name": "Save a sale",
13
14            "label": "Save a sale",
15
16            "value": "Save a sale"
17
18        },
19
20        {
21
22            "name": "Match offer",
23
24            "label": "Match offer",
25
26            "value": "Match offer"
27
28        },
29
30        {
31
32            "name": "Customer Satisfaction",
33
34            "label": "Customer Satisfaction",
35
36            "value": "Customer Satisfaction"
37
38        }
39
40    ]
41
42}
43
44
45GraphQL variables:
46{
47	"retailerId": {{retailer_id}},
48    "lobValue" : {{json_value}}
49}
50
51
52GraphQL Query:
53mutation CreateSetting($retailerId:Int! , $lobValue:Json)  {
54createSetting(input: {
55		name: "APPEASEMENT_REASON", 
56		valueType: "JSON", 
57		lobValue:$lobValue , 
58		context: "RETAILER", 
59		contextId:$retailerId}) {
60    id
61    name
62  }
63}

Language: json

Update example

1POST: {{fluentApiHost}}/graphql
2
3// create a postman environment variable:
4// Variable: json_value
5// initial val + current value: 
6{
7 
8    "active": [ 
9
10        {
11
12            "name": "Save a sale",
13
14            "label": "Save a sale",
15
16            "value": "Save a sale"
17
18        },
19
20        {
21
22            "name": "Match offer",
23
24            "label": "Match offer",
25
26            "value": "Match offer"
27
28        },
29
30        {
31
32            "name": "Customer Satisfaction",
33
34            "label": "Customer Satisfaction",
35
36            "value": "Customer Satisfaction"
37
38        }
39
40    ]
41
42}
43
44
45GraphQL variables:
46{
47	"retailerId": {{retailer_id}},
48    "lobValue" : {{json_value}}
49}
50
51
52mutation updateSetting($retailerId:Int! , $lobValue:Json) {
53updateSetting(input: {
54        id: 5001471,
55		name: "APPEASEMENT_REASON", 
56		valueType: "JSON", 
57        lobValue: $lobValue,
58		context: "RETAILER", 
59		contextId: $retailerId}) {
60    id
61    name
62  }
63}
64
65

Language: json