Changed on:
24 Oct 2023
Setting Area | UI component, Workflow, Orders |
---|---|
Supported context levels: | GLOBAL RETAILER |
This setting is used to describe the Payment Methods (including Card Types) used by the Account
Data Type | Values |
---|---|
JSON | Default Values:
Example Values:
|
1POST {{fluentApiHost}}/graphql
2
3
4// GLOBAL Level
5mutation {
6createSetting(input:
7{
8name: "PAYMENT.METHOD",
9lobValue: [{name:"CREDITCARD"},{name:"PAYPAL"}],
10context: "GLOBAL",
11contextId: 0,
12valueType: "JSON"
13}){
14id
15}}
16
17
18//Retailer Level
19mutation {
20createSetting(input:
21{
22name: "PAYMENT.METHOD",
23lobValue: [{name:"CREDITCARD"},{name:"PAYPAL"}],
24context: "RETAILER",
25contextId: 123,
26valueType: "JSON"
27}){
28id
29}}
30
31
32
Language: graphqlschema
1POST {{fluentApiHost}}/graphql
2
3// Global level
4mutation updateSetting {
5 updateSetting(input: {
6 name: "PAYMENT.METHOD",
7 valueType: "JSON",
8 lobValue:[{name:"CREDITCARD"},{name:"PAYPAL"},{name:"GIFTCARD"}],
9 context: "GLOBAL",
10 id: 5001464,
11 contextId: 0}) {
12 id
13 name
14 }
15}
16
17
18//Retailer Level
19mutation updateSetting {
20 updateSetting(input: {
21 name: "PAYMENT.METHOD",
22 valueType: "JSON",
23 lobValue:[{name:"CREDITCARD"},{name:"PAYPAL"},{name:"GIFTCARD"}],
24 context: "RETAILER",
25 id: 5001464,
26 contextId: 123}) {
27 id
28 name
29 }
30}
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.