MAJOR_ADDRESS_CHANGE_FIELDS
Changed on:
15 Jan 2024
| Setting Area | Workflow, Orders | 
|---|---|
| Supported context levels: | RETAILER | 
Overview
Enables the change delivery address feature. Users can configure major field changes such as cancellation of a fulfilment. Once delivery address change request is received by user action based event in Order workflow we evaluate whether it is a significant Address change.
This is decided based on `MAJOR_ADDRESS_CHANGE_FIELDS` setting. In case of a minor change, the Order delivery address is updated in order and fulfillments. For significant address change, the existing fulfilment is cancelled and re-run the create fulfilment logic with the new delivery address. 
Ensure that `ChangeOrderDeliveryAddress` and the `EvaluateFulfilmentsForAddressChange` rules have been added to the Order workflow.
Values
| Data Type | Values | 
|---|---|
| JSON | sample values: 
 
 
 
 
 | 
Configuration example
1POST: {{fluentApiHost}}/graphql
2
3
4GraphQL Query:
5mutation CreateSetting {
6createSetting(input: {
7		name: "MAJOR_ADDRESS_CHANGE_FIELDS", 
8		valueType: "JSON", 
9		value: [{name:"Postcode"},{name:"State"}], 
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: "MAJOR_ADDRESS_CHANGE_FIELDS", 
7		valueType: "JSON", 
8		value: [{name:"Postcode"},{name:"State"}], 
9		context: "RETAILER", 
10		contextId: 1}) {
11    id
12    name
13  }
14}
15