fc.mystique.pack.rejection.reasons
Changed on:
30 Sept 2024
Setting Area | UI component, Workflow, Orders |
---|---|
Supported context levels: | ACCOUNT, RETAILER |
Overview
This provides a list of rejection reasons to be applied during the packing . 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 Type | Values |
---|---|
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]
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}
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}