1"use strict";(self.webpackChunkmonei_docs=self.webpackChunkmonei_docs||[]).push([["23675"],{1806(e,t,a){a.r(t),a.d(t,{metadata:()=>n,default:()=>h,toc:()=>u,Badge:()=>p,Bullet:()=>c,assets:()=>o,frontMatter:()=>i,SpecifiedBy:()=>d,contentTitle:()=>s});var n=JSON.parse('{"id":"apis/graphql/operations/mutations/create-payment-rule","title":"createPaymentRule","description":"Creates a payment rule.","source":"@site/docs/apis/graphql/operations/mutations/create-payment-rule.mdx","sourceDirName":"apis/graphql/operations/mutations","slug":"/apis/graphql/operations/mutations/create-payment-rule","permalink":"/apis/graphql/operations/mutations/create-payment-rule","draft":false,"unlisted":false,"tags":[],"version":"current","lastUpdatedAt":1790004115000,"frontMatter":{"id":"create-payment-rule","title":"createPaymentRule","explorer_query":"mutation CreatePaymentRule($input: CreatePaymentRuleInput!) { createPaymentRule(input: $input) { id accountId name priority enabled conditions action createdAt } }","explorer_operation_name":"CreatePaymentRule"},"sidebar":"graphql","previous":{"title":"createPayPalLink","permalink":"/apis/graphql/operations/mutations/create-pay-pal-link"},"next":{"title":"createPayment","permalink":"/apis/graphql/operations/mutations/create-payment"}}'),r=a(91987),l=a(39844);let i={id:"create-payment-rule",title:"createPaymentRule",explorer_query:"mutation CreatePaymentRule($input: CreatePaymentRuleInput!) { createPaymentRule(input: $input) { id accountId name priority enabled conditions action createdAt } }",explorer_operation_name:"CreatePaymentRule"},s,o={},c=()=>(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("span",{style:{fontWeight:"normal",fontSize:".5em",color:"var(--ifm-color-secondary-darkest)"},children:"\xa0\u25CF\xa0"})}),d=e=>(0,r.jsxs)(r.Fragment,{children:["Specification",(0,r.jsx)("a",{className:"link",style:{fontSize:"1.5em",paddingLeft:"4px"},target:"_blank",href:e.url,title:"Specified by "+e.url,children:"\u2398"})]}),p=e=>(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("span",{className:e.class,children:e.text})}),u=[{value:"Arguments",id:"arguments",level:3},{value:'<code>createPaymentRule.<b>input</b></code><Bullet></Bullet><code><b>CreatePaymentRuleInput!</b></code> <Badge class="badge badge--secondary badge--non_null"></Badge> <Badge class="badge badge--secondary "></Badge>',id:"input",level:4},{value:"Type",id:"type",level:3},{value:'<code><b>PaymentRule</b></code> <Badge class="badge badge--secondary "></Badge>',id:"paymentrule-",level:4}];function m(e){let t={a:"a",code:"code",h3:"h3",h4:"h4",p:"p",pre:"pre",...(0,l.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.p,{children:"Creates a payment rule."}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-graphql",children:"createPaymentRule(\n input: CreatePaymentRuleInput!\n): PaymentRule!\n"})}),"\n",(0,r.jsx)(t.h3,{id:"arguments",children:"Arguments"}),"\n",(0,r.jsxs)(t.h4,{id:"input",children:[(0,r.jsx)(t.a,{href:"#input",children:(0,r.jsxs)("code",{style:{fontWeight:"normal"},children:["createPaymentRule.",(0,r.jsx)("b",{children:"input"})]})}),(0,r.jsx)(c,{}),(0,r.jsx)(t.a,{href:"/apis/graphql/types/inputs/create-payment-rule-input",children:(0,r.jsx)("code",{style:{fontWeight:"normal"},children:(0,r.jsx)("b",{children:"CreatePaymentRuleInput!"})})})," ",(0,r.jsx)(p,{class:"badge badge--secondary badge--non_null",text:"non-null"})," ",(0,r.jsx)(p,{class:"badge badge--secondary ",text:"input"})]}),"\n",(0,r.jsx)(t.h3,{id:"type",children:"Type"}),"\n",(0,r.jsxs)(t.h4,{id:"paymentrule-",children:[(0,r.jsx)(t.a,{href:"/apis/graphql/types/objects/payment-rule",children:(0,r.jsx)("code",{style:{fontWeight:"normal"},children:(0,r.jsx)("b",{children:"PaymentRule"})})})," ",(0,r.jsx)(p,{class:"badge badge--secondary ",text:"object"})]}),"\n",(0,r.jsxs)(t.p,{children:["Merchant-defined rule evaluated per transaction. When ",(0,r.jsx)(t.code,{children:"conditions"})," match, ",(0,r.jsx)(t.code,{children:"action"})," is applied (e.g. route the transaction to a provider, hide a payment method at checkout, or decline)."]})]})}function h(e={}){let{wrapper:t}={...(0,l.R)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(m,{...e})}):m(e)}},39844(e,t,a){a.d(t,{R:()=>i,x:()=>s});var n=a(71763);let r={},l=n.createContext(r);function i(e){let t=n.useContext(l);return n.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function s(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:i(e.components),n.createElement(l.Provider,{value:t},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.