DEFAULT_TAX_TYPE
Changed on:
26 Apr 2024
Setting Area | UI component, Workflow, Orders |
---|---|
Supported context levels: | RETAILER |
Overview
This setting is used to store the default values of the tax details.
Packages
Values
Data Type | Values |
---|---|
JSON | Example: |
Detailed technical description
The first tries to take the tax type supplied in the ; 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 , Appeasements, and 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}
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