{"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":""},"chroma":{"liveDeploymentHistoryId":"6aac66185343956ba6628a63","collectionId":"af045d3c-4e98-46ac-8f69-44317d1eed8c","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6aac66185343956ba6628a63"},"entitlements":{},"buildId":"6aac66185343956ba6628a63","clientVersion":"0.0.4076","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":[],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/invoices/get-invoice","slug":"/api-reference/invoices/get-invoice","pageMetadata":{"title":"Get invoice","description":"Retrieve an invoice by ID","deprecated":null,"version":null,"openapi":"/api-reference/link-product-openapi.json get /invoices/{id}","href":"/api-reference/invoices/get-invoice","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: \"Retrieve an invoice by ID\"\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":"Get invoice","description":"Retrieve an invoice by ID","deprecated":null,"version":null,"openapi":"/api-reference/link-product-openapi.json get /invoices/{id}","href":"/api-reference/invoices/get-invoice","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/cheqpay/bdac4afbee45d6cc/scripts/sync-openapi.js"],"openApiReferenceData":{"operation":{"tags":["Invoices"],"summary":"Get invoice","description":"Retrieve an invoice by ID","parameters":["b1fc8115-9115-43de-b3a6-0e5610d922d0"],"responses":{"200":"bd9e507a-ac20-4c52-984a-50bc8d360d60","404":"04bb294e-7564-4bc7-9ca3-ce83391c7b6e","500":"0d4492b3-c55a-4073-9b48-96eb6b009ca5"},"method":"get","type":"path","servers":["ee30a8d1-4607-4822-8023-57c60b4cd7d6","9e31f532-8a84-4880-a741-97cd3481ff79"],"security":[],"path":"/invoices/{id}","baseUrlOptions":["https://api.sandbox.cheqpay.mx/lps","https://prod.cheqpay.mx/lps"],"title":"Get invoice","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"b1fc8115-9115-43de-b3a6-0e5610d922d0":{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-f\\d]{24}$","isRequired":true,"description":"Invoice ID (MongoDB ObjectId)","uniqueKey":"","typeLabel":"string"},"description":"Invoice ID (MongoDB ObjectId)"}},"responses":{"bd9e507a-ac20-4c52-984a-50bc8d360d60":{"description":"Invoice retrieved successfully","content":{"application/json":{"schema":{"type":"object","description":"Invoice details","properties":{"_id":{"type":"string","description":"Invoice ID","uniqueKey":"_id","typeLabel":"string"},"customerId":{"type":"string","description":"Customer ID","uniqueKey":"customerId","typeLabel":"string"},"merchantId":{"type":"string","pattern":"^[a-f\\d]{24}$","description":"Merchant ID","uniqueKey":"merchantId","typeLabel":"string"},"paymentOrderId":{"type":"string","description":"Payment order ID","uniqueKey":"paymentOrderId","typeLabel":"string"},"paymentLinkId":{"type":"string","description":"Payment link ID","uniqueKey":"paymentLinkId","typeLabel":"string"},"reference":{"type":"string","description":"Merchant reference","uniqueKey":"reference","typeLabel":"string"},"externalId":{"type":"string","description":"Merchant reference","uniqueKey":"externalId","typeLabel":"string"},"orderNumber":{"type":"string","description":"Order number","uniqueKey":"orderNumber","typeLabel":"string"},"invoiceNumber":{"oneOf":[{"type":"string","description":"Merchant-provided invoice number; shown to customers instead of orderNumber when present","uniqueKey":"invoiceNumber.oneOf.0","typeLabel":"string"},{"type":"null","description":"Merchant-provided invoice number; shown to customers instead of orderNumber when present","uniqueKey":"invoiceNumber.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoiceNumber","typeLabel":"string | null"},"products":{"type":"array","items":{"type":"object","description":"Product in a payment link","required":["name","qty","price","total"],"properties":{"name":{"type":"string","description":"Product name","isRequired":true,"uniqueKey":"products.items.[INDEX].name","typeLabel":"string"},"qty":{"type":"number","minimum":1,"description":"Product quantity","isRequired":true,"uniqueKey":"products.items.[INDEX].qty","typeLabel":"number"},"price":{"type":"number","minimum":0,"description":"Product price","isRequired":true,"uniqueKey":"products.items.[INDEX].price","typeLabel":"number"},"total":{"type":"number","minimum":0,"description":"Total price for this product","isRequired":true,"uniqueKey":"products.items.[INDEX].total","typeLabel":"number"},"id":{"type":"string","description":"Product identifier (optional for new products)","uniqueKey":"products.items.[INDEX].id","typeLabel":"string"},"description":{"type":"string","description":"Product description","uniqueKey":"products.items.[INDEX].description","typeLabel":"string"},"imageUrl":{"type":"string","description":"Product image URL","uniqueKey":"products.items.[INDEX].imageUrl","typeLabel":"string"},"isQtyAdjustable":{"type":"boolean","description":"Whether the quantity is adjustable by the customer","uniqueKey":"products.items.[INDEX].isQtyAdjustable","typeLabel":"boolean"},"minQty":{"type":"number","description":"Minimum quantity if adjustable","uniqueKey":"products.items.[INDEX].minQty","typeLabel":"number"},"maxQty":{"type":"number","description":"Maximum quantity if adjustable","uniqueKey":"products.items.[INDEX].maxQty","typeLabel":"number"}},"uniqueKey":"products.items.[INDEX]","typeLabel":"object"},"description":"Products in the invoice","uniqueKey":"products","typeLabel":"object[]"},"totals":{"type":"object","properties":{"total":{"type":"number","description":"Total amount charged to the customer (subtotal + surcharge).","uniqueKey":"totals.total","typeLabel":"number"},"subtotal":{"type":"number","description":"Merchandise subtotal — the amount agreed before any surcharge.","uniqueKey":"totals.subtotal","typeLabel":"number"},"taxes":{"type":"number","description":"Tax amount","uniqueKey":"totals.taxes","typeLabel":"number"},"shipping":{"type":"number","description":"Shipping amount","uniqueKey":"totals.shipping","typeLabel":"number"},"fees":{"type":"number","description":"Fees amount","uniqueKey":"totals.fees","typeLabel":"number"},"discounts":{"type":"number","description":"Discount amount","uniqueKey":"totals.discounts","typeLabel":"number"},"surcharge":{"type":"number","description":"Surcharge applied on top of subtotal. Omitted when no surcharge applies.","uniqueKey":"totals.surcharge","typeLabel":"number"},"surchargeRate":{"type":"number","description":"Snapshot of the merchant's surcharge rate (percent) at charge time. Omitted when no surcharge applies.","uniqueKey":"totals.surchargeRate","typeLabel":"number"}},"uniqueKey":"totals","typeLabel":"object"},"billingAddress":{"type":"object","description":"Address information","properties":{"firstName":{"type":"string","description":"First name","uniqueKey":"billingAddress.firstName","typeLabel":"string"},"lastName":{"type":"string","description":"Last name","uniqueKey":"billingAddress.lastName","typeLabel":"string"},"organizationName":{"type":"string","description":"Organization name","uniqueKey":"billingAddress.organizationName","typeLabel":"string"},"email":{"type":"string","format":"email","description":"Email address","uniqueKey":"billingAddress.email","typeLabel":"string\u003cemail>"},"phone":{"type":"string","description":"Phone number","uniqueKey":"billingAddress.phone","typeLabel":"string"},"addressLine1":{"type":"string","description":"Street address","uniqueKey":"billingAddress.addressLine1","typeLabel":"string"},"addressLine2":{"type":"string","description":"Additional address information (apartment, suite, unit, etc.)","uniqueKey":"billingAddress.addressLine2","typeLabel":"string"},"city":{"type":"string","description":"City","uniqueKey":"billingAddress.city","typeLabel":"string"},"state":{"type":"string","description":"State","uniqueKey":"billingAddress.state","typeLabel":"string"},"postalCode":{"type":"string","description":"Postal code","uniqueKey":"billingAddress.postalCode","typeLabel":"string"},"country":{"type":"string","pattern":"^[A-Z]{2}$","description":"Country code (2 letters)","uniqueKey":"billingAddress.country","typeLabel":"string"},"isSameAsShipping":{"type":"boolean","description":"Whether billing address is same as shipping","uniqueKey":"billingAddress.isSameAsShipping","typeLabel":"boolean"}},"uniqueKey":"billingAddress","typeLabel":"object"},"shippingAddress":{"type":"object","description":"Address information","properties":{"firstName":{"type":"string","description":"First name","uniqueKey":"shippingAddress.firstName","typeLabel":"string"},"lastName":{"type":"string","description":"Last name","uniqueKey":"shippingAddress.lastName","typeLabel":"string"},"organizationName":{"type":"string","description":"Organization name","uniqueKey":"shippingAddress.organizationName","typeLabel":"string"},"email":{"type":"string","format":"email","description":"Email address","uniqueKey":"shippingAddress.email","typeLabel":"string\u003cemail>"},"phone":{"type":"string","description":"Phone number","uniqueKey":"shippingAddress.phone","typeLabel":"string"},"addressLine1":{"type":"string","description":"Street address","uniqueKey":"shippingAddress.addressLine1","typeLabel":"string"},"addressLine2":{"type":"string","description":"Additional address information (apartment, suite, unit, etc.)","uniqueKey":"shippingAddress.addressLine2","typeLabel":"string"},"city":{"type":"string","description":"City","uniqueKey":"shippingAddress.city","typeLabel":"string"},"state":{"type":"string","description":"State","uniqueKey":"shippingAddress.state","typeLabel":"string"},"postalCode":{"type":"string","description":"Postal code","uniqueKey":"shippingAddress.postalCode","typeLabel":"string"},"country":{"type":"string","pattern":"^[A-Z]{2}$","description":"Country code (2 letters)","uniqueKey":"shippingAddress.country","typeLabel":"string"}},"uniqueKey":"shippingAddress","typeLabel":"object"},"paymentMethod":{"type":"object","description":"Payment method details","properties":{"type":{"type":"string","description":"Payment method type","enum":["card","saved","spei","cie_cash_net"],"uniqueKey":"paymentMethod.type","typeLabel":"enum\u003cstring>"},"card":{"type":"object","description":"Card details","properties":{"bin":{"type":"string","description":"Bank identification number","uniqueKey":"paymentMethod.card.bin","typeLabel":"string"},"brand":{"type":"string","description":"Card brand","uniqueKey":"paymentMethod.card.brand","typeLabel":"string"},"country":{"type":"string","description":"Card country","uniqueKey":"paymentMethod.card.country","typeLabel":"string"},"expiryMonth":{"type":"string","description":"Expiry month","uniqueKey":"paymentMethod.card.expiryMonth","typeLabel":"string"},"expiryYear":{"type":"string","description":"Expiry year","uniqueKey":"paymentMethod.card.expiryYear","typeLabel":"string"},"issuerBank":{"type":"string","description":"Issuer bank","uniqueKey":"paymentMethod.card.issuerBank","typeLabel":"string"},"last4":{"type":"string","description":"Last 4 digits of card","uniqueKey":"paymentMethod.card.last4","typeLabel":"string"},"type":{"type":"string","description":"Card type","uniqueKey":"paymentMethod.card.type","typeLabel":"string"}},"uniqueKey":"paymentMethod.card","typeLabel":"object"},"spei":{"type":"object","description":"SPEI payment details","properties":{"clabe":{"type":"string","description":"CLABE number","uniqueKey":"paymentMethod.spei.clabe","typeLabel":"string"}},"uniqueKey":"paymentMethod.spei","typeLabel":"object"},"cieCashNet":{"type":"object","description":"CIE Cash Net payment details","properties":{"reference":{"type":"string","description":"CIE reference number for cash payment at convenience stores","example":"CIE0000000001","uniqueKey":"paymentMethod.cieCashNet.reference","typeLabel":"string"},"convenio":{"type":"string","description":"BBVA account number for same-bank payments","example":"0123456789","uniqueKey":"paymentMethod.cieCashNet.convenio","typeLabel":"string"},"clabe":{"type":"string","description":"Interbank account number (CLABE) for transfers from other banks","example":"012345678901234567","uniqueKey":"paymentMethod.cieCashNet.clabe","typeLabel":"string"}},"uniqueKey":"paymentMethod.cieCashNet","typeLabel":"object"}},"uniqueKey":"paymentMethod","typeLabel":"object"},"status":{"type":"string","enum":["pending","paid","cancelled","refunded","failed","abandoned"],"description":"Invoice status","uniqueKey":"status","typeLabel":"enum\u003cstring>"},"customFields":{"type":"array","items":{"type":"object","description":"Customer-submitted answer for a payment link custom field. `value` must match the field's `type`: string for text/number/email/phone/date/radio/select, boolean for switch, string array for checkbox.","required":["label","type"],"properties":{"label":{"type":"string","minLength":1,"maxLength":255,"description":"Label of the matching custom field on the payment link","isRequired":true,"uniqueKey":"customFields.items.[INDEX].label","typeLabel":"string"},"type":{"type":"string","enum":["text","number","email","phone","date","switch","radio","checkbox","select"],"description":"Field type, must match the payment link definition","isRequired":true,"uniqueKey":"customFields.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"value":{"oneOf":[{"type":"string","description":"Customer-submitted value","uniqueKey":"customFields.items.[INDEX].value.oneOf.0","typeLabel":"string"},{"type":"boolean","description":"Customer-submitted value","uniqueKey":"customFields.items.[INDEX].value.oneOf.1","typeLabel":"boolean"},{"type":"array","items":{"type":"string","uniqueKey":"customFields.items.[INDEX].value.oneOf.2.items.[INDEX]","typeLabel":"string"},"description":"Customer-submitted value","uniqueKey":"customFields.items.[INDEX].value.oneOf.2","typeLabel":"string[]"}],"uniqueKey":"customFields.items.[INDEX].value","typeLabel":"string | boolean | string[]"}},"uniqueKey":"customFields.items.[INDEX]","typeLabel":"object"},"description":"Snapshot of the customer-submitted answers for the payment link's custom fields","uniqueKey":"customFields","typeLabel":"object[]"},"metadata":{"type":"object","additionalProperties":true,"description":"Additional metadata","uniqueKey":"metadata","typeLabel":"object"},"createdAt":{"type":"string","format":"date-time","description":"Creation timestamp","uniqueKey":"createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"type":"string","format":"date-time","description":"Last update timestamp","uniqueKey":"updatedAt","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"_id":"\u003cstring>","customerId":"\u003cstring>","merchantId":"\u003cstring>","paymentOrderId":"\u003cstring>","paymentLinkId":"\u003cstring>","reference":"\u003cstring>","externalId":"\u003cstring>","orderNumber":"\u003cstring>","invoiceNumber":"\u003cstring>","products":[{"name":"\u003cstring>","qty":2,"price":1,"total":1,"id":"\u003cstring>","description":"\u003cstring>","imageUrl":"\u003cstring>","isQtyAdjustable":true,"minQty":123,"maxQty":123}],"totals":{"total":123,"subtotal":123,"taxes":123,"shipping":123,"fees":123,"discounts":123,"surcharge":123,"surchargeRate":123},"billingAddress":{"firstName":"\u003cstring>","lastName":"\u003cstring>","organizationName":"\u003cstring>","email":"jsmith@example.com","phone":"\u003cstring>","addressLine1":"\u003cstring>","addressLine2":"\u003cstring>","city":"\u003cstring>","state":"\u003cstring>","postalCode":"\u003cstring>","country":"\u003cstring>","isSameAsShipping":true},"shippingAddress":{"firstName":"\u003cstring>","lastName":"\u003cstring>","organizationName":"\u003cstring>","email":"jsmith@example.com","phone":"\u003cstring>","addressLine1":"\u003cstring>","addressLine2":"\u003cstring>","city":"\u003cstring>","state":"\u003cstring>","postalCode":"\u003cstring>","country":"\u003cstring>"},"paymentMethod":{"type":"card","card":{"bin":"\u003cstring>","brand":"\u003cstring>","country":"\u003cstring>","expiryMonth":"\u003cstring>","expiryYear":"\u003cstring>","issuerBank":"\u003cstring>","last4":"\u003cstring>","type":"\u003cstring>"},"spei":{"clabe":"\u003cstring>"},"cieCashNet":{"reference":"CIE0000000001","convenio":"0123456789","clabe":"012345678901234567"}},"status":"pending","customFields":[{"label":"\u003cstring>","type":"text","value":"\u003cstring>"}],"metadata":{},"createdAt":"2023-11-07T05:31:56Z","updatedAt":"2023-11-07T05:31:56Z"}}},"exampleType":"generated"}},"exampleType":"generated"},"04bb294e-7564-4bc7-9ca3-ce83391c7b6e":{"description":"Invoice not found","content":{"application/json":{"schema":{"type":"object","description":"Not found error response","properties":{"message":{"type":"string","description":"Error message","example":"Resource not found","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"Resource not found"}}},"exampleType":"generated"}},"exampleType":"generated"},"0d4492b3-c55a-4073-9b48-96eb6b009ca5":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","description":"Internal server error response","properties":{"message":{"type":"string","description":"Error message","example":"Internal server error","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"Internal server error"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{},"servers":{"ee30a8d1-4607-4822-8023-57c60b4cd7d6":{"url":"https://api.sandbox.cheqpay.mx/lps","description":"Sandbox environment"},"9e31f532-8a84-4880-a741-97cd3481ff79":{"url":"https://prod.cheqpay.mx/lps","description":"Production environment"}}},"originalFileLocation":"api-reference/link-product-openapi.json"},"subdomain":"cheqpay","siteName":"Cheqpay","title":"Get invoice - Cheqpay","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-27T21:53:20.547Z","originalFileLocation":"api-reference/invoices/get-invoice.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=\"Retrieve an invoice by ID\">\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=\"Get invoice - Cheqpay\">\u003cmeta data-mint-head property=\"og:description\" content=\"Retrieve an invoice by ID\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Cheqpay\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.cheqpay.mx/api-reference/invoices/get-invoice\">\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=Invoices\u0026amp;title=Get+invoice\u0026amp;description=Retrieve+an+invoice+by+ID\u0026amp;theme=6e0753f2de9f986dbda32f79\u0026amp;signature=a92e3c5c261b947b682924bc0dccce998f75e8e29e1cc7dd9157751af5d3a7fb\">\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=\"Get invoice - Cheqpay\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Retrieve an invoice by ID\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://cheqpay.mintlify.site/_mintlify/api/og/v2?division=Invoices\u0026amp;title=Get+invoice\u0026amp;description=Retrieve+an+invoice+by+ID\u0026amp;theme=6e0753f2de9f986dbda32f79\u0026amp;signature=a92e3c5c261b947b682924bc0dccce998f75e8e29e1cc7dd9157751af5d3a7fb\">\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/invoices/get-invoice\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/invoices/get-invoice.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/invoices/get-invoice#webpage\",\"url\":\"https://docs.cheqpay.mx/api-reference/invoices/get-invoice\",\"name\":\"Get invoice\",\"description\":\"Retrieve an invoice by ID\",\"dateModified\":\"2026-08-27T21:53:20.547Z\",\"isPartOf\":{\"@id\":\"https://docs.cheqpay.mx#website\"},\"breadcrumb\":{\"@id\":\"https://docs.cheqpay.mx/api-reference/invoices/get-invoice#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.cheqpay.mx/api-reference/invoices/get-invoice#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Link Product API\",\"item\":\"https://docs.cheqpay.mx/api-reference/payment-links/create-payment-link\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Invoices\",\"item\":\"https://docs.cheqpay.mx/api-reference/invoices/list-invoices\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Get invoice\",\"item\":\"https://docs.cheqpay.mx/api-reference/invoices/get-invoice\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.cheqpay.mx/api-reference/invoices/get-invoice#apireference\",\"headline\":\"Get invoice\",\"name\":\"Get invoice\",\"description\":\"Retrieve an invoice by ID\",\"url\":\"https://docs.cheqpay.mx/api-reference/invoices/get-invoice\",\"mainEntityOfPage\":{\"@id\":\"https://docs.cheqpay.mx/api-reference/invoices/get-invoice#webpage\"},\"dateModified\":\"2026-08-27T21:53:20.547Z\",\"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","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","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","description":"List invoices with pagination, filtering, and sorting. Results are automatically filtered by the authenticated merchant unless a different merchantId is provided. The metadata field is excluded from the response.","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","description":"Refund an invoice by ID. The refund is delegated to the underlying payment order. Multiple partial refunds are supported up to the invoice amount.","deprecated":null,"version":null,"openapi":"/api-reference/link-product-openapi.json post /invoices/{id}/refund","href":"/api-reference/invoices/refund-invoice"}]}]}]},"basePath":"","title":"Get invoice - Cheqpay","buildId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","deploymentId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-i2a3QZ8E.js","utils-ChLwp8m0.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DRktVTDc.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-CA2pEs4T.js","snippetPresets-ClQ6XrKD.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-Ct_Lv36y.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-Cn2PYw9e.js","shallow-rkyymjXQ.js","getApiPlaygroundDisplay-BB9vkXtE.js","CodeSnippet-Bm5RU7m1.js","CodeSnippets-BgU9Deuz.js","Page-BUDYNlhG.js","getPastedJson-BD-6NNum.js","icon-8Z6tud2e.js","MethodPill-Tuzr4g3V.js","DuplicateIcon-0ceWFYhN.js","createIcon-FBXow_ST.js","DynamicMarkdown-CD8713Yy.js","SectionHeading-7zgzQbH-.js","axios-vUo_bRtp.js","Markdown-D7Ofw1oz.js","clsx-eKJ4rcii.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CwjSCXIK.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-9EK5IAXV.js"]}