1"use strict";(self.webpackChunkmonei_docs=self.webpackChunkmonei_docs||[]).push([["20500"],{52959(e,n,t){t.r(n),t.d(n,{metadata:()=>a,default:()=>h,toc:()=>m,Badge:()=>p,Bullet:()=>d,assets:()=>i,frontMatter:()=>s,SpecifiedBy:()=>o,contentTitle:()=>l});var a=JSON.parse('{"id":"apis/graphql/operations/mutations/cancel-payment","title":"cancelPayment","description":"Cancels a payment. PENDING payments and Bizum payments are canceled directly; other methods are voided through the processor. Already-captured payments cannot be canceled (use refundPayment).","source":"@site/docs/apis/graphql/operations/mutations/cancel-payment.mdx","sourceDirName":"apis/graphql/operations/mutations","slug":"/apis/graphql/operations/mutations/cancel-payment","permalink":"/apis/graphql/operations/mutations/cancel-payment","draft":false,"unlisted":false,"tags":[],"version":"current","lastUpdatedAt":1790004115000,"frontMatter":{"id":"cancel-payment","title":"cancelPayment","explorer_query":"mutation CancelPayment($input: CancelPaymentInput!) { cancelPayment(input: $input) { id amount amountEUR currency orderId storeId pointOfSaleId description } }","explorer_operation_name":"CancelPayment"},"sidebar":"graphql","previous":{"title":"addWhitelistItem","permalink":"/apis/graphql/operations/mutations/add-whitelist-item"},"next":{"title":"cancelSubscription","permalink":"/apis/graphql/operations/mutations/cancel-subscription"}}'),r=t(91987),c=t(39844);let s={id:"cancel-payment",title:"cancelPayment",explorer_query:"mutation CancelPayment($input: CancelPaymentInput!) { cancelPayment(input: $input) { id amount amountEUR currency orderId storeId pointOfSaleId description } }",explorer_operation_name:"CancelPayment"},l,i={},d=()=>(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"})}),o=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})}),m=[{value:"Arguments",id:"arguments",level:3},{value:'<code>cancelPayment.<b>input</b></code><Bullet></Bullet><code><b>CancelPaymentInput!</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>Payment</b></code> <Badge class="badge badge--secondary "></Badge>',id:"payment-",level:4}];function u(e){let n={a:"a",code:"code",h3:"h3",h4:"h4",p:"p",pre:"pre",...(0,c.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(n.p,{children:["Cancels a payment. ",(0,r.jsx)(n.code,{children:"PENDING"})," payments and Bizum payments are canceled directly; other methods are voided through the processor. Already-captured payments cannot be canceled (use ",(0,r.jsx)(n.code,{children:"refundPayment"}),")."]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-graphql",children:"cancelPayment(\n input: CancelPaymentInput!\n): Payment\n"})}),"\n",(0,r.jsx)(n.h3,{id:"arguments",children:"Arguments"}),"\n",(0,r.jsxs)(n.h4,{id:"input",children:[(0,r.jsx)(n.a,{href:"#input",children:(0,r.jsxs)("code",{style:{fontWeight:"normal"},children:["cancelPayment.",(0,r.jsx)("b",{children:"input"})]})}),(0,r.jsx)(d,{}),(0,r.jsx)(n.a,{href:"/apis/graphql/types/inputs/cancel-payment-input",children:(0,r.jsx)("code",{style:{fontWeight:"normal"},children:(0,r.jsx)("b",{children:"CancelPaymentInput!"})})})," ",(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)(n.h3,{id:"type",children:"Type"}),"\n",(0,r.jsxs)(n.h4,{id:"payment-",children:[(0,r.jsx)(n.a,{href:"/apis/graphql/types/objects/payment",children:(0,r.jsx)("code",{style:{fontWeight:"normal"},children:(0,r.jsx)("b",{children:"Payment"})})})," ",(0,r.jsx)(p,{class:"badge badge--secondary ",text:"object"})]}),"\n",(0,r.jsx)(n.p,{children:"Payment returned from create/refund/capture/cancel and the send-link/receipt mutations."})]})}function h(e={}){let{wrapper:n}={...(0,c.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(u,{...e})}):u(e)}},39844(e,n,t){t.d(n,{R:()=>s,x:()=>l});var a=t(71763);let r={},c=a.createContext(r);function s(e){let n=a.useContext(c);return a.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:s(e.components),a.createElement(c.Provider,{value:n},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.