Changed on:
2 Jan 2024
Setting Area | UI component, Workflow |
---|---|
Supported context levels: | RETAILER |
This setting contains a list of possible return reasons that can be associated with each returned item. These values should correspond to the different reasons for customers to return items.
This list of reasons will be used to populate the reasons dropdown on the returns field.
Data Type | Values |
---|---|
JSON | Sample Values:
|
1POST: {{fluentApiHost}}/graphql
2
3// create a postman environment variable:
4// Variable: json_value
5// initial val + current value:
6[
7
8 {
9
10 "label": "Wrong Size",
11
12 "value": "WRONGSIZE"
13
14 },
15
16 {
17
18 "label": "Broken",
19
20 "value": "BROKEN"
21
22 },
23
24 {
25
26 "label": "Doesn't match the description",
27
28 "value": "WRONG_DESCRIPTION"
29
30 },
31
32 {
33
34 "label": "Change of mind",
35
36 "value": "CHANGE_MIND"
37
38 }
39
40]
41
42
43GraphQL variables:
44{
45 "retailerId": {{retailer_id}},
46 "lobValue" : {{json_value}}
47}
48
49
50GraphQL Query:
51mutation CreateSetting($retailerId:Int! , $lobValue:Json) {
52createSetting(input: {
53 name: "RETURN_REASON",
54 valueType: "JSON",
55 lobValue:$lobValue ,
56 context: "RETAILER",
57 contextId:$retailerId}) {
58 id
59 name
60 }
61}
Language: json
1POST: {{fluentApiHost}}/graphql
2
3// create a postman environment variable:
4// Variable: json_value
5// initial val + current value:
6[
7
8 {
9 "label": "Wrong Size",
10 "value": "WRONGSIZE"
11 },
12 {
13 "label": "Broken",
14 "value": "BROKEN"
15 },
16 {
17 "label": "Doesn't match the description",
18 "value": "WRONG_DESCRIPTION"
19 },
20 {
21 "label": "Change of mind",
22 "value": "CHANGE_MIND"
23 }
24
25]
26
27
28GraphQL variables:
29{
30 "retailerId": {{retailer_id}},
31 "lobValue" : {{json_value}}
32}
33
34
35mutation updateSetting($retailerId:Int! , $lobValue:Json) {
36updateSetting(input: {
37 id: 5001471,
38 name: "RETURN_REASON",
39 valueType: "JSON",
40 lobValue: $lobValue,
41 context: "RETAILER",
42 contextId: $retailerId}) {
43 id
44 name
45 }
46}
47
48
Language: json
Copyright © 2024 Fluent Retail Pty Ltd (trading as Fluent Commerce). All rights reserved. No materials on this docs.fluentcommerce.com site may be used in any way and/or for any purpose without prior written authorisation from Fluent Commerce. Current customers and partners shall use these materials strictly in accordance with the terms and conditions of their written agreements with Fluent Commerce or its affiliates.