The redirect url to redirect the customer to after the payment method was created. This is only required, when you create a payment method with your own flow, independent from provided Hosted-Checkout, Hosted-Customerfront or Fynn.JS. Otherwise this has no effect.
Beispiel:
"https://example.com/checkout/confirm"
Antwort
PaymentMethod resource created
The result of creating a payment method. Contains the status, any required actions, and the created payment method.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Fynn Docs","colors":{"primary":"#000","light":"#fff","dark":"#000"},"logo":{"light":"https://mintcdn.com/fynnsubscriptionbilling/kPbBeWVEZfmEic9q/logo/logo-dark.svg?fit=max\u0026auto=format\u0026n=kPbBeWVEZfmEic9q\u0026q=85\u0026s=83e4b30a53d77c3809e0f22afa29335d","dark":"https://mintcdn.com/fynnsubscriptionbilling/kPbBeWVEZfmEic9q/logo/dark.svg?fit=max\u0026auto=format\u0026n=kPbBeWVEZfmEic9q\u0026q=85\u0026s=5798319f6c8632d79fe789f72eaa94e2"},"favicon":"https://mintcdn.com/fynnsubscriptionbilling/zDQkHT5wBBQ3jA-O/favicon.svg?fit=max\u0026auto=format\u0026n=zDQkHT5wBBQ3jA-O\u0026q=85\u0026s=410ff1f698a399faed9fbb877457bb43","api":{"openapi":["assets/openapi.json","assets/openapi-v2-plans.json","assets/openapi-v2-offers.json","assets/openapi-v2-commission.json","assets/openapi-v2-payment-plans.json","assets/openapi-v2-finance.json"],"playground":{"display":"interactive"},"examples":{"languages":["curl","python","javascript","php"]}},"navbar":{"links":[{"href":"https://cal.com/team/fynn/fynn-documentation","label":"Termin buchen"},{"href":"mailto:hi@fynn.eu","label":"Support"}],"primary":{"type":"button","label":"App Login","href":"https://app.fynn.eu"}},"footer":{"socials":{"x":"https://twitter.com/wearefynn","github":"https://github.com/fynn-digital","linkedin":"https://www.linkedin.com/company/wearefynn"}},"integrations":{"gtm":{"tagId":"GTM-NKGQ4TQ9"}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":true},"navigation":{"languages":[{"language":"de","default":true,"href":"introduction"},{"language":"en","href":"en/introduction"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"fynnsubscriptionbilling","hasAudioNarration":false,"actualSubdomain":"fynnsubscriptionbilling","customDomains":["docs.fynn.eu"],"gitSource":{"type":"gitlab","owner":"fynn/core","repo":"core-api23","deployBranch":"main","contentDirectory":"public-docs","isPrivate":true,"projectId":396,"hostUrl":"https://git.netzfabrik.com","mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae39f66b1c2f4cb3302b8e4","collectionId":"9c0a84cf-d896-49ea-b27f-eaa89233a30b","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae39f66b1c2f4cb3302b8e4"},"feedback":{"thumbs":true,"edits":true,"issues":true,"agentFeedback":true},"entitlements":{"REMOVE_BRANDING":{"status":"ENABLED"}},"buildId":"6ae39f66b1c2f4cb3302b8e4","clientVersion":"0.0.4074","searchFilterCounts":[{"language":"de","tag":"API Referenz","count":249},{"language":"de","tag":"Dokumentation","count":93},{"language":"de","tag":"API V2","count":71},{"language":"en","tag":"Documentation","count":59},{"language":"de","tag":"API","count":46},{"language":"de","tag":"Catalogue","count":42},{"language":"de","tag":"Angebote","count":36},{"language":"de","tag":"Subscription","count":30},{"language":"de","tag":"Customer","count":30},{"language":"de","tag":"Finanzberichte","count":29},{"language":"de","tag":"Payment","count":26},{"language":"default","tag":"API V2","count":18},{"language":"default","tag":"Dokumentation","count":15},{"language":"default","tag":"Pläne","count":15},{"language":"en","tag":"Integrations","count":15},{"language":"default","tag":"API","count":11},{"language":"default","tag":"API Referenz","count":10},{"language":"default","tag":"API documentation","count":10},{"language":"en","tag":"Products","count":9},{"language":"en","tag":"Settings","count":9},{"language":"en","tag":"Customers","count":7},{"language":"en","tag":"Subscriptions","count":7},{"language":"default","tag":"Guides","count":6},{"language":"default","tag":"Plan-Verwaltung","count":6},{"language":"en","tag":"Payment Providers","count":6},{"language":"default","tag":"Nutzungsbasierte Abrechnung","count":5},{"language":"en","tag":"Accounting","count":5},{"language":"en","tag":"Developers","count":5},{"language":"en","tag":"Invoices","count":5},{"language":"default","tag":"KI-Assistent","count":4}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":".update-container{display:flex}.update-container>div{position:unset!important}@media (min-width: 1024px){.update-container{flex-direction:column!important}}[data-component-part=\"update-label\"]{background:none}[data-component-part=\"update-tag\"]{-webkit-text-size-adjust:100%;tab-size:4;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-feature-settings:\"cv02\",\"cv03\",\"cv04\",\"cv11\";--scroll-mt: 9.5rem;--font-inter: '__Inter_86cd50', '__Inter_Fallback_86cd50';--font-jetbrains-mono: '__JetBrains_Mono_3c557b', '__JetBrains_Mono_Fallback_3c557b';--primary: 39 19 64;--primary-light: 255 255 255;--primary-dark: 0 0 0;--background-light: 255 255 255;--background-dark: 0 0 0;--gray-50: 244 243 244;--gray-100: 239 238 239;--gray-200: 223 223 224;--gray-300: 207 206 207;--gray-400: 159 159 160;--gray-500: 113 112 113;--gray-600: 81 80 81;--gray-700: 63 63 64;--gray-800: 38 37 39;--gray-900: 23 23 24;--gray-950: 11 10 12;font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";-webkit-font-smoothing:antialiased;--tw-prose-body: #374151;--tw-prose-headings: #111827;--tw-prose-lead: #4b5563;--tw-prose-links: #111827;--tw-prose-bold: #111827;--tw-prose-counters: #6b7280;--tw-prose-bullets: #d1d5db;--tw-prose-hr: #e5e7eb;--tw-prose-quotes: #111827;--tw-prose-quote-borders: #e5e7eb;--tw-prose-captions: #6b7280;--tw-prose-kbd: #111827;--tw-prose-kbd-shadows: 17 24 39;--tw-prose-code: #111827;--tw-prose-pre-code: #e5e7eb;--tw-prose-pre-bg: #1f2937;--tw-prose-th-borders: #d1d5db;--tw-prose-td-borders: #e5e7eb;--tw-prose-invert-body: #d1d5db;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #9ca3af;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #9ca3af;--tw-prose-invert-bullets: #4b5563;--tw-prose-invert-hr: #374151;--tw-prose-invert-quotes: #f3f4f6;--tw-prose-invert-quote-borders: #374151;--tw-prose-invert-captions: #9ca3af;--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: 255 255 255;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #d1d5db;--tw-prose-invert-pre-bg: rgba(0,0,0,.5);--tw-prose-invert-th-borders: #4b5563;--tw-prose-invert-td-borders: #374151;-webkit-user-modify:read-only;box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--gray-200));--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgba(59,130,246,.5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: ;display:flex;flex-grow:0;cursor:pointer;align-items:center;justify-content:center;border-radius:var(--rounded-lg,.5rem);background-color:rgb(var(--primary)/.1);padding-left:.5rem;padding-right:.5rem;padding-top:.25rem;padding-bottom:.25rem;font-size:.875rem;line-height:1.25rem;font-weight:500;--tw-text-opacity: 1;color:rgb(var(--primary)/var(--tw-text-opacity))}"}],"page":{"pagePath":"api-reference/paymentmethod/create-payment-method","slug":"/api-reference/paymentmethod/create-payment-method","pageMetadata":{"openapi":"post /payment-methods","title":"Create payment method","description":"Create a customer's payment method\n\n\u003csup>Required permissions: `payment-method:add`\u003c/sup>","href":"/api-reference/paymentmethod/create-payment-method"},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Create a customer’s payment method\"\n }), \"\\n\", _jsxs(\"sup\", {\n children: [\"Required permissions: \", _jsx(_components.code, {\n children: \"payment-method:add\"\n })]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"openapi":"post /payment-methods","title":"Create payment method","description":"Create a customer's payment method\n\n\u003csup>Required permissions: `payment-method:add`\u003c/sup>","href":"/api-reference/paymentmethod/create-payment-method"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/fynnsubscriptionbilling/086131e1768d5953/changelog-sidebar.js"],"openApiReferenceData":{"operation":{"operationId":"createPaymentMethod","tags":["PaymentMethod"],"responses":{"201":"c207218f-b872-4013-86fb-2ac933c8317a","400":"a613b1c9-179f-4e74-b3f0-3706104c705a","422":"c15cbb67-ed22-4f7c-ae91-43ed59abf0af"},"summary":"Create payment method","description":"Create a customer's payment method\n\n\u003csup>Required permissions: `payment-method:add`\u003c/sup>","parameters":[],"requestBody":"daee0293-2b89-49a9-8e72-8b529a333c70","deprecated":false,"security":["2ae994bc-e306-4563-bcb0-c1954cc14f62"],"x-codeSamples":[{"lang":"bash","label":"Create stripe setup intent","source":"curl -X POST \\\n /payment-methods \\\n --header \"Content-Type: application/json\" \\\n --header \"Authorization: Bearer \u003ctoken>\" \\\n --data '{\n \"summary\": \"Create stripe setup intent\",\n \"description\": \"The stripe setup intent clientSecret is required to add a stripe credit card payment method. The clientSecret is required to collect credit card data with stripe.js elements.\",\n \"value\": {\n \"gateway\": \"stripe\",\n \"type\": \"card\",\n \"customerId\": \"ad8f7a8d-8f7a-8d8f-7a8d8f7a8d8f\",\n \"isDefault\": true,\n \"futureUsageAllowed\": true,\n \"stripe\": {\n \"paymentMethodId\": null,\n \"customerId\": null\n }\n }\n}'\n"},{"lang":"bash","label":"Add stripe credit card","source":"curl -X POST \\\n /payment-methods \\\n --header \"Content-Type: application/json\" \\\n --header \"Authorization: Bearer \u003ctoken>\" \\\n --data '{\n \"summary\": \"Add stripe credit card\",\n \"description\": \"The stripe credit card needs to be created on the client side with stripe.js. To obtain the required clientSecret, see \\\"Create stripe setup intent token\\\".\",\n \"value\": {\n \"gateway\": \"stripe\",\n \"type\": \"card\",\n \"customerId\": \"ad8f7a8d-8f7a-8d8f-7a8d8f7a8d8f\",\n \"isDefault\": true,\n \"futureUsageAllowed\": true,\n \"stripe\": {\n \"paymentMethodId\": \"pm_1J4X2n2eZvKYlo2C2Q2Q2Q2Q2\",\n \"customerId\": \"cus_J4X2n2eZvKYlo2C2Q2Q2Q2Q2\"\n }\n }\n}'\n"},{"lang":"bash","label":"Add PayPal","source":"curl -X POST \\\n /payment-methods \\\n --header \"Content-Type: application/json\" \\\n --header \"Authorization: Bearer \u003ctoken>\" \\\n --data '{\n \"summary\": \"Add PayPal\",\n \"description\": \"When adding a paypal payment method, the customer will be redirected to paypal to login and confirm the billing agreement. After that, the customer will be redirected back to the successUrl.\",\n \"value\": {\n \"gateway\": \"paypal\",\n \"type\": \"paypal\",\n \"customerId\": \"ad8f7a8d-8f7a-8d8f-7a8d8f7a8d8f\",\n \"isDefault\": true,\n \"futureUsageAllowed\": true\n }\n}'\n"},{"lang":"bash","label":"Add new GoCardless sepa mandate","source":"curl -X POST \\\n /payment-methods \\\n --header \"Content-Type: application/json\" \\\n --header \"Authorization: Bearer \u003ctoken>\" \\\n --data '{\n \"summary\": \"Add new GoCardless sepa mandate\",\n \"description\": \"When adding a gocardless payment method, the customer will be redirected to gocardless to login and create a sepa debit mandate. After that, the customer will be redirected back to the successUrl.\",\n \"value\": {\n \"gateway\": \"go_cardless\",\n \"type\": \"sepa_debit\",\n \"customerId\": \"ad8f7a8d-8f7a-8d8f-7a8d8f7a8d8f\",\n \"isDefault\": true,\n \"futureUsageAllowed\": true\n }\n}'\n"},{"lang":"bash","label":"Add existing GoCardless sepa mandate","source":"curl -X POST \\\n /payment-methods \\\n --header \"Content-Type: application/json\" \\\n --header \"Authorization: Bearer \u003ctoken>\" \\\n --data '{\n \"summary\": \"Add existing GoCardless sepa mandate\",\n \"description\": \"To add an existing gocardless mandate (e.g. when you're migrating from another system), you need to provide the mandateId and customerId. No redirect will be performed.\",\n \"value\": {\n \"gateway\": \"go_cardless\",\n \"type\": \"sepa_debit\",\n \"customerId\": \"ad8f7a8d-8f7a-8d8f-7a8d8f7a8d8f\",\n \"isDefault\": true,\n \"futureUsageAllowed\": true,\n \"goCardless\": {\n \"mandateId\": \"MD0000\",\n \"customerId\": \"CU0000\"\n }\n }\n}'\n"},{"lang":"bash","label":"Add a fynn sepa mandate","source":"curl -X POST \\\n /payment-methods \\\n --header \"Content-Type: application/json\" \\\n --header \"Authorization: Bearer \u003ctoken>\" \\\n --data '{\n \"summary\": \"Add a fynn sepa mandate\",\n \"description\": \"The sepa mandate allows to perform sepa payments with the integrated sepa payment gateway. See \u003ca href=\\\"#tag\\/SepaXmlStatement\\/operation\\/generateSepaXmlFile\\\">Generate sepa xml file\u003c\\/a> for more information.\",\n \"value\": {\n \"gateway\": \"sepa_debit\",\n \"type\": \"sepa_debit\",\n \"customerId\": \"ad8f7a8d-8f7a-8d8f-7a8d8f7a8d8f\",\n \"isDefault\": true,\n \"futureUsageAllowed\": true,\n \"sepaMandate\": {\n \"iban\": \"DE89370400440532013000\",\n \"bic\": \"COBADEFFXXX\",\n \"accountHolder\": \"Max Mustermann\",\n \"signingDate\": \"2021-01-01\",\n \"type\": \"CORE\",\n \"sequence\": \"FRST\"\n }\n }\n}'\n"}],"method":"post","type":"path","servers":["987b4dcd-9d5f-4357-a99f-0dbd47556601","a53b6fbc-bcf4-4920-9f87-1223f86cceba"],"path":"/payment-methods","baseUrlOptions":["https://coreapi.io","https://preview.coreapi.io"],"title":"Create payment method","codeSamples":[{"label":"Create stripe setup intent","lang":"bash","source":"curl -X POST \\\n /payment-methods \\\n --header \"Content-Type: application/json\" \\\n --header \"Authorization: Bearer \u003ctoken>\" \\\n --data '{\n \"summary\": \"Create stripe setup intent\",\n \"description\": \"The stripe setup intent clientSecret is required to add a stripe credit card payment method. The clientSecret is required to collect credit card data with stripe.js elements.\",\n \"value\": {\n \"gateway\": \"stripe\",\n \"type\": \"card\",\n \"customerId\": \"ad8f7a8d-8f7a-8d8f-7a8d8f7a8d8f\",\n \"isDefault\": true,\n \"futureUsageAllowed\": true,\n \"stripe\": {\n \"paymentMethodId\": null,\n \"customerId\": null\n }\n }\n}'\n"},{"label":"Add stripe credit card","lang":"bash","source":"curl -X POST \\\n /payment-methods \\\n --header \"Content-Type: application/json\" \\\n --header \"Authorization: Bearer \u003ctoken>\" \\\n --data '{\n \"summary\": \"Add stripe credit card\",\n \"description\": \"The stripe credit card needs to be created on the client side with stripe.js. To obtain the required clientSecret, see \\\"Create stripe setup intent token\\\".\",\n \"value\": {\n \"gateway\": \"stripe\",\n \"type\": \"card\",\n \"customerId\": \"ad8f7a8d-8f7a-8d8f-7a8d8f7a8d8f\",\n \"isDefault\": true,\n \"futureUsageAllowed\": true,\n \"stripe\": {\n \"paymentMethodId\": \"pm_1J4X2n2eZvKYlo2C2Q2Q2Q2Q2\",\n \"customerId\": \"cus_J4X2n2eZvKYlo2C2Q2Q2Q2Q2\"\n }\n }\n}'\n"},{"label":"Add PayPal","lang":"bash","source":"curl -X POST \\\n /payment-methods \\\n --header \"Content-Type: application/json\" \\\n --header \"Authorization: Bearer \u003ctoken>\" \\\n --data '{\n \"summary\": \"Add PayPal\",\n \"description\": \"When adding a paypal payment method, the customer will be redirected to paypal to login and confirm the billing agreement. After that, the customer will be redirected back to the successUrl.\",\n \"value\": {\n \"gateway\": \"paypal\",\n \"type\": \"paypal\",\n \"customerId\": \"ad8f7a8d-8f7a-8d8f-7a8d8f7a8d8f\",\n \"isDefault\": true,\n \"futureUsageAllowed\": true\n }\n}'\n"},{"label":"Add new GoCardless sepa mandate","lang":"bash","source":"curl -X POST \\\n /payment-methods \\\n --header \"Content-Type: application/json\" \\\n --header \"Authorization: Bearer \u003ctoken>\" \\\n --data '{\n \"summary\": \"Add new GoCardless sepa mandate\",\n \"description\": \"When adding a gocardless payment method, the customer will be redirected to gocardless to login and create a sepa debit mandate. After that, the customer will be redirected back to the successUrl.\",\n \"value\": {\n \"gateway\": \"go_cardless\",\n \"type\": \"sepa_debit\",\n \"customerId\": \"ad8f7a8d-8f7a-8d8f-7a8d8f7a8d8f\",\n \"isDefault\": true,\n \"futureUsageAllowed\": true\n }\n}'\n"},{"label":"Add existing GoCardless sepa mandate","lang":"bash","source":"curl -X POST \\\n /payment-methods \\\n --header \"Content-Type: application/json\" \\\n --header \"Authorization: Bearer \u003ctoken>\" \\\n --data '{\n \"summary\": \"Add existing GoCardless sepa mandate\",\n \"description\": \"To add an existing gocardless mandate (e.g. when you're migrating from another system), you need to provide the mandateId and customerId. No redirect will be performed.\",\n \"value\": {\n \"gateway\": \"go_cardless\",\n \"type\": \"sepa_debit\",\n \"customerId\": \"ad8f7a8d-8f7a-8d8f-7a8d8f7a8d8f\",\n \"isDefault\": true,\n \"futureUsageAllowed\": true,\n \"goCardless\": {\n \"mandateId\": \"MD0000\",\n \"customerId\": \"CU0000\"\n }\n }\n}'\n"},{"label":"Add a fynn sepa mandate","lang":"bash","source":"curl -X POST \\\n /payment-methods \\\n --header \"Content-Type: application/json\" \\\n --header \"Authorization: Bearer \u003ctoken>\" \\\n --data '{\n \"summary\": \"Add a fynn sepa mandate\",\n \"description\": \"The sepa mandate allows to perform sepa payments with the integrated sepa payment gateway. See \u003ca href=\\\"#tag\\/SepaXmlStatement\\/operation\\/generateSepaXmlFile\\\">Generate sepa xml file\u003c\\/a> for more information.\",\n \"value\": {\n \"gateway\": \"sepa_debit\",\n \"type\": \"sepa_debit\",\n \"customerId\": \"ad8f7a8d-8f7a-8d8f-7a8d8f7a8d8f\",\n \"isDefault\": true,\n \"futureUsageAllowed\": true,\n \"sepaMandate\": {\n \"iban\": \"DE89370400440532013000\",\n \"bic\": \"COBADEFFXXX\",\n \"accountHolder\": \"Max Mustermann\",\n \"signingDate\": \"2021-01-01\",\n \"type\": \"CORE\",\n \"sequence\": \"FRST\"\n }\n }\n}'\n"}],"requestExampleLanguages":["bash","python","javascript","php"],"requiredOnlyExamples":false,"requestExampleType":"codeSamples","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"description":"The new PaymentMethod resource","content":{"application/json":{"schema":{"type":"object","description":"Request body for creating a new payment method for a customer.","deprecated":false,"properties":{"gateway":{"enum":["wallet","sepa_debit","stripe","fake_provider","paypal","bank_transfer","go_cardless","testing"],"description":"The payment gateway to use to process the given payment method type\n\nPossible values:\n * `paypal`: PayPal (supports \"paypal\")\n * `stripe`: Stripe (supports \"card\")\n * `testing`: Testing (supports all)\n * `go_cardless`: GoCardless (supports \"sepa_debit\")\n * `bank_transfer`: Bank Transfer (supports \"bank_transfer\")\n * `sepa_debit`: SEPA Credit and Debit with xml file (supports \"sepa_debit\")\n * `wallet`: Credit Balance from Wallet (supports \"wallet\")","example":"stripe","type":"string","isRequired":true,"uniqueKey":"gateway","typeLabel":"enum\u003cstring>"},"type":{"enum":["sepa_debit","card","paypal","bank_transfer","wallet","fake_provider"],"description":"The payment method type to use for this payment method\n\nPossible values:\n * `sepa_debit`: SEPA Debit\n * `card`: Credit Card\n * `paypal`: PayPal\n * `bank_transfer`: Bank Transfer\n * `wallet`: Wallet","example":"card","type":"string","isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"customerId":{"oneOf":[{"description":"The customer that owns this payment method. If not provided, the customer will be determined by the authenticated user.","example":"ad8f3b9e-1b1a-4b9a-9b9a-9b9a9b9a9b9a","type":"string","uniqueKey":"customerId.oneOf.0","typeLabel":"string"},{"description":"The customer that owns this payment method. If not provided, the customer will be determined by the authenticated user.","example":"ad8f3b9e-1b1a-4b9a-9b9a-9b9a9b9a9b9a","type":"null","uniqueKey":"customerId.oneOf.1","typeLabel":"null"}],"uniqueKey":"customerId","typeLabel":"string | null"},"isDefault":{"description":"Determines if this payment method should be used as default payment method for the customer","default":true,"example":true,"type":"boolean","uniqueKey":"isDefault","typeLabel":"boolean"},"futureUsageAllowed":{"description":"Determines if this payment method is allowed to be used for future payments. Otherwise the payment method is only available for this payment.","default":true,"example":true,"type":"boolean","uniqueKey":"futureUsageAllowed","typeLabel":"boolean"},"stripe":{"oneOf":[{"type":"object","description":"Required when gateway is \"stripe\". Holds all necessary data for the payment gateway to create the payment method.","properties":{"paymentMethodId":{"oneOf":[{"pattern":"^(.*(^(card|pm)_.*$).*)$","description":"The Stripe payment method id, which was collected by Fynn.JS or Stripe.JS\nIf `null` is provided, you get a `action_required` response, with the `{SETUP_INTENT_CLIENT_SECRET}` to perform the authorization in stripe.js, see \u003ca href=\"https://stripe.com/docs/js/setup_intents/confirm_card_setup\">Confirm card setup\u003c/a>.","example":"pm_1J5J2n2eZvKYlo2CJY2n2eZvKYlo2C","type":"string","uniqueKey":"stripe.oneOf.0.paymentMethodId.oneOf.0","typeLabel":"string"},{"pattern":"^(.*(^(card|pm)_.*$).*)$","description":"The Stripe payment method id, which was collected by Fynn.JS or Stripe.JS\nIf `null` is provided, you get a `action_required` response, with the `{SETUP_INTENT_CLIENT_SECRET}` to perform the authorization in stripe.js, see \u003ca href=\"https://stripe.com/docs/js/setup_intents/confirm_card_setup\">Confirm card setup\u003c/a>.","example":"pm_1J5J2n2eZvKYlo2CJY2n2eZvKYlo2C","type":"null","uniqueKey":"stripe.oneOf.0.paymentMethodId.oneOf.1","typeLabel":"null"}],"uniqueKey":"stripe.oneOf.0.paymentMethodId","typeLabel":"string | null"},"customerId":{"oneOf":[{"pattern":"^(cus_.*)$","description":"The Stripe customer id, which references the Stripe customer.\nIf none is provided, the stripe customer id will be used, which was created automatically by Fynn, during fetching the stripe setup intent secret.","example":"cus_J5J2n2eZvKYlo2CJY2n2eZvKYlo2C","type":"string","uniqueKey":"stripe.oneOf.0.customerId.oneOf.0","typeLabel":"string"},{"pattern":"^(cus_.*)$","description":"The Stripe customer id, which references the Stripe customer.\nIf none is provided, the stripe customer id will be used, which was created automatically by Fynn, during fetching the stripe setup intent secret.","example":"cus_J5J2n2eZvKYlo2CJY2n2eZvKYlo2C","type":"null","uniqueKey":"stripe.oneOf.0.customerId.oneOf.1","typeLabel":"null"}],"uniqueKey":"stripe.oneOf.0.customerId","typeLabel":"string | null"}},"uniqueKey":"stripe.oneOf.0","typeLabel":"object"},{"type":"null","description":"Required when gateway is \"stripe\". Holds all necessary data for the payment gateway to create the payment method.","uniqueKey":"stripe.oneOf.1","typeLabel":"null"}],"uniqueKey":"stripe","typeLabel":"object | null"},"sepaMandate":{"oneOf":[{"type":"object","description":"Required when gateway is \"sepa_debit\". Holds all necessary data for the payment gateway to create the payment method.","required":["iban","bic","accountHolder"],"properties":{"iban":{"oneOf":[{"description":"The customer's IBAN","externalDocs":{"url":"https://schema.org/identifier"},"example":"DE89370400440532013000","type":"string","isRequired":true,"uniqueKey":"sepaMandate.oneOf.0.iban.oneOf.0","typeLabel":"string"},{"description":"The customer's IBAN","externalDocs":{"url":"https://schema.org/identifier"},"example":"DE89370400440532013000","type":"null","isRequired":true,"uniqueKey":"sepaMandate.oneOf.0.iban.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"sepaMandate.oneOf.0.iban","typeLabel":"string | null"},"bic":{"oneOf":[{"description":"The customer's BIC","externalDocs":{"url":"https://schema.org/identifier"},"example":"COBADEFFXXX","type":"string","isRequired":true,"uniqueKey":"sepaMandate.oneOf.0.bic.oneOf.0","typeLabel":"string"},{"description":"The customer's BIC","externalDocs":{"url":"https://schema.org/identifier"},"example":"COBADEFFXXX","type":"null","isRequired":true,"uniqueKey":"sepaMandate.oneOf.0.bic.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"sepaMandate.oneOf.0.bic","typeLabel":"string | null"},"accountHolder":{"oneOf":[{"description":"The bank account holder's name","example":"Max Mustermann","type":"string","isRequired":true,"uniqueKey":"sepaMandate.oneOf.0.accountHolder.oneOf.0","typeLabel":"string"},{"description":"The bank account holder's name","example":"Max Mustermann","type":"null","isRequired":true,"uniqueKey":"sepaMandate.oneOf.0.accountHolder.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"sepaMandate.oneOf.0.accountHolder","typeLabel":"string | null"},"mandateReference":{"oneOf":[{"maxLength":35,"description":"The mandate reference will be generated automatically, if none is provided. You can set it when migrating from another payment provider.","example":"MNDT-123456789","type":"string","uniqueKey":"sepaMandate.oneOf.0.mandateReference.oneOf.0","typeLabel":"string"},{"maxLength":35,"description":"The mandate reference will be generated automatically, if none is provided. You can set it when migrating from another payment provider.","example":"MNDT-123456789","type":"null","uniqueKey":"sepaMandate.oneOf.0.mandateReference.oneOf.1","typeLabel":"null"}],"uniqueKey":"sepaMandate.oneOf.0.mandateReference","typeLabel":"string | null"},"signingDate":{"oneOf":[{"description":"The SEPA mandate signing date. If none is provided, the current date will be used.","externalDocs":{"url":"https://schema.org/Date"},"default":"today","example":"2021-01-01","type":"string","uniqueKey":"sepaMandate.oneOf.0.signingDate.oneOf.0","typeLabel":"string"},{"description":"The SEPA mandate signing date. If none is provided, the current date will be used.","externalDocs":{"url":"https://schema.org/Date"},"default":"today","example":"2021-01-01","type":"null","uniqueKey":"sepaMandate.oneOf.0.signingDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"sepaMandate.oneOf.0.signingDate","typeLabel":"string | null"},"type":{"enum":["CORE","B2B","COR1"],"description":"The SEPA mandate type. If none is provided, the default type \"CORE\" will be used.\n\nPossible values:\n * `CORE`: The core scheme is used for payments between consumers and companies\n * `B2B`: The B2B scheme is used for payments between companies. No refund is possible\n * `COR1`: The COR1 scheme is used for payments between consumers and companies. The payment is processed faster than with the core scheme","default":"CORE","example":"CORE","type":"string","uniqueKey":"sepaMandate.oneOf.0.type","typeLabel":"enum\u003cstring>"},"sequence":{"enum":["FRST","RCUR","FNAL","OOFF"],"description":"The SEPA mandate sequence. If none is provided, the default sequence \"FRST\" will be used.\n\nPossible values:\n * `FRST`: The sepa mandate is used for the first time for a recurring payment\n * `RCUR`: The sepa mandate was already used the first time and is now used for recurring payments\n * `FNAL`: The sepa mandate is used for the last time for a recurring payment\n * `OOFF`: The sepa mandate is only allowed to be used for one payment","default":"FRST","example":"FRST","type":"string","uniqueKey":"sepaMandate.oneOf.0.sequence","typeLabel":"enum\u003cstring>"}},"uniqueKey":"sepaMandate.oneOf.0","typeLabel":"object"},{"type":"null","description":"Required when gateway is \"sepa_debit\". Holds all necessary data for the payment gateway to create the payment method.","uniqueKey":"sepaMandate.oneOf.1","typeLabel":"null"}],"uniqueKey":"sepaMandate","typeLabel":"object | null"},"goCardless":{"oneOf":[{"type":"object","description":"Optional for gateway \"go_cardless\". It is only required when you want to migrate, or assign an existing GoCardless customer or mandate to fynn.","properties":{"customerId":{"oneOf":[{"pattern":"^(CU.*)$","description":"The GoCardless customer id, which references the GoCardless customer. If none is provided, the GoCardless mandate flow will be started.","example":"CU123456789","type":"string","uniqueKey":"goCardless.oneOf.0.customerId.oneOf.0","typeLabel":"string"},{"pattern":"^(CU.*)$","description":"The GoCardless customer id, which references the GoCardless customer. If none is provided, the GoCardless mandate flow will be started.","example":"CU123456789","type":"null","uniqueKey":"goCardless.oneOf.0.customerId.oneOf.1","typeLabel":"null"}],"uniqueKey":"goCardless.oneOf.0.customerId","typeLabel":"string | null"},"mandateId":{"oneOf":[{"pattern":"^(MD.*)$","description":"The GoCardless mandate id, which references the GoCardless mandate. If none is provided, the GoCardless mandate flow will be started.","example":"MD123456789","type":"string","uniqueKey":"goCardless.oneOf.0.mandateId.oneOf.0","typeLabel":"string"},{"pattern":"^(MD.*)$","description":"The GoCardless mandate id, which references the GoCardless mandate. If none is provided, the GoCardless mandate flow will be started.","example":"MD123456789","type":"null","uniqueKey":"goCardless.oneOf.0.mandateId.oneOf.1","typeLabel":"null"}],"uniqueKey":"goCardless.oneOf.0.mandateId","typeLabel":"string | null"}},"uniqueKey":"goCardless.oneOf.0","typeLabel":"object"},{"type":"null","description":"Optional for gateway \"go_cardless\". It is only required when you want to migrate, or assign an existing GoCardless customer or mandate to fynn.","uniqueKey":"goCardless.oneOf.1","typeLabel":"null"}],"uniqueKey":"goCardless","typeLabel":"object | null"},"redirectUrl":{"oneOf":[{"description":"The redirect url to redirect the customer to after the payment method was created. This is only required, when you create a payment method with your own flow, independent from provided Hosted-Checkout, Hosted-Customerfront or Fynn.JS. Otherwise this has no effect.","example":"https://example.com/checkout/confirm","type":"string","uniqueKey":"redirectUrl.oneOf.0","typeLabel":"string"},{"description":"The redirect url to redirect the customer to after the payment method was created. This is only required, when you create a payment method with your own flow, independent from provided Hosted-Checkout, Hosted-Customerfront or Fynn.JS. Otherwise this has no effect.","example":"https://example.com/checkout/confirm","type":"null","uniqueKey":"redirectUrl.oneOf.1","typeLabel":"null"}],"uniqueKey":"redirectUrl","typeLabel":"string | null"}},"required":["gateway","type"],"uniqueKey":"","typeLabel":"object"},"examples":{"stripeCreditCardInit":{"title":"stripeCreditCardInit","description":"The stripe setup intent clientSecret is required to add a stripe credit card payment method. The clientSecret is required to collect credit card data with stripe.js elements.","value":{"gateway":"stripe","type":"card","customerId":"ad8f7a8d-8f7a-8d8f-7a8d8f7a8d8f","isDefault":true,"futureUsageAllowed":true,"stripe":{"paymentMethodId":null,"customerId":null}}},"stripeCreditCard":{"title":"stripeCreditCard","description":"The stripe credit card needs to be created on the client side with stripe.js. To obtain the required clientSecret, see \"Create stripe setup intent token\".","value":{"gateway":"stripe","type":"card","customerId":"ad8f7a8d-8f7a-8d8f-7a8d8f7a8d8f","isDefault":true,"futureUsageAllowed":true,"stripe":{"paymentMethodId":"pm_1J4X2n2eZvKYlo2C2Q2Q2Q2Q2","customerId":"cus_J4X2n2eZvKYlo2C2Q2Q2Q2Q2"}}},"paypal":{"title":"paypal","description":"When adding a paypal payment method, the customer will be redirected to paypal to login and confirm the billing agreement. After that, the customer will be redirected back to the successUrl.","value":{"gateway":"paypal","type":"paypal","customerId":"ad8f7a8d-8f7a-8d8f-7a8d8f7a8d8f","isDefault":true,"futureUsageAllowed":true}},"gocardless":{"title":"gocardless","description":"When adding a gocardless payment method, the customer will be redirected to gocardless to login and create a sepa debit mandate. After that, the customer will be redirected back to the successUrl.","value":{"gateway":"go_cardless","type":"sepa_debit","customerId":"ad8f7a8d-8f7a-8d8f-7a8d8f7a8d8f","isDefault":true,"futureUsageAllowed":true}},"gocardlessExisting":{"title":"gocardlessExisting","description":"To add an existing gocardless mandate (e.g. when you're migrating from another system), you need to provide the mandateId and customerId. No redirect will be performed.","value":{"gateway":"go_cardless","type":"sepa_debit","customerId":"ad8f7a8d-8f7a-8d8f-7a8d8f7a8d8f","isDefault":true,"futureUsageAllowed":true,"goCardless":{"mandateId":"MD0000","customerId":"CU0000"}}},"inhouseSepa":{"title":"inhouseSepa","description":"The sepa mandate allows to perform sepa payments with the integrated sepa payment gateway. See \u003ca href=\"#tag/SepaXmlStatement/operation/generateSepaXmlFile\">Generate sepa xml file\u003c/a> for more information.","value":{"gateway":"sepa_debit","type":"sepa_debit","customerId":"ad8f7a8d-8f7a-8d8f-7a8d8f7a8d8f","isDefault":true,"futureUsageAllowed":true,"sepaMandate":{"iban":"DE89370400440532013000","bic":"COBADEFFXXX","accountHolder":"Max Mustermann","signingDate":"2021-01-01","type":"CORE","sequence":"FRST"}}}},"exampleType":"examples"},"text/html":{"schema":{"type":"object","description":"Request body for creating a new payment method for a customer.","deprecated":false,"properties":{"gateway":{"enum":["wallet","sepa_debit","stripe","fake_provider","paypal","bank_transfer","go_cardless","testing"],"description":"The payment gateway to use to process the given payment method type\n\nPossible values:\n * `paypal`: PayPal (supports \"paypal\")\n * `stripe`: Stripe (supports \"card\")\n * `testing`: Testing (supports all)\n * `go_cardless`: GoCardless (supports \"sepa_debit\")\n * `bank_transfer`: Bank Transfer (supports \"bank_transfer\")\n * `sepa_debit`: SEPA Credit and Debit with xml file (supports \"sepa_debit\")\n * `wallet`: Credit Balance from Wallet (supports \"wallet\")","example":"stripe","type":"string","isRequired":true,"uniqueKey":"gateway","typeLabel":"enum\u003cstring>"},"type":{"enum":["sepa_debit","card","paypal","bank_transfer","wallet","fake_provider"],"description":"The payment method type to use for this payment method\n\nPossible values:\n * `sepa_debit`: SEPA Debit\n * `card`: Credit Card\n * `paypal`: PayPal\n * `bank_transfer`: Bank Transfer\n * `wallet`: Wallet","example":"card","type":"string","isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"customerId":{"oneOf":[{"description":"The customer that owns this payment method. If not provided, the customer will be determined by the authenticated user.","example":"ad8f3b9e-1b1a-4b9a-9b9a-9b9a9b9a9b9a","type":"string","uniqueKey":"customerId.oneOf.0","typeLabel":"string"},{"description":"The customer that owns this payment method. If not provided, the customer will be determined by the authenticated user.","example":"ad8f3b9e-1b1a-4b9a-9b9a-9b9a9b9a9b9a","type":"null","uniqueKey":"customerId.oneOf.1","typeLabel":"null"}],"uniqueKey":"customerId","typeLabel":"string | null"},"isDefault":{"description":"Determines if this payment method should be used as default payment method for the customer","default":true,"example":true,"type":"boolean","uniqueKey":"isDefault","typeLabel":"boolean"},"futureUsageAllowed":{"description":"Determines if this payment method is allowed to be used for future payments. Otherwise the payment method is only available for this payment.","default":true,"example":true,"type":"boolean","uniqueKey":"futureUsageAllowed","typeLabel":"boolean"},"stripe":{"oneOf":[{"type":"object","description":"Required when gateway is \"stripe\". Holds all necessary data for the payment gateway to create the payment method.","properties":{"paymentMethodId":{"oneOf":[{"pattern":"^(.*(^(card|pm)_.*$).*)$","description":"The Stripe payment method id, which was collected by Fynn.JS or Stripe.JS\nIf `null` is provided, you get a `action_required` response, with the `{SETUP_INTENT_CLIENT_SECRET}` to perform the authorization in stripe.js, see \u003ca href=\"https://stripe.com/docs/js/setup_intents/confirm_card_setup\">Confirm card setup\u003c/a>.","example":"pm_1J5J2n2eZvKYlo2CJY2n2eZvKYlo2C","type":"string","uniqueKey":"stripe.oneOf.0.paymentMethodId.oneOf.0","typeLabel":"string"},{"pattern":"^(.*(^(card|pm)_.*$).*)$","description":"The Stripe payment method id, which was collected by Fynn.JS or Stripe.JS\nIf `null` is provided, you get a `action_required` response, with the `{SETUP_INTENT_CLIENT_SECRET}` to perform the authorization in stripe.js, see \u003ca href=\"https://stripe.com/docs/js/setup_intents/confirm_card_setup\">Confirm card setup\u003c/a>.","example":"pm_1J5J2n2eZvKYlo2CJY2n2eZvKYlo2C","type":"null","uniqueKey":"stripe.oneOf.0.paymentMethodId.oneOf.1","typeLabel":"null"}],"uniqueKey":"stripe.oneOf.0.paymentMethodId","typeLabel":"string | null"},"customerId":{"oneOf":[{"pattern":"^(cus_.*)$","description":"The Stripe customer id, which references the Stripe customer.\nIf none is provided, the stripe customer id will be used, which was created automatically by Fynn, during fetching the stripe setup intent secret.","example":"cus_J5J2n2eZvKYlo2CJY2n2eZvKYlo2C","type":"string","uniqueKey":"stripe.oneOf.0.customerId.oneOf.0","typeLabel":"string"},{"pattern":"^(cus_.*)$","description":"The Stripe customer id, which references the Stripe customer.\nIf none is provided, the stripe customer id will be used, which was created automatically by Fynn, during fetching the stripe setup intent secret.","example":"cus_J5J2n2eZvKYlo2CJY2n2eZvKYlo2C","type":"null","uniqueKey":"stripe.oneOf.0.customerId.oneOf.1","typeLabel":"null"}],"uniqueKey":"stripe.oneOf.0.customerId","typeLabel":"string | null"}},"uniqueKey":"stripe.oneOf.0","typeLabel":"object"},{"type":"null","description":"Required when gateway is \"stripe\". Holds all necessary data for the payment gateway to create the payment method.","uniqueKey":"stripe.oneOf.1","typeLabel":"null"}],"uniqueKey":"stripe","typeLabel":"object | null"},"sepaMandate":{"oneOf":[{"type":"object","description":"Required when gateway is \"sepa_debit\". Holds all necessary data for the payment gateway to create the payment method.","required":["iban","bic","accountHolder"],"properties":{"iban":{"oneOf":[{"description":"The customer's IBAN","externalDocs":{"url":"https://schema.org/identifier"},"example":"DE89370400440532013000","type":"string","isRequired":true,"uniqueKey":"sepaMandate.oneOf.0.iban.oneOf.0","typeLabel":"string"},{"description":"The customer's IBAN","externalDocs":{"url":"https://schema.org/identifier"},"example":"DE89370400440532013000","type":"null","isRequired":true,"uniqueKey":"sepaMandate.oneOf.0.iban.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"sepaMandate.oneOf.0.iban","typeLabel":"string | null"},"bic":{"oneOf":[{"description":"The customer's BIC","externalDocs":{"url":"https://schema.org/identifier"},"example":"COBADEFFXXX","type":"string","isRequired":true,"uniqueKey":"sepaMandate.oneOf.0.bic.oneOf.0","typeLabel":"string"},{"description":"The customer's BIC","externalDocs":{"url":"https://schema.org/identifier"},"example":"COBADEFFXXX","type":"null","isRequired":true,"uniqueKey":"sepaMandate.oneOf.0.bic.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"sepaMandate.oneOf.0.bic","typeLabel":"string | null"},"accountHolder":{"oneOf":[{"description":"The bank account holder's name","example":"Max Mustermann","type":"string","isRequired":true,"uniqueKey":"sepaMandate.oneOf.0.accountHolder.oneOf.0","typeLabel":"string"},{"description":"The bank account holder's name","example":"Max Mustermann","type":"null","isRequired":true,"uniqueKey":"sepaMandate.oneOf.0.accountHolder.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"sepaMandate.oneOf.0.accountHolder","typeLabel":"string | null"},"mandateReference":{"oneOf":[{"maxLength":35,"description":"The mandate reference will be generated automatically, if none is provided. You can set it when migrating from another payment provider.","example":"MNDT-123456789","type":"string","uniqueKey":"sepaMandate.oneOf.0.mandateReference.oneOf.0","typeLabel":"string"},{"maxLength":35,"description":"The mandate reference will be generated automatically, if none is provided. You can set it when migrating from another payment provider.","example":"MNDT-123456789","type":"null","uniqueKey":"sepaMandate.oneOf.0.mandateReference.oneOf.1","typeLabel":"null"}],"uniqueKey":"sepaMandate.oneOf.0.mandateReference","typeLabel":"string | null"},"signingDate":{"oneOf":[{"description":"The SEPA mandate signing date. If none is provided, the current date will be used.","externalDocs":{"url":"https://schema.org/Date"},"default":"today","example":"2021-01-01","type":"string","uniqueKey":"sepaMandate.oneOf.0.signingDate.oneOf.0","typeLabel":"string"},{"description":"The SEPA mandate signing date. If none is provided, the current date will be used.","externalDocs":{"url":"https://schema.org/Date"},"default":"today","example":"2021-01-01","type":"null","uniqueKey":"sepaMandate.oneOf.0.signingDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"sepaMandate.oneOf.0.signingDate","typeLabel":"string | null"},"type":{"enum":["CORE","B2B","COR1"],"description":"The SEPA mandate type. If none is provided, the default type \"CORE\" will be used.\n\nPossible values:\n * `CORE`: The core scheme is used for payments between consumers and companies\n * `B2B`: The B2B scheme is used for payments between companies. No refund is possible\n * `COR1`: The COR1 scheme is used for payments between consumers and companies. The payment is processed faster than with the core scheme","default":"CORE","example":"CORE","type":"string","uniqueKey":"sepaMandate.oneOf.0.type","typeLabel":"enum\u003cstring>"},"sequence":{"enum":["FRST","RCUR","FNAL","OOFF"],"description":"The SEPA mandate sequence. If none is provided, the default sequence \"FRST\" will be used.\n\nPossible values:\n * `FRST`: The sepa mandate is used for the first time for a recurring payment\n * `RCUR`: The sepa mandate was already used the first time and is now used for recurring payments\n * `FNAL`: The sepa mandate is used for the last time for a recurring payment\n * `OOFF`: The sepa mandate is only allowed to be used for one payment","default":"FRST","example":"FRST","type":"string","uniqueKey":"sepaMandate.oneOf.0.sequence","typeLabel":"enum\u003cstring>"}},"uniqueKey":"sepaMandate.oneOf.0","typeLabel":"object"},{"type":"null","description":"Required when gateway is \"sepa_debit\". Holds all necessary data for the payment gateway to create the payment method.","uniqueKey":"sepaMandate.oneOf.1","typeLabel":"null"}],"uniqueKey":"sepaMandate","typeLabel":"object | null"},"goCardless":{"oneOf":[{"type":"object","description":"Optional for gateway \"go_cardless\". It is only required when you want to migrate, or assign an existing GoCardless customer or mandate to fynn.","properties":{"customerId":{"oneOf":[{"pattern":"^(CU.*)$","description":"The GoCardless customer id, which references the GoCardless customer. If none is provided, the GoCardless mandate flow will be started.","example":"CU123456789","type":"string","uniqueKey":"goCardless.oneOf.0.customerId.oneOf.0","typeLabel":"string"},{"pattern":"^(CU.*)$","description":"The GoCardless customer id, which references the GoCardless customer. If none is provided, the GoCardless mandate flow will be started.","example":"CU123456789","type":"null","uniqueKey":"goCardless.oneOf.0.customerId.oneOf.1","typeLabel":"null"}],"uniqueKey":"goCardless.oneOf.0.customerId","typeLabel":"string | null"},"mandateId":{"oneOf":[{"pattern":"^(MD.*)$","description":"The GoCardless mandate id, which references the GoCardless mandate. If none is provided, the GoCardless mandate flow will be started.","example":"MD123456789","type":"string","uniqueKey":"goCardless.oneOf.0.mandateId.oneOf.0","typeLabel":"string"},{"pattern":"^(MD.*)$","description":"The GoCardless mandate id, which references the GoCardless mandate. If none is provided, the GoCardless mandate flow will be started.","example":"MD123456789","type":"null","uniqueKey":"goCardless.oneOf.0.mandateId.oneOf.1","typeLabel":"null"}],"uniqueKey":"goCardless.oneOf.0.mandateId","typeLabel":"string | null"}},"uniqueKey":"goCardless.oneOf.0","typeLabel":"object"},{"type":"null","description":"Optional for gateway \"go_cardless\". It is only required when you want to migrate, or assign an existing GoCardless customer or mandate to fynn.","uniqueKey":"goCardless.oneOf.1","typeLabel":"null"}],"uniqueKey":"goCardless","typeLabel":"object | null"},"redirectUrl":{"oneOf":[{"description":"The redirect url to redirect the customer to after the payment method was created. This is only required, when you create a payment method with your own flow, independent from provided Hosted-Checkout, Hosted-Customerfront or Fynn.JS. Otherwise this has no effect.","example":"https://example.com/checkout/confirm","type":"string","uniqueKey":"redirectUrl.oneOf.0","typeLabel":"string"},{"description":"The redirect url to redirect the customer to after the payment method was created. This is only required, when you create a payment method with your own flow, independent from provided Hosted-Checkout, Hosted-Customerfront or Fynn.JS. Otherwise this has no effect.","example":"https://example.com/checkout/confirm","type":"null","uniqueKey":"redirectUrl.oneOf.1","typeLabel":"null"}],"uniqueKey":"redirectUrl","typeLabel":"string | null"}},"required":["gateway","type"],"uniqueKey":"","typeLabel":"object"},"examples":{"stripe_card":{"title":"stripe_card","value":{"gateway":"stripe","type":"card","customerId":"ad8f3b9e-1b1a-4b9a-9b9a-9b9a9b9a9b9a","isDefault":true,"futureUsageAllowed":true,"stripe":{"paymentMethodId":null},"redirectUrl":"https://example.com/checkout/confirm"}},"sepa_debit":{"title":"sepa_debit","value":{"gateway":"sepa_debit","type":"sepa_debit","customerId":"ad8f3b9e-1b1a-4b9a-9b9a-9b9a9b9a9b9a","isDefault":true,"futureUsageAllowed":true,"sepaMandate":{"iban":"DE89370400440532013000","bic":"COBADEFFXXX","accountHolder":"Max Mustermann","signingDate":"2024-01-15","type":"CORE","sequence":"FRST"}}},"paypal":{"title":"paypal","value":{"gateway":"paypal","type":"paypal","customerId":"ad8f3b9e-1b1a-4b9a-9b9a-9b9a9b9a9b9a","isDefault":false,"futureUsageAllowed":true,"redirectUrl":"https://example.com/checkout/confirm"}},"go_cardless":{"title":"go_cardless","value":{"gateway":"go_cardless","type":"sepa_debit","customerId":"ad8f3b9e-1b1a-4b9a-9b9a-9b9a9b9a9b9a","isDefault":true,"futureUsageAllowed":true,"goCardless":{"customerId":"CU123456789","mandateId":"MD123456789"}}},"bank_transfer":{"title":"bank_transfer","value":{"gateway":"bank_transfer","type":"bank_transfer","customerId":"ad8f3b9e-1b1a-4b9a-9b9a-9b9a9b9a9b9a","isDefault":true,"futureUsageAllowed":true}},"wallet":{"title":"wallet","value":{"gateway":"wallet","type":"wallet","customerId":"ad8f3b9e-1b1a-4b9a-9b9a-9b9a9b9a9b9a","isDefault":false,"futureUsageAllowed":true}}},"exampleType":"examples"}},"required":true,"exampleType":"examples"},"responses":{"c207218f-b872-4013-86fb-2ac933c8317a":{"description":"PaymentMethod resource created","content":{"application/json":{"schema":{"type":"object","description":"The result of creating a payment method. Contains the status, any required actions, and the created payment method.","deprecated":false,"properties":{"status":{"enum":["action_required","success","failed"],"description":"\n\nPossible values:\n * `action_required`: The payment method requires an action to be taken by the customer\n * `success`: The payment method was successfully created\n * `failed`: The payment method could not be created","type":"string","uniqueKey":"status","typeLabel":"enum\u003cstring>"},"actionRequired":{"oneOf":[{"description":"The action required if the payment method requires an action to be taken by the customer\n\n* redirect_to_gateway: The customer needs to be redirected to the payment gateway\n* client_site_action: The customer needs to take an action on the client site","type":"object","properties":{"action":{"type":"string","enum":["redirect_to_gateway","client_site_action"],"uniqueKey":"actionRequired.oneOf.0.action","typeLabel":"enum\u003cstring>"},"redirectUrl":{"oneOf":[{"type":"string","example":"https://example.com/redirect","description":"The URL to redirect the customer to, if the action is `redirect_to_gateway`","uniqueKey":"actionRequired.oneOf.0.redirectUrl.oneOf.0","typeLabel":"string"},{"type":"null","example":"https://example.com/redirect","description":"The URL to redirect the customer to, if the action is `redirect_to_gateway`","uniqueKey":"actionRequired.oneOf.0.redirectUrl.oneOf.1","typeLabel":"null"}],"uniqueKey":"actionRequired.oneOf.0.redirectUrl","typeLabel":"string | null"},"details":{"oneOf":[{"type":"object","description":"The details of the action required, if the action is `client_site_action`","properties":{"clientSecret":{"oneOf":[{"type":"string","example":"test_1234567890","description":"The client secret to use for stripe.js, if the payment gateway is `stripe` and the type is `card`","uniqueKey":"actionRequired.oneOf.0.details.oneOf.0.clientSecret.oneOf.0","typeLabel":"string"},{"type":"null","example":"test_1234567890","description":"The client secret to use for stripe.js, if the payment gateway is `stripe` and the type is `card`","uniqueKey":"actionRequired.oneOf.0.details.oneOf.0.clientSecret.oneOf.1","typeLabel":"null"}],"uniqueKey":"actionRequired.oneOf.0.details.oneOf.0.clientSecret","typeLabel":"string | null"},"publishableKey":{"oneOf":[{"type":"string","example":"pk_test_1234567890","description":"The publishable key to use for stripe.js, if the payment gateway is `stripe` and the type is `card`","uniqueKey":"actionRequired.oneOf.0.details.oneOf.0.publishableKey.oneOf.0","typeLabel":"string"},{"type":"null","example":"pk_test_1234567890","description":"The publishable key to use for stripe.js, if the payment gateway is `stripe` and the type is `card`","uniqueKey":"actionRequired.oneOf.0.details.oneOf.0.publishableKey.oneOf.1","typeLabel":"null"}],"uniqueKey":"actionRequired.oneOf.0.details.oneOf.0.publishableKey","typeLabel":"string | null"},"accountId":{"oneOf":[{"type":"string","example":"acct_1234567890","description":"The account id to use for stripe.js, if the payment gateway is `stripe` and the type is `card`","uniqueKey":"actionRequired.oneOf.0.details.oneOf.0.accountId.oneOf.0","typeLabel":"string"},{"type":"null","example":"acct_1234567890","description":"The account id to use for stripe.js, if the payment gateway is `stripe` and the type is `card`","uniqueKey":"actionRequired.oneOf.0.details.oneOf.0.accountId.oneOf.1","typeLabel":"null"}],"uniqueKey":"actionRequired.oneOf.0.details.oneOf.0.accountId","typeLabel":"string | null"}},"uniqueKey":"actionRequired.oneOf.0.details.oneOf.0","typeLabel":"object"},{"type":"null","description":"The details of the action required, if the action is `client_site_action`","properties":{"clientSecret":{"oneOf":[{"type":"string","example":"test_1234567890","description":"The client secret to use for stripe.js, if the payment gateway is `stripe` and the type is `card`"},{"type":"null","example":"test_1234567890","description":"The client secret to use for stripe.js, if the payment gateway is `stripe` and the type is `card`"}]},"publishableKey":{"oneOf":[{"type":"string","example":"pk_test_1234567890","description":"The publishable key to use for stripe.js, if the payment gateway is `stripe` and the type is `card`"},{"type":"null","example":"pk_test_1234567890","description":"The publishable key to use for stripe.js, if the payment gateway is `stripe` and the type is `card`"}]},"accountId":{"oneOf":[{"type":"string","example":"acct_1234567890","description":"The account id to use for stripe.js, if the payment gateway is `stripe` and the type is `card`"},{"type":"null","example":"acct_1234567890","description":"The account id to use for stripe.js, if the payment gateway is `stripe` and the type is `card`"}]}},"uniqueKey":"actionRequired.oneOf.0.details.oneOf.1","typeLabel":"null"}],"uniqueKey":"actionRequired.oneOf.0.details","typeLabel":"object | null"}},"example":{"action":"client_site_action","details":{"clientSecret":"test_1234567890","publishableKey":"pk_test_1234567890","accountId":"acct_1234567890"}},"uniqueKey":"actionRequired.oneOf.0","typeLabel":"object"},{"description":"The action required if the payment method requires an action to be taken by the customer\n\n* redirect_to_gateway: The customer needs to be redirected to the payment gateway\n* client_site_action: The customer needs to take an action on the client site","type":"null","properties":{"action":{"type":"string","enum":["redirect_to_gateway","client_site_action"]},"redirectUrl":{"oneOf":[{"type":"string","example":"https://example.com/redirect","description":"The URL to redirect the customer to, if the action is `redirect_to_gateway`"},{"type":"null","example":"https://example.com/redirect","description":"The URL to redirect the customer to, if the action is `redirect_to_gateway`"}]},"details":{"oneOf":[{"type":"object","description":"The details of the action required, if the action is `client_site_action`","properties":{"clientSecret":{"oneOf":[{"type":"string","example":"test_1234567890","description":"The client secret to use for stripe.js, if the payment gateway is `stripe` and the type is `card`"},{"type":"null","example":"test_1234567890","description":"The client secret to use for stripe.js, if the payment gateway is `stripe` and the type is `card`"}]},"publishableKey":{"oneOf":[{"type":"string","example":"pk_test_1234567890","description":"The publishable key to use for stripe.js, if the payment gateway is `stripe` and the type is `card`"},{"type":"null","example":"pk_test_1234567890","description":"The publishable key to use for stripe.js, if the payment gateway is `stripe` and the type is `card`"}]},"accountId":{"oneOf":[{"type":"string","example":"acct_1234567890","description":"The account id to use for stripe.js, if the payment gateway is `stripe` and the type is `card`"},{"type":"null","example":"acct_1234567890","description":"The account id to use for stripe.js, if the payment gateway is `stripe` and the type is `card`"}]}}},{"type":"null","description":"The details of the action required, if the action is `client_site_action`","properties":{"clientSecret":{"oneOf":[{"type":"string","example":"test_1234567890","description":"The client secret to use for stripe.js, if the payment gateway is `stripe` and the type is `card`"},{"type":"null","example":"test_1234567890","description":"The client secret to use for stripe.js, if the payment gateway is `stripe` and the type is `card`"}]},"publishableKey":{"oneOf":[{"type":"string","example":"pk_test_1234567890","description":"The publishable key to use for stripe.js, if the payment gateway is `stripe` and the type is `card`"},{"type":"null","example":"pk_test_1234567890","description":"The publishable key to use for stripe.js, if the payment gateway is `stripe` and the type is `card`"}]},"accountId":{"oneOf":[{"type":"string","example":"acct_1234567890","description":"The account id to use for stripe.js, if the payment gateway is `stripe` and the type is `card`"},{"type":"null","example":"acct_1234567890","description":"The account id to use for stripe.js, if the payment gateway is `stripe` and the type is `card`"}]}}}]}},"example":{"action":"client_site_action","details":{"clientSecret":"test_1234567890","publishableKey":"pk_test_1234567890","accountId":"acct_1234567890"}},"uniqueKey":"actionRequired.oneOf.1","typeLabel":"null"}],"uniqueKey":"actionRequired","typeLabel":"object | null"},"failReason":{"oneOf":[{"description":"The fail reason if status is `failed`","type":"string","uniqueKey":"failReason.oneOf.0","typeLabel":"string"},{"description":"The fail reason if status is `failed`","type":"null","uniqueKey":"failReason.oneOf.1","typeLabel":"null"}],"uniqueKey":"failReason","typeLabel":"string | null"},"paymentMethod":{"oneOf":[{"type":"object","description":"The created payment method, if status is `success`","properties":{"id":{"readOnly":true,"type":"string","uniqueKey":"paymentMethod.oneOf.0.id","typeLabel":"string"},"customer":{"type":"string","format":"uuid","example":"ad8f3b9e-1b1a-4b9a-9b9a-9b9a9b9a9b9a","uniqueKey":"paymentMethod.oneOf.0.customer","typeLabel":"string\u003cuuid>"},"gatewayName":{"type":"string","enum":["wallet","sepa_debit","stripe","fake_provider","paypal","bank_transfer","go_cardless","testing"],"uniqueKey":"paymentMethod.oneOf.0.gatewayName","typeLabel":"enum\u003cstring>"},"type":{"oneOf":[{"type":"string","enum":["sepa_debit","card","paypal","bank_transfer","wallet","fake_provider",null],"uniqueKey":"paymentMethod.oneOf.0.type.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["sepa_debit","card","paypal","bank_transfer","wallet","fake_provider",null],"uniqueKey":"paymentMethod.oneOf.0.type.oneOf.1","typeLabel":"null"}],"uniqueKey":"paymentMethod.oneOf.0.type","typeLabel":"enum\u003cstring> | null"},"referenceId":{"oneOf":[{"type":"string","uniqueKey":"paymentMethod.oneOf.0.referenceId.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"paymentMethod.oneOf.0.referenceId.oneOf.1","typeLabel":"null"}],"uniqueKey":"paymentMethod.oneOf.0.referenceId","typeLabel":"string | null"},"default":{"type":"boolean","uniqueKey":"paymentMethod.oneOf.0.default","typeLabel":"boolean"},"status":{"default":"active","example":"active","type":"string","enum":["active","action_required","expired","revoked","gateway_unconfigured"],"uniqueKey":"paymentMethod.oneOf.0.status","typeLabel":"enum\u003cstring>"},"source":{"default":"api","example":"api","type":"string","enum":["checkout","customerfront","api","add_link"],"uniqueKey":"paymentMethod.oneOf.0.source","typeLabel":"enum\u003cstring>"},"enabled":{"type":"boolean","uniqueKey":"paymentMethod.oneOf.0.enabled","typeLabel":"boolean"},"name":{"oneOf":[{"type":"string","uniqueKey":"paymentMethod.oneOf.0.name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"paymentMethod.oneOf.0.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"paymentMethod.oneOf.0.name","typeLabel":"string | null"},"data":{"type":"array","items":{"type":"string","uniqueKey":"paymentMethod.oneOf.0.data.items.[INDEX]","typeLabel":"string"},"uniqueKey":"paymentMethod.oneOf.0.data","typeLabel":"string[]"},"creationDate":{"readOnly":true,"type":"string","format":"date-time","uniqueKey":"paymentMethod.oneOf.0.creationDate","typeLabel":"string\u003cdate-time>"},"expirationDate":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"paymentMethod.oneOf.0.expirationDate.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"paymentMethod.oneOf.0.expirationDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"paymentMethod.oneOf.0.expirationDate","typeLabel":"string\u003cdate-time> | null"},"sepaMandate":{"oneOf":[{"type":"object","description":"The sepa mandate of the payment method, if the gatewayName is \"payment_sepa\"","properties":{"id":{"readOnly":true,"example":"ad8f0b9c-0b1a-4e1a-8b0a-0b1a4e1a8b0a","type":"string","uniqueKey":"paymentMethod.oneOf.0.sepaMandate.oneOf.0.id","typeLabel":"string"},"status":{"description":"The status of the mandate\n\nPossible values:\n * `active`: The mandate is active and can be used for payments\n * `revoked`: The customer has revoked the mandate or a payment was rejected by the bank. The mandate can not be used for payments anymore","example":"active","enum":["active","revoked"],"type":"string","uniqueKey":"paymentMethod.oneOf.0.sepaMandate.oneOf.0.status","typeLabel":"enum\u003cstring>"},"creditorIdentifier":{"readOnly":true,"type":"string","uniqueKey":"paymentMethod.oneOf.0.sepaMandate.oneOf.0.creditorIdentifier","typeLabel":"string"},"mandateReference":{"description":"The reference of the mandate","example":"MNDT-2021-0001","type":"string","uniqueKey":"paymentMethod.oneOf.0.sepaMandate.oneOf.0.mandateReference","typeLabel":"string"},"bankAccount":{"type":"object","description":"The bank account of the mandate","deprecated":false,"properties":{"id":{"readOnly":true,"example":"ad8f0b9c-4b1e-4e0e-8b9c-4b1e4e0e8b9c","type":"string","description":"Unique identifier of the bank account","uniqueKey":"paymentMethod.oneOf.0.sepaMandate.oneOf.0.bankAccount.id","typeLabel":"string"},"iban":{"example":"DE12500105170648489890","type":"string","description":"The IBAN of the bank account","uniqueKey":"paymentMethod.oneOf.0.sepaMandate.oneOf.0.bankAccount.iban","typeLabel":"string"},"bic":{"example":"PBNKDEFFXXX","type":"string","description":"The BIC/SWIFT code of the bank","uniqueKey":"paymentMethod.oneOf.0.sepaMandate.oneOf.0.bankAccount.bic","typeLabel":"string"},"accountHolder":{"example":"Max Mustermann","type":"string","description":"The name of the account holder","uniqueKey":"paymentMethod.oneOf.0.sepaMandate.oneOf.0.bankAccount.accountHolder","typeLabel":"string"},"bankName":{"example":"Commerzbank","type":"string","description":"The name of the bank","uniqueKey":"paymentMethod.oneOf.0.sepaMandate.oneOf.0.bankAccount.bankName","typeLabel":"string"}},"uniqueKey":"paymentMethod.oneOf.0.sepaMandate.oneOf.0.bankAccount","typeLabel":"object"},"sequenceType":{"description":"The sequence type of the mandate\n\nPossible values:\n * `FRST`: The sepa mandate is used for the first time for a recurring payment\n * `RCUR`: The sepa mandate was already used the first time and is now used for recurring payments\n * `FNAL`: The sepa mandate is used for the last time for a recurring payment\n * `OOFF`: The sepa mandate is only allowed to be used for one payment","example":"FRST","enum":["FRST","RCUR","FNAL","OOFF"],"type":"string","uniqueKey":"paymentMethod.oneOf.0.sepaMandate.oneOf.0.sequenceType","typeLabel":"enum\u003cstring>"},"sepaType":{"description":"The type of the mandate\n\nPossible values:\n * `CORE`: The core scheme is used for payments between consumers and companies\n * `B2B`: The B2B scheme is used for payments between companies. No refund is possible\n * `COR1`: The COR1 scheme is used for payments between consumers and companies. The payment is processed faster than with the core scheme","example":"core","enum":["CORE","B2B","COR1"],"type":"string","uniqueKey":"paymentMethod.oneOf.0.sepaMandate.oneOf.0.sepaType","typeLabel":"enum\u003cstring>"}},"uniqueKey":"paymentMethod.oneOf.0.sepaMandate.oneOf.0","typeLabel":"object"},{"type":"null","description":"The sepa mandate of the payment method, if the gatewayName is \"payment_sepa\"","uniqueKey":"paymentMethod.oneOf.0.sepaMandate.oneOf.1","typeLabel":"null"}],"uniqueKey":"paymentMethod.oneOf.0.sepaMandate","typeLabel":"object | null"},"card":{"readOnly":true,"description":"The card data of the payment method, if the type is \"card\"","type":"object","properties":{"brand":{"type":"string","example":"Visa","description":"The brand of the card","uniqueKey":"paymentMethod.oneOf.0.card.brand","typeLabel":"string"},"last4":{"type":"string","example":"4242","description":"The last 4 digits of the card","uniqueKey":"paymentMethod.oneOf.0.card.last4","typeLabel":"string"},"expMonth":{"type":"integer","example":12,"description":"The expiration month of the card","uniqueKey":"paymentMethod.oneOf.0.card.expMonth","typeLabel":"integer"},"expYear":{"type":"integer","example":2022,"description":"The expiration year of the card","uniqueKey":"paymentMethod.oneOf.0.card.expYear","typeLabel":"integer"},"cardHolder":{"type":"string","example":"Max Mustermann","description":"The card holder name","uniqueKey":"paymentMethod.oneOf.0.card.cardHolder","typeLabel":"string"}},"uniqueKey":"paymentMethod.oneOf.0.card","typeLabel":"object"},"sepaDebit":{"readOnly":true,"description":"The sepa mandate data of the payment method, if the type is \"sepa_debit\"","type":"object","properties":{"iban":{"type":"string","example":"DE8937*********3232","description":"The iban of the sepa mandate","uniqueKey":"paymentMethod.oneOf.0.sepaDebit.iban","typeLabel":"string"},"bic":{"type":"string","example":"COBADEFFXXX","description":"The bic of the sepa mandate","uniqueKey":"paymentMethod.oneOf.0.sepaDebit.bic","typeLabel":"string"},"mandateReference":{"type":"string","example":"MNDT-2021-123456","description":"The mandate reference of the sepa mandate","uniqueKey":"paymentMethod.oneOf.0.sepaDebit.mandateReference","typeLabel":"string"},"signingDate":{"type":"string","example":"2021-01-01T00:00:00+00:00","description":"The signing date of the sepa mandate","uniqueKey":"paymentMethod.oneOf.0.sepaDebit.signingDate","typeLabel":"string"}},"uniqueKey":"paymentMethod.oneOf.0.sepaDebit","typeLabel":"object"},"paypal":{"readOnly":true,"description":"The paypal data of the payment method, if the type is \"paypal\"","type":"object","properties":{"email":{"type":"string","example":"max@mustermann.de","description":"The email of the paypal account","uniqueKey":"paymentMethod.oneOf.0.paypal.email","typeLabel":"string"},"billingAgreementId":{"type":"string","example":"I-1J5gqz2eZvKYlo2C2X2X2X2X","description":"The billing agreement id of the paypal account","uniqueKey":"paymentMethod.oneOf.0.paypal.billingAgreementId","typeLabel":"string"}},"uniqueKey":"paymentMethod.oneOf.0.paypal","typeLabel":"object"},"expirationInDays":{"oneOf":[{"readOnly":true,"type":"integer","uniqueKey":"paymentMethod.oneOf.0.expirationInDays.oneOf.0","typeLabel":"integer"},{"readOnly":true,"type":"null","uniqueKey":"paymentMethod.oneOf.0.expirationInDays.oneOf.1","typeLabel":"null"}],"uniqueKey":"paymentMethod.oneOf.0.expirationInDays","typeLabel":"integer | null"}},"uniqueKey":"paymentMethod.oneOf.0","typeLabel":"object"},{"type":"null","description":"The created payment method, if status is `success`","uniqueKey":"paymentMethod.oneOf.1","typeLabel":"null"}],"uniqueKey":"paymentMethod","typeLabel":"object | null"}},"uniqueKey":"","typeLabel":"object"},"example":{"status":"action_required","actionRequired":{"action":"client_site_action","redirectUrl":null,"details":{"clientSecret":"seti_1N5J2n2eZvKYlo2C_secret_abc123","publishableKey":"pk_test_1234567890","accountId":"acct_1234567890"}},"failReason":null,"paymentMethod":null},"examples":{"Example":{"title":"Example","value":{"status":"action_required","actionRequired":{"action":"client_site_action","redirectUrl":null,"details":{"clientSecret":"seti_1N5J2n2eZvKYlo2C_secret_abc123","publishableKey":"pk_test_1234567890","accountId":"acct_1234567890"}},"failReason":null,"paymentMethod":null}}},"exampleType":"examples"},"text/html":{"schema":{"type":"object","description":"The result of creating a payment method. Contains the status, any required actions, and the created payment method.","deprecated":false,"properties":{"status":{"enum":["action_required","success","failed"],"description":"\n\nPossible values:\n * `action_required`: The payment method requires an action to be taken by the customer\n * `success`: The payment method was successfully created\n * `failed`: The payment method could not be created","type":"string","uniqueKey":"status","typeLabel":"enum\u003cstring>"},"actionRequired":{"oneOf":[{"description":"The action required if the payment method requires an action to be taken by the customer\n\n* redirect_to_gateway: The customer needs to be redirected to the payment gateway\n* client_site_action: The customer needs to take an action on the client site","type":"object","properties":{"action":{"type":"string","enum":["redirect_to_gateway","client_site_action"],"uniqueKey":"actionRequired.oneOf.0.action","typeLabel":"enum\u003cstring>"},"redirectUrl":{"oneOf":[{"type":"string","example":"https://example.com/redirect","description":"The URL to redirect the customer to, if the action is `redirect_to_gateway`","uniqueKey":"actionRequired.oneOf.0.redirectUrl.oneOf.0","typeLabel":"string"},{"type":"null","example":"https://example.com/redirect","description":"The URL to redirect the customer to, if the action is `redirect_to_gateway`","uniqueKey":"actionRequired.oneOf.0.redirectUrl.oneOf.1","typeLabel":"null"}],"uniqueKey":"actionRequired.oneOf.0.redirectUrl","typeLabel":"string | null"},"details":{"oneOf":[{"type":"object","description":"The details of the action required, if the action is `client_site_action`","properties":{"clientSecret":{"oneOf":[{"type":"string","example":"test_1234567890","description":"The client secret to use for stripe.js, if the payment gateway is `stripe` and the type is `card`","uniqueKey":"actionRequired.oneOf.0.details.oneOf.0.clientSecret.oneOf.0","typeLabel":"string"},{"type":"null","example":"test_1234567890","description":"The client secret to use for stripe.js, if the payment gateway is `stripe` and the type is `card`","uniqueKey":"actionRequired.oneOf.0.details.oneOf.0.clientSecret.oneOf.1","typeLabel":"null"}],"uniqueKey":"actionRequired.oneOf.0.details.oneOf.0.clientSecret","typeLabel":"string | null"},"publishableKey":{"oneOf":[{"type":"string","example":"pk_test_1234567890","description":"The publishable key to use for stripe.js, if the payment gateway is `stripe` and the type is `card`","uniqueKey":"actionRequired.oneOf.0.details.oneOf.0.publishableKey.oneOf.0","typeLabel":"string"},{"type":"null","example":"pk_test_1234567890","description":"The publishable key to use for stripe.js, if the payment gateway is `stripe` and the type is `card`","uniqueKey":"actionRequired.oneOf.0.details.oneOf.0.publishableKey.oneOf.1","typeLabel":"null"}],"uniqueKey":"actionRequired.oneOf.0.details.oneOf.0.publishableKey","typeLabel":"string | null"},"accountId":{"oneOf":[{"type":"string","example":"acct_1234567890","description":"The account id to use for stripe.js, if the payment gateway is `stripe` and the type is `card`","uniqueKey":"actionRequired.oneOf.0.details.oneOf.0.accountId.oneOf.0","typeLabel":"string"},{"type":"null","example":"acct_1234567890","description":"The account id to use for stripe.js, if the payment gateway is `stripe` and the type is `card`","uniqueKey":"actionRequired.oneOf.0.details.oneOf.0.accountId.oneOf.1","typeLabel":"null"}],"uniqueKey":"actionRequired.oneOf.0.details.oneOf.0.accountId","typeLabel":"string | null"}},"uniqueKey":"actionRequired.oneOf.0.details.oneOf.0","typeLabel":"object"},{"type":"null","description":"The details of the action required, if the action is `client_site_action`","properties":{"clientSecret":{"oneOf":[{"type":"string","example":"test_1234567890","description":"The client secret to use for stripe.js, if the payment gateway is `stripe` and the type is `card`"},{"type":"null","example":"test_1234567890","description":"The client secret to use for stripe.js, if the payment gateway is `stripe` and the type is `card`"}]},"publishableKey":{"oneOf":[{"type":"string","example":"pk_test_1234567890","description":"The publishable key to use for stripe.js, if the payment gateway is `stripe` and the type is `card`"},{"type":"null","example":"pk_test_1234567890","description":"The publishable key to use for stripe.js, if the payment gateway is `stripe` and the type is `card`"}]},"accountId":{"oneOf":[{"type":"string","example":"acct_1234567890","description":"The account id to use for stripe.js, if the payment gateway is `stripe` and the type is `card`"},{"type":"null","example":"acct_1234567890","description":"The account id to use for stripe.js, if the payment gateway is `stripe` and the type is `card`"}]}},"uniqueKey":"actionRequired.oneOf.0.details.oneOf.1","typeLabel":"null"}],"uniqueKey":"actionRequired.oneOf.0.details","typeLabel":"object | null"}},"example":{"action":"client_site_action","details":{"clientSecret":"test_1234567890","publishableKey":"pk_test_1234567890","accountId":"acct_1234567890"}},"uniqueKey":"actionRequired.oneOf.0","typeLabel":"object"},{"description":"The action required if the payment method requires an action to be taken by the customer\n\n* redirect_to_gateway: The customer needs to be redirected to the payment gateway\n* client_site_action: The customer needs to take an action on the client site","type":"null","properties":{"action":{"type":"string","enum":["redirect_to_gateway","client_site_action"]},"redirectUrl":{"oneOf":[{"type":"string","example":"https://example.com/redirect","description":"The URL to redirect the customer to, if the action is `redirect_to_gateway`"},{"type":"null","example":"https://example.com/redirect","description":"The URL to redirect the customer to, if the action is `redirect_to_gateway`"}]},"details":{"oneOf":[{"type":"object","description":"The details of the action required, if the action is `client_site_action`","properties":{"clientSecret":{"oneOf":[{"type":"string","example":"test_1234567890","description":"The client secret to use for stripe.js, if the payment gateway is `stripe` and the type is `card`"},{"type":"null","example":"test_1234567890","description":"The client secret to use for stripe.js, if the payment gateway is `stripe` and the type is `card`"}]},"publishableKey":{"oneOf":[{"type":"string","example":"pk_test_1234567890","description":"The publishable key to use for stripe.js, if the payment gateway is `stripe` and the type is `card`"},{"type":"null","example":"pk_test_1234567890","description":"The publishable key to use for stripe.js, if the payment gateway is `stripe` and the type is `card`"}]},"accountId":{"oneOf":[{"type":"string","example":"acct_1234567890","description":"The account id to use for stripe.js, if the payment gateway is `stripe` and the type is `card`"},{"type":"null","example":"acct_1234567890","description":"The account id to use for stripe.js, if the payment gateway is `stripe` and the type is `card`"}]}}},{"type":"null","description":"The details of the action required, if the action is `client_site_action`","properties":{"clientSecret":{"oneOf":[{"type":"string","example":"test_1234567890","description":"The client secret to use for stripe.js, if the payment gateway is `stripe` and the type is `card`"},{"type":"null","example":"test_1234567890","description":"The client secret to use for stripe.js, if the payment gateway is `stripe` and the type is `card`"}]},"publishableKey":{"oneOf":[{"type":"string","example":"pk_test_1234567890","description":"The publishable key to use for stripe.js, if the payment gateway is `stripe` and the type is `card`"},{"type":"null","example":"pk_test_1234567890","description":"The publishable key to use for stripe.js, if the payment gateway is `stripe` and the type is `card`"}]},"accountId":{"oneOf":[{"type":"string","example":"acct_1234567890","description":"The account id to use for stripe.js, if the payment gateway is `stripe` and the type is `card`"},{"type":"null","example":"acct_1234567890","description":"The account id to use for stripe.js, if the payment gateway is `stripe` and the type is `card`"}]}}}]}},"example":{"action":"client_site_action","details":{"clientSecret":"test_1234567890","publishableKey":"pk_test_1234567890","accountId":"acct_1234567890"}},"uniqueKey":"actionRequired.oneOf.1","typeLabel":"null"}],"uniqueKey":"actionRequired","typeLabel":"object | null"},"failReason":{"oneOf":[{"description":"The fail reason if status is `failed`","type":"string","uniqueKey":"failReason.oneOf.0","typeLabel":"string"},{"description":"The fail reason if status is `failed`","type":"null","uniqueKey":"failReason.oneOf.1","typeLabel":"null"}],"uniqueKey":"failReason","typeLabel":"string | null"},"paymentMethod":{"oneOf":[{"type":"object","description":"The created payment method, if status is `success`","properties":{"id":{"readOnly":true,"type":"string","uniqueKey":"paymentMethod.oneOf.0.id","typeLabel":"string"},"customer":{"type":"string","format":"uuid","example":"ad8f3b9e-1b1a-4b9a-9b9a-9b9a9b9a9b9a","uniqueKey":"paymentMethod.oneOf.0.customer","typeLabel":"string\u003cuuid>"},"gatewayName":{"type":"string","enum":["wallet","sepa_debit","stripe","fake_provider","paypal","bank_transfer","go_cardless","testing"],"uniqueKey":"paymentMethod.oneOf.0.gatewayName","typeLabel":"enum\u003cstring>"},"type":{"oneOf":[{"type":"string","enum":["sepa_debit","card","paypal","bank_transfer","wallet","fake_provider",null],"uniqueKey":"paymentMethod.oneOf.0.type.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["sepa_debit","card","paypal","bank_transfer","wallet","fake_provider",null],"uniqueKey":"paymentMethod.oneOf.0.type.oneOf.1","typeLabel":"null"}],"uniqueKey":"paymentMethod.oneOf.0.type","typeLabel":"enum\u003cstring> | null"},"referenceId":{"oneOf":[{"type":"string","uniqueKey":"paymentMethod.oneOf.0.referenceId.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"paymentMethod.oneOf.0.referenceId.oneOf.1","typeLabel":"null"}],"uniqueKey":"paymentMethod.oneOf.0.referenceId","typeLabel":"string | null"},"default":{"type":"boolean","uniqueKey":"paymentMethod.oneOf.0.default","typeLabel":"boolean"},"status":{"default":"active","example":"active","type":"string","enum":["active","action_required","expired","revoked","gateway_unconfigured"],"uniqueKey":"paymentMethod.oneOf.0.status","typeLabel":"enum\u003cstring>"},"source":{"default":"api","example":"api","type":"string","enum":["checkout","customerfront","api","add_link"],"uniqueKey":"paymentMethod.oneOf.0.source","typeLabel":"enum\u003cstring>"},"enabled":{"type":"boolean","uniqueKey":"paymentMethod.oneOf.0.enabled","typeLabel":"boolean"},"name":{"oneOf":[{"type":"string","uniqueKey":"paymentMethod.oneOf.0.name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"paymentMethod.oneOf.0.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"paymentMethod.oneOf.0.name","typeLabel":"string | null"},"data":{"type":"array","items":{"type":"string","uniqueKey":"paymentMethod.oneOf.0.data.items.[INDEX]","typeLabel":"string"},"uniqueKey":"paymentMethod.oneOf.0.data","typeLabel":"string[]"},"creationDate":{"readOnly":true,"type":"string","format":"date-time","uniqueKey":"paymentMethod.oneOf.0.creationDate","typeLabel":"string\u003cdate-time>"},"expirationDate":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"paymentMethod.oneOf.0.expirationDate.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"paymentMethod.oneOf.0.expirationDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"paymentMethod.oneOf.0.expirationDate","typeLabel":"string\u003cdate-time> | null"},"sepaMandate":{"oneOf":[{"type":"object","description":"The sepa mandate of the payment method, if the gatewayName is \"payment_sepa\"","properties":{"id":{"readOnly":true,"example":"ad8f0b9c-0b1a-4e1a-8b0a-0b1a4e1a8b0a","type":"string","uniqueKey":"paymentMethod.oneOf.0.sepaMandate.oneOf.0.id","typeLabel":"string"},"status":{"description":"The status of the mandate\n\nPossible values:\n * `active`: The mandate is active and can be used for payments\n * `revoked`: The customer has revoked the mandate or a payment was rejected by the bank. The mandate can not be used for payments anymore","example":"active","enum":["active","revoked"],"type":"string","uniqueKey":"paymentMethod.oneOf.0.sepaMandate.oneOf.0.status","typeLabel":"enum\u003cstring>"},"creditorIdentifier":{"readOnly":true,"type":"string","uniqueKey":"paymentMethod.oneOf.0.sepaMandate.oneOf.0.creditorIdentifier","typeLabel":"string"},"mandateReference":{"description":"The reference of the mandate","example":"MNDT-2021-0001","type":"string","uniqueKey":"paymentMethod.oneOf.0.sepaMandate.oneOf.0.mandateReference","typeLabel":"string"},"bankAccount":{"type":"object","description":"The bank account of the mandate","deprecated":false,"properties":{"id":{"readOnly":true,"example":"ad8f0b9c-4b1e-4e0e-8b9c-4b1e4e0e8b9c","type":"string","description":"Unique identifier of the bank account","uniqueKey":"paymentMethod.oneOf.0.sepaMandate.oneOf.0.bankAccount.id","typeLabel":"string"},"iban":{"example":"DE12500105170648489890","type":"string","description":"The IBAN of the bank account","uniqueKey":"paymentMethod.oneOf.0.sepaMandate.oneOf.0.bankAccount.iban","typeLabel":"string"},"bic":{"example":"PBNKDEFFXXX","type":"string","description":"The BIC/SWIFT code of the bank","uniqueKey":"paymentMethod.oneOf.0.sepaMandate.oneOf.0.bankAccount.bic","typeLabel":"string"},"accountHolder":{"example":"Max Mustermann","type":"string","description":"The name of the account holder","uniqueKey":"paymentMethod.oneOf.0.sepaMandate.oneOf.0.bankAccount.accountHolder","typeLabel":"string"},"bankName":{"example":"Commerzbank","type":"string","description":"The name of the bank","uniqueKey":"paymentMethod.oneOf.0.sepaMandate.oneOf.0.bankAccount.bankName","typeLabel":"string"}},"uniqueKey":"paymentMethod.oneOf.0.sepaMandate.oneOf.0.bankAccount","typeLabel":"object"},"sequenceType":{"description":"The sequence type of the mandate\n\nPossible values:\n * `FRST`: The sepa mandate is used for the first time for a recurring payment\n * `RCUR`: The sepa mandate was already used the first time and is now used for recurring payments\n * `FNAL`: The sepa mandate is used for the last time for a recurring payment\n * `OOFF`: The sepa mandate is only allowed to be used for one payment","example":"FRST","enum":["FRST","RCUR","FNAL","OOFF"],"type":"string","uniqueKey":"paymentMethod.oneOf.0.sepaMandate.oneOf.0.sequenceType","typeLabel":"enum\u003cstring>"},"sepaType":{"description":"The type of the mandate\n\nPossible values:\n * `CORE`: The core scheme is used for payments between consumers and companies\n * `B2B`: The B2B scheme is used for payments between companies. No refund is possible\n * `COR1`: The COR1 scheme is used for payments between consumers and companies. The payment is processed faster than with the core scheme","example":"core","enum":["CORE","B2B","COR1"],"type":"string","uniqueKey":"paymentMethod.oneOf.0.sepaMandate.oneOf.0.sepaType","typeLabel":"enum\u003cstring>"}},"uniqueKey":"paymentMethod.oneOf.0.sepaMandate.oneOf.0","typeLabel":"object"},{"type":"null","description":"The sepa mandate of the payment method, if the gatewayName is \"payment_sepa\"","uniqueKey":"paymentMethod.oneOf.0.sepaMandate.oneOf.1","typeLabel":"null"}],"uniqueKey":"paymentMethod.oneOf.0.sepaMandate","typeLabel":"object | null"},"card":{"readOnly":true,"description":"The card data of the payment method, if the type is \"card\"","type":"object","properties":{"brand":{"type":"string","example":"Visa","description":"The brand of the card","uniqueKey":"paymentMethod.oneOf.0.card.brand","typeLabel":"string"},"last4":{"type":"string","example":"4242","description":"The last 4 digits of the card","uniqueKey":"paymentMethod.oneOf.0.card.last4","typeLabel":"string"},"expMonth":{"type":"integer","example":12,"description":"The expiration month of the card","uniqueKey":"paymentMethod.oneOf.0.card.expMonth","typeLabel":"integer"},"expYear":{"type":"integer","example":2022,"description":"The expiration year of the card","uniqueKey":"paymentMethod.oneOf.0.card.expYear","typeLabel":"integer"},"cardHolder":{"type":"string","example":"Max Mustermann","description":"The card holder name","uniqueKey":"paymentMethod.oneOf.0.card.cardHolder","typeLabel":"string"}},"uniqueKey":"paymentMethod.oneOf.0.card","typeLabel":"object"},"sepaDebit":{"readOnly":true,"description":"The sepa mandate data of the payment method, if the type is \"sepa_debit\"","type":"object","properties":{"iban":{"type":"string","example":"DE8937*********3232","description":"The iban of the sepa mandate","uniqueKey":"paymentMethod.oneOf.0.sepaDebit.iban","typeLabel":"string"},"bic":{"type":"string","example":"COBADEFFXXX","description":"The bic of the sepa mandate","uniqueKey":"paymentMethod.oneOf.0.sepaDebit.bic","typeLabel":"string"},"mandateReference":{"type":"string","example":"MNDT-2021-123456","description":"The mandate reference of the sepa mandate","uniqueKey":"paymentMethod.oneOf.0.sepaDebit.mandateReference","typeLabel":"string"},"signingDate":{"type":"string","example":"2021-01-01T00:00:00+00:00","description":"The signing date of the sepa mandate","uniqueKey":"paymentMethod.oneOf.0.sepaDebit.signingDate","typeLabel":"string"}},"uniqueKey":"paymentMethod.oneOf.0.sepaDebit","typeLabel":"object"},"paypal":{"readOnly":true,"description":"The paypal data of the payment method, if the type is \"paypal\"","type":"object","properties":{"email":{"type":"string","example":"max@mustermann.de","description":"The email of the paypal account","uniqueKey":"paymentMethod.oneOf.0.paypal.email","typeLabel":"string"},"billingAgreementId":{"type":"string","example":"I-1J5gqz2eZvKYlo2C2X2X2X2X","description":"The billing agreement id of the paypal account","uniqueKey":"paymentMethod.oneOf.0.paypal.billingAgreementId","typeLabel":"string"}},"uniqueKey":"paymentMethod.oneOf.0.paypal","typeLabel":"object"},"expirationInDays":{"oneOf":[{"readOnly":true,"type":"integer","uniqueKey":"paymentMethod.oneOf.0.expirationInDays.oneOf.0","typeLabel":"integer"},{"readOnly":true,"type":"null","uniqueKey":"paymentMethod.oneOf.0.expirationInDays.oneOf.1","typeLabel":"null"}],"uniqueKey":"paymentMethod.oneOf.0.expirationInDays","typeLabel":"integer | null"}},"uniqueKey":"paymentMethod.oneOf.0","typeLabel":"object"},{"type":"null","description":"The created payment method, if status is `success`","uniqueKey":"paymentMethod.oneOf.1","typeLabel":"null"}],"uniqueKey":"paymentMethod","typeLabel":"object | null"}},"uniqueKey":"","typeLabel":"object"},"example":{"status":"action_required","actionRequired":{"action":"client_site_action","redirectUrl":null,"details":{"clientSecret":"seti_1N5J2n2eZvKYlo2C_secret_abc123","publishableKey":"pk_test_1234567890","accountId":"acct_1234567890"}},"failReason":null,"paymentMethod":null},"examples":{"Example":{"title":"Example","value":{"status":"action_required","actionRequired":{"action":"client_site_action","redirectUrl":null,"details":{"clientSecret":"seti_1N5J2n2eZvKYlo2C_secret_abc123","publishableKey":"pk_test_1234567890","accountId":"acct_1234567890"}},"failReason":null,"paymentMethod":null}}},"exampleType":"examples"}},"links":{},"exampleType":"examples"},"a613b1c9-179f-4e74-b3f0-3706104c705a":{"description":"Invalid input","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"c15cbb67-ed22-4f7c-ae91-43ed59abf0af":{"description":"Unprocessable entity","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"2ae994bc-e306-4563-bcb0-c1954cc14f62":{"JWT":{"type":"http","scheme":"bearer","scopes":["payment-method:add"]}}},"servers":{"987b4dcd-9d5f-4357-a99f-0dbd47556601":{"url":"https://coreapi.io","description":"Production"},"a53b6fbc-bcf4-4920-9f87-1223f86cceba":{"url":"https://preview.coreapi.io","description":"Sandbox"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","scopes":["payment-method:add"]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"JWT","name":"Authorization"}],"title":"JWT"}]},"originalFileLocation":"assets/openapi.json"},"subdomain":"fynnsubscriptionbilling","siteName":"Fynn Docs","title":"Create payment method - Fynn Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"de":{"href":"/api-reference/paymentmethod/create-payment-method","matchLevel":0},"en":{"href":"/en/introduction","matchLevel":4}}},"lastModified":"2026-01-28T23:39:16.246Z","originalFileLocation":"api-reference/paymentmethod/create-payment-method.mdx","locale":"de"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Create a customer\u0026#x27;s payment method Required permissions: payment-method:add\">\u003cmeta data-mint-head name=\"application-name\" content=\"Fynn Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/fynnsubscriptionbilling/aEyoysRsbJwnVfa3/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/fynnsubscriptionbilling/aEyoysRsbJwnVfa3/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/fynnsubscriptionbilling/aEyoysRsbJwnVfa3/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/fynnsubscriptionbilling/aEyoysRsbJwnVfa3/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/fynnsubscriptionbilling/aEyoysRsbJwnVfa3/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/fynnsubscriptionbilling/aEyoysRsbJwnVfa3/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/fynnsubscriptionbilling/aEyoysRsbJwnVfa3/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/fynnsubscriptionbilling/aEyoysRsbJwnVfa3/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/fynnsubscriptionbilling/aEyoysRsbJwnVfa3/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create payment method - Fynn Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create a customer\u0026#x27;s payment method Required permissions: payment-method:add\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Fynn Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.fynn.eu/api-reference/paymentmethod/create-payment-method\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://fynnsubscriptionbilling.mintlify.site/_mintlify/api/og/v2?division=Payment+Method\u0026amp;title=Create+payment+method\u0026amp;description=Create+a+customer%27s+payment+method%0A%0A%3Csup%3ERequired+permissions%3A+%60payment-method%3Aadd%60%3C%2Fsup%3E\u0026amp;theme=4b76c1a49202070b198dd6e7\u0026amp;signature=f3470756771a5a3c354e9a06eee6280faaff822450111169a79e031e36d3cc12\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create payment method - Fynn Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create a customer\u0026#x27;s payment method Required permissions: payment-method:add\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://fynnsubscriptionbilling.mintlify.site/_mintlify/api/og/v2?division=Payment+Method\u0026amp;title=Create+payment+method\u0026amp;description=Create+a+customer%27s+payment+method%0A%0A%3Csup%3ERequired+permissions%3A+%60payment-method%3Aadd%60%3C%2Fsup%3E\u0026amp;theme=4b76c1a49202070b198dd6e7\u0026amp;signature=f3470756771a5a3c354e9a06eee6280faaff822450111169a79e031e36d3cc12\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/fynnsubscriptionbilling/aEyoysRsbJwnVfa3/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Fynn Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#000\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.fynn.eu/api-reference/paymentmethod/create-payment-method\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/paymentmethod/create-payment-method.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.fynn.eu/#organization\",\"name\":\"Fynn Docs\",\"url\":\"https://docs.fynn.eu\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/fynnsubscriptionbilling/kPbBeWVEZfmEic9q/logo/logo-dark.svg?fit=max\u0026auto=format\u0026n=kPbBeWVEZfmEic9q\u0026q=85\u0026s=83e4b30a53d77c3809e0f22afa29335d\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.fynn.eu#website\",\"name\":\"Fynn Docs\",\"url\":\"https://docs.fynn.eu\",\"publisher\":{\"@id\":\"https://docs.fynn.eu/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.fynn.eu/api-reference/paymentmethod/create-payment-method#webpage\",\"url\":\"https://docs.fynn.eu/api-reference/paymentmethod/create-payment-method\",\"name\":\"Create payment method\",\"description\":\"Create a customer's payment method Required permissions: payment-method:add\",\"dateModified\":\"2026-01-28T23:39:16.246Z\",\"isPartOf\":{\"@id\":\"https://docs.fynn.eu#website\"},\"breadcrumb\":{\"@id\":\"https://docs.fynn.eu/api-reference/paymentmethod/create-payment-method#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.fynn.eu/api-reference/paymentmethod/create-payment-method#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Payment\",\"item\":\"https://docs.fynn.eu/api-reference/paymentmethod/get-customers-payment-methods\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Payment Method\",\"item\":\"https://docs.fynn.eu/api-reference/paymentmethod/get-customers-payment-methods\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Create payment method\",\"item\":\"https://docs.fynn.eu/api-reference/paymentmethod/create-payment-method\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.fynn.eu/api-reference/paymentmethod/create-payment-method#apireference\",\"headline\":\"Create payment method\",\"name\":\"Create payment method\",\"description\":\"Create a customer's payment method Required permissions: payment-method:add\",\"url\":\"https://docs.fynn.eu/api-reference/paymentmethod/create-payment-method\",\"mainEntityOfPage\":{\"@id\":\"https://docs.fynn.eu/api-reference/paymentmethod/create-payment-method#webpage\"},\"dateModified\":\"2026-01-28T23:39:16.246Z\",\"publisher\":{\"@id\":\"https://docs.fynn.eu/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.fynn.eu#website\"}}]}\u003c/script>","siteName":"Fynn Docs","nav":{"global":null,"languages":[{"language":"de","default":true,"tabs":[{"tab":"Dokumentation","pages":[{"title":"Dokumentation","href":"/introduction"}]},{"tab":"Integrationen","pages":[{"title":"Integrationen","href":"/integrations/overview"}]},{"tab":"API Referenz","groups":[{"group":"API documentation","pages":[{"title":"Getting started","href":"/api-reference/introduction"},{"title":"Authentication","href":"/api-reference/authentication"},{"group":"Guides","pages":[{"title":"Manage payment methods on your own payment page","href":"/api-reference/guides/add-payment-method"},{"title":"Collect Usage Data","href":"/api-reference/guides/collect-usage-data"},{"title":"Wallet Top-Up","href":"/api-reference/guides/wallet-top-up"},{"title":"Wallet Payout","href":"/api-reference/guides/wallet-payout"},{"title":"Enable manual invoice checks","href":"/api-reference/guides/enable-manual-invoice-check"},{"title":"Implement Self-Service Upgrades","sidebarTitle":"Upgrades \u0026 Downgrades","href":"/api-reference/guides/implement-upgrades"}]},{"group":"Migrations","pages":[{"title":"Migration: Measurements → Nutzungsmetriken","sidebarTitle":"Measurements Deprecation","href":"/api-reference/migrations/measurements-deprecation"}]},{"group":"Usage Events","pages":[{"title":"Usage Events API","href":"/api-reference/usage-events/overview"}]}]},{"group":"User","pages":[{"openapi":"post /auth/register","title":"Register a new user","href":"/api-reference/user/register-a-new-user"},{"openapi":"post /user/complete","title":"Complete the user registration","href":"/api-reference/user/complete-the-user-registration"},{"openapi":"get /user/accounts","title":"Get the current user's accounts","href":"/api-reference/user/get-the-current-users-accounts"},{"openapi":"post /user/default-tenant","title":"Set the default tenant of the current user","href":"/api-reference/user/set-the-default-tenant-of-the-current-user"},{"openapi":"get /user/login-activities","title":"Get all login activities","href":"/api-reference/user/get-all-login-activities"},{"openapi":"get /user/me","title":"Get the current user","href":"/api-reference/user/get-the-current-user"},{"group":"Api Tokens","pages":[{"openapi":"get /user/api-tokens","title":"Get all api tokens","href":"/api-reference/userapitoken/get-all-api-tokens"},{"openapi":"post /user/api-tokens","title":"Create api token","href":"/api-reference/userapitoken/create-api-token"},{"openapi":"delete /user/api-tokens/{id}","title":"Delete api token","href":"/api-reference/userapitoken/delete-api-token"}]}]},{"group":"Tenant","pages":[{"openapi":"post /tenants","title":"Create a new tenant","href":"/api-reference/tenant/create-a-new-tenant"},{"openapi":"get /tenants/{id}","title":"Get a tenant","href":"/api-reference/tenant/get-a-tenant"},{"openapi":"patch /tenants/{id}","title":"Update a tenant","href":"/api-reference/tenant/update-a-tenant"},{"openapi":"get /user/tenants","title":"Get the tenants of the current user","href":"/api-reference/tenant/get-the-tenants-of-the-current-user"}]},{"group":"Customer","pages":[{"openapi":"get /customers","title":"Get customers","href":"/api-reference/customer/get-customers"},{"openapi":"post /customers","title":"Create customer","href":"/api-reference/customer/create-customer"},{"openapi":"get /customers/{id}","title":"Get customer","href":"/api-reference/customer/get-customer"},{"openapi":"put /customers/{id}","title":"Update customer","href":"/api-reference/customer/update-customer"},{"openapi":"put /customers/{id}/archive","title":"Archive customer","href":"/api-reference/customer/archive-customer"},{"openapi":"delete /customers/{id}","title":"Delete customer","href":"/api-reference/customer/delete-customer"},{"openapi":"post /customers/{id}/comment","title":"Add comment","href":"/api-reference/customer/add-comment"},{"group":"Hierarchy","pages":[{"openapi":"put /customers/{customerId}/set-parent","title":"Set parent customer","href":"/api-reference/customer/set-parent-customer"},{"openapi":"put /customers/{customerId}/remove-parent","title":"Remove parent customer","href":"/api-reference/customer/remove-parent-customer"},{"openapi":"get /customers/{customerId}/children","title":"Get customer children","href":"/api-reference/customer/get-customer-children"},{"openapi":"get /customers/{customerId}/hierarchy","title":"Get customer hierarchy","href":"/api-reference/customer/get-customer-hierarchy"}]},{"group":"Address","pages":[{"openapi":"get /customers/{customerId}/addresses","title":"Get all customer addresses","href":"/api-reference/customeraddress/get-all-customer-addresses"},{"openapi":"post /customers/{customerId}/addresses","title":"Add a customer address","href":"/api-reference/customeraddress/add-a-customer-address"},{"openapi":"get /customer-addresses/{id}","title":"Get a customer address","href":"/api-reference/customeraddress/get-a-customer-address"},{"openapi":"put /customer-addresses/{id}","title":"Update a customer address","href":"/api-reference/customeraddress/update-a-customer-address"},{"openapi":"delete /customer-addresses/{id}","title":"Delete a customer address","href":"/api-reference/customeraddress/delete-a-customer-address"},{"openapi":"post /customer-addresses/{id}/default","title":"Set a customer address as default","href":"/api-reference/customeraddress/set-a-customer-address-as-default"},{"openapi":"put /customer-addresses/{id}/unset-default","title":"Unset a customer address as default","href":"/api-reference/customeraddress/unset-a-customer-address-as-default"}]},{"group":"Email","pages":[{"openapi":"get /customers/{customerId}/email-addresses","title":"Get customer email addresses","href":"/api-reference/customeremail/get-customer-email-addresses"},{"openapi":"post /customers/{customerId}/email-addresses","title":"Create customer email address","href":"/api-reference/customeremail/create-customer-email-address"},{"openapi":"get /customer-email-addresses/{id}","title":"Get customer email address","href":"/api-reference/customeremail/get-customer-email-address"},{"openapi":"patch /customer-email-addresses/{id}","title":"Update customer email address","href":"/api-reference/customeremail/update-customer-email-address"},{"openapi":"delete /customer-email-addresses/{id}","title":"Delete customer email address","href":"/api-reference/customeremail/delete-customer-email-address"},{"openapi":"post /customer-email-addresses/{id}/default","title":"Set default customer email address","href":"/api-reference/customeremail/set-default-customer-email-address"}]},{"group":"Settings","pages":[{"openapi":"get /customers/{id}/settings/{context}","title":"Get settings","href":"/api-reference/customersettings/get-settings"},{"openapi":"patch /customers/{id}/settings/{context}","title":"Update settings","href":"/api-reference/customersettings/update-settings"}]},{"group":"Authentication","pages":[{"openapi":"post /customers/{id}/authenticate","title":"Generate customer authentication","href":"/api-reference/customer/authenticate-customer"},{"openapi":"post /customers/{id}/send-login-email","title":"Send login email to customer","href":"/api-reference/customer/send-login-email"},{"openapi":"post /public/customer/request-login-link","title":"Request a login link for the customer portal","href":"/api-reference/customerotp/request-login-link"},{"openapi":"post /public/customer/request-otp","title":"Request a one time token for a customer","href":"/api-reference/customerotp/request-a-one-time-token-for-a-customer"}]}]},{"group":"Catalogue","pages":[{"group":"Unit","pages":[{"openapi":"get /units","title":"Get all units","href":"/api-reference/unit/get-all-units"},{"openapi":"post /units","title":"Create a unit","href":"/api-reference/unit/create-a-unit"},{"openapi":"get /units/{id}","title":"Get a unit","href":"/api-reference/unit/get-a-unit"},{"openapi":"put /units/{id}","title":"Update a unit","href":"/api-reference/unit/update-a-unit"}]},{"group":"Measurement","pages":[{"openapi":"get /catalogue/measurements","title":"Get all measurements.","href":"/api-reference/measurement/get-all-measurements"},{"openapi":"post /catalogue/measurements","title":"Create a measurement.","href":"/api-reference/measurement/create-a-measurement"},{"openapi":"get /catalogue/measurements/{id}","title":"Get a measurement.","href":"/api-reference/measurement/get-a-measurement"},{"openapi":"put /catalogue/measurements/{id}","title":"Update a measurement.","href":"/api-reference/measurement/update-a-measurement"},{"openapi":"delete /catalogue/measurements/{id}","title":"Delete a measurement.","href":"/api-reference/measurement/delete-a-measurement"}]},{"group":"Product","pages":[{"openapi":"get /catalogue/products","title":"Get products","href":"/api-reference/product/get-products"},{"openapi":"post /catalogue/products","title":"Create a product","href":"/api-reference/product/create-a-product"},{"openapi":"get /catalogue/products/{id}","title":"Get a product","href":"/api-reference/product/get-a-product"},{"openapi":"put /catalogue/products/{id}","title":"Update a product","href":"/api-reference/product/update-a-product"},{"openapi":"delete /catalogue/products/{id}","title":"Delete a product","href":"/api-reference/product/delete-a-product"},{"openapi":"put /catalogue/products/{id}/archive","title":"Archive a product","href":"/api-reference/product/archive-a-product"}]},{"group":"Product Family","pages":[{"openapi":"get /product-families","title":"Get a collection of product families","href":"/api-reference/productfamily/get-a-collection-of-product-families"},{"openapi":"post /product-families","title":"Create a product family","href":"/api-reference/productfamily/create-a-product-family"},{"openapi":"get /product-families/{id}","title":"Get a product family","href":"/api-reference/productfamily/get-a-product-family"},{"openapi":"put /product-families/{id}","title":"Update a product family","href":"/api-reference/productfamily/update-a-product-family"},{"openapi":"delete /product-families/{id}","title":"Delete a product family","href":"/api-reference/productfamily/delete-a-product-family"},{"openapi":"put /product-families/{id}/products","title":"Add products to a product family","href":"/api-reference/productfamily/add-products-to-a-product-family"},{"openapi":"get /product-family-tree","title":"Get a product family tree","href":"/api-reference/productfamily/get-a-product-family-tree"}]},{"group":"Product Group","pages":[{"openapi":"get /catalogue/product-groups","title":"Get product groups","href":"/api-reference/productgroup/get-product-groups"},{"openapi":"post /catalogue/product-groups","title":"Create a product group","href":"/api-reference/productgroup/create-product-group"},{"openapi":"get /catalogue/product-groups/{id}","title":"Get a product group","href":"/api-reference/productgroup/get-product-group"},{"openapi":"put /catalogue/product-groups/{id}","title":"Update a product group","href":"/api-reference/productgroup/update-product-group"},{"openapi":"delete /catalogue/product-groups/{id}","title":"Delete a product group","href":"/api-reference/productgroup/delete-product-group"},{"openapi":"put /subscription-items/{id}/product-group","title":"Enable Up- \u0026 Downgrades","sidebarTitle":"Enable Up- \u0026 Downgrades","href":"/api-reference/productgroup/assign-product-group"},{"openapi":"get /subscription-items/{id}/change-options","title":"Get change options","href":"/api-reference/productgroup/get-change-options"},{"openapi":"post /product-group-memberships/{id}/apply","title":"Change Tier","sidebarTitle":"Change Tier","href":"/api-reference/productgroup/apply-membership"}]},{"group":"Price Plan","pages":[{"openapi":"get /price-plans","title":"Get all prices.","href":"/api-reference/priceplan/get-all-prices"},{"openapi":"post /price-plans","title":"Create a new price plan.","href":"/api-reference/priceplan/create-a-new-price-plan"},{"openapi":"get /price-plans/{id}","title":"Get a price.","href":"/api-reference/priceplan/get-a-price"},{"openapi":"put /price-plans/{id}","title":"Update a price plan.","href":"/api-reference/priceplan/update-a-price-plan"},{"openapi":"put /price-plans/{id}/archive","title":"Archive a price plan.","href":"/api-reference/priceplan/archive-a-price-plan"}]},{"group":"Coupon","pages":[{"openapi":"get /coupons","title":"Get all coupons","href":"/api-reference/coupon/get-all-coupons"},{"openapi":"post /coupons","title":"Create a coupon","href":"/api-reference/coupon/create-a-coupon"},{"openapi":"get /coupons/{couponId}/redeemptions","title":"Get all redeemptions for a coupon","href":"/api-reference/coupon/get-all-redeemptions-for-a-coupon"},{"openapi":"get /coupons/{id}","title":"Get a coupon","href":"/api-reference/coupon/get-a-coupon"},{"openapi":"put /coupons/{id}","title":"Update a coupon","href":"/api-reference/coupon/update-a-coupon"},{"openapi":"delete /coupons/{id}","title":"Delete a coupon","href":"/api-reference/coupon/delete-a-coupon"},{"openapi":"put /coupons/{id}/toggle","title":"Toggle a coupon","href":"/api-reference/coupon/toggle-a-coupon"}]}]},{"group":"Subscription","pages":[{"openapi":"get /subscriptions","title":"Get all subscriptions","href":"/api-reference/subscription/get-all-subscriptions"},{"openapi":"post /subscriptions","title":"Create subscription","href":"/api-reference/subscription/create-subscription"},{"openapi":"post /subscriptions/from-plan","title":"Create subscription from plan","href":"/api-reference/subscription/create-subscription-from-plan"},{"openapi":"get /subscriptions/{id}","title":"Get subscription","href":"/api-reference/subscription/get-subscription"},{"openapi":"put /subscriptions/{id}","title":"Update subscription","href":"/api-reference/subscription/update-subscription"},{"openapi":"delete /subscriptions/{id}","title":"Delete subscription","href":"/api-reference/subscription/delete-subscription"},{"openapi":"put /subscriptions/{id}/activate","title":"Activate subscription","href":"/api-reference/subscription/activate-subscription"},{"openapi":"get /subscriptions/{id}/estimated-amount","title":"Get estimated amount","href":"/api-reference/subscription/get-estimated-amount"},{"openapi":"get /subscriptions/{id}/estimated-invoice","title":"Get estimated invoice","href":"/api-reference/subscription/get-estimated-invoice"},{"openapi":"put /subscriptions/{id}/extend-trial","title":"Extend trial","href":"/api-reference/subscription/extend-trial"},{"openapi":"put /subscriptions/{id}/invoice-address","title":"Update invoice address","href":"/api-reference/subscription/update-invoice-address"},{"openapi":"put /subscriptions/{id}/pause","title":"Pause subscription","href":"/api-reference/subscription/pause-subscription"},{"openapi":"put /subscriptions/{id}/payment-method","title":"Update payment method","href":"/api-reference/subscription/update-payment-method"},{"openapi":"post /subscriptions/{id}/products","title":"Order products","href":"/api-reference/subscription/order-products"},{"openapi":"put /subscriptions/{id}/resume","title":"Resume subscription","href":"/api-reference/subscription/resume-subscription"},{"openapi":"put /subscriptions/{id}/revoke-trial","title":"Revoke trial","href":"/api-reference/subscription/revoke-trial"},{"openapi":"put /subscriptions/{id}/cancel","title":"Cancel subscription","href":"/api-reference/subscription/cancel-subscription"},{"title":"Subscription Transition","href":"/api-reference/subscription/transition"},{"openapi":"post /subscriptions/{id}/comment","title":"Add comment","href":"/api-reference/subscription/add-comment"},{"group":"Item","pages":[{"openapi":"get /subscription-items/{id}","title":"Get a subscription item.","href":"/api-reference/subscriptionitem/get-a-subscription-item"},{"openapi":"patch /subscription-items/{id}","title":"Update a subscription item.","href":"/api-reference/subscriptionitem/update-a-subscription-item"},{"openapi":"delete /subscription-items/{id}","title":"Remove a subscription item.","href":"/api-reference/subscriptionitem/remove-a-subscription-item"},{"openapi":"get /subscription-item-applied-discounts/{id}","title":"Get a subscription item applied discount.","href":"/api-reference/subscriptionitem/get-a-subscription-item-applied-discount"},{"openapi":"get /subscription-items/{id}/estimated-amount","title":"Get estimated amount","href":"/api-reference/subscriptionitem/get-estimated-amount"}]},{"group":"Measurement","pages":[{"openapi":"post /subscription-measurements","title":"Add a subscription measurement.","href":"/api-reference/subscription-measurement/add-a-subscription-measurement"},{"openapi":"post /subscription-measurements/batch","title":"Add a batch of subscription measurement.","href":"/api-reference/subscription-measurement/add-a-batch-of-subscription-measurement"},{"openapi":"get /subscription-measurements/{id}","title":"Get a subscription measurement.","href":"/api-reference/subscription-measurement/get-a-subscription-measurement"}]},{"group":"Billing Group","pages":[{"openapi":"get /customers/{customerId}/billing-groups","title":"Get a collection of billing groups","href":"/api-reference/billinggroup/get-a-collection-of-billing-groups"},{"openapi":"post /billing-groups","title":"Create a billing group","href":"/api-reference/billinggroup/create-a-billing-group"},{"openapi":"get /billing-groups/{id}","title":"Get a billing group","href":"/api-reference/billinggroup/get-a-billing-group"}]}]},{"group":"Invoice","pages":[{"openapi":"get /invoices","title":"Get invoices","href":"/api-reference/invoice/get-invoices"},{"openapi":"post /invoices","title":"Create draft invoice","href":"/api-reference/invoice/create-draft-invoice"},{"openapi":"get /invoices/{id}","title":"Get invoice","href":"/api-reference/invoice/get-invoice"},{"openapi":"put /invoices/{id}","title":"Update draft invoice","href":"/api-reference/invoice/update-draft-invoice"},{"openapi":"delete /invoices/{id}","title":"Delete invoice","href":"/api-reference/invoice/delete-invoice"},{"openapi":"post /invoices/{id}/finalize","title":"Finalize invoice","href":"/api-reference/invoice/finalize-invoice"},{"openapi":"post /invoices/{id}/pdf","title":"Upload custom invoice PDF","href":"/api-reference/invoice/upload-invoice-pdf"},{"openapi":"post /invoices/{id}/cancel","title":"Cancel invoice","href":"/api-reference/invoice/cancel-invoice"},{"openapi":"post /invoices/{id}/credit","title":"Credit invoice","href":"/api-reference/invoice/credit-invoice"},{"openapi":"post /invoices/{id}/duplicate","title":"Duplicate invoice","href":"/api-reference/invoice/duplicate-invoice"},{"openapi":"put /invoices/{id}/resend","title":"Resend invoice","href":"/api-reference/invoice/resend-invoice"},{"openapi":"put /invoices/{id}/download-link","title":"Get invoice download link","href":"/api-reference/invoice/get-invoice-download-link"},{"openapi":"get /invoices/{id}/preview","title":"Get invoice preview","href":"/api-reference/invoice/get-invoice-preview"},{"openapi":"put /invoices/{id}/close","title":"Close invoice","href":"/api-reference/invoice/close-invoice"},{"openapi":"post /invoices/{id}/payments","title":"Add invoice payment","href":"/api-reference/invoice/add-invoice-payment"},{"openapi":"post /invoices/{id}/customer-address","title":"Set invoice customer address","href":"/api-reference/invoice/set-invoice-customer-address"},{"openapi":"post /invoices/{id}/payment-method","title":"Set invoice payment method","href":"/api-reference/invoice/set-invoice-payment-method"},{"openapi":"put /invoices/{id}/internal-note","title":"Set invoice note","href":"/api-reference/invoice/set-invoice-note"},{"openapi":"put /invoices/{id}/dunning","title":"Toggle dunning","href":"/api-reference/invoice/toggle-dunning"},{"openapi":"post /invoices/{id}/position-items","title":"Add invoice position items","href":"/api-reference/invoice/add-invoice-position-items"},{"openapi":"post /invoices/{id}/comment","title":"Add comment","href":"/api-reference/invoice/add-comment"},{"group":"Position Item","pages":[{"openapi":"get /invoice-position-items/{id}","title":"Get an invoice position item","href":"/api-reference/invoicepositionitem/get-an-invoice-position-item"},{"openapi":"put /invoice-position-items/{id}","title":"Update an invoice position item","href":"/api-reference/invoicepositionitem/update-an-invoice-position-item"},{"openapi":"delete /invoice-position-items/{id}","title":"Delete an invoice position item","href":"/api-reference/invoicepositionitem/delete-an-invoice-position-item"}]},{"group":"Billing Run","pages":[{"openapi":"get /invoices/{invoiceId}/billing-run","title":"Get billing run details for an invoice","href":"/api-reference/billingrun/get-billing-run-details-for-an-invoice"}]}]},{"group":"Payment","pages":[{"group":"Payment Method","pages":[{"openapi":"get /customers/{customerId}/payment-methods","title":"Get customer's payment methods","description":"Get customer's payment methods.\n\n\u003csup>Required permissions: `payment-method:read`, `customer:payment-method:read`\u003c/sup>","href":"/api-reference/paymentmethod/get-customers-payment-methods"},{"openapi":"post /payment-methods","title":"Create payment method","href":"/api-reference/paymentmethod/create-payment-method"},{"openapi":"post /payment-methods/link","title":"Create payment method link","description":"Create a link to request the customer to add a new payment method. The link can be sent to the customer via email.\n\n\u003csup>Required permissions: `payment-method:add`\u003c/sup>","href":"/api-reference/paymentmethod/create-payment-method-link"},{"openapi":"post /payment-methods/migrate/stripe","title":"Migrate stripe payment methods","href":"/api-reference/paymentmethod/migrate-stripe-payment-methods"},{"openapi":"post /payment-methods/{id}/document","title":"Upload a document for a payment method","href":"/api-reference/paymentmethod/upload-a-document-for-a-payment-method"}]},{"group":"Transaction","pages":[{"openapi":"get /payment/transactions","title":"Get transactions","href":"/api-reference/payment-transaction/get-transactions"},{"openapi":"get /payment/transactions/{id}","title":"Get transaction","href":"/api-reference/payment-transaction/get-transaction"}]},{"group":"SEPA XML","pages":[{"openapi":"get /sepa-xml-files","title":"Get a list of SEPA XML files","href":"/api-reference/sepaxmlstatement/get-a-list-of-sepa-xml-files"},{"openapi":"post /sepa-xml-files/generate","title":"Generate a SEPA XML file","href":"/api-reference/sepaxmlstatement/generate-a-sepa-xml-file"},{"openapi":"get /sepa-xml-files/{id}","title":"Get a SEPA XML file","href":"/api-reference/sepaxmlstatement/get-a-sepa-xml-file"},{"openapi":"delete /sepa-xml-files/{id}","title":"Delete a SEPA XML file","href":"/api-reference/sepaxmlstatement/delete-a-sepa-xml-file"},{"openapi":"put /sepa-xml-files/{id}/uploaded","title":"Mark a SEPA XML file as uploaded","href":"/api-reference/sepaxmlstatement/mark-a-sepa-xml-file-as-uploaded"},{"openapi":"get /sepa-xml-payments/{id}","title":"Get a Sepa XML payment","href":"/api-reference/sepa-xml-payments/get-a-sepa-xml-payment"}]},{"group":"Open Banking","pages":[{"openapi":"post /klarna/connect","title":"Connect Klarna","href":"/api-reference/open-banking/connect-klarna"},{"openapi":"get /open-banking-accounts","title":"Get connected open banking accounts","href":"/api-reference/open-banking/get-connected-open-banking-accounts"},{"openapi":"get /open-banking-accounts/{id}","title":"Get open banking account","href":"/api-reference/open-banking/get-open-banking-account"},{"openapi":"put /open-banking-accounts/{id}/disconnect","title":"Disconnect open banking account","href":"/api-reference/open-banking/disconnect-open-banking-account"},{"openapi":"post /api/open-banking-accounts/{id}/fetch-transactions","title":"Trigger a transaction fetch for an open banking account","href":"/api-reference/open-banking/fetch-open-banking-account-transactions"}]},{"group":"Bank Transaction","pages":[{"openapi":"get /payment/bank-account-transactions","title":"Get bank account transactions","href":"/api-reference/bankaccounttransaction/get-bank-account-transactions"},{"openapi":"get /payment/bank-account-transactions/{id}","title":"Get bank account transaction details","href":"/api-reference/bankaccounttransaction/get-bank-account-transaction-details"},{"openapi":"get /payment/bank-account-transaction-assignments/{id}","title":"Get a bank account transaction assignment","href":"/api-reference/bankaccounttransaction/get-a-bank-account-transaction-assignment"},{"openapi":"put /payment/bank-account-transactions/{id}/assign-invoices","title":"Assign invoices to the bank account transaction.","href":"/api-reference/bankaccounttransaction/assign-invoices-to-the-bank-account-transaction"},{"title":"Assign Invoices and Book the Remainder","sidebarTitle":"Assign with Disposition","href":"/api-reference/bankaccounttransaction/assign-with-disposition"},{"openapi":"put /payment/bank-account-transactions/accept-suggestions","title":"Accept the suggestions","href":"/api-reference/bankaccounttransaction/accept-the-suggestions"},{"openapi":"put /payment/bank-account-transactions/ignore","title":"Ignore bank account transactions.","href":"/api-reference/bankaccounttransaction/ignore-bank-account-transactions"},{"openapi":"get /payment/bank-account-transactions/status-count","title":"Get the status count of the bank account transactions","href":"/api-reference/bankaccounttransaction/get-the-status-count-of-the-bank-account-transactions"}]}]},{"group":"Dunning","pages":[{"openapi":"get /dunning/documents","title":"Get dunning documents","href":"/api-reference/dunningdocument/get-dunning-documents"},{"openapi":"get /dunning/documents/{id}","title":"Get dunning document","href":"/api-reference/dunningdocument/get-dunning-document"},{"openapi":"put /dunning/documents/{id}/cancel","title":"Cancel dunning document","href":"/api-reference/dunningdocument/cancel-dunning-document"},{"group":"Rules","pages":[{"openapi":"get /dunning/overdue-rules","title":"Get overdue rules","href":"/api-reference/overduerule/get-overdue-rules"},{"openapi":"put /dunning/overdue-rules/{id}","title":"Update overdue rule","href":"/api-reference/overduerule/update-overdue-rule"}]}]},{"group":"Offer","pages":[{"openapi":"get /offers","title":"Get offers","href":"/api-reference/offer/get-offers"},{"openapi":"post /subscriptions/{id}/offers","title":"[Deprecated, removed 2026-08-01] Create an offer","href":"/api-reference/offer/create-an-offer"},{"openapi":"get /offers/{id}","title":"[Deprecated, removed 2026-08-01] Get an offer","href":"/api-reference/offer/get-an-offer"},{"openapi":"put /offers/{id}","title":"Update an offer","href":"/api-reference/offer/update-an-offer"},{"openapi":"get /offers/{id}/document","title":"[Deprecated, removed 2026-08-01] Get a offer document","href":"/api-reference/offer/get-a-offer-document"},{"openapi":"get /public/offers/{id}","title":"[Deprecated, removed 2026-08-01] Get a public offer","href":"/api-reference/offer/get-a-public-offer"},{"openapi":"get /public/offers/{id}/document","title":"[Deprecated, removed 2026-08-01] Get a public offer document","href":"/api-reference/offer/get-a-public-offer-document"},{"openapi":"post /offers/{id}/recipients","title":"Add a recipient to an offer","href":"/api-reference/offer/add-a-recipient-to-an-offer"},{"openapi":"get /public/offers/{id}/sign","title":"[Deprecated, removed 2026-08-01] Start signing an offer","href":"/api-reference/offer/start-signing-an-offer"},{"group":"Recipient","pages":[{"openapi":"delete /offer-recipients/{id}","title":"Remove an offer recipient","href":"/api-reference/offerrecipient/remove-an-offer-recipient"},{"openapi":"put /offer-recipients/{id}/role","title":"Change the role of an offer recipient","href":"/api-reference/offerrecipient/change-the-role-of-an-offer-recipient"}]},{"group":"Template","pages":[{"openapi":"get /offer-templates","title":"Get offer templates","href":"/api-reference/offertemplate/get-offer-templates"},{"openapi":"post /offer-templates","title":"Create an offer template","href":"/api-reference/offertemplate/create-an-offer-template"},{"openapi":"get /offer-templates/{id}","title":"Get an offer template","href":"/api-reference/offertemplate/get-an-offer-template"},{"openapi":"put /offer-templates/{id}","title":"Update an offer template","href":"/api-reference/offertemplate/update-an-offer-template"}]}]},{"group":"Checkout","pages":[{"group":"Checkout Link","pages":[{"openapi":"post /checkout-links","title":"Create a checkout link","href":"/api-reference/checkoutlink/create-a-checkout-link"},{"openapi":"get /checkout-links/{id}","title":"Get a checkout link","href":"/api-reference/checkoutlink/get-a-checkout-link"},{"openapi":"put /checkout-links/{id}","title":"Update a checkout link","href":"/api-reference/checkoutlink/update-a-checkout-link"},{"openapi":"get /checkout-link-items/{id}","title":"Get a checkout link item","href":"/api-reference/checkoutlinkitem/get-a-checkout-link-item"},{"openapi":"post /checkout-links/{id}/cart","title":"Create a cart from a checkout link","href":"/api-reference/checkoutlink/create-a-cart-from-a-checkout-link"}]},{"group":"Cart","pages":[{"openapi":"get /checkout/carts","title":"Retrieves completed carts of the current tenant.","href":"/api-reference/cart/retrieves-completed-carts-of-the-current-tenant"},{"openapi":"get /checkout/carts/{id}","title":"Retrieves a cart by its ID.","href":"/api-reference/cart/retrieves-a-cart-by-its-id"},{"openapi":"get /public/checkout/cart/{id}","title":"Retrieves a cart by its ID.","href":"/api-reference/cart/retrieves-a-cart-by-its-id-1"},{"openapi":"put /public/checkout/cart/{id}/change-quantity","title":"Changes the quantity of a cart item.","href":"/api-reference/cart/changes-the-quantity-of-a-cart-item"},{"openapi":"put /public/checkout/cart/{id}/confirm","title":"Confirms a cart.","href":"/api-reference/cart/confirms-a-cart"},{"openapi":"put /public/checkout/cart/{id}/confirm-otp","title":"Confirms the OTP of a cart.","href":"/api-reference/cart/confirms-the-otp-of-a-cart"},{"openapi":"get /public/checkout/cart/{id}/invoice-addresses","title":"Retrieves the invoice addresses of a cart.","href":"/api-reference/cart/retrieves-the-invoice-addresses-of-a-cart"},{"openapi":"get /public/checkout/cart/{id}/payment-methods","title":"Retrieves the payment methods of a cart.","href":"/api-reference/cart/retrieves-the-payment-methods-of-a-cart"},{"openapi":"put /public/checkout/cart/{id}/prepare-stripe","title":"Prepares a cart for stripe.","href":"/api-reference/cart/prepares-a-cart-for-stripe"}]}]},{"group":"Feature \u0026 Entitlement","pages":[{"openapi":"get /entitlement/features","title":"Get features","href":"/api-reference/feature/get-features"},{"openapi":"post /entitlement/features","title":"Create feature","href":"/api-reference/feature/create-feature"},{"openapi":"get /entitlement/features/{id}","title":"Get feature","href":"/api-reference/feature/get-feature"},{"openapi":"put /entitlement/features/{id}","title":"Update feature","href":"/api-reference/feature/update-feature"},{"openapi":"put /entitlement/features/{id}/status","title":"Update feature status","href":"/api-reference/feature/update-feature-status"},{"openapi":"post /entitlement/feature-assignments","title":"Assign feature","href":"/api-reference/feature/assign-feature"},{"openapi":"delete /entitlement/feature-assignments/{id}","title":"Unassign feature","href":"/api-reference/feature/unassign-feature"},{"openapi":"get /entitlement/feature-assignments","title":"Get feature assignments","href":"/api-reference/feature/get-feature-assignments"},{"group":"Entitlement","pages":[{"openapi":"get /subscriptions/{id}/available-features","title":"Get available features","href":"/api-reference/entitlement/get-available-features"},{"openapi":"post /subscriptions/{subscriptionId}/entitlements","title":"Add subscription entitlement","href":"/api-reference/entitlement/add-subscription-entitlement"},{"openapi":"get /subscriptions/{subscriptionId}/entitlements","title":"Get subscription entitlements","href":"/api-reference/entitlement/get-subscription-entitlements"},{"openapi":"post /subscription-items/{subscriptionItemId}/entitlements","title":"Add subscription item entitlement","href":"/api-reference/entitlement/add-subscription-item-entitlement"},{"openapi":"get /subscription-items/{subscriptionItemId}/entitlements","title":"Get subscription item entitlements","href":"/api-reference/entitlement/get-subscription-item-entitlements"},{"openapi":"put /entitlements/{id}/status","title":"Update entitlement status","href":"/api-reference/entitlement/update-entitlement-status"},{"openapi":"delete /entitlements/{id}","title":"Delete entitlement","href":"/api-reference/entitlement/delete-entitlement"}]}]},{"group":"Analytics","pages":[{"openapi":"get /analytics/series/{type}","title":"Get series data","href":"/api-reference/analytics/get-series-data"},{"openapi":"get /analytics/subscription-revenue","title":"Get series data for subscription","href":"/api-reference/analytics/get-series-data-for-subscription"}]},{"group":"Accounting","pages":[{"openapi":"get /accounting/accounts","title":"Get accounts","href":"/api-reference/accounting/get-accounts"},{"openapi":"put /accounting/accounts/{id}","title":"Update account","href":"/api-reference/accounting/update-account"},{"openapi":"get /accounting/postings","title":"Get postings","href":"/api-reference/accounting/get-postings"},{"group":"Cost Centre","pages":[{"openapi":"get /accounting/cost-centres","title":"Get all cost centres","href":"/api-reference/costcentre/get-all-cost-centres"},{"openapi":"post /accounting/cost-centres","title":"Add a cost centre","href":"/api-reference/costcentre/add-a-cost-centre"},{"openapi":"post /accounting/cost-centres/import","title":"Import cost centres","href":"/api-reference/costcentre/import-cost-centres"},{"openapi":"get /accounting/cost-centres/{id}","title":"Get a cost centre","href":"/api-reference/costcentre/get-a-cost-centre"},{"openapi":"patch /accounting/cost-centres/{id}","title":"Update a cost centre","href":"/api-reference/costcentre/update-a-cost-centre"}]},{"group":"Tax","pages":[{"openapi":"get /tax-groups","title":"Get tax groups","href":"/api-reference/tax/get-tax-groups"},{"openapi":"get /tax-groups/{id}","title":"Get tax group","href":"/api-reference/tax/get-tax-group"}]}]},{"group":"Settings","pages":[{"openapi":"get /settings/{context}","title":"Get settings","href":"/api-reference/settings/get-settings"},{"openapi":"patch /settings/{context}","title":"Update settings key","href":"/api-reference/settings/update-settings-key"},{"group":"User \u0026 Permissions","pages":[{"openapi":"get /tenant/accounts","title":"Get all accounts of the current tenant.","href":"/api-reference/account/get-all-accounts-of-the-current-tenant"},{"openapi":"put /accounts/{id}/deactivate","title":"Deactivate account","href":"/api-reference/account/deactivate-account"},{"openapi":"put /accounts/{id}/reactivate","title":"Reactivate account","href":"/api-reference/account/reactivate-account"},{"openapi":"put /accounts/{id}/role","title":"Update account role","href":"/api-reference/account/update-account-role"}]},{"group":"Media","pages":[{"openapi":"get /media","title":"Get all medias","href":"/api-reference/media/get-all-medias"},{"openapi":"post /media","title":"Upload a file","href":"/api-reference/media/upload-a-file"},{"openapi":"get /media-folders","title":"Get media folders","href":"/api-reference/media/get-media-folders"},{"openapi":"get /media/{id}","title":"Get a media","href":"/api-reference/media/get-a-media"},{"openapi":"post /media/{id}/download-token","title":"Create download token","href":"/api-reference/media/create-download-token"},{"openapi":"get /media/{id}/download/{token}","title":"Download by token","href":"/api-reference/media/download-by-token"}]},{"group":"Webhook","pages":[{"openapi":"get /available-webhook-events","title":"Get available webhook events","href":"/api-reference/webhook/get-available-webhook-events"},{"openapi":"get /webhooks","title":"Get webhooks","href":"/api-reference/webhook/get-webhooks"},{"openapi":"post /webhooks","title":"Add webhook","href":"/api-reference/webhook/add-webhook"},{"openapi":"get /webhooks/{id}","title":"Get webhook","href":"/api-reference/webhook/get-webhook"},{"openapi":"patch /webhooks/{id}","title":"Update webhook","href":"/api-reference/webhook/update-webhook"},{"openapi":"delete /webhooks/{id}","title":"Delete webhook","href":"/api-reference/webhook/delete-webhook"},{"openapi":"get /webhook-results","title":"Get webhook results","href":"/api-reference/webhook/get-webhook-results"},{"openapi":"get /webhook-results/{id}","title":"Get webhook result","href":"/api-reference/webhook/get-webhook-result"}]},{"group":"Notification","pages":[{"openapi":"get /notifications","title":"Get notifications","href":"/api-reference/sentnotification/get-notifications"},{"openapi":"get /notifications/{id}","title":"Get a notification","href":"/api-reference/sentnotification/get-a-notification"}]}]}]},{"tab":"API V2","pages":[{"title":"API V2","href":"/v2-plans-api/introduction"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog/2026-07"}]}]},{"language":"en","pages":[{"title":"en","href":"/en/introduction"}]}]},"basePath":"","title":"Create payment method - Fynn Docs","buildId":"dpl_BLQvU86QFwq3AhPofSTw6q8dGWKm","deploymentId":"dpl_BLQvU86QFwq3AhPofSTw6q8dGWKm","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-Myd8dsju.js","utils-C2HkQgW0.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-8rSppmTv.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-B6MjiCFm.js","snippetPresets-DwrSAONL.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-1-a5UQKQ.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-C541m7wZ.js","shallow-CWELCZ77.js","getApiPlaygroundDisplay-CTo5Zn03.js","CodeSnippet-D--dzvnl.js","CodeSnippets-DM3cXEDh.js","Page-CxAy5y67.js","getPastedJson-C-VECgcL.js","icon-BPq2-Mg3.js","MethodPill-D9J5cUHd.js","DuplicateIcon-BqHaxUnD.js","createIcon-CIbcZHp9.js","DynamicMarkdown-BKiHAm_d.js","SectionHeading-DstQXt3H.js","axios-vUo_bRtp.js","Markdown-CpxgzsKA.js","clsx-C5EfhVm0.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CJ9Oly2E.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-Mk6P3qvh.js"]}