DEFAULT_RETURN_DESTINATION_LOCATION
Changed on:
24 Jan 2024
Setting Area | UI component, Workflow, Orders |
---|---|
Supported context levels: | RETAILER |
Overview
If the return destination is not provided to the , then the will look for the default return destination stored in this setting.
The value in this setting will be used to populate the `destination location`
field on the return object when it is created.
A field may optionally send in its destination for custom solutions when submitting the . The setting will serve as a fallback value if the field does not provide a destination (which the reference solution does not)
See destinationLocation in the `CreateReturnOrder`
schema for more details
Values
Data Type | Values |
---|---|
STRING | Example Value:
|
Configuration example
1POST: {{fluentApiHost}}/graphql
2
3
4GraphQL Query:
5mutation CreateSetting {
6createSetting(input: {
7 name: "DEFAULT_RETURN_DESTINATION_LOCATION",
8 valueType: "STRING",
9 value: "LOC_SYD",
10 context: "RETAILER",
11 contextId:1}) {
12 id
13 name
14 }
15}
Update example
1POST {{fluentApiHost}}/graphql
2
3mutation updateSetting {
4 updateSetting(input: {
5 id: 5001464,
6 name: "DEFAULT_RETURN_DESTINATION_LOCATION",
7 valueType: "STRING",
8 value:"LOC_MELB",
9 context: "RETAILER",
10 contextId: 1}) {
11 id
12 name
13 }
14}
15