Fluent Commerce Logo
Docs
Sign In

EXCHANGE_REASON

Setting

Changed on:

24 Jan 2024

Overview

This setting holds the default values for the settings. When a user creates an exchange, this system pulls the values from the setting.

Setting AreaWorkflow, 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 TypeValues
JSON

`[`

`    {`

`        "label": "Customer Satisfaction",`

`        "value": "MATCHOFFER"`

`    },`

`    {`

`        "label": "Change of Mind",`

`        "value": "CHANGEOFMIND"`

`    },`

`    {`

`        "label": "Change Variant",`

`        "value": "CHANGEVARIANT"`

`    }`

`]`

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}

Language: graphqlschema

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

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.

Fluent Logo