{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Cheqpay","colors":{"primary":"#16A34A","light":"#07C983","dark":"#15803D"},"logo":{"light":"https://mintcdn.com/cheqpay/WjCfb-k6AR5eUe0H/logo/logo.svg?fit=max\u0026auto=format\u0026n=WjCfb-k6AR5eUe0H\u0026q=85\u0026s=6e22e4768984a8158b3094e120aaf1ff","dark":"https://mintcdn.com/cheqpay/WjCfb-k6AR5eUe0H/logo/logo.svg?fit=max\u0026auto=format\u0026n=WjCfb-k6AR5eUe0H\u0026q=85\u0026s=6e22e4768984a8158b3094e120aaf1ff","href":"https://www.cheqpay.mx/"},"favicon":"https://mintlify.s3.us-west-1.amazonaws.com/cheqpay/logo/logo.avif","navbar":{},"footer":{"socials":{"x":"https://x.com/cheqpay","github":"https://github.com/cheqpay","linkedin":"https://linkedin.com/company/cheqpay"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"cheqpay","hasAudioNarration":false,"actualSubdomain":"cheqpay","customDomains":["docs.cheqpay.mx"],"gitSource":{"type":"github","owner":"cheqpay","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6aac66185343956ba6628a63","clientVersion":"0.0.4087","searchFilterCounts":[{"language":"default","tag":"Payment Orchestrator API","count":37},{"language":"default","tag":"Features","count":14},{"language":"default","tag":"Link Product API","count":13},{"language":"default","tag":"Payment Order","count":9},{"language":"default","tag":"Products","count":6},{"language":"default","tag":"Subscription","count":6},{"language":"default","tag":"Customer V2","count":5},{"language":"default","tag":"Payment Method","count":5},{"language":"default","tag":"Subscription Plan","count":5},{"language":"default","tag":"Guides","count":4}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"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":"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":"editor-metadata","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":[],"page":{"pagePath":"api-reference/payment-method/update-a-payment-method","slug":"/api-reference/payment-method/update-a-payment-method","pageMetadata":{"title":"Update a payment method","description":"Updates billing information for an existing payment method. At least one billing field must be provided. Card details cannot be updated.","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json put /payment-methods/{id}","href":"/api-reference/payment-method/update-a-payment-method","autogeneratedByOpenApi":true},"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: \"Updates billing information for an existing payment method. At least one billing field must be provided. Card details cannot be updated.\"\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":"Update a payment method","description":"Updates billing information for an existing payment method. At least one billing field must be provided. Card details cannot be updated.","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json put /payment-methods/{id}","href":"/api-reference/payment-method/update-a-payment-method","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/cheqpay/bdac4afbee45d6cc/scripts/sync-openapi.js"],"openApiReferenceData":{"operation":{"tags":["Payment Method"],"summary":"Update a payment method","description":"Updates billing information for an existing payment method. At least one billing field must be provided. Card details cannot be updated.","parameters":["d0e7265a-4518-4d3a-bb78-9ff889003faa"],"requestBody":"7191e7e1-cc52-4345-9a03-2ea92fff8ae9","responses":{"200":"5fc3d63a-b727-473c-af43-65e9b3d06bd7","400":"795a9b5c-30cd-464f-8e46-21d881d8f759","401":"24dfb78e-34dd-498e-bb29-bf42c3d2d5c8","404":"2ef63a72-223a-4e31-bb60-2203433eb8b8","500":"db234fff-158a-46ba-8d03-f9209daa811e"},"method":"put","type":"path","servers":["6182b33a-254e-4891-b1a5-d7816dd9a3d5","a5b2f960-aba9-4c0c-92f6-0448d75e6592"],"security":["c1b7f425-f23b-463f-b717-1ede7de2843d"],"path":"/payment-methods/{id}","baseUrlOptions":["https://api.sandbox.cheqpay.mx/pos","https://prod.cheqpay.mx/pos"],"title":"Update a payment method","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"d0e7265a-4518-4d3a-bb78-9ff889003faa":{"name":"id","in":"path","required":true,"description":"Payment method ID","schema":{"type":"string","example":"123e4567-e89b-12d3-a456-426614174000","isRequired":true,"description":"Payment method ID","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"billingFirstName":{"type":"string","description":"Billing first name","example":"John","uniqueKey":"billingFirstName","typeLabel":"string"},"billingLastName":{"type":"string","description":"Billing last name","example":"Doe","uniqueKey":"billingLastName","typeLabel":"string"},"billingPhoneNumber":{"type":"string","description":"Billing phone number","example":"+525512345678","uniqueKey":"billingPhoneNumber","typeLabel":"string"},"billingEmail":{"type":"string","format":"email","description":"Billing email address","example":"john.doe@example.com","uniqueKey":"billingEmail","typeLabel":"string\u003cemail>"},"billingAddressLine1":{"type":"string","description":"Billing address line 1","example":"123 Main St","uniqueKey":"billingAddressLine1","typeLabel":"string"},"billingAddressLine2":{"type":"string","description":"Billing address line 2","example":"Apt 4B","uniqueKey":"billingAddressLine2","typeLabel":"string"},"billingCity":{"type":"string","description":"Billing city","example":"Mexico City","uniqueKey":"billingCity","typeLabel":"string"},"billingState":{"type":"string","description":"Billing state","example":"CDMX","uniqueKey":"billingState","typeLabel":"string"},"billingPostalCode":{"type":"string","description":"Billing postal code","example":"12345","uniqueKey":"billingPostalCode","typeLabel":"string"},"billingCountry":{"type":"string","minLength":2,"maxLength":2,"description":"Billing country code (2 characters)","example":"MX","uniqueKey":"billingCountry","typeLabel":"string"}},"description":"At least one billing field must be provided for update","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"billingFirstName":"John","billingLastName":"Doe","billingPhoneNumber":"+525512345678","billingEmail":"john.doe@example.com","billingAddressLine1":"123 Main St","billingAddressLine2":"Apt 4B","billingCity":"Mexico City","billingState":"CDMX","billingPostalCode":"12345","billingCountry":"MX"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"5fc3d63a-b727-473c-af43-65e9b3d06bd7":{"description":"Payment method updated successfully","content":{"application/json":{"schema":{"type":"object","required":["id","type","isDefault","createdAt","updatedAt"],"properties":{"id":{"type":"string","description":"Payment method ID","example":"123e4567-e89b-12d3-a456-426614174000","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"type":{"type":"string","description":"Payment method type","example":"CARD","isRequired":true,"uniqueKey":"type","typeLabel":"string"},"isDefault":{"type":"boolean","description":"Whether this is the default payment method","example":false,"isRequired":true,"uniqueKey":"isDefault","typeLabel":"boolean"},"createdAt":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2025-01-15T10:00:00.000Z","isRequired":true,"uniqueKey":"createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2025-01-15T10:00:00.000Z","isRequired":true,"uniqueKey":"updatedAt","typeLabel":"string\u003cdate-time>"},"nickname":{"type":"string","description":"Payment method nickname","example":"My Visa Card","uniqueKey":"nickname","typeLabel":"string"},"billingFirstName":{"type":"string","description":"Billing first name","example":"John","uniqueKey":"billingFirstName","typeLabel":"string"},"billingLastName":{"type":"string","description":"Billing last name","example":"Doe","uniqueKey":"billingLastName","typeLabel":"string"},"billingPhoneNumber":{"type":"string","description":"Billing phone number","example":"+525512345678","uniqueKey":"billingPhoneNumber","typeLabel":"string"},"billingEmail":{"type":"string","description":"Billing email address","example":"john.doe@example.com","uniqueKey":"billingEmail","typeLabel":"string"},"billingAddressLine1":{"type":"string","description":"Billing address line 1","example":"123 Main St","uniqueKey":"billingAddressLine1","typeLabel":"string"},"billingAddressLine2":{"type":"string","description":"Billing address line 2","example":"Apt 4B","uniqueKey":"billingAddressLine2","typeLabel":"string"},"billingCity":{"type":"string","description":"Billing city","example":"Mexico City","uniqueKey":"billingCity","typeLabel":"string"},"billingState":{"type":"string","description":"Billing state","example":"CDMX","uniqueKey":"billingState","typeLabel":"string"},"billingPostalCode":{"type":"string","description":"Billing postal code","example":"12345","uniqueKey":"billingPostalCode","typeLabel":"string"},"billingCountry":{"type":"string","description":"Billing country code","example":"MX","uniqueKey":"billingCountry","typeLabel":"string"},"cardDetails":{"oneOf":[{"type":"object","properties":{"last4":{"type":"string","description":"Last 4 digits of card","example":"1111","uniqueKey":"cardDetails.oneOf.0.last4","typeLabel":"string"},"bin":{"type":"string","description":"Bank Identification Number (first 6 digits)","example":"411111","uniqueKey":"cardDetails.oneOf.0.bin","typeLabel":"string"},"expMonth":{"type":"integer","description":"Card expiry month","example":12,"uniqueKey":"cardDetails.oneOf.0.expMonth","typeLabel":"integer"},"expYear":{"type":"integer","description":"Card expiry year (two digits)","example":25,"uniqueKey":"cardDetails.oneOf.0.expYear","typeLabel":"integer"},"type":{"type":"string","description":"Card type (credit/debit)","example":"credit","uniqueKey":"cardDetails.oneOf.0.type","typeLabel":"string"},"brand":{"type":"string","description":"Card brand","example":"VISA","uniqueKey":"cardDetails.oneOf.0.brand","typeLabel":"string"},"country":{"type":"string","description":"Card issuing country","example":"US","uniqueKey":"cardDetails.oneOf.0.country","typeLabel":"string"},"issuerBank":{"type":"string","description":"Card issuer bank","example":"Chase Bank","uniqueKey":"cardDetails.oneOf.0.issuerBank","typeLabel":"string"}},"uniqueKey":"cardDetails.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"last4":{"type":"string","description":"Last 4 digits of card","example":"1111"},"bin":{"type":"string","description":"Bank Identification Number (first 6 digits)","example":"411111"},"expMonth":{"type":"integer","description":"Card expiry month","example":12},"expYear":{"type":"integer","description":"Card expiry year (two digits)","example":25},"type":{"type":"string","description":"Card type (credit/debit)","example":"credit"},"brand":{"type":"string","description":"Card brand","example":"VISA"},"country":{"type":"string","description":"Card issuing country","example":"US"},"issuerBank":{"type":"string","description":"Card issuer bank","example":"Chase Bank"}},"uniqueKey":"cardDetails.oneOf.1","typeLabel":"null"}],"uniqueKey":"cardDetails","typeLabel":"object | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"123e4567-e89b-12d3-a456-426614174000","type":"CARD","isDefault":false,"createdAt":"2025-01-15T10:00:00.000Z","updatedAt":"2025-01-15T10:00:00.000Z","nickname":"My Visa Card","billingFirstName":"John","billingLastName":"Doe","billingPhoneNumber":"+525512345678","billingEmail":"john.doe@example.com","billingAddressLine1":"123 Main St","billingAddressLine2":"Apt 4B","billingCity":"Mexico City","billingState":"CDMX","billingPostalCode":"12345","billingCountry":"MX","cardDetails":{"last4":"1111","bin":"411111","expMonth":12,"expYear":25,"type":"credit","brand":"VISA","country":"US","issuerBank":"Chase Bank"}}}},"exampleType":"generated"}},"exampleType":"generated"},"795a9b5c-30cd-464f-8e46-21d881d8f759":{"description":"Validation failed","content":{"application/json":{"schema":{"type":"object","description":"Validation error response","required":["message","errors"],"properties":{"message":{"type":"string","description":"Error message","example":"Validation failed","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"errors":{"type":"array","description":"List of validation errors","items":{"type":"object","properties":{"field":{"type":"string","description":"Field that failed validation","example":"name","uniqueKey":"errors.items.[INDEX].field","typeLabel":"string"},"message":{"type":"string","description":"Validation error message","example":"Required","uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"errors","typeLabel":"object[]"}},"example":{"message":"Validation failed","errors":[{"field":"name","message":"Required"}]},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"Validation failed","errors":[{"field":"name","message":"Required"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"24dfb78e-34dd-498e-bb29-bf42c3d2d5c8":{"description":"Unauthorized - invalid or missing API key","content":{"application/json":{"schema":{"type":"object","description":"Unauthorized error response","properties":{"message":{"type":"string","description":"Error message","example":"Invalid api key","uniqueKey":"message","typeLabel":"string"}},"example":{"message":"Invalid api key"},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"Invalid api key"}}},"exampleType":"generated"}},"exampleType":"generated"},"2ef63a72-223a-4e31-bb60-2203433eb8b8":{"description":"Payment method not found","content":{"application/json":{"schema":{"type":"object","description":"Not found error response","properties":{"message":{"type":"string","description":"Error message","example":"Merchant not found","uniqueKey":"message","typeLabel":"string"}},"example":{"message":"Merchant not found"},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"Merchant not found"}}},"exampleType":"generated"}},"exampleType":"generated"},"db234fff-158a-46ba-8d03-f9209daa811e":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","description":"Error response","properties":{"message":{"type":"string","description":"Error message","example":"Error message","uniqueKey":"message","typeLabel":"string"}},"example":{"message":"Error message"},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"Error message"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"c1b7f425-f23b-463f-b717-1ede7de2843d":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key","description":"API key for authentication (required)","scopes":[]},"MerchantIdAuth":{"type":"apiKey","in":"header","name":"x-merchant-id","description":"Merchant ID for identifying the merchant (required)","scopes":[]}}},"servers":{"6182b33a-254e-4891-b1a5-d7816dd9a3d5":{"url":"https://api.sandbox.cheqpay.mx/pos","description":"Sandbox environment"},"a5b2f960-aba9-4c0c-92f6-0448d75e6592":{"url":"https://prod.cheqpay.mx/pos","description":"Production environment"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-api-key","description":"API key for authentication (required)","scopes":[]},"schema":{"title":"x-api-key","type":"string","description":"API key for authentication (required)","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"x-api-key"},{"scheme":{"type":"apiKey","in":"header","name":"x-merchant-id","description":"Merchant ID for identifying the merchant (required)","scopes":[]},"schema":{"title":"x-merchant-id","type":"string","description":"Merchant ID for identifying the merchant (required)","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"MerchantIdAuth","name":"x-merchant-id"}],"title":"ApiKeyAuth \u0026 MerchantIdAuth"}]},"originalFileLocation":"api-reference/orchestrator-openapi.json"},"subdomain":"cheqpay","siteName":"Cheqpay","title":"Update a payment method - Cheqpay","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-17T22:15:37.230Z","originalFileLocation":"api-reference/payment-method/update-a-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=\"description\" content=\"Updates billing information for an existing payment method. At least one billing field must be provided. Card details cannot be updated.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Cheqpay\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/cheqpay/logo/logo.avif\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/cheqpay/logo/logo.avif\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/cheqpay/logo/logo.avif\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/png\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/cheqpay/logo/logo.avif\">\u003cmeta data-mint-head property=\"og:title\" content=\"Update a payment method - Cheqpay\">\u003cmeta data-mint-head property=\"og:description\" content=\"Updates billing information for an existing payment method. At least one billing field must be provided. Card details cannot be updated.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Cheqpay\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.cheqpay.mx/api-reference/payment-method/update-a-payment-method\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://cheqpay.mintlify.site/_mintlify/api/og/v2?division=Payment+Method\u0026amp;title=Update+a+payment+method\u0026amp;description=Updates+billing+information+for+an+existing+payment+method.+At+least+one+billing+field+must+be+provided.+Card+details+cannot+be+updated.\u0026amp;theme=6e0753f2de9f986dbda32f79\u0026amp;signature=f86e657449d63eb02fecae18417301ab71702e28d0d6023ed285e0aca74cbcc5\">\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=\"Update a payment method - Cheqpay\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Updates billing information for an existing payment method. At least one billing field must be provided. Card details cannot be updated.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://cheqpay.mintlify.site/_mintlify/api/og/v2?division=Payment+Method\u0026amp;title=Update+a+payment+method\u0026amp;description=Updates+billing+information+for+an+existing+payment+method.+At+least+one+billing+field+must+be+provided.+Card+details+cannot+be+updated.\u0026amp;theme=6e0753f2de9f986dbda32f79\u0026amp;signature=f86e657449d63eb02fecae18417301ab71702e28d0d6023ed285e0aca74cbcc5\">\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=\"https://mintlify.s3.us-west-1.amazonaws.com/cheqpay/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Cheqpay\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#16A34A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.cheqpay.mx/api-reference/payment-method/update-a-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/payment-method/update-a-payment-method.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.cheqpay.mx/#organization\",\"name\":\"Cheqpay\",\"url\":\"https://docs.cheqpay.mx\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/cheqpay/WjCfb-k6AR5eUe0H/logo/logo.svg?fit=max\u0026auto=format\u0026n=WjCfb-k6AR5eUe0H\u0026q=85\u0026s=6e22e4768984a8158b3094e120aaf1ff\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.cheqpay.mx#website\",\"name\":\"Cheqpay\",\"url\":\"https://docs.cheqpay.mx\",\"publisher\":{\"@id\":\"https://docs.cheqpay.mx/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.cheqpay.mx/api-reference/payment-method/update-a-payment-method#webpage\",\"url\":\"https://docs.cheqpay.mx/api-reference/payment-method/update-a-payment-method\",\"name\":\"Update a payment method\",\"description\":\"Updates billing information for an existing payment method. At least one billing field must be provided. Card details cannot be updated.\",\"dateModified\":\"2026-09-17T22:15:37.230Z\",\"isPartOf\":{\"@id\":\"https://docs.cheqpay.mx#website\"},\"breadcrumb\":{\"@id\":\"https://docs.cheqpay.mx/api-reference/payment-method/update-a-payment-method#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.cheqpay.mx/api-reference/payment-method/update-a-payment-method#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Payment Orchestrator API\",\"item\":\"https://docs.cheqpay.mx/api-reference/customer/get-customer-by-external-id\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Payment Method\",\"item\":\"https://docs.cheqpay.mx/api-reference/payment-method/create-a-payment-method\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Update a payment method\",\"item\":\"https://docs.cheqpay.mx/api-reference/payment-method/update-a-payment-method\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.cheqpay.mx/api-reference/payment-method/update-a-payment-method#apireference\",\"headline\":\"Update a payment method\",\"name\":\"Update a payment method\",\"description\":\"Updates billing information for an existing payment method. At least one billing field must be provided. Card details cannot be updated.\",\"url\":\"https://docs.cheqpay.mx/api-reference/payment-method/update-a-payment-method\",\"mainEntityOfPage\":{\"@id\":\"https://docs.cheqpay.mx/api-reference/payment-method/update-a-payment-method#webpage\"},\"dateModified\":\"2026-09-17T22:15:37.230Z\",\"publisher\":{\"@id\":\"https://docs.cheqpay.mx/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.cheqpay.mx#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Cheqpay\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Cheqpay","nav":{"global":{"anchors":[]},"groups":[{"group":"Getting Started","pages":[{"title":"Welcome to Cheqpay","href":"/index"}]},{"group":"Essentials","pages":[{"title":"Authentication","href":"/essentials/authentication"},{"title":"Environments","href":"/essentials/environments"},{"title":"Quickstart","href":"/essentials/quickstart"}]},{"group":"Features","pages":[{"title":"Customers","href":"/features/customers"},{"title":"Payment Methods","href":"/features/payment-methods"},{"title":"Payment Orders","href":"/features/payment-orders"},{"title":"Pending Orders","href":"/features/pending-orders"},{"title":"Card Payments","href":"/features/card-payments"},{"title":"SPEI Transfers","href":"/features/spei-transfers"},{"title":"PayCash Payments","href":"/features/paycash-payments"},{"title":"CIE Cash Net Payments","href":"/features/cie-cash-net-payments"},{"title":"Hosted Payment Page","href":"/features/hosted-payment-page"},{"title":"Integrate via SDK","href":"/features/integrate-via-sdk"},{"title":"3D Secure","href":"/features/3d-secure"},{"title":"Refunds","href":"/features/refunds"},{"title":"Subscriptions","href":"/features/subscriptions"},{"title":"Webhooks","href":"/features/webhooks"}]},{"group":"Testing","pages":[{"title":"Webhook Simulators","href":"/testing/webhook-simulators"}]},{"group":"Guides","pages":[{"title":"Testing Guide","href":"/guides/testing"},{"title":"Error Handling","href":"/guides/error-handling"},{"title":"Best Practices","href":"/guides/best-practices"},{"title":"Going Live","href":"/guides/going-live"}]},{"group":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/introduction"},{"title":"API Endpoints","href":"/api-reference/endpoints"},{"title":"Error Codes","href":"/api-reference/errors"}]},{"group":"Payment Orchestrator API","pages":[{"group":"Customer","pages":[{"title":"Get customer by external ID","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json get /customers/{id}","href":"/api-reference/customer/get-customer-by-external-id"}]},{"group":"Customer V2","pages":[{"title":"List customers with pagination and filtering (v2)","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json get /v2/customers","href":"/api-reference/customer-v2/list-customers-with-pagination-and-filtering-v2"},{"title":"Create a new customer (v2)","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json post /v2/customers","href":"/api-reference/customer-v2/create-a-new-customer-v2"},{"title":"Get customer by ID (v2)","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json get /v2/customers/{id}","href":"/api-reference/customer-v2/get-customer-by-id-v2"},{"title":"Update customer (v2)","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json put /v2/customers/{id}","href":"/api-reference/customer-v2/update-customer-v2"},{"title":"Delete customer (v2)","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json delete /v2/customers/{id}","href":"/api-reference/customer-v2/delete-customer-v2"}]},{"group":"Checkout","pages":[{"title":"Pay with card, spei, or cie cash net","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json post /checkout/pay","href":"/api-reference/checkout/pay-with-card-spei-or-cie-cash-net"},{"title":"Pay with transfer batch","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json post /checkout/pay-batch","href":"/api-reference/checkout/pay-with-transfer-batch"}]},{"group":"Payment Order","pages":[{"title":"List all payment orders","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json get /v2/payment-orders","href":"/api-reference/payment-order/list-all-payment-orders"},{"title":"Create a payment order (v2)","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json post /v2/payment-orders","href":"/api-reference/payment-order/create-a-payment-order-v2"},{"title":"Get payment order by ID or external ID","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json get /v2/payment-orders/{id}","href":"/api-reference/payment-order/get-payment-order-by-id-or-external-id"},{"title":"Soft delete a payment order","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json delete /v2/payment-orders/{id}","href":"/api-reference/payment-order/soft-delete-a-payment-order"},{"title":"Update a pending payment order","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json patch /v2/payment-orders/{id}","href":"/api-reference/payment-order/update-a-pending-payment-order"},{"title":"Charge a pending payment order","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json post /v2/payment-orders/{id}/charge","href":"/api-reference/payment-order/charge-a-pending-payment-order"},{"title":"Refund a Payment of a payment order (v2)","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json post /v2/payment-orders/{id}/refund","href":"/api-reference/payment-order/refund-a-payment-of-a-payment-order-v2"},{"title":"Initiate 3DS payer authentication","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json post /v2/payment-orders/{id}/payer-authentication","href":"/api-reference/payment-order/initiate-3ds-payer-authentication"},{"title":"Validate 3DS payer authentication","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json post /v2/payment-orders/{id}/payer-authentication/validate","href":"/api-reference/payment-order/validate-3ds-payer-authentication"}]},{"group":"Payment Method","pages":[{"title":"Create a payment method","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json post /payment-methods","href":"/api-reference/payment-method/create-a-payment-method"},{"title":"Get a payment method by ID","description":"Retrieves a payment method by its ID. Returns the payment method details including masked card information.","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json get /payment-methods/{id}","href":"/api-reference/payment-method/get-a-payment-method-by-id"},{"title":"Update a payment method","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json put /payment-methods/{id}","href":"/api-reference/payment-method/update-a-payment-method"},{"title":"Delete a payment method","description":"Deletes a payment method by its ID. This is a soft delete and the payment method can be recovered if needed.","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json delete /payment-methods/{id}","href":"/api-reference/payment-method/delete-a-payment-method"},{"title":"List payment methods for a customer","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json get /v2/customers/{customerId}/payment-methods","href":"/api-reference/payment-method/list-payment-methods-for-a-customer"}]},{"group":"Subscription Plan","pages":[{"title":"List subscription plans","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json get /v1/plans","href":"/api-reference/subscription-plan/list-subscription-plans"},{"title":"Create a subscription plan","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json post /v1/plans","href":"/api-reference/subscription-plan/create-a-subscription-plan"},{"title":"Get a subscription plan by ID","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json get /v1/plans/{id}","href":"/api-reference/subscription-plan/get-a-subscription-plan-by-id"},{"title":"Archive a subscription plan","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json delete /v1/plans/{id}","href":"/api-reference/subscription-plan/archive-a-subscription-plan"},{"title":"Update a subscription plan","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json patch /v1/plans/{id}","href":"/api-reference/subscription-plan/update-a-subscription-plan"}]},{"group":"Subscription","pages":[{"title":"List subscriptions","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json get /v1/subscriptions","href":"/api-reference/subscription/list-subscriptions"},{"title":"Create a subscription","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json post /v1/subscriptions","href":"/api-reference/subscription/create-a-subscription"},{"title":"Get a subscription by ID","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json get /v1/subscriptions/{id}","href":"/api-reference/subscription/get-a-subscription-by-id"},{"title":"Update a subscription","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json patch /v1/subscriptions/{id}","href":"/api-reference/subscription/update-a-subscription"},{"title":"Change subscription plan","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json patch /v1/subscriptions/{id}/plan","href":"/api-reference/subscription/change-subscription-plan"},{"title":"Cancel a subscription","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json post /v1/subscriptions/{id}/cancel","href":"/api-reference/subscription/cancel-a-subscription"}]},{"group":"Subscription Invoice","pages":[{"title":"List invoices for a subscription","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json get /v1/subscriptions/{id}/invoices","href":"/api-reference/subscription-invoice/list-invoices-for-a-subscription"},{"title":"Get an invoice by ID","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json get /v1/subscription-invoices/{id}","href":"/api-reference/subscription-invoice/get-an-invoice-by-id"},{"title":"Process payment for an invoice","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json post /v1/subscription-invoices/{id}/pay","href":"/api-reference/subscription-invoice/process-payment-for-an-invoice"},{"title":"Void an invoice","deprecated":null,"version":null,"openapi":"/api-reference/orchestrator-openapi.json post /v1/subscription-invoices/{id}/void","href":"/api-reference/subscription-invoice/void-an-invoice"}]}]},{"group":"Link Product API","pages":[{"group":"Payment Links","pages":[{"title":"Create payment link","deprecated":null,"version":null,"openapi":"/api-reference/link-product-openapi.json post /payment-links","href":"/api-reference/payment-links/create-payment-link"},{"title":"List payment links","deprecated":null,"version":null,"openapi":"/api-reference/link-product-openapi.json post /payment-links/list","href":"/api-reference/payment-links/list-payment-links"},{"title":"Get payment link","deprecated":null,"version":null,"openapi":"/api-reference/link-product-openapi.json get /payment-links/{id}","href":"/api-reference/payment-links/get-payment-link"},{"title":"Update payment link","deprecated":null,"version":null,"openapi":"/api-reference/link-product-openapi.json put /payment-links/{id}","href":"/api-reference/payment-links/update-payment-link"}]},{"group":"Products","pages":[{"title":"Create product","deprecated":null,"version":null,"openapi":"/api-reference/link-product-openapi.json post /products","href":"/api-reference/products/create-product"},{"title":"Get product","deprecated":null,"version":null,"openapi":"/api-reference/link-product-openapi.json get /products/{id}","href":"/api-reference/products/get-product"},{"title":"Update product","deprecated":null,"version":null,"openapi":"/api-reference/link-product-openapi.json put /products/{id}","href":"/api-reference/products/update-product"},{"title":"Delete product","deprecated":null,"version":null,"openapi":"/api-reference/link-product-openapi.json delete /products/{id}","href":"/api-reference/products/delete-product"},{"title":"List products","deprecated":null,"version":null,"openapi":"/api-reference/link-product-openapi.json post /products/list","href":"/api-reference/products/list-products"},{"title":"Bulk import products","deprecated":null,"version":null,"openapi":"/api-reference/link-product-openapi.json post /products/bulk-import","href":"/api-reference/products/bulk-import-products"}]},{"group":"Invoices","pages":[{"title":"List invoices","deprecated":null,"version":null,"openapi":"/api-reference/link-product-openapi.json get /invoices","href":"/api-reference/invoices/list-invoices"},{"title":"Get invoice","deprecated":null,"version":null,"openapi":"/api-reference/link-product-openapi.json get /invoices/{id}","href":"/api-reference/invoices/get-invoice"},{"title":"Refund invoice","deprecated":null,"version":null,"openapi":"/api-reference/link-product-openapi.json post /invoices/{id}/refund","href":"/api-reference/invoices/refund-invoice"}]}]}]},"basePath":"","title":"Update a payment method - Cheqpay","buildId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","deploymentId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CBsVopKK.js","utils-DZAk68jJ.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-D32AYZrP.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-D_A5_cny.js","snippetPresets-xNRfS9th.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BIB25-tq.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CydJ4w4j.js","shallow-CYPBeQSG.js","getApiPlaygroundDisplay-A5xJVBOu.js","CodeSnippet-BVRTgi3m.js","CodeSnippets-DjD6BSlt.js","Page-Dr40SSJq.js","getPastedJson-D4V4JyrR.js","icon-uhcnG22T.js","MethodPill-CM-ZQdGH.js","DuplicateIcon-B_WnOiNf.js","createIcon-CJsb8utt.js","DynamicMarkdown-D-2HDKEp.js","SectionHeading-KP5xmMgQ.js","axios-vUo_bRtp.js","Markdown-D_k0dg6k.js","clsx-DK3K4Z1S.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-DE3EVdvd.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-fN9H9n9g.js"]}