Fluent Commerce Logo
Docs
Sign In

MAJOR_ADDRESS_CHANGE_FIELDS

Setting

Changed on:

15 Jan 2024

Setting AreaWorkflow, 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 TypeValues
JSON

sample values:

`[`

`    {`

`        "name": "postcode"`

`    }`

`]`

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}

Language: graphqlschema

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

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