Fluent Commerce Logo
Docs
Sign In

fc.mystique.pack.rejection.reasons

Setting

Changed on:

30 Sept 2024

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

Overview

This setting provides a list of rejection reasons to be applied during the packing process. These reasons will populate the dropdown menu in the rejection field during Pack. The list can be customized or expanded to meet specific business requirements.

Values

Data TypeValues
JSON

see example

Detailed technical description

1[
2  { "label": "fc.sf.rejectionReason.damagedItem", "value": "damagedItem" },
3  { "label": "fc.sf.rejectionReason.incorrectItem", "value": "incorrectItem" },
4  { "label": "fc.sf.rejectionReason.damagedPackaging", "value": "damagedPackaging" },
5  { "label": "fc.sf.rejectionReason.itemNotFound", "value": "itemNotFound" }
6]

Language: plain_text

Name: Default Rejection Reasons

Description:

Rejection Reasons List

Configuration example

1POST: {{fluentApiHost}}/graphql
2
3GraphQL variables:
4{
5	"retailerId": {{retailer_id}},
6    "lobValue" : "[
7
8    {
9        "label": "fc.sf.rejectionReason.damagedItem",
10        "value": "damagedItem"
11    },
12
13    {
14        "label": "fc.sf.rejectionReason.incorrectItem",
15        "value": "incorrectItem"
16    },
17
18    {
19        "label": "fc.sf.rejectionReason.damagedPackaging",
20        "value": "damagedPackaging"
21    },
22
23    {
24        "label": "fc.sf.rejectionReason.itemNotFound",
25        "value": "itemNotFound"
26    }
27
28]"
29}
30
31
32GraphQL Query:
33mutation CreateSetting($retailerId:Int! , $lobValue:Json)  {
34createSetting(input: {
35		name: "fc.mystique.pack.rejection.reasons", 
36		valueType: "JSON", 
37		lobValue:$lobValue , 
38		context: "RETAILER", 
39		contextId:$retailerId}) {
40    id
41    name
42  }
43}

Language: graphqlschema

Update example

1POST: {{fluentApiHost}}/graphql
2
3GraphQL variables:
4{
5	"retailerId": {{retailer_id}},
6    "lobValue" : "[
7
8    {
9        "label": "fc.sf.rejectionReason.damagedItem",
10        "value": "damagedItem"
11    },
12
13    {
14        "label": "fc.sf.rejectionReason.incorrectItem",
15        "value": "incorrectItem"
16    },
17
18    {
19        "label": "Doesn't match the description",
20        "value": "damagedPackaging"
21    },
22
23    {
24        "label": "fc.sf.rejectionReason.itemNotFound",
25        "value": "itemNotFound"
26    }
27
28]"
29}
30
31
32mutation updateSetting($retailerId:Int! , $lobValue:Json) {
33updateSetting(input: {
34        id: 5001471,
35		name: "fc.mystique.pack.rejection.reasons", 
36		valueType: "JSON", 
37        lobValue: $lobValue,
38		context: "RETAILER", 
39		contextId: $retailerId}) {
40    id
41    name
42  }
43}

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