Fluent Commerce Logo
Docs
Sign In

fc.graphql.order.create.event

Setting

Changed on:

15 July 2024

Overview

This setting is a feature toggle that enables Order creation across multiple Retailers with a single integration user. It allows the creation of Orders independent of the primary Retailer of the user and specifically enables the sending of the corresponding

`CREATE`
event.

Setting AreaOrders
Supported context levels:ACCOUNT

Overview

This setting is a feature toggle that enables Order creation across multiple Retailers with a single integration user. It allows the creation of Orders independent of the primary Retailer of the user and specifically enables the sending of the corresponding

`CREATE`
event.

Package

Values

Data TypeValues
STRING

Default Value(s):

  • `normal`

Possible Values:

  • `normal`
  • `disable-cross-retailer`

Detailed technical description

To ensure full backward compatibility, this setting toggles between the following:

  • Normal behavior:
    Orders could be created independent of the primary Retailer of the user creating the Order. This is valid under the following conditions:
    • The
      `fc.graphql.order.create.event`
      setting is created with the
      `normal`
      value set
    • The
      `fc.graphql.order.create.event`
      setting is created with any invalid value
    • The
      `fc.graphql.order.create.event`
      setting is not created
  • And previous functionality:
    Orders could only be created for the user's primary Retailer. This is valid under the following conditions:
    • The
      `fc.graphql.order.create.event`
      setting is created with the
      `disable-cross-retailer`
      value set

Configuration example

1POST {{fluentApiHost}}/graphql
2
3mutation CreateSetting {
4   createSetting(input: {
5		name: "fc.graphql.order.create.event", 
6		valueType: "STRING", 
7		value: "disable-cross-retailer", 
8		context: "ACCOUNT", 
9		contextId: 0
10   }) {
11    id
12    name
13  }
14}

Language: json

Update example

1POST {{fluentApiHost}}/graphql
2
3mutation updateSetting {
4  updateSetting(input: {
5		id: 123,
6		name: "fc.graphql.order.create.event", 
7		valueType: "STRING", 
8		value:"normal", 
9		context: "ACCOUNT", 
10		contextId: 0
11  }) {
12    id
13    name
14  }
15}

Language: json

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