PACKING_SLIP_PROPS
Setting
Changed on:
15 Aug 2023
Setting Area | Orders |
---|---|
Supported context levels: | RETAILER |
Overview
This setting captures the retailer's information used to create packing slips.
Values
Data Type | Values |
---|---|
JSON |
|
Configuration example
1POST: {{fluentApiHost}}/graphql
2
3// create a postman environment variable:
4// Variable: json_value
5// initial val + current value:
6{
7 "returnInfo": " FREE SHIPPING OVER $100",
8 "contactEmail": "email@fluentcommerce.com",
9 "contactPhone": "+1234567890",
10 "contactWebsite": "www.fluentcommerce.com/packing_slip_props"
11}
12
13
14GraphQL variables:
15{
16 "retailerId": {{retailer_id}},
17 "lobValue" : {{json_value}}
18}
19
20
21GraphQL Query:
22mutation CreateSetting($retailerId:Int! , $lobValue:Json) {
23createSetting(input: {
24 name: "PACKING_SLIP_PROPS",
25 valueType: "JSON",
26 lobValue:$lobValue ,
27 context: "RETAILER",
28 contextId:$retailerId}) {
29 id
30 name
31 }
32}
Language: json
Update example
1POST: {{fluentApiHost}}/graphql
2
3// create a postman environment variable:
4// Variable: json_value
5// initial val + current value:
6{
7 "returnInfo": " FREE SHIPPING OVER $100",
8 "contactEmail": "email@fluentcommerce.com",
9 "contactPhone": "+1234567890",
10 "contactWebsite": "www.fluentcommerce.com/packing_slip_props"
11}
12
13
14GraphQL variables:
15{
16 "retailerId": {{retailer_id}},
17 "lobValue" : {{json_value}}
18}
19
20
21mutation updateSetting($retailerId:Int! , $lobValue:Json) {
22updateSetting(input: {
23 id: 5001471,
24 name: "PACKING_SLIP_PROPS",
25 valueType: "JSON",
26 lobValue: $lobValue,
27 context: "RETAILER",
28 contextId: $retailerId}) {
29 id
30 name
31 }
32}
33
34
Language: json