Reverts a completed external (OTHER) payment and removes its invoice allocations. By default, requests cancellation of related PUE tax invoices and payment tax receipts, but never PPD invoices. Set input.cancelTaxInvoice to false to keep the fiscal documents. This does not refund a processor charge; only superusers may revert non-OTHER payments.
A payment record for a completed or pending transaction.
Show child attributes
Was this page helpful?
{"docsConfig":{"theme":"palm","$schema":"https://mintlify.com/docs.json","name":"Documentación Quentli","colors":{"primary":"#414db4","light":"#7e99dc","dark":"#7e99dc"},"logo":{"light":"https://mintcdn.com/quentli/aR3Y16lZazPb_ZiE/logo/light.svg?fit=max\u0026auto=format\u0026n=aR3Y16lZazPb_ZiE\u0026q=85\u0026s=bca8ca17b17dc509ecd3ebc7c2c67ff2","dark":"https://mintcdn.com/quentli/aR3Y16lZazPb_ZiE/logo/dark.svg?fit=max\u0026auto=format\u0026n=aR3Y16lZazPb_ZiE\u0026q=85\u0026s=370c4992fd11109d34e43d6bbfbc2465"},"favicon":"https://mintcdn.com/quentli/aR3Y16lZazPb_ZiE/favicon.svg?fit=max\u0026auto=format\u0026n=aR3Y16lZazPb_ZiE\u0026q=85\u0026s=b5589b80c7d4b9c8b5cc7196ea070345","api":{"playground":{"credentials":false},"examples":{"prefill":true}},"navbar":{"links":[{"href":"mailto:soporte@quentli.com","label":"Soporte"}],"primary":{"type":"button","label":"Dashboard","href":"https://dashboard.quentli.com"}},"footer":{"socials":{"x":"https://x.com/quentliapp","github":"https://github.com/quentli","linkedin":"https://linkedin.com/company/quentli","facebook":"https://facebook.com/quentliapp"}},"contextual":{"options":["copy","download-spec","chatgpt","claude"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"languages":[{"language":"es","default":true,"hidden":true,"href":"https://docs.quentli.com"}],"anchors":[{"anchor":"Sitio web","icon":"globe","href":"https://quentli.com"},{"anchor":"Blog","icon":"newspaper","href":"https://quentli.com/blog"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"quentli","hasAudioNarration":false,"actualSubdomain":"quentli","customDomains":["docs.quentli.com"],"gitSource":{"type":"github","owner":"quentli","repo":"quentli","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true,"agentFeedback":true},"entitlements":{},"buildId":"6af1441fe0cc5ecdc4101e00","clientVersion":"0.0.4088","searchFilterCounts":[{"language":"default","tag":"Guía de la API","count":107},{"language":"default","tag":"Endpoints","count":62},{"language":"default","tag":"Webhooks","count":29},{"language":"default","tag":"Schemas","count":29},{"language":"default","tag":"Manual de usuario","count":29},{"language":"default","tag":"Cobranza","count":14},{"language":"default","tag":"Invoices","count":11},{"language":"default","tag":"Conceptos","count":10},{"language":"default","tag":"Customers","count":9},{"language":"default","tag":"Catalog","count":9}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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/payments/revert-payment","slug":"/api/payments/revert-payment","pageMetadata":{"title":"Revert payment","description":"Reverts a completed external (OTHER) payment and removes its invoice allocations. By default, requests cancellation of related PUE tax invoices and payment tax receipts, but never PPD invoices. Set input.cancelTaxInvoice to false to keep the fiscal documents. This does not refund a processor charge; only superusers may revert non-OTHER payments.","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/payments/{id}/revert","href":"/api/payments/revert-payment","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: \"Reverts a completed external (OTHER) payment and removes its invoice allocations. By default, requests cancellation of related PUE tax invoices and payment tax receipts, but never PPD invoices. Set input.cancelTaxInvoice to false to keep the fiscal documents. This does not refund a processor charge; only superusers may revert non-OTHER payments.\"\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":"Revert payment","description":"Reverts a completed external (OTHER) payment and removes its invoice allocations. By default, requests cancellation of related PUE tax invoices and payment tax receipts, but never PPD invoices. Set input.cancelTaxInvoice to false to keep the fiscal documents. This does not refund a processor charge; only superusers may revert non-OTHER payments.","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/payments/{id}/revert","href":"/api/payments/revert-payment","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"payments_revert","tags":["Payments"],"summary":"Revert payment","description":"Reverts a completed external (OTHER) payment and removes its invoice allocations. By default, requests cancellation of related PUE tax invoices and payment tax receipts, but never PPD invoices. Set input.cancelTaxInvoice to false to keep the fiscal documents. This does not refund a processor charge; only superusers may revert non-OTHER payments.","parameters":["19ac085b-28d3-423f-95b9-f73c9d25ad2c"],"requestBody":"945ef12a-db7a-41f1-84af-ec41fa02018d","responses":{"200":"6d669dfa-2cf2-41ad-8425-97be869bc536","400":"5cd48bf6-e314-4004-b279-fff85dc85172","401":"4637404a-6b53-4e35-8e2e-608742eed9fe","403":"c5ba6518-65ff-4bd0-b86e-7d22436bacd7","404":"7378bfd2-a40a-4f0e-8dfd-a28cf01e2251"},"method":"post","type":"path","servers":["a830ccdf-74b9-4188-8dbc-ed92e15438c1","57775ea9-e86b-4d47-95a1-f4d48317fb67"],"security":["7811d4db-db6c-433c-bc56-3c26bf245c75","8c390e87-9700-4b4f-bcd1-b5505f1842f8"],"path":"/v1/payments/{id}/revert","baseUrlOptions":["https://api.quentli.com","https://api.staging.quentli.com"],"title":"Revert payment","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[{"body.input.reason":"\u003cstring>","body.input.cancelTaxInvoice":true}]},"dependencies":{"parameters":{"19ac085b-28d3-423f-95b9-f73c9d25ad2c":{"schema":{"type":"string","description":"Identifier of the payment.","isRequired":true,"uniqueKey":"","typeLabel":"string"},"required":true,"description":"Identifier of the payment.","name":"id","in":"path"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","properties":{"reason":{"type":"string","uniqueKey":"input.reason","typeLabel":"string"},"cancelTaxInvoice":{"type":"boolean","default":true,"description":"Request cancellation of related PUE tax invoices and payment tax receipts. PPD invoices are not canceled.","uniqueKey":"input.cancelTaxInvoice","typeLabel":"boolean"}},"isRequired":true,"uniqueKey":"input","typeLabel":"object"}},"required":["input"],"description":"Request body for reverting a payment (payment id is provided in the URL path).","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"input":{"reason":"\u003cstring>","cancelTaxInvoice":true}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"6d669dfa-2cf2-41ad-8425-97be869bc536":{"description":"Payment reverted","content":{"application/json":{"schema":{"type":"object","properties":{"payment":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the payment.","example":"p_1234567890abcdefghij","isRequired":true,"uniqueKey":"payment.id","typeLabel":"string"},"createdAt":{"type":"string","format":"date-time","description":"When the payment record was created.","example":"2025-01-15T18:30:00.000Z","isRequired":true,"uniqueKey":"payment.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"type":"string","format":"date-time","description":"When the payment was last updated.","example":"2025-01-15T18:30:00.000Z","isRequired":true,"uniqueKey":"payment.updatedAt","typeLabel":"string\u003cdate-time>"},"amount":{"type":"number","description":"Payment amount in minor currency units.","example":150000,"isRequired":true,"uniqueKey":"payment.amount","typeLabel":"number"},"currency":{"type":"string","description":"ISO 4217 currency code.","example":"MXN","isRequired":true,"uniqueKey":"payment.currency","typeLabel":"string"},"description":{"oneOf":[{"type":"string","description":"Human-readable description of the payment.","example":"Colegiatura Enero 2025","isRequired":true,"uniqueKey":"payment.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"Human-readable description of the payment.","example":"Colegiatura Enero 2025","isRequired":true,"uniqueKey":"payment.description.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"payment.description","typeLabel":"string | null"},"type":{"oneOf":[{"type":"string","enum":["TRANSFER","CARD","OXXO","OTHER","CASH","DIRECT_DEBIT",null],"description":"Payment type.","example":"CARD","isRequired":true,"uniqueKey":"payment.type.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["TRANSFER","CARD","OXXO","OTHER","CASH","DIRECT_DEBIT",null],"description":"Payment type.","example":"CARD","isRequired":true,"uniqueKey":"payment.type.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"payment.type","typeLabel":"enum\u003cstring> | null"},"status":{"oneOf":[{"type":"string","enum":["INCOMPLETE","COMPLETE","CANCELED","INITIATED","REFUNDED","DISPUTED","REVERTED",null],"description":"Current payment status.","example":"COMPLETE","isRequired":true,"uniqueKey":"payment.status.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["INCOMPLETE","COMPLETE","CANCELED","INITIATED","REFUNDED","DISPUTED","REVERTED",null],"description":"Current payment status.","example":"COMPLETE","isRequired":true,"uniqueKey":"payment.status.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"payment.status","typeLabel":"enum\u003cstring> | null"},"isCompleted":{"type":"boolean","description":"Whether the payment has been fully settled.","example":true,"isRequired":true,"uniqueKey":"payment.isCompleted","typeLabel":"boolean"},"paymentTime":{"oneOf":[{"type":"string","format":"date-time","description":"Date and time when the payment was completed.","example":"2025-01-15T18:30:00.000Z","isRequired":true,"uniqueKey":"payment.paymentTime.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Date and time when the payment was completed.","example":"2025-01-15T18:30:00.000Z","isRequired":true,"uniqueKey":"payment.paymentTime.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"payment.paymentTime","typeLabel":"string\u003cdate-time> | null"},"customerId":{"type":"string","description":"Identifier of the customer who made the payment.","example":"cus_1234567890abcdefghij","isRequired":true,"uniqueKey":"payment.customerId","typeLabel":"string"},"paymentIntentId":{"oneOf":[{"type":"string","description":"Payment processor intent identifier, if any.","example":null,"isRequired":true,"uniqueKey":"payment.paymentIntentId.oneOf.0","typeLabel":"string"},{"type":"null","description":"Payment processor intent identifier, if any.","example":null,"isRequired":true,"uniqueKey":"payment.paymentIntentId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"payment.paymentIntentId","typeLabel":"string | null"},"organizationId":{"type":"string","description":"Identifier of the owning organization.","example":"org_1234567890abcdefghij","isRequired":true,"uniqueKey":"payment.organizationId","typeLabel":"string"},"skipTaxInvoice":{"type":"boolean","description":"Whether tax invoice generation is skipped for this payment.","example":false,"isRequired":true,"uniqueKey":"payment.skipTaxInvoice","typeLabel":"boolean"},"monthlyInstallments":{"oneOf":[{"type":"integer","description":"Number of monthly installments, if any.","example":null,"isRequired":true,"uniqueKey":"payment.monthlyInstallments.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Number of monthly installments, if any.","example":null,"isRequired":true,"uniqueKey":"payment.monthlyInstallments.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"payment.monthlyInstallments","typeLabel":"integer | null"},"processor":{"oneOf":[{"type":"string","enum":["FISERV","KUSHKI","QUENTLI","SANTANDER","STRIPE","TAPI",null],"description":"Processor that handled the payment, if any.","example":null,"isRequired":true,"uniqueKey":"payment.processor.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["FISERV","KUSHKI","QUENTLI","SANTANDER","STRIPE","TAPI",null],"description":"Processor that handled the payment, if any.","example":null,"isRequired":true,"uniqueKey":"payment.processor.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"payment.processor","typeLabel":"enum\u003cstring> | null"},"processorFee":{"oneOf":[{"type":"integer","description":"Processor fee in minor currency units, if known.","example":null,"isRequired":true,"uniqueKey":"payment.processorFee.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Processor fee in minor currency units, if known.","example":null,"isRequired":true,"uniqueKey":"payment.processorFee.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"payment.processorFee","typeLabel":"integer | null"},"processorFeeTax":{"oneOf":[{"type":"integer","description":"Tax on the processor fee in minor currency units, if known.","example":null,"isRequired":true,"uniqueKey":"payment.processorFeeTax.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Tax on the processor fee in minor currency units, if known.","example":null,"isRequired":true,"uniqueKey":"payment.processorFeeTax.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"payment.processorFeeTax","typeLabel":"integer | null"},"installmentsFee":{"oneOf":[{"type":"integer","description":"Installments fee in minor currency units, if any.","example":null,"isRequired":true,"uniqueKey":"payment.installmentsFee.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Installments fee in minor currency units, if any.","example":null,"isRequired":true,"uniqueKey":"payment.installmentsFee.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"payment.installmentsFee","typeLabel":"integer | null"},"installmentsFeeTax":{"oneOf":[{"type":"integer","description":"Tax on the installments fee in minor currency units, if any.","example":null,"isRequired":true,"uniqueKey":"payment.installmentsFeeTax.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Tax on the installments fee in minor currency units, if any.","example":null,"isRequired":true,"uniqueKey":"payment.installmentsFeeTax.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"payment.installmentsFeeTax","typeLabel":"integer | null"},"externalPaymentTypeId":{"oneOf":[{"type":"string","description":"External payment type identifier when type is OTHER.","example":null,"isRequired":true,"uniqueKey":"payment.externalPaymentTypeId.oneOf.0","typeLabel":"string"},{"type":"null","description":"External payment type identifier when type is OTHER.","example":null,"isRequired":true,"uniqueKey":"payment.externalPaymentTypeId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"payment.externalPaymentTypeId","typeLabel":"string | null"},"sessionId":{"oneOf":[{"type":"string","description":"Payment session identifier associated with this payment, if any.","example":null,"isRequired":true,"uniqueKey":"payment.sessionId.oneOf.0","typeLabel":"string"},{"type":"null","description":"Payment session identifier associated with this payment, if any.","example":null,"isRequired":true,"uniqueKey":"payment.sessionId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"payment.sessionId","typeLabel":"string | null"},"paymentMethodId":{"oneOf":[{"type":"string","description":"Identifier of the payment method used, if any.","example":"pm_1234567890abcdefghij","uniqueKey":"payment.paymentMethodId.oneOf.0","typeLabel":"string"},{"type":"null","description":"Identifier of the payment method used, if any.","example":"pm_1234567890abcdefghij","uniqueKey":"payment.paymentMethodId.oneOf.1","typeLabel":"null"}],"uniqueKey":"payment.paymentMethodId","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","isRequired":true,"uniqueKey":"payment.metadata.oneOf.0.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","isRequired":true,"uniqueKey":"payment.metadata.oneOf.0.items.[INDEX].value","typeLabel":"string"}},"required":["key","value"],"additionalProperties":false,"uniqueKey":"payment.metadata.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Structured metadata entries.","example":null,"uniqueKey":"payment.metadata.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"key":{"type":"string"},"value":{"type":"string"}},"required":["key","value"],"additionalProperties":false},"description":"Structured metadata entries.","example":null,"uniqueKey":"payment.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"payment.metadata","typeLabel":"object[] | null"},"meta":{"oneOf":[{"type":"object","additionalProperties":{"type":"string","uniqueKey":"payment.meta.oneOf.0.additionalProperties","typeLabel":"string"},"description":"Flattened metadata key-value map.","example":null,"uniqueKey":"payment.meta.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":{"type":"string","uniqueKey":"payment.meta.oneOf.1.additionalProperties","typeLabel":"string"},"description":"Flattened metadata key-value map.","example":null,"uniqueKey":"payment.meta.oneOf.1","typeLabel":"null"}],"uniqueKey":"payment.meta","typeLabel":"object | null"}},"required":["id","createdAt","updatedAt","amount","currency","description","type","status","isCompleted","paymentTime","customerId","paymentIntentId","organizationId","skipTaxInvoice","monthlyInstallments","processor","processorFee","processorFeeTax","installmentsFee","installmentsFeeTax","externalPaymentTypeId","sessionId"],"description":"A payment record for a completed or pending transaction.","isRequired":true,"uniqueKey":"payment","typeLabel":"object"}},"required":["payment"],"description":"The reverted payment.","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"payment":{"id":"p_1234567890abcdefghij","createdAt":"2025-01-15T18:30:00.000Z","updatedAt":"2025-01-15T18:30:00.000Z","amount":150000,"currency":"MXN","description":"Colegiatura Enero 2025","type":"CARD","status":"COMPLETE","isCompleted":true,"paymentTime":"2025-01-15T18:30:00.000Z","customerId":"cus_1234567890abcdefghij","paymentIntentId":null,"organizationId":"org_1234567890abcdefghij","skipTaxInvoice":false,"monthlyInstallments":null,"processor":null,"processorFee":null,"processorFeeTax":null,"installmentsFee":null,"installmentsFeeTax":null,"externalPaymentTypeId":null,"sessionId":null,"paymentMethodId":"pm_1234567890abcdefghij","metadata":null,"meta":null}}}},"exampleType":"generated"}},"exampleType":"generated"},"5cd48bf6-e314-4004-b279-fff85dc85172":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"additionalProperties":false,"description":"Standard user-facing error response envelope.","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"message":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"4637404a-6b53-4e35-8e2e-608742eed9fe":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"additionalProperties":false,"description":"Standard user-facing error response envelope.","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"message":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"c5ba6518-65ff-4bd0-b86e-7d22436bacd7":{"description":"Permission denied","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"additionalProperties":false,"description":"Standard user-facing error response envelope.","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"message":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"7378bfd2-a40a-4f0e-8dfd-a28cf01e2251":{"description":"Payment not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"additionalProperties":false,"description":"Standard user-facing error response envelope.","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"message":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"7811d4db-db6c-433c-bc56-3c26bf245c75":{"organizationApiKey":{"type":"http","scheme":"bearer","description":"Organization API key using `Authorization: Bearer sk_...`.","scopes":[],"schemeName":"organizationApiKey"}},"8c390e87-9700-4b4f-bcd1-b5505f1842f8":{"oauthAccessToken":{"type":"http","scheme":"bearer","bearerFormat":"OAuth 2.1","description":"OAuth access token using `Authorization: Bearer qoa_at_...`.","scopes":[],"schemeName":"oauthAccessToken"}}},"servers":{"a830ccdf-74b9-4188-8dbc-ed92e15438c1":{"url":"https://api.quentli.com","description":"Production API"},"57775ea9-e86b-4d47-95a1-f4d48317fb67":{"url":"https://api.staging.quentli.com","description":"Staging API for production-like validation"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Organization API key using `Authorization: Bearer sk_...`.","scopes":[],"schemeName":"organizationApiKey"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Organization API key using `Authorization: Bearer sk_...`.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"organizationApiKey","name":"Authorization"}],"title":"organizationApiKey"},{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"OAuth 2.1","description":"OAuth access token using `Authorization: Bearer qoa_at_...`.","scopes":[],"schemeName":"oauthAccessToken"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"OAuth access token using `Authorization: Bearer qoa_at_...`.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"oauthAccessToken","name":"Authorization"}],"title":"oauthAccessToken"}]},"originalFileLocation":"openapi.yaml"},"subdomain":"quentli","siteName":"Documentación Quentli","title":"Revert payment - Documentación Quentli","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-08T19:12:53.863Z","originalFileLocation":"api/payments/revert-payment.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=\"Reverts a completed external (OTHER) payment and removes its invoice allocations. By default, requests cancellation of related PUE tax invoices and payment tax receipts, but never PPD invoices. Set input.cancelTaxInvoice to false to keep the fiscal documents. This does not refund a processor charge; only superusers may revert non-OTHER payments.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Documentación Quentli\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/quentli/xhvH9bOKwDL3wypj/_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/quentli/xhvH9bOKwDL3wypj/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/quentli/xhvH9bOKwDL3wypj/_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/quentli/xhvH9bOKwDL3wypj/_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/quentli/xhvH9bOKwDL3wypj/_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/quentli/xhvH9bOKwDL3wypj/_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/quentli/xhvH9bOKwDL3wypj/_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/quentli/xhvH9bOKwDL3wypj/_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/quentli/xhvH9bOKwDL3wypj/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Revert payment - Documentación Quentli\">\u003cmeta data-mint-head property=\"og:description\" content=\"Reverts a completed external (OTHER) payment and removes its invoice allocations. By default, requests cancellation of related PUE tax invoices and payment tax receipts, but never PPD invoices. Set input.cancelTaxInvoice to false to keep the fiscal documents. This does not refund a processor charge; only superusers may revert non-OTHER payments.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Documentación Quentli\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.quentli.com/api/payments/revert-payment\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://quentli.mintlify.site/_mintlify/api/og/v2?division=Payments\u0026amp;title=Revert+payment\u0026amp;description=Reverts+a+completed+external+%28OTHER%29+payment+and+removes+its+invoice+allocations.+By+default%2C+requests+cancellation+of+related+PUE+tax+invoices+and+payment+tax+\u0026amp;theme=ab9d700cac4d986f6c476209\u0026amp;signature=98e36be2b2092a1971057b103ffca65e59cdcee5f99e03b20691a486aaa38148\">\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=\"Revert payment - Documentación Quentli\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Reverts a completed external (OTHER) payment and removes its invoice allocations. By default, requests cancellation of related PUE tax invoices and payment tax receipts, but never PPD invoices. Set input.cancelTaxInvoice to false to keep the fiscal documents. This does not refund a processor charge; only superusers may revert non-OTHER payments.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://quentli.mintlify.site/_mintlify/api/og/v2?division=Payments\u0026amp;title=Revert+payment\u0026amp;description=Reverts+a+completed+external+%28OTHER%29+payment+and+removes+its+invoice+allocations.+By+default%2C+requests+cancellation+of+related+PUE+tax+invoices+and+payment+tax+\u0026amp;theme=ab9d700cac4d986f6c476209\u0026amp;signature=98e36be2b2092a1971057b103ffca65e59cdcee5f99e03b20691a486aaa38148\">\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/quentli/xhvH9bOKwDL3wypj/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Documentación Quentli\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#414db4\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.quentli.com/api/payments/revert-payment\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api/payments/revert-payment.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.quentli.com/#organization\",\"name\":\"Documentación Quentli\",\"url\":\"https://docs.quentli.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/quentli/aR3Y16lZazPb_ZiE/logo/light.svg?fit=max\u0026auto=format\u0026n=aR3Y16lZazPb_ZiE\u0026q=85\u0026s=bca8ca17b17dc509ecd3ebc7c2c67ff2\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.quentli.com#website\",\"name\":\"Documentación Quentli\",\"url\":\"https://docs.quentli.com\",\"publisher\":{\"@id\":\"https://docs.quentli.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.quentli.com/api/payments/revert-payment#webpage\",\"url\":\"https://docs.quentli.com/api/payments/revert-payment\",\"name\":\"Revert payment\",\"description\":\"Reverts a completed external (OTHER) payment and removes its invoice allocations. By default, requests cancellation of related PUE tax invoices and payment tax receipts, but never PPD invoices. Set input.cancelTaxInvoice to false to keep the fiscal documents. This does not refund a processor charge; only superusers may revert non-OTHER payments.\",\"dateModified\":\"2026-11-08T19:12:53.863Z\",\"isPartOf\":{\"@id\":\"https://docs.quentli.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.quentli.com/api/payments/revert-payment#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.quentli.com/api/payments/revert-payment#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints\",\"item\":\"https://docs.quentli.com/api/endpoints/list-customers\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Payments\",\"item\":\"https://docs.quentli.com/api/endpoints/list-payments\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Revert payment\",\"item\":\"https://docs.quentli.com/api/payments/revert-payment\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.quentli.com/api/payments/revert-payment#apireference\",\"headline\":\"Revert payment\",\"name\":\"Revert payment\",\"description\":\"Reverts a completed external (OTHER) payment and removes its invoice allocations. By default, requests cancellation of related PUE tax invoices and payment tax receipts, but never PPD invoices. Set input.cancelTaxInvoice to false to keep the fiscal documents. This does not refund a processor charge; only superusers may revert non-OTHER payments.\",\"url\":\"https://docs.quentli.com/api/payments/revert-payment\",\"mainEntityOfPage\":{\"@id\":\"https://docs.quentli.com/api/payments/revert-payment#webpage\"},\"dateModified\":\"2026-11-08T19:12:53.863Z\",\"publisher\":{\"@id\":\"https://docs.quentli.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.quentli.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Documentación Quentli\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Documentación Quentli","nav":{"global":{"languages":[{"language":"es","default":true,"hidden":true,"href":"https://docs.quentli.com"}],"anchors":[{"anchor":"Sitio web","icon":"globe","href":"https://quentli.com"},{"anchor":"Blog","icon":"newspaper","href":"https://quentli.com/blog"}]},"tabs":[{"tab":"Manual de usuario","icon":"book-bookmark","pages":[{"title":"Manual de usuario","href":"/introduccion"}]},{"tab":"Guía de la API","icon":"server","groups":[{"group":"Conceptos","pages":[{"title":"Introducción a la API","href":"/api/introduccion"},{"title":"Autenticación","href":"/api/autenticacion"},{"title":"Tipos de integración","href":"/api/tipos-de-integracion"},{"title":"Entorno sandbox","href":"/api/entorno-sandbox"},{"title":"Filtros","href":"/api/filtros"},{"title":"Idempotencia","href":"/api/idempotencia"},{"title":"Límites de solicitudes","href":"/api/rate-limits"},{"title":"Glosario","href":"/api/glosario"},{"title":"Webhooks","href":"/api/webhooks"},{"title":"Códigos de rechazo","href":"/api/codigos-de-rechazo"}]},{"group":"Guías","pages":[{"title":"Sincroniza facturas en Quentli","href":"/api/guias/sincroniza-facturas-en-quentli"},{"title":"Cargos bajo demanda","href":"/api/guias/cargos-bajo-demanda"},{"title":"Sesiones de pago","href":"/api/guias/sesiones-de-pago"},{"title":"Sesiones de inscripción","href":"/api/guias/sesiones-de-inscripcion"},{"group":"Suscripciones","pages":[{"title":"Suscripciones de duración indefinida","href":"/api/guias/suscripciones-de-duracion-indefinida"},{"title":"Suscripciones con pagos definidos","href":"/api/guias/suscripciones-con-pagos-definidos"}]}]},{"group":"Endpoints","pages":[{"group":"Customers","pages":[{"title":"List customers","openapi":"openapi.yaml GET /v1/customers","href":"/api/endpoints/list-customers"},{"title":"Get customer","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/customers/{id}","href":"/api/customers/get-customer"},{"title":"Create customer","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/customers","href":"/api/customers/create-customer"},{"title":"Update customer","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/customers/{id}","href":"/api/customers/update-customer"},{"title":"Get customer payment methods","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/customers/{customerId}/payment-methods","href":"/api/customers/get-customer-payment-methods"},{"title":"Get customer payment references","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/customers/{id}/references","href":"/api/customers/get-customer-payment-references"},{"title":"Create customer tax profile","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/customers/{customerId}/tax-profiles","href":"/api/customers/create-customer-tax-profile"},{"title":"Update customer tax profile","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/customers/{customerId}/tax-profiles/{id}","href":"/api/customers/update-customer-tax-profile"},{"title":"Delete customer tax profile","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/customers/{customerId}/tax-profiles/{id}","href":"/api/customers/delete-customer-tax-profile"}]},{"group":"Invoices","pages":[{"title":"List invoices","openapi":"openapi.yaml GET /v1/invoices","href":"/api/endpoints/list-invoices"},{"title":"Get invoice","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/invoices/{id}","href":"/api/invoices/get-invoice"},{"title":"Create invoice","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/invoices","href":"/api/invoices/create-invoice"},{"title":"Update invoice","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/invoices/{id}","href":"/api/invoices/update-invoice"},{"title":"Cancel invoice","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/invoices/{id}","href":"/api/invoices/cancel-invoice"},{"title":"Get payment link","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/invoices/{id}/payment-link","href":"/api/invoices/get-payment-link"},{"title":"Retry invoice payment","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/invoices/{id}/try-payment","href":"/api/invoices/retry-invoice-payment"},{"title":"Mark invoice as paid","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/invoices/{id}/mark-paid","href":"/api/invoices/mark-invoice-as-paid"},{"title":"Obtain invoice payment instructions","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/invoices/{id}/payments","href":"/api/invoices/obtain-invoice-payment-instructions"},{"title":"Apply invoice payment","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/invoices/{id}/payments/apply","href":"/api/invoices/apply-invoice-payment"},{"title":"Send invoice reminder","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/invoices/{id}/reminders","href":"/api/invoices/send-invoice-reminder"}]},{"group":"Subscriptions","pages":[{"title":"List subscriptions","openapi":"openapi.yaml GET /v1/subscriptions","href":"/api/endpoints/list-subscriptions"},{"title":"Get subscription","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/subscriptions/{id}","href":"/api/subscriptions/get-subscription"},{"title":"Create subscription","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/subscriptions","href":"/api/subscriptions/create-subscription"},{"title":"Update subscription","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/subscriptions/{id}","href":"/api/subscriptions/update-subscription"},{"title":"Cancel subscription","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/subscriptions/{id}","href":"/api/subscriptions/cancel-subscription"},{"title":"Restore subscription","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/subscriptions/{id}/restore","href":"/api/subscriptions/restore-subscription"}]},{"group":"Payments","pages":[{"title":"List payments","openapi":"openapi.yaml GET /v1/payments","href":"/api/endpoints/list-payments"},{"title":"Get payment","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/payments/{id}","href":"/api/payments/get-payment"},{"title":"Create payment","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/payments","href":"/api/payments/create-payment"},{"title":"Send payment receipt","description":"Sends a payment receipt through the requested channels.","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/payments/{id}/receipt","href":"/api/payments/send-payment-receipt"},{"title":"Revert payment","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/payments/{id}/revert","href":"/api/payments/revert-payment"},{"title":"Create refund","description":"Refunds a completed payment, fully or partially.","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/refunds","href":"/api/payments/create-refund"},{"title":"Create payment session","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/payment-sessions","href":"/api/payment-sessions/create-payment-session"},{"title":"Get payment session","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/payment-sessions/{id}","href":"/api/payment-sessions/get-payment-session"},{"title":"Create setup session","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/setup-sessions","href":"/api/payment-sessions/create-setup-session"}]},{"group":"Payment Methods","pages":[{"title":"Delete payment method","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/payment-methods/{id}","href":"/api/payment-methods/delete-payment-method"}]},{"group":"Catalog","pages":[{"title":"List payment concepts","openapi":"openapi.yaml GET /v1/payment-concepts","href":"/api/endpoints/list-payment-concepts"},{"title":"Get payment concept","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/payment-concepts/{id}","href":"/api/catalog/get-payment-concept"},{"title":"Create payment concept","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/payment-concepts","href":"/api/catalog/create-payment-concept"},{"title":"Update payment concept","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/payment-concepts/{id}","href":"/api/catalog/update-payment-concept"},{"title":"List discounts","openapi":"openapi.yaml GET /v1/discounts","href":"/api/endpoints/list-discounts"},{"title":"Get discount","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/discounts/{id}","href":"/api/catalog/get-discount"},{"title":"Create discount","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/discounts","href":"/api/catalog/create-discount"},{"title":"Update discount","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/discounts/{id}","href":"/api/catalog/update-discount"},{"title":"Delete discount","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/discounts/{id}","href":"/api/catalog/delete-discount"}]},{"group":"Tax Invoices","pages":[{"title":"List tax invoices","openapi":"openapi.yaml GET /v1/tax-invoices","href":"/api/endpoints/list-tax-invoices"},{"title":"Get tax invoice","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/tax-invoices/{id}","href":"/api/tax-invoices/get-tax-invoice"},{"title":"Create tax invoice","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/tax-invoices","href":"/api/tax-invoices/create-tax-invoice"},{"title":"Cancel tax invoice","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/tax-invoices/{id}/cancel","href":"/api/tax-invoices/cancel-tax-invoice"}]},{"group":"Core","pages":[{"title":"Get file metadata and download URL","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/files/{id}","href":"/api/files/get-file-metadata-and-download-url"},{"title":"Complete a sandbox payment","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/sandbox/payments/{id}/complete","href":"/api/sandbox/complete-a-sandbox-payment"}]},{"group":"Auth","pages":[{"title":"Create auth link","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/auth-links","href":"/api/auth/create-auth-link"},{"title":"Create customer portal session","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/customer-portal-session","href":"/api/auth/create-customer-portal-session"}]},{"group":"Webhooks","pages":[{"title":"List webhooks","openapi":"openapi.yaml GET /v1/webhooks","href":"/api/endpoints/list-webhooks"},{"title":"Get webhook","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/webhooks/{id}","href":"/api/webhooks/get-webhook"},{"title":"Create webhook","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/webhooks","href":"/api/webhooks/create-webhook"},{"title":"Update webhook","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/webhooks/{id}","href":"/api/webhooks/update-webhook"},{"title":"Delete webhook","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/webhooks/{id}","href":"/api/webhooks/delete-webhook"},{"title":"Reveal webhook signing secret","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/webhooks/{id}/secret","href":"/api/webhooks/reveal-webhook-signing-secret"},{"title":"Rotate webhook signing secret","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/webhooks/{id}/secret/rotate","href":"/api/webhooks/rotate-webhook-signing-secret"},{"title":"List webhook events","openapi":"openapi.yaml GET /v1/webhook-events","href":"/api/endpoints/list-webhook-events"},{"title":"Retry webhook event","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/webhook-events/{id}/retry","href":"/api/webhooks/retry-webhook-event"}]}]},{"group":"Schemas","pages":[{"group":"List Filters","pages":[{"title":"Filtro de clientes","sidebarTitle":"CustomerFilter","href":"/api/esquema-filtro-clientes"},{"title":"Filtro de conceptos de pago","sidebarTitle":"ConceptFilter","href":"/api/esquemas-filtros/conceptos-de-pago"},{"title":"Filtro de descuentos","sidebarTitle":"DiscountFilter","href":"/api/esquemas-filtros/descuentos"},{"title":"Filtro de solicitudes de pago","sidebarTitle":"InvoiceFilter","href":"/api/esquemas-filtros/solicitudes-de-pago"},{"title":"Filtro de facturas fiscales","sidebarTitle":"TaxInvoiceFilter","href":"/api/esquemas-filtros/facturas-fiscales"},{"title":"Filtro de suscripciones","sidebarTitle":"SubscriptionFilter","href":"/api/esquemas-filtros/suscripciones"},{"title":"Filtro de pagos","sidebarTitle":"PaymentFilter","href":"/api/esquemas-filtros/pagos"},{"title":"Filtro de webhooks","sidebarTitle":"WebhookFilter","href":"/api/esquemas-filtros/webhooks"},{"title":"Filtro de eventos de webhook","sidebarTitle":"WebhookEventFilter","href":"/api/esquemas-filtros/eventos-de-webhook"}]},{"group":"Webhooks","pages":[{"title":"Solicitud de pago creada","sidebarTitle":"INVOICE_CREATED","openapi":"openapi.yaml webhook invoiceCreated","href":"/api/webhooks/invoice-created"},{"title":"Solicitud de pago actualizada","sidebarTitle":"INVOICE_UPDATED","openapi":"openapi.yaml webhook invoiceUpdated","href":"/api/webhooks/invoice-updated"},{"title":"Solicitud de pago cancelada","sidebarTitle":"INVOICE_CANCELED","openapi":"openapi.yaml webhook invoiceCanceled","href":"/api/webhooks/invoice-canceled"},{"title":"Solicitud de pago pagada","sidebarTitle":"INVOICE_PAID","openapi":"openapi.yaml webhook invoicePaid","href":"/api/webhooks/invoice-paid"},{"title":"Solicitud de pago pagada fuera de Quentli","sidebarTitle":"INVOICE_PAID_OTHER","openapi":"openapi.yaml webhook invoicePaidOther","href":"/api/webhooks/invoice-paid-other"},{"title":"Cliente creado","sidebarTitle":"CUSTOMER_CREATED","openapi":"openapi.yaml webhook customerCreated","href":"/api/webhooks/customer-created"},{"title":"Cliente actualizado","sidebarTitle":"CUSTOMER_UPDATED","openapi":"openapi.yaml webhook customerUpdated","href":"/api/webhooks/customer-updated"},{"title":"Cliente archivado","sidebarTitle":"CUSTOMER_ARCHIVED","openapi":"openapi.yaml webhook customerArchived","href":"/api/webhooks/customer-archived"},{"title":"Intento de cobro exitoso","sidebarTitle":"PAYMENT_ATTEMPT_SUCCEEDED","openapi":"openapi.yaml webhook paymentAttemptSucceeded","href":"/api/webhooks/payment-attempt-succeeded"},{"title":"Intento de cobro fallido","sidebarTitle":"PAYMENT_ATTEMPT_FAILED","openapi":"openapi.yaml webhook paymentAttemptFailed","href":"/api/webhooks/payment-attempt-failed"},{"title":"Pago completado","sidebarTitle":"PAYMENT_COMPLETED","openapi":"openapi.yaml webhook paymentCompleted","href":"/api/webhooks/payment-completed"},{"title":"Método de pago creado","sidebarTitle":"PAYMENT_METHOD_CREATED","openapi":"openapi.yaml webhook paymentMethodCreated","href":"/api/webhooks/payment-method-created"},{"title":"Pago reembolsado","sidebarTitle":"PAYMENT_REFUNDED","openapi":"openapi.yaml webhook paymentRefunded","href":"/api/webhooks/payment-refunded"},{"title":"Contracargo creado","sidebarTitle":"DISPUTE_CREATED","openapi":"openapi.yaml webhook disputeCreated","href":"/api/webhooks/dispute-created"},{"title":"Respuesta a contracargo creada","sidebarTitle":"DISPUTE_RESPONSE_CREATED","openapi":"openapi.yaml webhook disputeResponseCreated","href":"/api/webhooks/dispute-response-created"},{"title":"Contracargo resuelto","sidebarTitle":"DISPUTE_RESOLVED","openapi":"openapi.yaml webhook disputeResolved","href":"/api/webhooks/dispute-resolved"},{"title":"Suscripción creada","sidebarTitle":"SUBSCRIPTION_CREATED","openapi":"openapi.yaml webhook subscriptionCreated","href":"/api/webhooks/subscription-created"},{"title":"Suscripción actualizada","sidebarTitle":"SUBSCRIPTION_UPDATED","openapi":"openapi.yaml webhook subscriptionUpdated","href":"/api/webhooks/subscription-updated"},{"title":"Suscripción cancelada","sidebarTitle":"SUBSCRIPTION_CANCELED","openapi":"openapi.yaml webhook subscriptionCanceled","href":"/api/webhooks/subscription-canceled"},{"title":"Factura fiscal creada","sidebarTitle":"TAX_INVOICE_CREATED","openapi":"openapi.yaml webhook taxInvoiceCreated","href":"/api/webhooks/tax-invoice-created"}]}]}]}]},"basePath":"","title":"Revert payment - Documentación Quentli","buildId":"dpl_DTau1J5HqS9UTgVSDwGksstFWtPa","deploymentId":"dpl_DTau1J5HqS9UTgVSDwGksstFWtPa","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-5FCzAcfS.js","utils-SLtAG4EZ.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-2DZi8ZMu.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-D7J3nkzE.js","snippetPresets-D0Alv0AH.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BI4qNJ2c.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BD3uyr8j.js","shallow-D8iEBr5z.js","getApiPlaygroundDisplay-CgNP4lzR.js","CodeSnippet-CX-QHuMs.js","CodeSnippets-VlXE-ZUf.js","Page-D9ithiIZ.js","getPastedJson-DYNQkZ1M.js","icon-CzacdwOi.js","MethodPill-2JVqoYKi.js","DuplicateIcon-_xVXs-U8.js","createIcon-BRHrweLo.js","DynamicMarkdown-mQG_iQiE.js","SectionHeading-DMpJzv8f.js","axios-vUo_bRtp.js","Markdown-5FGIym-8.js","clsx-D-TRO5q5.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CdrJecqK.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-CHlcWBLM.js"]}