Apps using the Commerce API can embed Goody’s credit card form into their application to allow the app’s end users to enter their credit card to save a payment method. Users can then use that payment method to pay for orders.Call this endpoint to create a payment method associated with a commerce user; provide the user ID as commerce_end_user_id. Then, use the returned payment method id as the payment_method_id in the Create an Order Batch endpoint along with the commerce_end_user_id.For more information, refer to Embedded Payment Form.
{"docsConfig":{"theme":"maple","$schema":"https://mintlify.com/docs.json","name":"Goody Developers","description":"Build on Goody: send gifts and physical products programmatically with the Goody API, or gift in natural language from Claude and other AI assistants with the Goody MCP server.","colors":{"primary":"#9159D6","light":"#B584F1","dark":"#9159D6"},"logo":{"light":"https://mintcdn.com/goody/UtvUnxw3LhFrdzGW/logo.svg?fit=max\u0026auto=format\u0026n=UtvUnxw3LhFrdzGW\u0026q=85\u0026s=271862d59190ae3cec0a504caf00f0dc","dark":"https://mintcdn.com/goody/UtvUnxw3LhFrdzGW/logo.svg?fit=max\u0026auto=format\u0026n=UtvUnxw3LhFrdzGW\u0026q=85\u0026s=271862d59190ae3cec0a504caf00f0dc"},"favicon":"https://mintcdn.com/goody/UtvUnxw3LhFrdzGW/favicon.png?fit=max\u0026auto=format\u0026n=UtvUnxw3LhFrdzGW\u0026q=85\u0026s=974bb2155b182f71382074bbbd8d109c","api":{"openapi":"goody-api-openapi.json","mdx":{"auth":{"method":"bearer"},"server":"https://api.ongoody.com"}},"navbar":{"links":[{"href":"https://www.ongoody.com/plus/organization/api/commerce","label":"Commerce API Keys"},{"href":"https://www.ongoody.com/plus/organization/api/automation","label":"Automation API Keys"}]},"footer":{"socials":{"twitter":"https://twitter.com/goodygifting","linkedin":"https://www.linkedin.com/company/ongoody","instagram":"https://instagram.com/ongoody"}},"seo":{"metatags":{"og:site_name":"Goody Developers","twitter:card":"summary_large_image","keywords":"Goody API, Goody MCP server, gifting API, gift API, MCP server, send gifts with AI, Claude gifting connector, business gifting, autogift"}},"integrations":{"ga4":{"measurementId":"G-7CST37MNCX"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"goody","hasAudioNarration":false,"actualSubdomain":"goody","customDomains":["developer.ongoody.com"],"gitSource":{"type":"github","owner":"mark-goody","repo":"api-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ac7a8825b1873d75a499d88","collectionId":"f8a426a1-1ab1-423e-bb23-3c796a6f3de8","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ac7a8825b1873d75a499d88"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ac7a8825b1873d75a499d88","clientVersion":"0.0.4006","searchFilterCounts":[{"language":"default","tag":"Schemas","count":46},{"language":"default","tag":"API Reference","count":44},{"language":"default","tag":"Documentation","count":38},{"language":"default","tag":"MCP Reference","count":31},{"language":"default","tag":"Webhooks","count":12},{"language":"default","tag":"Events","count":10},{"language":"default","tag":"Commerce API","count":8},{"language":"default","tag":"Automation API","count":7},{"language":"default","tag":"Send \u0026 track gifts","count":7},{"language":"default","tag":"Order Batches","count":6}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"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":"editor-v7-file-tree","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":"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":"pause-universal-search-reconcile","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":"per-site-search-delta","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":"editor-private-page-search","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":"editor-nav-generations","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":"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":"byok-sep-25","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":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","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":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/commerce-user-payment-methods/create-a-commerce-user-payment-method","slug":"/api-reference/commerce-user-payment-methods/create-a-commerce-user-payment-method","pageMetadata":{"openapi":"POST /v1/commerce_user_payment_methods","title":"Create a commerce user payment method","description":null,"href":"/api-reference/commerce-user-payment-methods/create-a-commerce-user-payment-method"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,..._provideComponents(),...props.components},{Note}=_components;if(!Note)_missingMdxReference(`Note`,true);return _jsxs(_Fragment,{children:[_jsx(Note,{children:_jsx(_components.p,{children:`Only for the Commerce API.`})}),`\n`,_jsx(_components.p,{children:`Apps using the Commerce API can embed Goody’s credit card form into their application to allow the app’s end users to enter their credit card to save a payment method. Users can then use that payment method to pay for orders.`}),`\n`,_jsxs(_components.p,{children:[`Call this endpoint to create a payment method associated with a commerce user; provide the user ID as `,_jsx(_components.code,{children:`commerce_end_user_id`}),`. Then, use the returned payment method `,_jsx(_components.code,{children:`id`}),` as the `,_jsx(_components.code,{children:`payment_method_id`}),` in the `,_jsx(_components.a,{href:`/api-reference/order-batches/create-an-order-batch`,children:`Create an Order Batch`}),` endpoint along with the `,_jsx(_components.code,{children:`commerce_end_user_id`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`For more information, refer to `,_jsx(_components.a,{href:`/commerce-api/embedded-payment-form`,children:`Embedded Payment Form`}),`.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"openapi":"POST /v1/commerce_user_payment_methods","title":"Create a commerce user payment method","description":null,"href":"/api-reference/commerce-user-payment-methods/create-a-commerce-user-payment-method"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Create a commerce user payment method","tags":["Commerce User Payment Methods"],"security":["a0c291d3-0080-414c-a681-32b29b5cdb48"],"parameters":[],"responses":{"201":"137d5293-9bd0-4675-ad0d-448dfb93dbda","400":"41c62319-f814-452a-b78a-f4bc7c9275c8"},"requestBody":"16d99863-d5b0-4ccb-99ea-25422b22da9d","method":"post","type":"path","servers":["4a853b92-1c76-4ffd-85bf-5a5539f2953d","dd210492-7675-40b8-833a-2901e08fdf59"],"path":"/v1/commerce_user_payment_methods","baseUrlOptions":["https://api.ongoody.com","https://api.sandbox.ongoody.com"],"title":"Create a commerce user payment method","description":"","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"cardholder_name":{"type":"string","description":"The name on the card.","isRequired":true,"uniqueKey":"cardholder_name","typeLabel":"string"},"commerce_end_user_id":{"type":"string","description":"The user ID of the user in *your* app to associate this payment method with.","isRequired":true,"uniqueKey":"commerce_end_user_id","typeLabel":"string"},"payment_method_type":{"type":"string","description":"The type of payment method to create. Currently, only `card` is supported.","isRequired":true,"uniqueKey":"payment_method_type","typeLabel":"string"},"interim_card_key":{"type":"string","description":"The key for the interim card to use for the payment method.","isRequired":true,"uniqueKey":"interim_card_key","typeLabel":"string"},"billing_address":{"type":"object","properties":{"address_1":{"type":"string","isRequired":true,"uniqueKey":"billing_address.address_1","typeLabel":"string"},"city":{"type":"string","isRequired":true,"uniqueKey":"billing_address.city","typeLabel":"string"},"state":{"type":"string","isRequired":true,"uniqueKey":"billing_address.state","typeLabel":"string"},"postal_code":{"type":"string","isRequired":true,"uniqueKey":"billing_address.postal_code","typeLabel":"string"},"country":{"type":"string","description":"The two-letter country code, e.g. `US`.","isRequired":true,"uniqueKey":"billing_address.country","typeLabel":"string"},"address_2":{"oneOf":[{"type":"string","uniqueKey":"billing_address.address_2.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"billing_address.address_2.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_address.address_2","typeLabel":"string | null"}},"required":["address_1","city","state","postal_code","country"],"isRequired":true,"uniqueKey":"billing_address","typeLabel":"object"}},"required":["cardholder_name","commerce_end_user_id","payment_method_type","interim_card_key","billing_address"],"uniqueKey":"","typeLabel":"object"},"examples":{"Commerce user payment method created":{"title":"Commerce user payment method created","value":{"cardholder_name":"John Doe","commerce_end_user_id":"test_user_pm_2331d26e","payment_method_type":"card","interim_card_key":"X9edbacqt1CBCRRKRLkuiINj","billing_address":{"address_1":"123 Main St","address_2":"Apt 4B","city":"New York","state":"NY","postal_code":"10001","country":"US"}}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"137d5293-9bd0-4675-ad0d-448dfb93dbda":{"description":"Commerce user payment method created","content":{"application/json":{"examples":{"Commerce user payment method created":{"title":"Commerce user payment method created","value":{"id":"7e77b629-5ea9-4bd5-8191-a67a402ccd26","card_brand":"mastercard","card_last_4":"4444","card_exp_month":12,"card_exp_year":2034,"cardholder_name":"John Doe","created_at":"2026-06-03T12:24:05Z"}}},"schema":{"type":"object","properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"card_brand":{"oneOf":[{"type":"string","description":"Brand of the card, e.g. 'Visa' or 'Mastercard'.","uniqueKey":"card_brand.oneOf.0","typeLabel":"string"},{"type":"null","description":"Brand of the card, e.g. 'Visa' or 'Mastercard'.","uniqueKey":"card_brand.oneOf.1","typeLabel":"null"}],"uniqueKey":"card_brand","typeLabel":"string | null"},"card_last_4":{"oneOf":[{"type":"string","description":"Last 4 digits of the card number.","uniqueKey":"card_last_4.oneOf.0","typeLabel":"string"},{"type":"null","description":"Last 4 digits of the card number.","uniqueKey":"card_last_4.oneOf.1","typeLabel":"null"}],"uniqueKey":"card_last_4","typeLabel":"string | null"},"card_exp_month":{"oneOf":[{"type":"integer","uniqueKey":"card_exp_month.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"card_exp_month.oneOf.1","typeLabel":"null"}],"uniqueKey":"card_exp_month","typeLabel":"integer | null"},"card_exp_year":{"oneOf":[{"type":"integer","uniqueKey":"card_exp_year.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"card_exp_year.oneOf.1","typeLabel":"null"}],"uniqueKey":"card_exp_year","typeLabel":"integer | null"},"cardholder_name":{"oneOf":[{"type":"string","uniqueKey":"cardholder_name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"cardholder_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"cardholder_name","typeLabel":"string | null"},"created_at":{"type":"string","format":"date-time","description":"Date and time the payment method was created, ISO 8601 format.","uniqueKey":"created_at","typeLabel":"string\u003cdate-time>"}},"required":["id"],"uniqueKey":"","typeLabel":"object"},"exampleType":"examples"}},"exampleType":"examples"},"41c62319-f814-452a-b78a-f4bc7c9275c8":{"description":"Bad request","content":{"application/json":{"examples":{"Card declined":{"title":"Card declined","value":{"error":"Your card was declined."}},"Card missing field":{"title":"Card missing field","value":{"error":"Cardholder name is required"}}},"schema":{"type":"object","properties":{"error":{"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"a0c291d3-0080-414c-a681-32b29b5cdb48":{"bearer":{"type":"http","scheme":"bearer","description":"Your Goody API key.","scopes":[],"schemeName":"bearer"}}},"servers":{"4a853b92-1c76-4ffd-85bf-5a5539f2953d":{"url":"https://api.ongoody.com","description":"Production"},"dd210492-7675-40b8-833a-2901e08fdf59":{"url":"https://api.sandbox.ongoody.com","description":"Sandbox"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Your Goody API key.","scopes":[],"schemeName":"bearer"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Your Goody API key.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearer","name":"Authorization"}],"title":"bearer"}]},"originalFileLocation":"goody-api-openapi.json"},"subdomain":"goody","siteName":"Goody Developers","title":"Create a commerce user payment method - Goody Developers","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-08T14:28:25.837Z","originalFileLocation":"api-reference/commerce-user-payment-methods/create-a-commerce-user-payment-method.mdx"},"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=\"keywords\" content=\"Goody API, Goody MCP server, gifting API, gift API, MCP server, send gifts with AI, Claude gifting connector, business gifting, autogift\">\u003cmeta data-mint-head name=\"application-name\" content=\"Goody Developers\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/goody/cgM3s1zMuye1hA-n/_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/goody/cgM3s1zMuye1hA-n/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/goody/cgM3s1zMuye1hA-n/_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/goody/cgM3s1zMuye1hA-n/_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/goody/cgM3s1zMuye1hA-n/_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/goody/cgM3s1zMuye1hA-n/_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/goody/cgM3s1zMuye1hA-n/_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/goody/cgM3s1zMuye1hA-n/_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/goody/cgM3s1zMuye1hA-n/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a commerce user payment method - Goody Developers\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Goody Developers\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://developer.ongoody.com/api-reference/commerce-user-payment-methods/create-a-commerce-user-payment-method\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://goody.mintlify.app/_mintlify/api/og/v2?division=Commerce+User+Payment+Methods\u0026amp;title=Create+a+commerce+user+payment+method\u0026amp;theme=9ccd498c0c106549735ac92d\u0026amp;signature=b516df5a2cade67157461687ca899235f784d30de660ba304777b56e8d69b5c8\">\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 a commerce user payment method - Goody Developers\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://goody.mintlify.app/_mintlify/api/og/v2?division=Commerce+User+Payment+Methods\u0026amp;title=Create+a+commerce+user+payment+method\u0026amp;theme=9ccd498c0c106549735ac92d\u0026amp;signature=b516df5a2cade67157461687ca899235f784d30de660ba304777b56e8d69b5c8\">\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/goody/cgM3s1zMuye1hA-n/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Goody Developers\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#9159D6\">\u003clink data-mint-head rel=\"canonical\" href=\"https://developer.ongoody.com/api-reference/commerce-user-payment-methods/create-a-commerce-user-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/commerce-user-payment-methods/create-a-commerce-user-payment-method.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://developer.ongoody.com/#organization\",\"name\":\"Goody Developers\",\"url\":\"https://developer.ongoody.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/goody/UtvUnxw3LhFrdzGW/logo.svg?fit=max\u0026auto=format\u0026n=UtvUnxw3LhFrdzGW\u0026q=85\u0026s=271862d59190ae3cec0a504caf00f0dc\"}},{\"@type\":\"WebSite\",\"@id\":\"https://developer.ongoody.com#website\",\"name\":\"Goody Developers\",\"url\":\"https://developer.ongoody.com\",\"publisher\":{\"@id\":\"https://developer.ongoody.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://developer.ongoody.com/api-reference/commerce-user-payment-methods/create-a-commerce-user-payment-method#webpage\",\"url\":\"https://developer.ongoody.com/api-reference/commerce-user-payment-methods/create-a-commerce-user-payment-method\",\"name\":\"Create a commerce user payment method\",\"dateModified\":\"2026-10-08T14:28:25.837Z\",\"isPartOf\":{\"@id\":\"https://developer.ongoody.com#website\"},\"breadcrumb\":{\"@id\":\"https://developer.ongoody.com/api-reference/commerce-user-payment-methods/create-a-commerce-user-payment-method#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://developer.ongoody.com/api-reference/commerce-user-payment-methods/create-a-commerce-user-payment-method#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Goody Developers\",\"item\":\"https://developer.ongoody.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a commerce user payment method\",\"item\":\"https://developer.ongoody.com/api-reference/commerce-user-payment-methods/create-a-commerce-user-payment-method\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://developer.ongoody.com/api-reference/commerce-user-payment-methods/create-a-commerce-user-payment-method#apireference\",\"headline\":\"Create a commerce user payment method\",\"name\":\"Create a commerce user payment method\",\"url\":\"https://developer.ongoody.com/api-reference/commerce-user-payment-methods/create-a-commerce-user-payment-method\",\"mainEntityOfPage\":{\"@id\":\"https://developer.ongoody.com/api-reference/commerce-user-payment-methods/create-a-commerce-user-payment-method#webpage\"},\"dateModified\":\"2026-10-08T14:28:25.837Z\",\"publisher\":{\"@id\":\"https://developer.ongoody.com/#organization\"},\"isPartOf\":{\"@id\":\"https://developer.ongoody.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Goody Developers\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Goody Developers","nav":{"global":null,"anchors":[{"anchor":"Documentation","icon":"book-open","pages":[{"title":"Documentation","href":"/introduction/overview"}]},{"anchor":"API Reference","icon":"square-terminal","groups":[{"group":"Order Batches","pages":[{"openapi":"POST /v1/order_batches","title":"Create an order batch","href":"/api-reference/order-batches/create-an-order-batch"},{"openapi":"GET /v1/order_batches","title":"List all order batches","href":"/api-reference/order-batches/list-all-order-batches"},{"openapi":"GET /v1/order_batches/{id}","title":"Retrieve an order batch","href":"/api-reference/order-batches/retrieve-an-order-batch"},{"openapi":"GET /v1/order_batches/{id}/orders","title":"Retrieve orders for an order batch","href":"/api-reference/order-batches/retrieve-orders-for-an-order-batch"},{"openapi":"GET /v1/order_batches/{id}/recipients","title":"Retrieve recipients for an order batch","href":"/api-reference/order-batches/retrieve-recipients-for-an-order-batch"},{"openapi":"POST /v1/order_batches/price","title":"Calculate the price for an order batch","href":"/api-reference/order-batches/calculate-the-price-for-an-order-batch"}]},{"group":"Orders","pages":[{"openapi":"GET /v1/orders","title":"List all orders","href":"/api-reference/orders/list-all-orders"},{"openapi":"GET /v1/orders/{id}","title":"Retrieve an order","href":"/api-reference/orders/retrieve-an-order"},{"openapi":"POST /v1/orders/{id}/cancel","title":"Cancel an order","href":"/api-reference/orders/cancel-an-order"},{"openapi":"POST /v1/orders/{id}/update_expiration","title":"Update expiration for an order","href":"/api-reference/orders/update-expiration-for-an-order"}]},{"group":"Brands","pages":[{"openapi":"GET /v1/brands","title":"List all active brands","href":"/api-reference/brands/list-all-active-brands"}]},{"group":"Products","pages":[{"openapi":"GET /v1/products","title":"List all active products","href":"/api-reference/products/list-all-active-products"},{"openapi":"GET /v1/products/{id}","title":"Retrieve a product","href":"/api-reference/products/retrieve-a-product"}]},{"group":"Payment Methods","pages":[{"openapi":"GET /v1/payment_methods","title":"List all payment methods","description":null,"href":"/api-reference/payment-methods/list-all-payment-methods"}]},{"group":"Commerce User Payment Methods","pages":[{"openapi":"POST /v1/commerce_user_payment_methods","title":"Create a commerce user payment method","href":"/api-reference/commerce-user-payment-methods/create-a-commerce-user-payment-method"}]},{"group":"Workspaces","pages":[{"openapi":"GET /v1/workspaces","title":"List all workspaces","description":null,"href":"/api-reference/workspaces/list-all-workspaces"}]},{"group":"Cards","pages":[{"openapi":"GET /v1/cards","title":"List all active cards","href":"/api-reference/cards/list-all-active-cards"}]},{"group":"Collections","pages":[{"openapi":"GET /v1/collections","title":"List all collections","href":"/api-reference/collections/list-all-collections"},{"openapi":"GET /v1/collections/{id}","title":"Retrieve a collection","href":"/api-reference/collections/retrieve-a-collection"}]},{"group":"Order Activities","pages":[{"openapi":"GET /v1/order_activities","title":"List all order activities","href":"/api-reference/order-activities/list-all-order-activities"}]},{"group":"Me","pages":[{"openapi":"GET /v1/me","title":"Retrieve current user","href":"/api-reference/retrieve-current-user"}]},{"group":"Schemas","pages":[{"group":"Schemas","pages":[{"title":"Error","icon":"cube","href":"/api-reference/schemas/error"},{"title":"ListMeta","icon":"cube","href":"/api-reference/schemas/listmeta"},{"title":"OrderBatch","icon":"cube","href":"/api-reference/schemas/orderbatch"},{"title":"Order","icon":"cube","href":"/api-reference/schemas/order"},{"title":"OrderBatchRecipient","icon":"cube","href":"/api-reference/schemas/orderbatchrecipient"},{"title":"Cart","icon":"cube","href":"/api-reference/schemas/cart"},{"title":"CartItem","icon":"cube","href":"/api-reference/schemas/cartitem"},{"title":"OrderBatchSendStatus","icon":"cube","href":"/api-reference/schemas/orderbatchsendstatus"},{"title":"OrderStatus","icon":"cube","href":"/api-reference/schemas/orderstatus"},{"title":"Shipment","icon":"cube","href":"/api-reference/schemas/shipment"},{"title":"Product","icon":"cube","href":"/api-reference/schemas/product"},{"title":"Brand","icon":"cube","href":"/api-reference/schemas/brand"},{"title":"ProductImage","icon":"cube","href":"/api-reference/schemas/productimage"},{"title":"ProductVariant","icon":"cube","href":"/api-reference/schemas/productvariant"},{"title":"Image","icon":"cube","href":"/api-reference/schemas/image"},{"title":"MailingAddress","icon":"cube","href":"/api-reference/schemas/mailingaddress"},{"title":"Me","icon":"cube","href":"/api-reference/schemas/me"},{"title":"Sender","icon":"cube","href":"/api-reference/schemas/sender"},{"title":"OrderBatchInput","icon":"cube","href":"/api-reference/schemas/orderbatchinput"},{"title":"CartInput","icon":"cube","href":"/api-reference/schemas/cartinput"},{"title":"CartItemInput","icon":"cube","href":"/api-reference/schemas/cartiteminput"},{"title":"OrderBatchSendMethod","icon":"cube","href":"/api-reference/schemas/orderbatchsendmethod"},{"title":"RecipientInput","icon":"cube","href":"/api-reference/schemas/recipientinput"},{"title":"RecipientInput","icon":"cube","href":"/api-reference/schemas/recipientinput"}]}]}]},{"anchor":"MCP Reference","icon":"robot","pages":[{"title":"MCP Reference","href":"/mcp-reference/capabilities"}]}]},"title":"Create a commerce user payment method - Goody Developers","buildId":"dpl_2xiSHD9XEvLsPGPcfoMtkLTB3dy9","deploymentId":"dpl_2xiSHD9XEvLsPGPcfoMtkLTB3dy9","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-DmVyH30O.js","utils-BHQqGGOd.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-CD-E4BIt.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Bp5Lq9Ds.js","snippetPresets-C4xAVCFP.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","Page-CBCH2P7b.js","ApiExamples-CgXVLxUC.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BF8I5oUf.js","shallow-Byd0lWnC.js","getApiPlaygroundDisplay-BGOZG1OK.js","CodeSnippet-CpvQL0CY.js","CodeSnippets-B8wkBKXa.js","getPastedJson-Ry3scI3Y.js","icon-D7a9HcdD.js","MethodPill-CJ8pmHhz.js","DuplicateIcon-rh1HJF0t.js","createIcon-DvGznqYs.js","DynamicMarkdown-Cc6AuSHS.js","SectionHeading-B4A0S-ep.js","axios-vUo_bRtp.js","Markdown-Cc16CX65.js","clsx-Cs6nMGht.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-zbf22OZA.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-C_fs-y5n.js"]}