Create Stripe setup checkout session for payment method update
Creates a new Stripe setup checkout session to update the payment method for a customer by external ID (e.g. the customer ID in your system). You must have a valid Stripe account connected to your Atlas merchant to use this endpoint. Redirect the customer to the URL returned in the response to update their payment method.
POST
/
external
/
customers
/
external-id
/
{externalId}
/
stripe
/
checkout-sessions
/
setup
Create Stripe setup checkout session for payment method update
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Atlas","colors":{"primary":"#9A47D5","light":"#c498e3","dark":"#9A47D5"},"logo":{"light":"https://mintcdn.com/atlas-e6c381cc/CZyope2K7u39JYzl/logo/atlas-lightmode.png?fit=max\u0026auto=format\u0026n=CZyope2K7u39JYzl\u0026q=85\u0026s=8936437d0db9d56dba50ba9b17d3f4aa","dark":"https://mintcdn.com/atlas-e6c381cc/CZyope2K7u39JYzl/logo/atlas-darkmode.png?fit=max\u0026auto=format\u0026n=CZyope2K7u39JYzl\u0026q=85\u0026s=a47eb49a72beae5a86f8e2a12ed85a23"},"favicon":"/favicon.ico","api":{"playground":{"display":"interactive"},"examples":{"prefill":true}},"navbar":{"links":[{"href":"https://www.runonatlas.com/contact-us","label":"Support"}],"primary":{"type":"button","label":"Application","href":"https://app.runonatlas.com"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/runonatlas","discord":"https://discord.gg/ZjejsUX7"}},"contextual":{"options":["copy","chatgpt","claude","view"],"display":"header"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Community","icon":"discord","href":"https://discord.gg/ZjejsUX7"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"atlas-e6c381cc","hasAudioNarration":false,"actualSubdomain":"atlas-e6c381cc","customDomains":["docs.runonatlas.com"],"gitSource":{"type":"github","owner":"runonatlas","repo":"atlas-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a21f63eb595a58a20e51b55","collectionId":"a3937cec-6d4d-43f6-a185-34f34756a96a","schemaVersion":"v2"},"entitlements":{},"buildId":"6a21f63eb595a58a20e51b55:success","clientVersion":"0.0.4044","searchFilterCounts":[{"language":"default","tag":"API Reference","count":19},{"language":"default","tag":"Get Started","count":10},{"language":"default","tag":"Customers","count":9},{"language":"default","tag":"Subscriptions","count":8},{"language":"default","tag":"Developer Portal","count":6},{"language":"default","tag":"Getting Started with Atlas","count":5},{"language":"default","tag":"SDK Documentation","count":4},{"language":"default","tag":"Advanced Atlas","count":3},{"language":"default","tag":"Events","count":1},{"language":"default","tag":"Invoices","count":1}]},"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":"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":"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":"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":"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}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/customers/create-stripe-setup-checkout-session-for-payment-method-update","slug":"/api-reference/customers/create-stripe-setup-checkout-session-for-payment-method-update","pageMetadata":{"title":"Create Stripe setup checkout session for payment method update","description":"Creates a new Stripe setup checkout session to update the payment method for a customer by external ID (e.g. the customer ID in your system). You must have a valid Stripe account connected to your Atlas merchant to use this endpoint. Redirect the customer to the URL returned in the response to update their payment method.","deprecated":null,"version":null,"openapi":"https://platform.runonatlas.com/external/schema post /external/customers/external-id/{externalId}/stripe/checkout-sessions/setup","href":"/api-reference/customers/create-stripe-setup-checkout-session-for-payment-method-update","autogeneratedByOpenApi":true,"hidden":false},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Creates a new Stripe setup checkout session to update the payment method for a customer by external ID (e.g. the customer ID in your system). You must have a valid Stripe account connected to your Atlas merchant to use this endpoint. Redirect the customer to the URL returned in the response to update their payment method.\"\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":{"title":"Create Stripe setup checkout session for payment method update","description":"Creates a new Stripe setup checkout session to update the payment method for a customer by external ID (e.g. the customer ID in your system). You must have a valid Stripe account connected to your Atlas merchant to use this endpoint. Redirect the customer to the URL returned in the response to update their payment method.","deprecated":null,"version":null,"openapi":"https://platform.runonatlas.com/external/schema post /external/customers/external-id/{externalId}/stripe/checkout-sessions/setup","href":"/api-reference/customers/create-stripe-setup-checkout-session-for-payment-method-update","autogeneratedByOpenApi":true,"hidden":false}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"description":"Creates a new Stripe setup checkout session to update the payment method for a customer by external ID (e.g. the customer ID in your system). You must have a valid Stripe account connected to your Atlas merchant to use this endpoint. Redirect the customer to the URL returned in the response to update their payment method.","summary":"Create Stripe setup checkout session for payment method update","tags":["Customers"],"security":["b8a646f6-47b3-4ad9-8640-095fcd423339"],"parameters":["cc5ce578-3347-4d64-aacb-33f2b9ac394f"],"requestBody":"09786b78-bc1f-4605-8424-eac38facc757","responses":{"201":"0308d026-1980-459e-91e0-da0493f83a76","400":"032528e5-7022-471a-99ef-1fc87985ee1a","401":"89aa9dab-2b92-42da-8d17-04ac8b4b9f92","404":"ef6930ea-550b-42d0-8f75-6f0a8416f964","503":"d9c95233-7674-4631-97da-1006c728015f"},"method":"post","type":"path","servers":["3c9753c2-e6e2-45af-9d3e-d3e995223724"],"path":"/external/customers/external-id/{externalId}/stripe/checkout-sessions/setup","baseUrlOptions":["https://platform.runonatlas.com"],"title":"Create Stripe setup checkout session for payment method update","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[{"body.successUrl":"https://www.example.com/success","body.email":"john.doe@example.com","body.name":"John Doe"}]},"dependencies":{"parameters":{"cc5ce578-3347-4d64-aacb-33f2b9ac394f":{"schema":{"type":"string","minLength":1,"description":"The external ID of the customer (e.g. the customer ID in your system)","example":"external-customer-id-123","isRequired":true,"uniqueKey":"","typeLabel":"string"},"required":true,"description":"The external ID of the customer (e.g. the customer ID in your system)","name":"externalId","in":"path"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"successUrl":{"type":"string","format":"uri","description":"The URL to redirect the customer to after successfully updating their payment method","example":"https://www.example.com/success","isRequired":true,"uniqueKey":"successUrl","typeLabel":"string\u003curi>"},"email":{"type":"string","minLength":1,"format":"email","description":"The email of the customer","example":"john.doe@example.com","uniqueKey":"email","typeLabel":"string\u003cemail>"},"name":{"type":"string","minLength":1,"description":"The name of the customer","example":"John Doe","uniqueKey":"name","typeLabel":"string"}},"required":["successUrl"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"successUrl":"https://www.example.com/success","email":"john.doe@example.com","name":"John Doe"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"0308d026-1980-459e-91e0-da0493f83a76":{"description":"The Stripe setup checkout session that the customer can be redirected to to update their payment method.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The Stripe checkout session ID","example":"cs_test_1234567890abcdef","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"object":{"type":"string","enum":["checkout.session"],"description":"The object type","example":"checkout.session","isRequired":true,"uniqueKey":"object","typeLabel":"enum\u003cstring>"},"url":{"oneOf":[{"type":"string","format":"uri","description":"The URL to redirect the customer to complete the payment method setup","example":"https://checkout.stripe.com/c/pay/cs_test_1234567890abcdef","isRequired":true,"uniqueKey":"url.oneOf.0","typeLabel":"string\u003curi>"},{"type":"null","format":"uri","description":"The URL to redirect the customer to complete the payment method setup","example":"https://checkout.stripe.com/c/pay/cs_test_1234567890abcdef","isRequired":true,"uniqueKey":"url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"url","typeLabel":"string\u003curi> | null"},"status":{"type":"string","enum":["open","complete","expired"],"description":"The status of the checkout session","example":"open","isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"mode":{"type":"string","enum":["setup"],"description":"The mode of the checkout session","example":"setup","isRequired":true,"uniqueKey":"mode","typeLabel":"enum\u003cstring>"},"customer":{"oneOf":[{"type":"string","description":"The Stripe customer ID","example":"cus_1234567890abcdef","isRequired":true,"uniqueKey":"customer.oneOf.0","typeLabel":"string"},{"type":"null","description":"The Stripe customer ID","example":"cus_1234567890abcdef","isRequired":true,"uniqueKey":"customer.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"customer","typeLabel":"string | null"},"success_url":{"type":"string","format":"uri","description":"The URL to redirect the customer to after successful payment method setup","example":"https://example.com/success","isRequired":true,"uniqueKey":"success_url","typeLabel":"string\u003curi>"},"setup_intent":{"oneOf":[{"type":"string","description":"The Stripe setup intent ID","example":"seti_1234567890abcdef","isRequired":true,"uniqueKey":"setup_intent.oneOf.0","typeLabel":"string"},{"type":"null","description":"The Stripe setup intent ID","example":"seti_1234567890abcdef","isRequired":true,"uniqueKey":"setup_intent.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"setup_intent","typeLabel":"string | null"},"payment_status":{"type":"string","enum":["unpaid","paid","no_payment_required"],"description":"The payment status of the checkout session","example":"no_payment_required","isRequired":true,"uniqueKey":"payment_status","typeLabel":"enum\u003cstring>"},"created":{"type":"number","description":"Unix timestamp of when the checkout session was created","example":1640995200,"isRequired":true,"uniqueKey":"created","typeLabel":"number"},"expires_at":{"oneOf":[{"type":"number","description":"Unix timestamp of when the checkout session expires","example":1641081600,"isRequired":true,"uniqueKey":"expires_at.oneOf.0","typeLabel":"number"},{"type":"null","description":"Unix timestamp of when the checkout session expires","example":1641081600,"isRequired":true,"uniqueKey":"expires_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"expires_at","typeLabel":"number | null"},"livemode":{"type":"boolean","description":"Whether the checkout session is in live mode","example":false,"isRequired":true,"uniqueKey":"livemode","typeLabel":"boolean"},"currency":{"type":"string","description":"The currency of the checkout session","example":"usd","isRequired":true,"uniqueKey":"currency","typeLabel":"string"},"metadata":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"metadata.additionalProperties","typeLabel":"string"},"description":"Metadata associated with the checkout session","example":{},"isRequired":true,"uniqueKey":"metadata","typeLabel":"object"}},"required":["id","object","url","status","mode","customer","success_url","setup_intent","payment_status","created","expires_at","livemode","currency","metadata"],"description":"Stripe checkout session for payment method setup","example":{"id":"cs_test_1234567890abcdef","object":"checkout.session","url":"https://checkout.stripe.com/c/pay/cs_test_1234567890abcdef","status":"open","mode":"setup","customer":"cus_1234567890abcdef","success_url":"https://example.com/success","setup_intent":"seti_1234567890abcdef","payment_status":"no_payment_required","created":1640995200,"expires_at":1641081600,"livemode":false,"currency":"usd","metadata":{}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"cs_test_1234567890abcdef","object":"checkout.session","url":"https://checkout.stripe.com/c/pay/cs_test_1234567890abcdef","status":"open","mode":"setup","customer":"cus_1234567890abcdef","success_url":"https://example.com/success","setup_intent":"seti_1234567890abcdef","payment_status":"no_payment_required","created":1640995200,"expires_at":1641081600,"livemode":false,"currency":"usd","metadata":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"032528e5-7022-471a-99ef-1fc87985ee1a":{"description":"There is an issue with the request data or a Stripe API error occurred. See the response for more details.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"89aa9dab-2b92-42da-8d17-04ac8b4b9f92":{"description":"Invalid API key provided or Stripe is not configured for this account.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"ef6930ea-550b-42d0-8f75-6f0a8416f964":{"description":"Customer not found.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"d9c95233-7674-4631-97da-1006c728015f":{"description":"Payment service temporarily unavailable. Please try again later.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"b8a646f6-47b3-4ad9-8640-095fcd423339":{"apiKeyAuth":{"type":"apiKey","name":"x-api-key","in":"header","description":"You can obtain this key from the Atlas dashboard. It must be of type `secret`","scopes":[]}}},"servers":{"3c9753c2-e6e2-45af-9d3e-d3e995223724":{"url":"https://platform.runonatlas.com"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","name":"x-api-key","in":"header","description":"You can obtain this key from the Atlas dashboard. It must be of type `secret`","scopes":[]},"schema":{"title":"x-api-key","type":"string","description":"You can obtain this key from the Atlas dashboard. It must be of type `secret`","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"apiKeyAuth","name":"x-api-key"}],"title":"apiKeyAuth"}]},"originalFileLocation":"https://platform.runonatlas.com/external/schema"},"subdomain":"atlas-e6c381cc","siteName":"Atlas","title":"Create Stripe setup checkout session for payment method update - Atlas","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-02-19T16:23:28.744Z","originalFileLocation":"api-reference/customers/create-stripe-setup-checkout-session-for-payment-method-update.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=\"description\" content=\"Creates a new Stripe setup checkout session to update the payment method for a customer by external ID (e.g. the customer ID in your system). You must have a valid Stripe account connected to your Atlas merchant to use this endpoint. Redirect the customer to the URL returned in the response to update their payment method.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Atlas\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/atlas-e6c381cc/6DYCW_jaZNkVq4EJ/_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/atlas-e6c381cc/6DYCW_jaZNkVq4EJ/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/atlas-e6c381cc/6DYCW_jaZNkVq4EJ/_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/atlas-e6c381cc/6DYCW_jaZNkVq4EJ/_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/atlas-e6c381cc/6DYCW_jaZNkVq4EJ/_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/atlas-e6c381cc/6DYCW_jaZNkVq4EJ/_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/atlas-e6c381cc/6DYCW_jaZNkVq4EJ/_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/atlas-e6c381cc/6DYCW_jaZNkVq4EJ/_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/atlas-e6c381cc/6DYCW_jaZNkVq4EJ/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create Stripe setup checkout session for payment method update - Atlas\">\u003cmeta data-mint-head property=\"og:description\" content=\"Creates a new Stripe setup checkout session to update the payment method for a customer by external ID (e.g. the customer ID in your system). You must have a valid Stripe account connected to your Atlas merchant to use this endpoint. Redirect the customer to the URL returned in the response to update their payment method.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Atlas\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.runonatlas.com/api-reference/customers/create-stripe-setup-checkout-session-for-payment-method-update\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://atlas-e6c381cc.mintlify.app/_mintlify/api/og/v2?division=Customers\u0026amp;title=Create+Stripe+setup+checkout+session+for+payment+method+update\u0026amp;description=Creates+a+new+Stripe+setup+checkout+session+to+update+the+payment+method+for+a+customer+by+external+ID+%28e.g.+the+customer+ID+in+your+system%29.+You+must+have+a+va\u0026amp;theme=fad73015577ccd4d16edaa20\u0026amp;signature=582895a90b29ea54415815a4e4b911aac3d7f1fcbc59f302388f6b5f3d9842e1\">\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 Stripe setup checkout session for payment method update - Atlas\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Creates a new Stripe setup checkout session to update the payment method for a customer by external ID (e.g. the customer ID in your system). You must have a valid Stripe account connected to your Atlas merchant to use this endpoint. Redirect the customer to the URL returned in the response to update their payment method.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://atlas-e6c381cc.mintlify.app/_mintlify/api/og/v2?division=Customers\u0026amp;title=Create+Stripe+setup+checkout+session+for+payment+method+update\u0026amp;description=Creates+a+new+Stripe+setup+checkout+session+to+update+the+payment+method+for+a+customer+by+external+ID+%28e.g.+the+customer+ID+in+your+system%29.+You+must+have+a+va\u0026amp;theme=fad73015577ccd4d16edaa20\u0026amp;signature=582895a90b29ea54415815a4e4b911aac3d7f1fcbc59f302388f6b5f3d9842e1\">\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/atlas-e6c381cc/6DYCW_jaZNkVq4EJ/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Atlas\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#9A47D5\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.runonatlas.com/api-reference/customers/create-stripe-setup-checkout-session-for-payment-method-update\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/customers/create-stripe-setup-checkout-session-for-payment-method-update.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.runonatlas.com/#organization\",\"name\":\"Atlas\",\"url\":\"https://docs.runonatlas.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/atlas-e6c381cc/CZyope2K7u39JYzl/logo/atlas-lightmode.png?fit=max\u0026auto=format\u0026n=CZyope2K7u39JYzl\u0026q=85\u0026s=8936437d0db9d56dba50ba9b17d3f4aa\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.runonatlas.com#website\",\"name\":\"Atlas\",\"url\":\"https://docs.runonatlas.com\",\"publisher\":{\"@id\":\"https://docs.runonatlas.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.runonatlas.com/api-reference/customers/create-stripe-setup-checkout-session-for-payment-method-update#webpage\",\"url\":\"https://docs.runonatlas.com/api-reference/customers/create-stripe-setup-checkout-session-for-payment-method-update\",\"name\":\"Create Stripe setup checkout session for payment method update\",\"description\":\"Creates a new Stripe setup checkout session to update the payment method for a customer by external ID (e.g. the customer ID in your system). You must have a valid Stripe account connected to your Atlas merchant to use this endpoint. Redirect the customer to the URL returned in the response to update their payment method.\",\"dateModified\":\"2026-02-19T16:23:28.744Z\",\"isPartOf\":{\"@id\":\"https://docs.runonatlas.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.runonatlas.com/api-reference/customers/create-stripe-setup-checkout-session-for-payment-method-update#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.runonatlas.com/api-reference/customers/create-stripe-setup-checkout-session-for-payment-method-update#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Customers\",\"item\":\"https://docs.runonatlas.com/api-reference/customers/get-customers\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create Stripe setup checkout session for payment method update\",\"item\":\"https://docs.runonatlas.com/api-reference/customers/create-stripe-setup-checkout-session-for-payment-method-update\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.runonatlas.com/api-reference/customers/create-stripe-setup-checkout-session-for-payment-method-update#apireference\",\"headline\":\"Create Stripe setup checkout session for payment method update\",\"name\":\"Create Stripe setup checkout session for payment method update\",\"description\":\"Creates a new Stripe setup checkout session to update the payment method for a customer by external ID (e.g. the customer ID in your system). You must have a valid Stripe account connected to your Atlas merchant to use this endpoint. Redirect the customer to the URL returned in the response to update their payment method.\",\"url\":\"https://docs.runonatlas.com/api-reference/customers/create-stripe-setup-checkout-session-for-payment-method-update\",\"mainEntityOfPage\":{\"@id\":\"https://docs.runonatlas.com/api-reference/customers/create-stripe-setup-checkout-session-for-payment-method-update#webpage\"},\"dateModified\":\"2026-02-19T16:23:28.744Z\",\"publisher\":{\"@id\":\"https://docs.runonatlas.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.runonatlas.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Atlas\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Atlas","nav":{"global":{"anchors":[{"anchor":"Community","icon":"discord","href":"https://discord.gg/ZjejsUX7"}]},"tabs":[{"tab":"Get Started","pages":[{"title":"Get Started","href":""}]},{"tab":"Developer Portal","pages":[{"title":"Developer Portal","href":"/developer-portal/how-does-atlas-work"}]},{"tab":"Advanced Atlas","pages":[{"title":"Advanced Atlas","href":"/advanced-atlas"}]},{"tab":"API Reference","groups":[{"group":"Events","pages":[{"title":"Ingest events","deprecated":null,"version":null,"openapi":"https://platform.runonatlas.com/external/schema post /external/event/","href":"/api-reference/events/ingest-events"}]},{"group":"Customers","pages":[{"title":"Get customers","deprecated":null,"version":null,"openapi":"https://platform.runonatlas.com/external/schema get /external/customers","href":"/api-reference/customers/get-customers"},{"title":"Create customer with default plan subscription","deprecated":null,"version":null,"openapi":"https://platform.runonatlas.com/external/schema post /external/customers","href":"/api-reference/customers/create-customer-with-default-plan-subscription"},{"title":"Get customer transactions","deprecated":null,"version":null,"openapi":"https://platform.runonatlas.com/external/schema get /external/customers/external-id/{externalId}/transactions","href":"/api-reference/customers/get-customer-transactions"},{"title":"Get customer with expanded data","deprecated":null,"version":null,"openapi":"https://platform.runonatlas.com/external/schema get /external/customers/external-id/{externalId}/expanded","href":"/api-reference/customers/get-customer-with-expanded-data"},{"title":"Get custom pricing unit usage","deprecated":null,"version":null,"openapi":"https://platform.runonatlas.com/external/schema get /external/customers/external-id/{externalId}/customPricingUnits/{customPricingUnitId}/usage","href":"/api-reference/customers/get-custom-pricing-unit-usage"},{"title":"Get customer by ID","description":"Get a customer by ID.","deprecated":null,"version":null,"openapi":"https://platform.runonatlas.com/external/schema get /external/customers/{id}","href":"/api-reference/customers/get-customer-by-id"},{"title":"Create Stripe setup checkout session for payment method update","deprecated":null,"version":null,"openapi":"https://platform.runonatlas.com/external/schema post /external/customers/external-id/{externalId}/stripe/checkout-sessions/setup","href":"/api-reference/customers/create-stripe-setup-checkout-session-for-payment-method-update"},{"title":"Upsert customer","description":"Upsert customer by unique external ID (e.g. the customer ID in your system). Does not automatically subscribe the customer to the default plan if eligible.","deprecated":null,"version":null,"openapi":"https://platform.runonatlas.com/external/schema post /external/customers/upsert","href":"/api-reference/customers/upsert-customer"},{"title":"Bulk upsert customers","deprecated":null,"version":null,"openapi":"https://platform.runonatlas.com/external/schema post /external/customers/upsert/bulk","href":"/api-reference/customers/bulk-upsert-customers"}]},{"group":"Invoices","pages":[{"title":"Get invoice with line items","deprecated":null,"version":null,"openapi":"https://platform.runonatlas.com/external/schema get /external/invoices/{invoiceId}/with-line-items","href":"/api-reference/invoices/get-invoice-with-line-items"}]},{"group":"Subscriptions","pages":[{"title":"Get subscriptions","deprecated":null,"version":null,"openapi":"https://platform.runonatlas.com/external/schema get /external/subscriptions","href":"/api-reference/subscriptions/get-subscriptions"},{"title":"Create subscription","deprecated":null,"version":null,"openapi":"https://platform.runonatlas.com/external/schema post /external/subscriptions","href":"/api-reference/subscriptions/create-subscription"},{"title":"Create multiple subscriptions","deprecated":null,"version":null,"openapi":"https://platform.runonatlas.com/external/schema post /external/subscriptions/bulk","href":"/api-reference/subscriptions/create-multiple-subscriptions"},{"title":"Get subscription by ID","deprecated":null,"version":null,"openapi":"https://platform.runonatlas.com/external/schema get /external/subscriptions/{id}","href":"/api-reference/subscriptions/get-subscription-by-id"},{"title":"Delete subscription","deprecated":null,"version":null,"openapi":"https://platform.runonatlas.com/external/schema delete /external/subscriptions/{id}","href":"/api-reference/subscriptions/delete-subscription"},{"title":"Get subscription by ID with expanded data","deprecated":null,"version":null,"openapi":"https://platform.runonatlas.com/external/schema get /external/subscriptions/{id}/expanded","href":"/api-reference/subscriptions/get-subscription-by-id-with-expanded-data"},{"title":"Cancel subscription","deprecated":null,"version":null,"openapi":"https://platform.runonatlas.com/external/schema post /external/subscriptions/{id}/cancel","href":"/api-reference/subscriptions/cancel-subscription"},{"title":"Renew cancelled subscription","deprecated":null,"version":null,"openapi":"https://platform.runonatlas.com/external/schema post /external/subscriptions/{id}/renew","href":"/api-reference/subscriptions/renew-cancelled-subscription"}]}]}]},"basePath":"","title":"Create Stripe setup checkout session for payment method update - Atlas","buildId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","deploymentId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CS552b7R.js","utils-DDTCYAF2.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-De8ttokP.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DrwRDvAh.js","snippetPresets-DtAN0nWx.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-D5rWArI6.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-O2i12wsz.js","shallow-DV8xABTt.js","getApiPlaygroundDisplay-DBZ0B5Jx.js","CodeSnippet-BVi0tPUX.js","CodeSnippets-CqASbIwY.js","Page-m07pfKpT.js","getPastedJson-DG9vsMS8.js","icon-CXzRSCr8.js","MethodPill-BdKVtEuX.js","DuplicateIcon-CZlmBrJI.js","createIcon-biFEUKPL.js","DynamicMarkdown-B54_zNBF.js","SectionHeading-DwwHK3Pt.js","axios-vUo_bRtp.js","Markdown-DfhCTwyA.js","clsx-xpJZXxdP.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-BTZUMDnx.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-DqdKa2R4.js"]}