Fluent Commerce Logo
Docs
Sign In

DEFAULT_TAX_TYPE

Setting

Changed on:

26 Apr 2024

Overview

This setting is used to store the default values of the tax details.  

Setting AreaUI component, Workflow, Orders
Supported context levels:RETAILER

Overview

This setting is used to store the default values of the tax details.  

Packages

Values

Data TypeValues
JSON

Example:

`{`

   "country": "AUS",
   "group": "STANDARD",
   "tariff": "GST"
}

Detailed technical description

The rule first tries to take the tax type supplied in the event; if not found, it takes the tax details from the default values stored in this setting. The setting holds the country, group, and tariff values. It is used in Orchestrated returns, Appeasements, and order revisions functionality.

Configuration example

1POST: {{fluentApiHost}}/graphql
2
3// create a postman environment variable:
4// Variable: DEFAULT_TAX_TYPE
5// initial val + current value: 
6{
7    "country": "AUS",
8    "group": "STANDARD",
9    "tariff": "GST"
10}
11
12
13GraphQL variables:
14{
15	"retailerId": {{retailer_id}},
16    "lobValue" : {{DEFAULT_TAX_TYPE}}
17}
18
19
20GraphQL Query:
21mutation CreateSetting($retailerId:Int! , $lobValue:Json)  {
22createSetting(input: {
23		name: "DEFAULT_TAX_TYPE", 
24		valueType: "JSON", 
25		lobValue:$lobValue , 
26		context: "RETAILER", 
27		contextId:$retailerId}) {
28    id
29    name
30  }
31}

Language: json

Update example

1POST: {{fluentApiHost}}/graphql
2
3// create a postman environment variable:
4// Variable: DEFAULT_TAX_TYPE
5// initial val + current value: 
6{
7    "country": "AUS",
8    "group": "STANDARD",
9    "tariff": "GST"
10}
11
12
13GraphQL variables:
14{
15	"retailerId": {{retailer_id}},
16    "lobValue" : {{DEFAULT_TAX_TYPE}}
17}
18
19
20mutation updateSetting($retailerId:Int! , $lobValue:Json) {
21updateSetting(input: {
22        id: 5001471,
23		name: "DEFAULT_TAX_TYPE", 
24		valueType: "JSON", 
25        lobValue: $lobValue,
26		context: "RETAILER", 
27		contextId: $retailerId}) {
28    id
29    name
30  }
31}
32
33

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