Fluent Commerce Logo
Docs
Sign In

RETURN_CONDITION

Setting

Changed on:

28 Aug 2023

Overview

This setting contains a list of possible return conditions that can be associated with each item being returned.

These values should correspond to the different conditions in which items are physically presented to the Operation.

This list of returns conditions will be used to populate the conditions dropdown on the returns field

Setting AreaWorkflow, UI component, Orders
Supported context levels:RETAILER

Overview

This setting contains a list of possible return conditions that can be associated with each item being returned.

These values should correspond to the different conditions in which items are physically presented to the Operation.

This list of returns conditions will be used to populate the conditions dropdown on the returns field

Values

Data TypeValues
JSON

Sample Values:

`[`

   { "label":"As new condition", "value":"AS_NEW" },
   { "label":"Missing original packaging", "value":"MISSING_PACKAGING" },
   { "label":"Broken / Damaged", "value":"DAMAGED" }
]


Configuration example

1POST: {{fluentApiHost}}/graphql
2
3// create a postman environment variable:
4// Variable: json_value
5// initial val + current value: 
6[
7    { "label":"As new condition", "value":"AS_NEW" },
8    { "label":"Missing original packaging", "value":"MISSING_PACKAGING" },
9    { "label":"Broken / Damaged", "value":"DAMAGED" }
10]
11
12
13GraphQL variables:
14{
15	"retailerId": {{retailer_id}},
16    "lobValue" : {{json_value}}
17}
18
19
20GraphQL Query:
21mutation CreateSetting($retailerId:Int! , $lobValue:Json)  {
22createSetting(input: {
23		name: "RETURN_CONDITION", 
24		valueType: "JSON", 
25		lobValue:$lobValue , 
26		context: "RETAILER", 
27		contextId:$retailerId}) {
28    id
29    name
30  }
31}

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    { "label":"As new condition", "value":"AS_NEW" },
8    { "label":"Missing original packaging", "value":"MISSING_PACKAGING" },
9    { "label":"Broken / Damaged", "value":"DAMAGED" }
10]
11
12
13GraphQL variables:
14{
15	"retailerId": {{retailer_id}},
16    "lobValue" : {{json_value}}
17}
18
19
20mutation updateSetting($retailerId:Int! , $lobValue:Json) {
21updateSetting(input: {
22        id: 5001471,
23		name: "RETURN_CONDITION", 
24		valueType: "JSON", 
25        lobValue: $lobValue,
26		context: "RETAILER", 
27		contextId: $retailerId}) {
28    id
29    name
30  }
31}
32
33

Language: graphqlschema

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