The unique identifier of the payment method to charge
Cuerpo
application/json
Request body for charging a saved payment method
amount
number<decimal>
requerido
The amount to charge in MXN. Must be a positive number.
Rango requerido: x >= 0.01
Ejemplo:
500
currency
enum<string>
predeterminado:MXN
Currency of amount. Defaults to MXN. With USD the card is charged in MXN at the current exchange rate, and the response carries conversion. A hold (holdFunds) must be in MXN (HOLD_CURRENCY_NOT_SUPPORTED). See Prices in US dollars.
Opciones disponibles:
MXN,
USD
Ejemplo:
"MXN"
description
string
A description of the charge.
Ejemplo:
"Monthly subscription - January 2025"
holdFunds
boolean
predeterminado:false
When true the funds are only authorized and held, not captured. The payment comes back as HELD, with heldAmount set to the authorized amount, and the money reaches you only when you call the capture endpoint, which can take the full held amount or part of it. Call the release endpoint to give the funds back, otherwise the hold is released automatically at the end of the 7th natural day. The hold window is counted in NATURAL DAYS, not in elapsed hours. The day the hold is placed counts as day 1 and the time of day it was placed is irrelevant: a hold placed Monday 10:00 and one placed Monday 23:29 both expire at the same instant, at the end of the following Sunday. The bank closes its day at 23:30 America/Mexico_City and Compago closes the hold at 23:00, 30 minutes earlier, so the last minute to capture is 22:59 on the last day.
Ejemplo:
false
externalId
string
Optional idempotency key for this charge or hold. Your own reference, up to 255 characters, unique across all payments in your organization. Repeating a request with the same value returns the ORIGINAL payment, with the HTTP status the original attempt produced, instead of charging or holding a second time. A DECLINED attempt SPENDS the key: replaying it returns the decline again, so retrying a declined charge or hold requires a NEW externalId. Reusing a key with a different payment method, amount, currency or bankAccountId answers 409 EXTERNAL_ID_MISMATCH. An empty string is treated as not supplied. This is NOT the payment method externalId, which identifies the saved card: they are separate namespaces and are never compared with each other.
Maximum string length: 255
Ejemplo:
"invoice-2025-01-8842"
bankAccountId
string<uuid> | null
Optional. The bank account that receives the money of this charge, or of this hold once captured, for a business with more than one. It must be one of your verified accounts: list them with GET /developer/v1/bank-account. Omit it, or send null, and Compago applies your deposit rule, exactly as it did before this field existed. A saved card never remembers an account, so each charge sends its own. An id that is not one of your verified accounts fails with BANK_ACCOUNT_NOT_AVAILABLE and the card is not charged. Part of the externalId replay check: a retry naming a different account answers EXTERNAL_ID_MISMATCH.
Ejemplo:
"5b1d7c2e-8a34-4f6b-9c1d-0e2f3a4b5c61"
allocations
object[] | null
Optional. Splits the money of this charge between several of your bank accounts: each part names an account and the amount it receives. What the parts leave of the amount follows your deposit rule. The tip, the fee and its IVA are shared out between the parts that pay the fee, in centavos. Up to 5 parts, in MXN charges only, and never together with bankAccountId; what the parts leave counts as one more, so five parts must add up to the whole amount. The parts may not add up to more than amount, and when they add up to all of it at least one must pay the fee (absorbsFee). A request that breaks a rule fails with BANK_ACCOUNT_ALLOCATIONS_INVALID; an account that is not one of your verified accounts fails with BANK_ACCOUNT_NOT_AVAILABLE.
Payment created successfully. When holdFunds is true the payment comes back with status HELD, heldAmount set to the authorized amount, and the funds held rather than captured. When the request carried an externalId that was already used, this is the ORIGINAL payment replayed rather than a new one.
Response after charging a payment method, or after placing a hold when holdFunds was true
id
string<uuid>
requerido
Unique identifier of the payment
Ejemplo:
"11111111-2222-3333-4444-555555555555"
status
enum<string>
requerido
Current status of the payment. A successful hold returns HELD.
Opciones disponibles:
NOT_INITIALIZED,
PENDING,
CONFIRMED,
CANCELLED,
REFUNDED,
HELD,
HOLD_RELEASED,
HOLD_EXPIRED
Ejemplo:
"CONFIRMED"
amount
number<decimal>
requerido
The money that moved, or that will move. On a hold it equals heldAmount until the hold is captured; after a partial capture it is the amount actually captured.
currency
string
requerido
Ejemplo:
"MXN"
heldAmount
number<decimal> | null
The amount the bank authorized when the hold was placed. Stamped once and never rewritten, so it stays the record of what was blocked on the card even after a partial capture. Null on any payment that was never held.
Ejemplo:
null
conversion
object | null
Set when the charge was requested in USD, null otherwise. amount and currency are the MXN the card was charged.
Show child attributes
externalId
string | null
The idempotency key supplied when the payment was created, echoed back so you can map this payment id to your own order reference. Null when none was supplied. Not to be confused with the payment method externalId, which identifies the saved card.
Ejemplo:
"invoice-2025-01-8842"
heldAt
string<date-time> | null
When the bank approved the hold. Null on payments that were never held.
Ejemplo:
"2026-08-12T10:00:00.000Z"
capturedAt
string<date-time> | null
When the hold was captured. This, and not createdAt, is the settlement date of a captured hold. Null until the hold is captured.
holdReleasedAt
string<date-time> | null
When the hold was released, either by the release endpoint or by the automatic expiry. Null otherwise.
holdExpiresAt
string<date-time> | null
When the hold expires: 23:00 America/Mexico_City on the 7th natural day, counting the day of heldAt as day 1. The hold window is counted in NATURAL DAYS, not in elapsed hours. The day the hold is placed counts as day 1 and the time of day it was placed is irrelevant: a hold placed Monday 10:00 and one placed Monday 23:29 both expire at the same instant, at the end of the following Sunday. The bank closes its day at 23:30 America/Mexico_City and Compago closes the hold at 23:00, 30 minutes earlier, so the last minute to capture is 22:59 on the last day. It keeps being reported once the hold has ended, because it is a fact about the payment. Null on payments that were never held.
Ejemplo:
"2026-08-19T05:00:00.000Z"
holdExpired
boolean
Whether the hold window has closed. It flips at 23:00 America/Mexico_City on the last natural day, not 7 times 24 hours after heldAt. False on payments that were never held.
holdDaysRemaining
integer | null
Natural days on which the hold can still be captured, including today when today's 23:00 cutoff has not passed yet: 7 for a hold placed before 23:00 on its placement day, 6 for one placed at or after 23:00 (its placement day is already spent), 1 through the last day, and 0 from 23:00 on the last day. Null unless the payment is currently HELD.
Ejemplo:
7
bankAccountId
string<uuid> | null
The bank account the payment is deposited in: the one your deposit rule assigned when the bank approved the charge, or the one you sent. null when you sent none and nothing was approved yet (a hold is assigned its account when captured).
Ejemplo:
"5b1d7c2e-8a34-4f6b-9c1d-0e2f3a4b5c61"
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Compago","colors":{"primary":"#16A34A","light":"#07C983","dark":"#15803D"},"logo":{"light":"https://mintcdn.com/compago/HbO-gQD4txAbheB6/logo/light.svg?fit=max\u0026auto=format\u0026n=HbO-gQD4txAbheB6\u0026q=85\u0026s=ef32446eb600c2bdd769544cafec878b","dark":"https://mintcdn.com/compago/HbO-gQD4txAbheB6/logo/dark.svg?fit=max\u0026auto=format\u0026n=HbO-gQD4txAbheB6\u0026q=85\u0026s=a9694ecab4630d9846c26f335b463be4"},"favicon":"https://mintcdn.com/compago/RNCdOM5ueA5g5lLP/favicon.svg?fit=max\u0026auto=format\u0026n=RNCdOM5ueA5g5lLP\u0026q=85\u0026s=573a97475eea314a0f08690720812524","navbar":{"links":[{"href":"/manual/ayuda/contactar-a-soporte","label":"Soporte"}],"primary":{"type":"button","label":"Ir a Compago","href":"https://app.compago.com"}},"footer":{"socials":{"website":"https://compago.com","github":"https://github.com/CompagoMX","linkedin":"https://www.linkedin.com/company/compago-sharepay"}},"search":{"prompt":"Busca en el manual o en la documentación"},"fonts":{"heading":{"family":"Cal Sans","weight":600,"source":"fonts/cal-sans-latin.woff2","format":"woff2"},"body":{"family":"Geist"}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":true},"navigation":{"languages":[{"language":"es","href":""}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"compago","hasAudioNarration":false,"actualSubdomain":"compago","customDomains":["docs.compago.com"],"gitSource":{"type":"github","owner":"compagomx","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6aff423ee02df8c6e579e66f","clientVersion":"0.0.4347","searchFilterCounts":[{"language":"es","tag":"Manual de uso","count":128},{"language":"es","tag":"Desarrolladores","count":110},{"language":"es","tag":"Business API: referencia","count":57},{"language":"es","tag":"Developer API","count":43},{"language":"es","tag":"Business API: guías","count":38},{"language":"es","tag":"Accept Payments","count":35},{"language":"es","tag":"Terminal","count":29},{"language":"es","tag":"Tu organización","count":22},{"language":"es","tag":"Saved cards","count":18},{"language":"es","tag":"Links de pago","count":14}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","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":"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":"site-roles","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":"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":"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":"turbopuffer-dual-write","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":"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":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[{"filePath":"manual.css","content":":root{--cm-green-950: #0a2718;--cm-green-900: #0e3320;--cm-green-800: #164a2e;--cm-green-700: #15803d;--cm-green-600: #16a34a;--cm-green-500: #22c55e;--cm-green-400: #4ade80;--cm-bg: #f7f7f4;--cm-canvas: #f4f4f1;--cm-card: #ffffff;--cm-ink: #141412;--cm-text: #57534e;--cm-subtle: #8a867e;--cm-line: rgba(20, 20, 18, 0.08);--cm-mint: #ecfdf3;--cm-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 28px 56px -40px rgba(14, 51, 32, 0.45)}.dark{--cm-bg: #0b0d0b;--cm-canvas: #151916;--cm-card: #131613;--cm-ink: #f4f4f1;--cm-text: #aba79e;--cm-subtle: #7d796f;--cm-line: rgba(255, 255, 255, 0.08);--cm-mint: rgba(34, 197, 94, 0.12);--cm-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 28px 56px -40px rgba(0, 0, 0, 0.8)}#localization-select-trigger{display:none!important}.sidebar-group>li[id=\"/\"],a.pagination-prev[href=\"/\"]{display:none!important}.cm-icon{flex-shrink:0}.cm-video{margin:1.75rem 0 2.25rem}.cm-video-frame{position:relative;display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:16 / 9;margin:0;padding:0;border:0;overflow:hidden;border-radius:20px;background:var(--cm-green-900);box-shadow:0 0 0 1px var(--cm-line), 0 30px 60px -34px rgba(14, 51, 32, 0.55);cursor:pointer}.cm-video-frame::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg, rgba(10, 39, 24, 0) 55%, rgba(10, 39, 24, 0.32));pointer-events:none}.cm-video-frame:focus-visible{outline:3px solid var(--cm-green-500);outline-offset:3px}img.cm-video-thumb{position:absolute;inset:0;width:100%;height:100%;max-width:none!important;margin:0!important;border-radius:0!important;object-fit:cover}.cm-video-play{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;width:92px;height:92px;border-radius:50%;background:rgba(255, 255, 255, 0.97);color:var(--cm-green-900);box-shadow:0 18px 40px -12px rgba(0, 0, 0, 0.55), 0 0 0 10px rgba(255, 255, 255, 0.16);transition:transform 0.2s ease, box-shadow 0.2s ease}.cm-video-frame:hover .cm-video-play,.cm-video-frame:focus-visible .cm-video-play{transform:scale(1.06);box-shadow:0 20px 44px -12px rgba(0, 0, 0, 0.6), 0 0 0 12px rgba(34, 197, 94, 0.32)}.cm-video-pill{position:absolute;z-index:1;left:18px;bottom:18px;display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 15px 0 13px;border-radius:999px;background:rgba(255, 255, 255, 0.96);color:var(--cm-green-700);font-size:14px;font-weight:600;box-shadow:0 8px 20px -10px rgba(0, 0, 0, 0.45)}.cm-video-duration{position:absolute;z-index:1;right:18px;bottom:18px;display:inline-flex;align-items:center;height:32px;padding:0 12px;border-radius:999px;background:rgba(12, 14, 12, 0.78);color:#fff;font-size:13.5px;font-weight:600;font-variant-numeric:tabular-nums}.cm-video-caption{margin-top:14px;text-align:center;font-size:14.5px;color:var(--cm-text)}.cm-overlay{position:fixed;inset:0;z-index:2147483000;width:100%;height:100%;max-width:none;max-height:none;margin:0;border:0;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;background:rgba(6, 18, 11, 0.86);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);cursor:zoom-out;animation:cm-fade 0.18s ease-out}.cm-overlay:not([open]){display:none}.cm-overlay::backdrop{background:transparent}@keyframes cm-fade{from{opacity:0}}.cm-theater{width:min(1280px, 100%, calc((100vh - 140px) * 16 / 9));display:flex;flex-direction:column;gap:12px}.cm-theater-video{display:block;width:100%;aspect-ratio:16 / 9;border-radius:14px;background:#000;cursor:auto;box-shadow:0 40px 90px -30px rgba(0, 0, 0, 0.8)}.cm-overlay-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;color:#fff}.cm-lightbox .cm-overlay-bar{position:absolute;top:0;left:0;right:0;z-index:2;padding:14px 18px;background:linear-gradient(180deg, rgba(6, 18, 11, 0.92), rgba(6, 18, 11, 0))}.cm-overlay-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;font-weight:600}.cm-overlay-tools{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;cursor:auto}.cm-tool{display:inline-grid;place-items:center;min-width:38px;height:38px;padding:0 8px;border:0;border-radius:10px;background:rgba(255, 255, 255, 0.1);color:#fff;font-size:13px;font-weight:600;font-variant-numeric:tabular-nums;cursor:pointer;text-decoration:none;border-bottom:0!important}.cm-tool:hover{background:rgba(255, 255, 255, 0.2)}.cm-tool-text{min-width:58px}.cm-tool-gap{width:8px}.cm-lightbox{padding:0;justify-content:stretch;align-items:stretch}.cm-lightbox-viewport{position:relative;flex:1;overflow:hidden;cursor:zoom-out;touch-action:none}img.cm-lightbox-img{position:absolute;left:0;top:0;max-width:none!important;margin:0!important;border-radius:10px;transform-origin:0 0;box-shadow:0 30px 80px -20px rgba(0, 0, 0, 0.7);cursor:grab;user-select:none;-webkit-user-drag:none}.cm-lightbox-viewport:active img.cm-lightbox-img{cursor:grabbing}.cm-lightbox-help{position:absolute;left:50%;bottom:16px;transform:translateX(-50%);margin:0;padding:7px 14px;border-radius:999px;background:rgba(6, 18, 11, 0.8);color:rgba(255, 255, 255, 0.78);font-size:12.5px;white-space:nowrap}.cm-figure,.cm-guide{margin:1.25rem 0 1.5rem}.cm-figure-open{position:relative;display:block;width:100%;padding:0;border:0;border-radius:14px;background:var(--cm-card);cursor:zoom-in;box-shadow:0 0 0 1px var(--cm-line), var(--cm-shadow);overflow:hidden}.cm-figure-open img{display:block;width:100%;height:auto;margin:0!important;border-radius:0!important}.cm-figure-hint{position:absolute;right:12px;bottom:12px;z-index:1;display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 13px 0 11px;border-radius:999px;background:rgba(14, 51, 32, 0.92);color:#fff;font-size:13px;font-weight:600;opacity:0;transform:translateY(4px);transition:opacity 0.16s ease, transform 0.16s ease}.cm-figure-open:hover .cm-figure-hint,.cm-figure-open:focus-visible .cm-figure-hint{opacity:1;transform:none}.cm-figure-terminal .cm-figure-open{width:min(100%, 300px);margin:0 auto;border-radius:0;background:transparent;box-shadow:none;overflow:visible}.cm-figure-terminal .cm-figure-open img{filter:drop-shadow(0 18px 22px rgba(14, 51, 32, 0.22))}.dark .cm-figure-terminal .cm-figure-open img{filter:drop-shadow(0 18px 22px rgba(0, 0, 0, 0.5))}.cm-figure-terminal .cm-figure-hint{right:50%;bottom:4px;transform:translate(50%, 4px)}.cm-figure-terminal .cm-figure-open:hover .cm-figure-hint,.cm-figure-terminal .cm-figure-open:focus-visible .cm-figure-hint{transform:translate(50%, 0)}.cm-figure-caption{margin-top:12px;font-size:14px;color:var(--cm-subtle);text-align:center}.cm-guide-open{position:relative;display:block;width:100%;height:470px;padding:0;border:0;border-radius:22px;background:var(--cm-canvas);cursor:zoom-in;overflow:hidden;box-shadow:0 0 0 1px var(--cm-line), var(--cm-shadow)}.cm-guide-open img{display:block;width:100%;height:auto;margin:0!important;border-radius:0!important;transition:transform 0.4s ease}.cm-guide-open:hover img{transform:translateY(-6px)}.cm-guide-open::after{content:'';position:absolute;left:0;right:0;bottom:0;height:190px;background:linear-gradient(180deg, rgba(244, 244, 241, 0), #f4f4f1 82%);pointer-events:none}.dark .cm-guide-open::after{background:linear-gradient(180deg, rgba(21, 25, 22, 0), #151916 82%)}.cm-guide-button{position:absolute;left:50%;bottom:26px;z-index:1;display:inline-flex;align-items:center;gap:9px;height:48px;padding:0 24px 0 20px;border-radius:999px;background:#141412;color:#fff;font-size:15.5px;font-weight:600;white-space:nowrap;transform:translateX(-50%);box-shadow:0 16px 34px -16px rgba(0, 0, 0, 0.7);transition:background 0.15s ease}.cm-guide-open:hover .cm-guide-button{background:var(--cm-green-900)}.dark .cm-guide-button{background:#f4f4f1;color:#141412}.cm-support{display:flex;gap:16px;margin:1.5rem 0 1rem;padding:22px 24px;border-radius:18px;color:#fff;background:radial-gradient(520px 220px at 100% 0%, rgba(34, 197, 94, 0.28), transparent 65%), var(--cm-green-900);box-shadow:var(--cm-shadow)}.cm-support-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:rgba(74, 222, 128, 0.16);color:var(--cm-green-400);flex-shrink:0}.cm-support-body{min-width:0}.cm-support-title{margin:0!important;font-size:18px;font-weight:600;color:#fff}.cm-support-text{margin:4px 0 0!important;font-size:15px;line-height:1.55;color:rgba(255, 255, 255, 0.78)}.cm-support-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}.cm-button{display:inline-flex;align-items:center;gap:8px;height:42px;padding:0 17px 0 15px;border-radius:999px;background:rgba(255, 255, 255, 0.1);box-shadow:inset 0 0 0 1px rgba(255, 255, 255, 0.16);color:#fff!important;font-size:14.5px;font-weight:600;text-decoration:none!important;border-bottom:0!important;transition:background 0.15s ease}.cm-button:hover{background:rgba(255, 255, 255, 0.18)}.cm-button-whatsapp{background:#25d366;box-shadow:none;color:#0a2718!important}.cm-button-whatsapp:hover{background:#3ee07b}.cm-soon{display:flex;gap:14px;margin:1.5rem 0;padding:18px 20px;border-radius:16px;background:var(--cm-card);box-shadow:0 0 0 1px var(--cm-line)}.cm-soon-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:rgba(247, 107, 21, 0.12);color:#c2410c;flex-shrink:0}.cm-soon-title{margin:0!important;font-weight:600;color:var(--cm-ink)}.cm-soon-text{margin:4px 0 0!important;color:var(--cm-text);font-size:15px;line-height:1.55}.cm-kbd{display:inline-flex;align-items:center;height:26px;padding:0 8px;border-radius:7px;background:#f3f3ef;box-shadow:inset 0 0 0 1px rgba(20, 20, 18, 0.08), inset 0 -1px 0 rgba(20, 20, 18, 0.08);color:#57534e;font-family:inherit;font-size:12.5px;font-weight:600}.dark .cm-kbd{background:rgba(255, 255, 255, 0.08);color:#d6d3cd}.cm-home{position:relative;overflow:hidden;padding:16px 0 104px;background:var(--cm-bg)}.cm-hero{position:relative;isolation:isolate;overflow:hidden;width:calc(100% - 32px);max-width:1488px;margin:0 auto;padding:72px 32px 80px;border-radius:32px;background-color:#0c2a1b;background-image:repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.015) 0 1px, transparent 1px 3px),\n\t\tradial-gradient(\n\t\t\t34rem 23rem at 21% 16%,\n\t\t\trgb(18 97 50) 0%,\n\t\t\trgb(18 97 50 / 0.85) 22%,\n\t\t\trgb(18 97 50 / 0.62) 42%,\n\t\t\trgb(18 97 50 / 0.36) 62%,\n\t\t\trgb(18 97 50 / 0.14) 82%,\n\t\t\ttransparent 100%\n\t\t),\n\t\tradial-gradient(30rem 19rem at 79% 100%, rgb(28 120 94 / 0.4), transparent 72%);color:#fff}.dark .cm-hero{box-shadow:inset 0 0 0 1px rgba(255, 255, 255, 0.06)}.cm-hero-mark{position:absolute;z-index:-1;right:max(24px, calc(50% - 640px));bottom:-56px;width:clamp(400px, 39vw, 560px);pointer-events:none;-webkit-mask-image:linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.2) 90%);mask-image:linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.2) 90%)}.cm-hero-mark path{fill:rgba(134, 239, 172, 0.26);stroke:rgba(167, 243, 208, 0.2);stroke-width:1px;vector-effect:non-scaling-stroke}.cm-hero-inner{max-width:1136px;margin:0 auto}.cm-hero-badge{display:inline-flex;align-items:center;gap:10px;margin:0;padding:5px 16px 5px 5px;border-radius:999px;background:rgba(255, 255, 255, 0.07);box-shadow:inset 0 0 0 1px rgba(255, 255, 255, 0.1);font-size:14.5px;color:#b3e9c6}.cm-hero-badge-logo{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#fff;color:var(--cm-green-600)}.cm-hero-badge-logo svg{position:relative;top:1px;width:18px;height:auto}.cm-hero-badge-strong{color:#fff;font-weight:600}.cm-hero-badge-dot{width:4px;height:4px;border-radius:50%;background:rgba(179, 233, 198, 0.55)}.cm-hero-title{margin:26px 0 0;font-family:'Cal Sans', sans-serif;font-weight:600;font-size:clamp(46px, 6.2vw, 88px);line-height:1;letter-spacing:-0.035em;color:#fff;text-wrap:balance}.cm-hero-sub{max-width:680px;margin:22px 0 0;font-size:18.5px;line-height:1.6;color:#dbe6df}.cm-search{max-width:640px;margin:32px 0 0;padding:20px 18px 16px 24px;border-radius:24px;background:#fff;box-shadow:0 0 0 1px rgba(255, 255, 255, 0.7), 0 30px 60px -30px rgba(0, 0, 0, 0.6);cursor:text;transition:box-shadow 0.2s ease}.cm-search:focus-within{box-shadow:0 0 0 1px rgba(255, 255, 255, 0.7), 0 0 0 6px rgba(95, 220, 143, 0.24), 0 30px 60px -30px rgba(0, 0, 0, 0.6)}.dark .cm-search{background:rgba(6, 18, 11, 0.55);box-shadow:inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 30px 60px -30px rgba(0, 0, 0, 0.8);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}.cm-search-label{display:flex;align-items:center;gap:11px;font-size:15px;font-weight:500;color:var(--cm-text);cursor:text}.cm-search-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#f2f2ee;color:#44403c}.dark .cm-search-icon{background:rgba(255, 255, 255, 0.08);color:#d6d3cd}.cm-search-input{display:block;width:100%;margin:14px 0 18px;padding:0;border:0;outline:0;background:transparent;font:inherit;font-size:25px;letter-spacing:-0.012em;color:var(--cm-ink)}.cm-search-input::placeholder{color:#b5b1a8}.dark .cm-search-input::placeholder{color:#7f9a8a}.cm-search-foot{display:flex;align-items:center;justify-content:space-between;gap:16px}.cm-search-hint{display:inline-flex;align-items:center;gap:10px;font-size:14px;color:var(--cm-subtle)}.cm-search-go{display:flex;align-items:center;justify-content:center;width:48px;height:48px;padding:0;border:0;border-radius:50%;background:var(--cm-green-900);color:#fff;cursor:pointer;box-shadow:0 12px 24px -12px rgba(14, 51, 32, 0.85);transition:transform 0.15s ease, background 0.15s ease}.cm-search-go:hover{background:var(--cm-green-800);transform:translateY(-1px)}.dark .cm-search-go{background:var(--cm-green-500);color:var(--cm-green-950)}.cm-hero-chips{display:flex;flex-wrap:wrap;gap:8px;max-width:660px;margin-top:22px}.cm-hero-chip{display:inline-flex;align-items:center;height:38px;padding:0 16px;border-radius:999px;background:rgba(255, 255, 255, 0.06);box-shadow:inset 0 0 0 1px rgba(255, 255, 255, 0.12);color:#e3ece6!important;font-size:14.5px;font-weight:500;text-decoration:none!important;border-bottom:0!important;transition:background 0.15s ease, color 0.15s ease, transform 0.15s ease}.cm-hero-chip:hover{background:rgba(255, 255, 255, 0.12);color:#fff!important;transform:translateY(-1px)}.cm-rise{animation:cm-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) var(--cm-delay, 0ms) both}@keyframes cm-rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}@media (prefers-reduced-motion: reduce){.cm-rise{animation:none}}.cm-section{position:relative;max-width:1200px;margin:0 auto;padding:96px 32px 0}.cm-shead{display:grid;grid-template-columns:minmax(0, 1.75fr) minmax(0, 1fr);gap:48px;align-items:end;margin-bottom:44px}.cm-pill{display:inline-flex;align-items:center;height:36px;padding:0 16px;border-radius:999px;background:var(--cm-card);box-shadow:0 0 0 1px var(--cm-line);font-size:14.5px;color:var(--cm-text)}.cm-shead-title{margin:26px 0 0;font-family:'Cal Sans', sans-serif;font-weight:600;font-size:clamp(36px, 4.4vw, 56px);line-height:1.04;letter-spacing:-0.03em;color:var(--cm-ink);text-wrap:balance}.cm-shead-text{justify-self:end;max-width:470px;margin:0;font-size:18px;line-height:1.65;color:var(--cm-text);text-wrap:pretty}.cm-start-grid{display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));gap:22px}.cm-start{display:flex;flex-direction:column;overflow:hidden;border-radius:26px;background:var(--cm-card);box-shadow:0 0 0 1px var(--cm-line), var(--cm-shadow);text-decoration:none!important;border-bottom:0!important;transition:transform 0.2s ease, box-shadow 0.2s ease}.cm-start:hover{transform:translateY(-3px);box-shadow:0 0 0 1px rgba(22, 163, 74, 0.3), 0 34px 60px -38px rgba(14, 51, 32, 0.55)}.cm-start-face{display:flex;align-items:center;justify-content:center;height:172px;margin:8px 8px 0;overflow:hidden;border-radius:20px;background:radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, 0.85), transparent 62%),\n\t\trepeating-linear-gradient(135deg, rgba(20, 20, 18, 0.028) 0 1px, transparent 1px 7px),\n\t\tvar(--cm-face, #eff3ef);box-shadow:inset 0 0 0 1px rgba(20, 20, 18, 0.05)}.cm-start-payments{--cm-face: #eef3f1}.cm-start-team{--cm-face: #f3f2ec}.dark .cm-start-face{background:radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, 0.05), transparent 62%),\n\t\trepeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 7px),\n\t\t#181c18;box-shadow:inset 0 0 0 1px rgba(255, 255, 255, 0.05)}.cm-start-body{display:flex;flex-direction:column;padding:20px 24px 24px}.cm-start-kicker,.cm-dev-kicker{font-size:12.5px;font-weight:600;letter-spacing:0.18em;text-transform:uppercase;color:var(--cm-subtle)}.cm-start-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px}.cm-start-title{font-family:'Cal Sans', sans-serif;font-weight:600;font-size:25px;line-height:1.1;letter-spacing:-0.02em;color:var(--cm-ink)}.cm-start-go{display:grid;place-items:center;width:34px;height:34px;flex-shrink:0;border-radius:50%;background:var(--cm-canvas);box-shadow:inset 0 0 0 1px var(--cm-line);color:var(--cm-green-700);transition:background 0.2s ease, color 0.2s ease, transform 0.2s ease}.cm-start:hover .cm-start-go{background:var(--cm-green-900);color:#fff;transform:translateX(2px)}.dark .cm-start-go{color:var(--cm-green-400)}.dark .cm-start:hover .cm-start-go{background:var(--cm-green-500);color:var(--cm-green-950)}.cm-start-text{margin-top:8px;font-size:15.5px;line-height:1.55;color:var(--cm-text)}.cm-art-panel,.cm-art-list{display:flex;flex-direction:column;width:86%;border-radius:16px;background:#fff;box-shadow:0 0 0 1px rgba(20, 20, 18, 0.06), 0 18px 36px -24px rgba(14, 51, 32, 0.42)}.cm-art-panel{gap:7px;padding:12px}.cm-art-label{font-size:11px;font-weight:600;color:#8a867e}.cm-art-input{display:flex;align-items:center;height:32px;padding:0 11px;border-radius:9px;box-shadow:inset 0 0 0 1.5px #86efac, 0 0 0 4px rgba(34, 197, 94, 0.12);font-size:13px;color:#1c1917}.cm-art-caret{display:block;width:1.5px;height:15px;margin-left:2px;background:var(--cm-green-600)}.cm-art-foot{display:flex;align-items:center;gap:8px;margin-top:3px}.cm-art-amount{display:flex;flex:1;align-items:center;justify-content:space-between;height:32px;padding:0 10px;border-radius:9px;background:#f6fbf7}.cm-art-amount b{font-family:'Geist Mono', ui-monospace, monospace;font-size:14px;font-weight:700;color:#1c1917}.cm-art-amount em{padding:2px 7px;border-radius:999px;background:#dcfce7;color:#166534;font-size:10px;font-style:normal;font-weight:700}.cm-art-button{display:inline-flex;align-items:center;height:32px;padding:0 12px;border-radius:999px;background:var(--cm-green-600);color:#fff;font-size:12px;font-weight:600;white-space:nowrap;box-shadow:0 8px 16px -10px rgba(22, 163, 74, 0.9)}.cm-art-list{padding:5px}.cm-art-row{display:grid;grid-template-columns:24px minmax(0, 1fr) auto auto;align-items:center;gap:9px;padding:6px 8px;border-radius:10px}.cm-art-row:first-child{background:#f6f7f4}.cm-art-avatar{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#e7f5ec;color:var(--cm-green-700);font-size:9.5px;font-style:normal;font-weight:700}.cm-art-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:#292524}.cm-art-money{font-family:'Geist Mono', ui-monospace, monospace;font-size:11.5px;color:#1c1917}.cm-art-status{padding:2px 7px;border-radius:999px;background:#dcfce7;color:#166534;font-size:10px;font-weight:700}.cm-art-team{display:flex;flex-direction:column;align-items:center;gap:14px}.cm-art-avatars{display:flex}.cm-art-person{display:grid;place-items:center;width:52px;height:52px;margin-left:-11px;border-radius:50%;border:3px solid #fff;color:#fff;font-size:14.5px;font-style:normal;font-weight:700;box-shadow:0 10px 20px -12px rgba(0, 0, 0, 0.45)}.cm-art-person:first-child{margin-left:0}.cm-art-person.is-a{background:var(--cm-green-600)}.cm-art-person.is-b{background:#0d9488}.cm-art-person.is-c{background:#ea580c}.cm-art-person.is-add{background:#fff;border:2px dashed #d3cfc7;color:#a8a29e;font-size:20px;font-weight:500;box-shadow:none}.cm-art-roles{display:flex;gap:6px}.cm-art-roles b{display:inline-flex;align-items:center;height:28px;padding:0 11px;border-radius:999px;background:#fff;box-shadow:0 0 0 1px rgba(20, 20, 18, 0.08);color:#44403c;font-size:12px;font-weight:500}.cm-art-roles b.is-on{background:#f0fdf4;box-shadow:0 0 0 1.5px #86efac;color:#166534;font-weight:600}.cm-topic-grid{display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));gap:18px}.cm-topic{display:flex;flex-direction:column;padding:26px 28px 24px;border-radius:24px;background:var(--cm-card);box-shadow:0 0 0 1px var(--cm-line), 0 1px 2px rgba(0, 0, 0, 0.03);text-decoration:none!important;border-bottom:0!important;transition:transform 0.2s ease, box-shadow 0.2s ease}.cm-topic:hover{transform:translateY(-2px);box-shadow:0 0 0 1px rgba(22, 163, 74, 0.32), 0 26px 50px -36px rgba(14, 51, 32, 0.55)}.cm-topic-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:13px;background:var(--cm-mint);box-shadow:inset 0 0 0 1px rgba(22, 163, 74, 0.14);color:var(--cm-green-700)}.dark .cm-topic-icon{color:var(--cm-green-400)}.cm-topic-title{margin-top:22px;font-family:'Cal Sans', sans-serif;font-weight:600;font-size:23px;letter-spacing:-0.015em;color:var(--cm-ink)}.cm-topic-text{margin-top:8px;font-size:16px;line-height:1.6;color:var(--cm-text)}.cm-topic-count{margin-top:auto;padding-top:16px;font-size:13.5px;color:var(--cm-subtle)}.cm-help-row{display:grid;grid-template-columns:minmax(0, 1.7fr) minmax(0, 1fr);gap:22px}.cm-help{position:relative;overflow:hidden;padding:42px 44px 44px;border-radius:28px;color:#fff;background-color:#0c2a1b;background-image:repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.015) 0 1px, transparent 1px 3px),\n\t\tradial-gradient(30rem 18rem at 14% 0%, rgb(18 97 50 / 0.85), transparent 100%);box-shadow:var(--cm-shadow)}.cm-help-mark{position:absolute;right:-90px;bottom:-70px;width:470px;fill:rgba(74, 222, 128, 0.08);pointer-events:none}.cm-help-kicker{position:relative;display:inline-flex;align-items:center;height:30px;padding:0 13px;border-radius:999px;background:rgba(74, 222, 128, 0.16);color:#9df5bf;font-size:12.5px;font-weight:600;letter-spacing:0.14em;text-transform:uppercase}.cm-help-title{position:relative;max-width:560px;margin:18px 0 0!important;font-family:'Cal Sans', sans-serif;font-weight:600;font-size:38px;line-height:1.08;letter-spacing:-0.02em;color:#fff}.cm-help-text{position:relative;max-width:520px;margin:12px 0 0!important;font-size:17px;line-height:1.6;color:rgba(255, 255, 255, 0.74)}.cm-help-actions{position:relative;display:flex;flex-wrap:wrap;gap:10px;margin-top:28px}.cm-dev{display:flex;flex-direction:column;padding:34px 34px 32px;border-radius:28px;background:var(--cm-card);box-shadow:0 0 0 1px var(--cm-line), 0 1px 2px rgba(0, 0, 0, 0.03);text-decoration:none!important;border-bottom:0!important;transition:transform 0.2s ease, box-shadow 0.2s ease}.cm-dev:hover{transform:translateY(-2px);box-shadow:0 0 0 1px rgba(22, 163, 74, 0.32), 0 26px 50px -36px rgba(14, 51, 32, 0.55)}.cm-dev-kicker{margin-top:26px}.cm-dev-title{margin-top:8px;font-family:'Cal Sans', sans-serif;font-weight:600;font-size:28px;letter-spacing:-0.015em;color:var(--cm-ink)}.cm-dev-text{margin-top:8px;font-size:16px;line-height:1.6;color:var(--cm-text)}.cm-dev-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:var(--cm-card);box-shadow:0 0 0 1px var(--cm-line), 0 6px 14px -8px rgba(0, 0, 0, 0.2);color:var(--cm-green-700)}.dark .cm-dev-icon{color:var(--cm-green-400)}.cm-dev-more{display:inline-flex;align-items:center;gap:6px;margin-top:auto;padding-top:22px;font-size:16px;font-weight:600;color:var(--cm-green-700)}.dark .cm-dev-more{color:var(--cm-green-400)}.cm-dev-more svg{transition:transform 0.2s ease}.cm-dev:hover .cm-dev-more svg{transform:translateX(3px)}@media (max-width: 1080px){.cm-hero-mark{right:-60px;bottom:-80px;opacity:0.55}.cm-start-grid,.cm-topic-grid{grid-template-columns:repeat(2, minmax(0, 1fr))}.cm-shead,.cm-help-row{grid-template-columns:minmax(0, 1fr)}.cm-shead-text{justify-self:start}}@media (max-width: 680px){.cm-home{padding-top:8px}.cm-hero{width:calc(100% - 16px);padding:56px 20px 60px;border-radius:24px}.cm-hero-mark{display:none}.cm-section{padding:72px 18px 0}.cm-start-grid,.cm-topic-grid{grid-template-columns:minmax(0, 1fr)}.cm-search-input{font-size:21px}.cm-search-hint{display:none}.cm-help{padding:32px 26px}.cm-guide-open{height:360px}.cm-lightbox-help{display:none}}"}]}
{"page":{"pagePath":"api-reference/payment-method/charge","slug":"/api-reference/payment-method/charge","pageMetadata":{"title":"Charge Method","openapi":"POST /developer/v1/payment-method/{id}/payment","description":null,"href":"/api-reference/payment-method/charge"},"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":"Charge Method","openapi":"POST /developer/v1/payment-method/{id}/payment","description":null,"href":"/api-reference/payment-method/charge"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/compago/3e9a54dea3a54b22/ai-assistant/widget.js","/_mintlify/custom/compago/ecd13ae4c09ef98e/navbar-search.js"],"openApiReferenceData":{"operation":{"tags":["PaymentMethod"],"summary":"Charge a saved payment method","operationId":"chargePaymentMethod","security":["2c9e7777-0971-4105-9b8c-0942d36e9cbe"],"parameters":["f48d963e-5a46-4aa6-9ea4-84d4cd87bd14"],"requestBody":"3e351aa8-e94f-48e2-9a14-fdb04700e64d","responses":{"200":"59c09b94-14fe-486c-a5d1-5e01f9412c0b","400":"99488c50-9df8-449a-a5b1-e213b8a2d1c8","401":"0f6f9510-e1cc-4746-b590-1e4ad072d762","402":"8b26818b-89b8-4fb8-8c9b-8fb91214881e","404":"a5f66e8f-78d9-4233-a9ce-2a3b3fc23ff2","409":"c40c022c-c68b-451f-99a6-b94dd4b4a596","422":"769d17eb-d536-4e47-b6ce-c7fe262049de"},"method":"post","type":"path","servers":["129ca737-b7b9-4a85-b1e8-2d4b3c38f811","29a0e366-23ca-46ad-bd65-259ea2a50331"],"path":"/developer/v1/payment-method/{id}/payment","baseUrlOptions":["https://demo-api-harmony.compago.com/api","https://api-harmony.compago.com/api"],"title":"Charge a saved payment method","description":"","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"f48d963e-5a46-4aa6-9ea4-84d4cd87bd14":{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","isRequired":true,"description":"The unique identifier of the payment method to charge","uniqueKey":"","typeLabel":"string\u003cuuid>"},"description":"The unique identifier of the payment method to charge"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"Request body for charging a saved payment method","properties":{"amount":{"type":"number","format":"decimal","minimum":0.01,"example":500,"description":"The amount to charge in MXN. Must be a positive number.","isRequired":true,"uniqueKey":"amount","typeLabel":"number\u003cdecimal>"},"currency":{"type":"string","enum":["MXN","USD"],"default":"MXN","example":"MXN","description":"Currency of `amount`. Defaults to MXN. With USD the card is charged in MXN at the current exchange rate, and the response carries `conversion`. A hold (`holdFunds`) must be in MXN (`HOLD_CURRENCY_NOT_SUPPORTED`). See [Prices in US dollars](/core-concepts/usd-pricing).","uniqueKey":"currency","typeLabel":"enum\u003cstring>"},"description":{"type":"string","example":"Monthly subscription - January 2025","description":"A description of the charge.","uniqueKey":"description","typeLabel":"string"},"holdFunds":{"type":"boolean","default":false,"example":false,"description":"When true the funds are only authorized and held, not captured. The payment comes back as HELD, with `heldAmount` set to the authorized amount, and the money reaches you only when you call the capture endpoint, which can take the full held amount or part of it. Call the release endpoint to give the funds back, otherwise the hold is released automatically at the end of the 7th natural day. The hold window is counted in NATURAL DAYS, not in elapsed hours. The day the hold is placed counts as day 1 and the time of day it was placed is irrelevant: a hold placed Monday 10:00 and one placed Monday 23:29 both expire at the same instant, at the end of the following Sunday. The bank closes its day at 23:30 America/Mexico_City and Compago closes the hold at 23:00, 30 minutes earlier, so the last minute to capture is 22:59 on the last day.","uniqueKey":"holdFunds","typeLabel":"boolean"},"externalId":{"type":"string","maxLength":255,"example":"invoice-2025-01-8842","description":"Optional idempotency key for this charge or hold. Your own reference, up to 255 characters, unique across all payments in your organization. Repeating a request with the same value returns the ORIGINAL payment, with the HTTP status the original attempt produced, instead of charging or holding a second time. A DECLINED attempt SPENDS the key: replaying it returns the decline again, so retrying a declined charge or hold requires a NEW externalId. Reusing a key with a different payment method, amount, currency or bankAccountId answers 409 EXTERNAL_ID_MISMATCH. An empty string is treated as not supplied. This is NOT the payment method externalId, which identifies the saved card: they are separate namespaces and are never compared with each other.","uniqueKey":"externalId","typeLabel":"string"},"bankAccountId":{"oneOf":[{"type":"string","format":"uuid","example":"5b1d7c2e-8a34-4f6b-9c1d-0e2f3a4b5c61","description":"Optional. The bank account that receives the money of this charge, or of this hold once captured, for a business with more than one. It must be one of your verified accounts: list them with `GET /developer/v1/bank-account`. Omit it, or send `null`, and Compago applies your deposit rule, exactly as it did before this field existed. A saved card never remembers an account, so each charge sends its own. An id that is not one of your verified accounts fails with `BANK_ACCOUNT_NOT_AVAILABLE` and the card is not charged. Part of the `externalId` replay check: a retry naming a different account answers `EXTERNAL_ID_MISMATCH`.","uniqueKey":"bankAccountId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","example":"5b1d7c2e-8a34-4f6b-9c1d-0e2f3a4b5c61","description":"Optional. The bank account that receives the money of this charge, or of this hold once captured, for a business with more than one. It must be one of your verified accounts: list them with `GET /developer/v1/bank-account`. Omit it, or send `null`, and Compago applies your deposit rule, exactly as it did before this field existed. A saved card never remembers an account, so each charge sends its own. An id that is not one of your verified accounts fails with `BANK_ACCOUNT_NOT_AVAILABLE` and the card is not charged. Part of the `externalId` replay check: a retry naming a different account answers `EXTERNAL_ID_MISMATCH`.","uniqueKey":"bankAccountId.oneOf.1","typeLabel":"null"}],"uniqueKey":"bankAccountId","typeLabel":"string\u003cuuid> | null"},"allocations":{"oneOf":[{"type":"array","minItems":1,"maxItems":5,"items":{"type":"object","required":["bankAccountId","amount"],"properties":{"bankAccountId":{"type":"string","format":"uuid","description":"One of your verified accounts, from `GET /developer/v1/bank-account`. Each account appears once.","isRequired":true,"uniqueKey":"allocations.oneOf.0.items.[INDEX].bankAccountId","typeLabel":"string\u003cuuid>"},"amount":{"type":"number","minimum":0.01,"example":600,"description":"What this account receives of the payment, in MXN, with at most two decimals.","isRequired":true,"uniqueKey":"allocations.oneOf.0.items.[INDEX].amount","typeLabel":"number"},"absorbsFee":{"type":"boolean","default":true,"description":"`true` (the default): this part pays its share of Compago's fee, in proportion to its amount. `false`: the account receives its whole `amount` and the rest of the payment pays the fee, as when you collect for a consignment supplier.","uniqueKey":"allocations.oneOf.0.items.[INDEX].absorbsFee","typeLabel":"boolean"}},"uniqueKey":"allocations.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Optional. Splits the money of this charge between several of your bank accounts: each part names an account and the amount it receives. What the parts leave of the amount follows your deposit rule. The tip, the fee and its IVA are shared out between the parts that pay the fee, in centavos. Up to 5 parts, in MXN charges only, and never together with `bankAccountId`; what the parts leave counts as one more, so five parts must add up to the whole amount. The parts may not add up to more than `amount`, and when they add up to all of it at least one must pay the fee (`absorbsFee`). A request that breaks a rule fails with `BANK_ACCOUNT_ALLOCATIONS_INVALID`; an account that is not one of your verified accounts fails with `BANK_ACCOUNT_NOT_AVAILABLE`.","example":[{"bankAccountId":"5b1d7c2e-8a34-4f6b-9c1d-0e2f3a4b5c61","amount":600,"absorbsFee":false}],"uniqueKey":"allocations.oneOf.0","typeLabel":"object[]"},{"type":"null","minItems":1,"maxItems":5,"items":{"type":"object","required":["bankAccountId","amount"],"properties":{"bankAccountId":{"type":"string","format":"uuid","description":"One of your verified accounts, from `GET /developer/v1/bank-account`. Each account appears once."},"amount":{"type":"number","minimum":0.01,"example":600,"description":"What this account receives of the payment, in MXN, with at most two decimals."},"absorbsFee":{"type":"boolean","default":true,"description":"`true` (the default): this part pays its share of Compago's fee, in proportion to its amount. `false`: the account receives its whole `amount` and the rest of the payment pays the fee, as when you collect for a consignment supplier."}}},"description":"Optional. Splits the money of this charge between several of your bank accounts: each part names an account and the amount it receives. What the parts leave of the amount follows your deposit rule. The tip, the fee and its IVA are shared out between the parts that pay the fee, in centavos. Up to 5 parts, in MXN charges only, and never together with `bankAccountId`; what the parts leave counts as one more, so five parts must add up to the whole amount. The parts may not add up to more than `amount`, and when they add up to all of it at least one must pay the fee (`absorbsFee`). A request that breaks a rule fails with `BANK_ACCOUNT_ALLOCATIONS_INVALID`; an account that is not one of your verified accounts fails with `BANK_ACCOUNT_NOT_AVAILABLE`.","example":[{"bankAccountId":"5b1d7c2e-8a34-4f6b-9c1d-0e2f3a4b5c61","amount":600,"absorbsFee":false}],"uniqueKey":"allocations.oneOf.1","typeLabel":"null"}],"uniqueKey":"allocations","typeLabel":"object[] | null"}},"required":["amount"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"amount":500,"currency":"MXN","description":"Monthly subscription - January 2025","holdFunds":false,"externalId":"invoice-2025-01-8842","bankAccountId":"5b1d7c2e-8a34-4f6b-9c1d-0e2f3a4b5c61","allocations":[{"bankAccountId":"5b1d7c2e-8a34-4f6b-9c1d-0e2f3a4b5c61","amount":600,"absorbsFee":false}]}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"59c09b94-14fe-486c-a5d1-5e01f9412c0b":{"description":"Payment created successfully. When `holdFunds` is true the payment comes back with status `HELD`, `heldAmount` set to the authorized amount, and the funds held rather than captured. When the request carried an `externalId` that was already used, this is the ORIGINAL payment replayed rather than a new one.","content":{"application/json":{"schema":{"type":"object","description":"Response after charging a payment method, or after placing a hold when holdFunds was true","properties":{"id":{"type":"string","format":"uuid","example":"11111111-2222-3333-4444-555555555555","description":"Unique identifier of the payment","isRequired":true,"uniqueKey":"id","typeLabel":"string\u003cuuid>"},"status":{"type":"string","enum":["NOT_INITIALIZED","PENDING","CONFIRMED","CANCELLED","REFUNDED","HELD","HOLD_RELEASED","HOLD_EXPIRED"],"example":"CONFIRMED","description":"Current status of the payment. A successful hold returns HELD.","isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"amount":{"type":"number","format":"decimal","description":"The money that moved, or that will move. On a hold it equals `heldAmount` until the hold is captured; after a partial capture it is the amount actually captured.","isRequired":true,"uniqueKey":"amount","typeLabel":"number\u003cdecimal>"},"currency":{"type":"string","example":"MXN","isRequired":true,"uniqueKey":"currency","typeLabel":"string"},"heldAmount":{"oneOf":[{"type":"number","format":"decimal","example":null,"description":"The amount the bank authorized when the hold was placed. Stamped once and never rewritten, so it stays the record of what was blocked on the card even after a partial capture. Null on any payment that was never held.","uniqueKey":"heldAmount.oneOf.0","typeLabel":"number\u003cdecimal>"},{"type":"null","format":"decimal","example":null,"description":"The amount the bank authorized when the hold was placed. Stamped once and never rewritten, so it stays the record of what was blocked on the card even after a partial capture. Null on any payment that was never held.","uniqueKey":"heldAmount.oneOf.1","typeLabel":"null"}],"uniqueKey":"heldAmount","typeLabel":"number\u003cdecimal> | null"},"conversion":{"oneOf":[{"type":"object","description":"Set when the charge was requested in USD, null otherwise. `amount` and `currency` are the MXN the card was charged.","properties":{"originalCurrency":{"type":"string","enum":["USD"],"example":"USD","isRequired":true,"uniqueKey":"conversion.oneOf.0.originalCurrency","typeLabel":"enum\u003cstring>"},"originalAmount":{"type":"number","format":"decimal","example":100,"description":"The dollar price of the sale, tip excluded.","isRequired":true,"uniqueKey":"conversion.oneOf.0.originalAmount","typeLabel":"number\u003cdecimal>"},"exchangeRate":{"type":"number","format":"decimal","example":19.6192,"description":"MXN charged per dollar, four decimals.","isRequired":true,"uniqueKey":"conversion.oneOf.0.exchangeRate","typeLabel":"number\u003cdecimal>"},"exchangeRateDate":{"type":"string","format":"date","example":"2026-11-12","description":"The day Banxico determined the FIX the rate is built on.","isRequired":true,"uniqueKey":"conversion.oneOf.0.exchangeRateDate","typeLabel":"string\u003cdate>"}},"required":["originalCurrency","originalAmount","exchangeRate","exchangeRateDate"],"uniqueKey":"conversion.oneOf.0","typeLabel":"object"},{"type":"null","description":"Set when the charge was requested in USD, null otherwise. `amount` and `currency` are the MXN the card was charged.","properties":{"originalCurrency":{"type":"string","enum":["USD"],"example":"USD"},"originalAmount":{"type":"number","format":"decimal","example":100,"description":"The dollar price of the sale, tip excluded."},"exchangeRate":{"type":"number","format":"decimal","example":19.6192,"description":"MXN charged per dollar, four decimals."},"exchangeRateDate":{"type":"string","format":"date","example":"2026-11-12","description":"The day Banxico determined the FIX the rate is built on."}},"required":["originalCurrency","originalAmount","exchangeRate","exchangeRateDate"],"uniqueKey":"conversion.oneOf.1","typeLabel":"null"}],"uniqueKey":"conversion","typeLabel":"object | null"},"externalId":{"oneOf":[{"type":"string","example":"invoice-2025-01-8842","description":"The idempotency key supplied when the payment was created, echoed back so you can map this payment id to your own order reference. Null when none was supplied. Not to be confused with the payment method externalId, which identifies the saved card.","uniqueKey":"externalId.oneOf.0","typeLabel":"string"},{"type":"null","example":"invoice-2025-01-8842","description":"The idempotency key supplied when the payment was created, echoed back so you can map this payment id to your own order reference. Null when none was supplied. Not to be confused with the payment method externalId, which identifies the saved card.","uniqueKey":"externalId.oneOf.1","typeLabel":"null"}],"uniqueKey":"externalId","typeLabel":"string | null"},"heldAt":{"oneOf":[{"type":"string","format":"date-time","example":"2026-08-12T10:00:00.000Z","description":"When the bank approved the hold. Null on payments that were never held.","uniqueKey":"heldAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","example":"2026-08-12T10:00:00.000Z","description":"When the bank approved the hold. Null on payments that were never held.","uniqueKey":"heldAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"heldAt","typeLabel":"string\u003cdate-time> | null"},"capturedAt":{"oneOf":[{"type":"string","format":"date-time","description":"When the hold was captured. This, and not createdAt, is the settlement date of a captured hold. Null until the hold is captured.","uniqueKey":"capturedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the hold was captured. This, and not createdAt, is the settlement date of a captured hold. Null until the hold is captured.","uniqueKey":"capturedAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"capturedAt","typeLabel":"string\u003cdate-time> | null"},"holdReleasedAt":{"oneOf":[{"type":"string","format":"date-time","description":"When the hold was released, either by the release endpoint or by the automatic expiry. Null otherwise.","uniqueKey":"holdReleasedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the hold was released, either by the release endpoint or by the automatic expiry. Null otherwise.","uniqueKey":"holdReleasedAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"holdReleasedAt","typeLabel":"string\u003cdate-time> | null"},"holdExpiresAt":{"oneOf":[{"type":"string","format":"date-time","example":"2026-08-19T05:00:00.000Z","description":"When the hold expires: 23:00 America/Mexico_City on the 7th natural day, counting the day of heldAt as day 1. The hold window is counted in NATURAL DAYS, not in elapsed hours. The day the hold is placed counts as day 1 and the time of day it was placed is irrelevant: a hold placed Monday 10:00 and one placed Monday 23:29 both expire at the same instant, at the end of the following Sunday. The bank closes its day at 23:30 America/Mexico_City and Compago closes the hold at 23:00, 30 minutes earlier, so the last minute to capture is 22:59 on the last day. It keeps being reported once the hold has ended, because it is a fact about the payment. Null on payments that were never held.","uniqueKey":"holdExpiresAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","example":"2026-08-19T05:00:00.000Z","description":"When the hold expires: 23:00 America/Mexico_City on the 7th natural day, counting the day of heldAt as day 1. The hold window is counted in NATURAL DAYS, not in elapsed hours. The day the hold is placed counts as day 1 and the time of day it was placed is irrelevant: a hold placed Monday 10:00 and one placed Monday 23:29 both expire at the same instant, at the end of the following Sunday. The bank closes its day at 23:30 America/Mexico_City and Compago closes the hold at 23:00, 30 minutes earlier, so the last minute to capture is 22:59 on the last day. It keeps being reported once the hold has ended, because it is a fact about the payment. Null on payments that were never held.","uniqueKey":"holdExpiresAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"holdExpiresAt","typeLabel":"string\u003cdate-time> | null"},"holdExpired":{"type":"boolean","description":"Whether the hold window has closed. It flips at 23:00 America/Mexico_City on the last natural day, not 7 times 24 hours after heldAt. False on payments that were never held.","uniqueKey":"holdExpired","typeLabel":"boolean"},"holdDaysRemaining":{"oneOf":[{"type":"integer","example":7,"description":"Natural days on which the hold can still be captured, including today when today's 23:00 cutoff has not passed yet: 7 for a hold placed before 23:00 on its placement day, 6 for one placed at or after 23:00 (its placement day is already spent), 1 through the last day, and 0 from 23:00 on the last day. Null unless the payment is currently HELD.","uniqueKey":"holdDaysRemaining.oneOf.0","typeLabel":"integer"},{"type":"null","example":7,"description":"Natural days on which the hold can still be captured, including today when today's 23:00 cutoff has not passed yet: 7 for a hold placed before 23:00 on its placement day, 6 for one placed at or after 23:00 (its placement day is already spent), 1 through the last day, and 0 from 23:00 on the last day. Null unless the payment is currently HELD.","uniqueKey":"holdDaysRemaining.oneOf.1","typeLabel":"null"}],"uniqueKey":"holdDaysRemaining","typeLabel":"integer | null"},"bankAccountId":{"oneOf":[{"type":"string","format":"uuid","example":"5b1d7c2e-8a34-4f6b-9c1d-0e2f3a4b5c61","description":"The bank account the payment is deposited in: the one your deposit rule assigned when the bank approved the charge, or the one you sent. `null` when you sent none and nothing was approved yet (a hold is assigned its account when captured).","uniqueKey":"bankAccountId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","example":"5b1d7c2e-8a34-4f6b-9c1d-0e2f3a4b5c61","description":"The bank account the payment is deposited in: the one your deposit rule assigned when the bank approved the charge, or the one you sent. `null` when you sent none and nothing was approved yet (a hold is assigned its account when captured).","uniqueKey":"bankAccountId.oneOf.1","typeLabel":"null"}],"uniqueKey":"bankAccountId","typeLabel":"string\u003cuuid> | null"}},"required":["id","status","amount","currency"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"11111111-2222-3333-4444-555555555555","status":"CONFIRMED","amount":123,"currency":"MXN","heldAmount":null,"conversion":{"originalCurrency":"USD","originalAmount":100,"exchangeRate":19.6192,"exchangeRateDate":"2026-11-12"},"externalId":"invoice-2025-01-8842","heldAt":"2026-08-12T10:00:00.000Z","capturedAt":"2023-11-07T05:31:56Z","holdReleasedAt":"2023-11-07T05:31:56Z","holdExpiresAt":"2026-08-19T05:00:00.000Z","holdExpired":true,"holdDaysRemaining":7,"bankAccountId":"5b1d7c2e-8a34-4f6b-9c1d-0e2f3a4b5c61"}}},"exampleType":"generated"}},"exampleType":"generated"},"99488c50-9df8-449a-a5b1-e213b8a2d1c8":{"description":"Invalid request, payment method not ACTIVE, card expired, an externalId longer than 255 characters, or (holds only) the saved card has no channel assigned. `BANK_ACCOUNT_ALLOCATIONS_INVALID`: `allocations` add up to more than `amount`, leave nobody to pay the fee, name an account twice, come with `bankAccountId`, or are sent on a charge that is not in MXN.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"0f6f9510-e1cc-4746-b590-1e4ad072d762":{"description":"Unauthorized – missing or invalid API key","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"8b26818b-89b8-4fb8-8c9b-8fb91214881e":{"description":"`HOLD_DECLINED`: the bank declined the hold. The payment is recorded as CANCELLED and no funds are held.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"a5f66e8f-78d9-4233-a9ce-2a3b3fc23ff2":{"description":"Payment method not found","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"c40c022c-c68b-451f-99a6-b94dd4b4a596":{"description":"`HOLD_UNAVAILABLE`: the payment is no longer available to hold. | `EXTERNAL_ID_MISMATCH`: the externalId you sent already identifies a payment with a different payment method, bank account, amount or currency. Use a different externalId for a different operation. | `EXTERNAL_ID_CONFLICT`: the externalId is in use by another request that has not finished yet. Nothing was sent to the bank, so it is safe to retry in a moment.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"769d17eb-d536-4e47-b6ce-c7fe262049de":{"description":"`bankAccountId`, or an account in `allocations`, is not one of your verified bank accounts. The card was not charged.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","example":"BANK_ACCOUNT_NOT_AVAILABLE","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","example":"That bank account cannot receive sales.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"BANK_ACCOUNT_NOT_AVAILABLE","message":"That bank account cannot receive sales."}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"2c9e7777-0971-4105-9b8c-0942d36e9cbe":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key","scopes":[],"schemeName":"ApiKeyAuth"}}},"servers":{"129ca737-b7b9-4a85-b1e8-2d4b3c38f811":{"url":"https://demo-api-harmony.compago.com/api"},"29a0e366-23ca-46ad-bd65-259ea2a50331":{"url":"https://api-harmony.compago.com/api"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-api-key","scopes":[],"schemeName":"ApiKeyAuth"},"schema":{"title":"x-api-key","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"x-api-key"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"compago","siteName":"Compago","title":"Charge Method - Compago","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"es":{"href":"/api-reference/payment-method/charge","matchLevel":0}}},"lastModified":"2026-11-10T17:39:41.028Z","originalFileLocation":"api-reference/payment-method/charge.mdx","locale":"es"},"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=\"application-name\" content=\"Compago\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/compago/FfoSu6yrugHGprql/_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/compago/FfoSu6yrugHGprql/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/compago/FfoSu6yrugHGprql/_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/compago/FfoSu6yrugHGprql/_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/compago/FfoSu6yrugHGprql/_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/compago/FfoSu6yrugHGprql/_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/compago/FfoSu6yrugHGprql/_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/compago/FfoSu6yrugHGprql/_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/compago/FfoSu6yrugHGprql/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Charge Method - Compago\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Compago\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.compago.com/api-reference/payment-method/charge\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://compago.mintlify.site/_mintlify/api/og/v2?division=Saved+cards\u0026amp;title=Charge+Method\u0026amp;theme=92a34b957a380e1788d91362\u0026amp;signature=71c6f883a85f70a58322eb09d1593a3b9a1aa88b5dcd7b0595a235e0b6af5efc\">\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=\"Charge Method - Compago\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://compago.mintlify.site/_mintlify/api/og/v2?division=Saved+cards\u0026amp;title=Charge+Method\u0026amp;theme=92a34b957a380e1788d91362\u0026amp;signature=71c6f883a85f70a58322eb09d1593a3b9a1aa88b5dcd7b0595a235e0b6af5efc\">\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/compago/FfoSu6yrugHGprql/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Compago\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#16A34A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.compago.com/api-reference/payment-method/charge\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/payment-method/charge.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.compago.com/#organization\",\"name\":\"Compago\",\"url\":\"https://docs.compago.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/compago/HbO-gQD4txAbheB6/logo/light.svg?fit=max\u0026auto=format\u0026n=HbO-gQD4txAbheB6\u0026q=85\u0026s=ef32446eb600c2bdd769544cafec878b\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.compago.com#website\",\"name\":\"Compago\",\"url\":\"https://docs.compago.com\",\"publisher\":{\"@id\":\"https://docs.compago.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.compago.com/api-reference/payment-method/charge#webpage\",\"url\":\"https://docs.compago.com/api-reference/payment-method/charge\",\"name\":\"Charge Method\",\"dateModified\":\"2026-11-10T17:39:41.028Z\",\"isPartOf\":{\"@id\":\"https://docs.compago.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.compago.com/api-reference/payment-method/charge#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.compago.com/api-reference/payment-method/charge#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accept Payments\",\"item\":\"https://docs.compago.com/api-reference/one-time-payment/create\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Saved cards\",\"item\":\"https://docs.compago.com/api-reference/payment-method/create\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Charge Method\",\"item\":\"https://docs.compago.com/api-reference/payment-method/charge\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.compago.com/api-reference/payment-method/charge#apireference\",\"headline\":\"Charge Method\",\"name\":\"Charge Method\",\"url\":\"https://docs.compago.com/api-reference/payment-method/charge\",\"mainEntityOfPage\":{\"@id\":\"https://docs.compago.com/api-reference/payment-method/charge#webpage\"},\"dateModified\":\"2026-11-10T17:39:41.028Z\",\"publisher\":{\"@id\":\"https://docs.compago.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.compago.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Compago\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Compago\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/payment-method/charge.md","siteName":"Compago","nav":{"global":null,"languages":[{"language":"es","tabs":[{"tab":"Manual de uso","icon":"book-open","pages":[{"title":"Manual de uso","href":""}]},{"tab":"Desarrolladores","icon":"code","menu":[{"item":"Business API: guías","icon":"store","description":"Para comercios y fabricantes que integran cobros","pages":[{"title":"Business API: guías","href":"/introduction"}]},{"item":"Business API: referencia","icon":"brackets-curly","description":"Para comercios y fabricantes que integran cobros","groups":[{"group":"Get Started","pages":[{"title":"API Reference","href":"/api-reference/introduction"}]},{"group":"Accept Payments","pages":[{"group":"One-time payments","pages":[{"title":"Create","openapi":"POST /developer/v1/one-time-payment","href":"/api-reference/one-time-payment/create"},{"title":"List","openapi":"GET /one-time-payment","href":"/api-reference/one-time-payment/list"},{"title":"Find by ID","openapi":"GET /one-time-payment/{id}","href":"/api-reference/one-time-payment/get"},{"title":"Cancel","openapi":"PATCH /developer/v1/one-time-payment/{id}/cancel","href":"/api-reference/one-time-payment/cancel"},{"title":"Refund quote","openapi":"GET /developer/v1/one-time-payment/{id}/refund-quote","href":"/api-reference/one-time-payment/refund-quote"},{"title":"Refund","openapi":"POST /developer/v1/one-time-payment/{id}/refund","href":"/api-reference/one-time-payment/refund"}]},{"group":"Payment intents","pages":[{"title":"Create","openapi":"POST /developer/v1/payment-intent","href":"/api-reference/payment-intent/create"},{"title":"Find by ID","openapi":"GET /developer/v1/payment-intent/{id}","href":"/api-reference/payment-intent/get"},{"title":"Cancel","openapi":"POST /developer/v1/payment-intent/{id}/cancel","href":"/api-reference/payment-intent/cancel"},{"title":"Send receipt","openapi":"POST /developer/v1/payment-intent/{id}/receipt","href":"/api-reference/payment-intent/receipt"},{"title":"Refund","openapi":"POST /developer/v1/payment-intent/{id}/refund","href":"/api-reference/payment-intent/refund"}]},{"group":"Saved cards","pages":[{"title":"Create","openapi":"POST /developer/v1/payment-method","href":"/api-reference/payment-method/create"},{"title":"List Methods","openapi":"GET /payment-method","href":"/api-reference/payment-method/list"},{"title":"Find Method by ID","openapi":"GET /payment-method/{id}","href":"/api-reference/payment-method/get"},{"title":"Revoke Method","openapi":"DELETE /developer/v1/payment-method/{id}","description":null,"href":"/api-reference/payment-method/revoke"},{"title":"Charge Method","openapi":"POST /developer/v1/payment-method/{id}/payment","href":"/api-reference/payment-method/charge"},{"title":"Capture Hold","openapi":"POST /developer/v1/payment-method/{id}/payment/{paymentId}/capture","description":"Captures a payment that is currently `HELD`, moving the held funds to the merchant. The request body is OPTIONAL: send no body to capture the full held amount, or send `{ \"amount\": 200 }` to capture only part of it. The bounds are `0 \u003c amount \u003c= heldAmount`; the 1 MXN minimum that applies to a charge does not apply to a capture. A successful capture leaves the payment `CONFIRMED` with `capturedAt` set, `amount` rewritten to the amount actually captured, and `heldAmount` still carrying the amount that was authorized. TWO RULES THAT SURPRISE INTEGRATORS: (1) there is exactly ONE capture per hold, so you cannot capture 200 now and the remaining 1000 later, and a second capture answers 409 `PAYMENT_NOT_HELD`; (2) Compago issues NO release for the difference on a partial capture, the cardholder's issuing bank frees it on its own schedule, usually within a few days. Capture is time-gated: it is refused from 23:00 America/Mexico_City on the last natural day of the hold window. The hold window is counted in NATURAL DAYS, not in elapsed hours. The day the hold is placed counts as day 1 and the time of day it was placed is irrelevant: a hold placed Monday 10:00 and one placed Monday 23:29 both expire at the same instant, at the end of the following Sunday. The bank closes its day at 23:30 America/Mexico_City and Compago closes the hold at 23:00, 30 minutes earlier, so the last minute to capture is 22:59 on the last day.","href":"/api-reference/payment-method/capture"},{"title":"Release Hold","openapi":"POST /developer/v1/payment-method/{id}/payment/{paymentId}/release","href":"/api-reference/payment-method/release"},{"title":"Refund Charge","openapi":"POST /developer/v1/payment-method/{id}/payment/{paymentId}/refund","href":"/api-reference/payment-method/refund"},{"title":"List Charges","openapi":"GET /payment-method/{id}/payment","href":"/api-reference/payment-method/list-payments"},{"title":"Get Charge by ID","openapi":"GET /developer/v1/payment-method/{id}/payment/{paymentId}","href":"/api-reference/payment-method/get-payment"}]}]},{"group":"Developer API","pages":[{"group":"Payments","pages":[{"title":"List payments","openapi":"GET /developer/v1/payment","href":"/api-reference/developer/payment/list"},{"title":"Get a payment","openapi":"GET /developer/v1/payment/{id}","href":"/api-reference/developer/payment/get"}]},{"group":"Payouts","pages":[{"title":"List payouts","openapi":"GET /developer/v1/payout","href":"/api-reference/developer/payout/list"},{"title":"Get a payout","openapi":"GET /developer/v1/payout/{id}","href":"/api-reference/developer/payout/get"},{"title":"List a payout's lines","openapi":"GET /developer/v1/payout/{id}/line","href":"/api-reference/developer/payout/list-lines"}]},{"group":"Refunds","pages":[{"title":"Refund a payment","openapi":"POST /developer/v1/refund","href":"/api-reference/developer/refund/create"},{"title":"List refunds","openapi":"GET /developer/v1/refund","href":"/api-reference/developer/refund/list"},{"title":"Get a refund","openapi":"GET /developer/v1/refund/{id}","href":"/api-reference/developer/refund/get"}]},{"group":"Subscriptions","pages":[{"title":"List subscriptions","openapi":"GET /developer/v1/subscription","href":"/api-reference/developer/subscription/list"},{"title":"Get a subscription","openapi":"GET /developer/v1/subscription/{id}","href":"/api-reference/developer/subscription/get"},{"title":"List payments","href":"/api-reference/developer/subscription/list-payments"}]},{"group":"Payment links","pages":[{"title":"List payment links","openapi":"GET /developer/v1/payment-link","href":"/api-reference/developer/payment-link/list"},{"title":"Get a payment link","openapi":"GET /developer/v1/payment-link/{id}","href":"/api-reference/developer/payment-link/get"}]},{"group":"Products","pages":[{"title":"List products","openapi":"GET /developer/v1/product","href":"/api-reference/developer/product/list"},{"title":"Get a product","openapi":"GET /developer/v1/product/{id}","href":"/api-reference/developer/product/get"}]},{"group":"Saved cards","pages":[{"title":"List saved payment methods","openapi":"GET /developer/v1/payment-method","href":"/api-reference/developer/payment-method/list"},{"title":"Get a saved payment method","openapi":"GET /developer/v1/payment-method/{id}","href":"/api-reference/developer/payment-method/get"},{"title":"List payments","href":"/api-reference/developer/payment-method/list-payments"}]},{"group":"One-time payments","pages":[{"title":"List one-time payments","openapi":"GET /developer/v1/one-time-payment","href":"/api-reference/developer/one-time-payment/list"},{"title":"Get a one-time payment","openapi":"GET /developer/v1/one-time-payment/{id}","href":"/api-reference/developer/one-time-payment/get"},{"title":"Get or create the CLABE","openapi":"POST /developer/v1/one-time-payment/{id}/bank-transfer","href":"/api-reference/developer/one-time-payment/bank-transfer-create"},{"title":"Get the CLABE","openapi":"GET /developer/v1/one-time-payment/{id}/bank-transfer","href":"/api-reference/developer/one-time-payment/bank-transfer-get"}]},{"group":"Promotions","pages":[{"title":"List promotions","openapi":"GET /developer/v1/promotion","href":"/api-reference/developer/promotion/list"},{"title":"Get a promotion","openapi":"GET /developer/v1/promotion/{id}","href":"/api-reference/developer/promotion/get"}]},{"group":"Organization","pages":[{"title":"Get your organization","openapi":"GET /developer/v1/organization","href":"/api-reference/developer/organization/get"},{"title":"List organization members","openapi":"GET /developer/v1/organization/member","href":"/api-reference/developer/organization/list-members"},{"title":"List your bank accounts","openapi":"GET /developer/v1/bank-account","href":"/api-reference/developer/bank-account/list"},{"title":"List salespeople","openapi":"GET /developer/v1/salesperson","href":"/api-reference/developer/salesperson/list"},{"title":"Get a salesperson","openapi":"GET /developer/v1/salesperson/{id}","href":"/api-reference/developer/salesperson/get"}]},{"group":"API keys","pages":[{"title":"Get the current key","openapi":"GET /developer/v1/api-key/current","href":"/api-reference/developer/api-key/current"},{"title":"List your keys","openapi":"GET /developer/v1/api-key","href":"/api-reference/developer/api-key/list"},{"title":"Get a key","openapi":"GET /developer/v1/api-key/{id}","href":"/api-reference/developer/api-key/get"},{"title":"Create a key","openapi":"POST /developer/v1/api-key","href":"/api-reference/developer/api-key/create"},{"title":"Rotate a key","openapi":"POST /developer/v1/api-key/{id}/roll","href":"/api-reference/developer/api-key/roll"},{"title":"Revoke a key","openapi":"DELETE /developer/v1/api-key/{id}","href":"/api-reference/developer/api-key/revoke"}]},{"group":"Events","pages":[{"title":"List events","openapi":"GET /developer/v1/event","href":"/api-reference/developer/event/list"},{"title":"Get an event","openapi":"GET /developer/v1/event/{id}","href":"/api-reference/developer/event/get"}]}]}]},{"item":"Sales Partner API: guías","icon":"handshake","description":"Para socios comerciales que administran organizaciones y pagos","pages":[{"title":"Sales Partner API: guías","href":"/sales-partner"}]},{"item":"Sales Partner API: referencia","icon":"code","description":"Para socios comerciales que administran organizaciones y pagos","pages":[{"title":"Sales Partner API: referencia","href":"/sales-partner/api-reference/introduction"}]}]}]}]},"basePath":"","title":"Charge Method - Compago","deploymentId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","buildId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-BMn8tSe3.js","snippetPresets-Dl5ZrD9W.js","utils-CddEzDcs.js","style-to-object-BY3JEAdk.js","utils-Dym31Pnf.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-ZiqR8hPK.js","conditional-requirements-CFM0id0Q.js","cloneDeep-D3fPbylz.js","_Uint8Array-BcNtDki0.js","isObject-FP1Yky1u.js","ApiExamples-4Sf3CFhl.js","usePlaygroundInputsStore-Ck91l6q0.js","shallow-DapBSR9G.js","isEqual-Clu_sGzx.js","CodeSnippets-DAVHdSX2.js","CodeSnippet-Be6AcO_D.js","use-playground-group-access-CteWws2O.js","Page-_aL_PM_2.js","api-description-markdown-BPoPkVJQ.js","DynamicMarkdown-QJ7LkRm3.js","SectionHeading-DyxPTJti.js","MethodPill-CGjK-dNY.js","getPastedJson-C4YIGTOJ.js","Check2Icon-B7COpIZE.js","axios-CsQoIw0U.js","Markdown-Bquzb4Gw.js","AssistantPageLink-wSgGy_i5.js","dist-Bg48sGSz.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}