Request body for creating a payment intent. Payment intents represent card-present payment requests that are processed by POS terminals.
amount
number<decimal>
requerido
The amount to charge in MXN. Must be a positive number.
Ejemplo:
350.5
currency
enum<string>
predeterminado:MXN
requerido
Currency of amount and tipAmount. With USD the terminal shows the price in dollars and charges the card in MXN at the exchange rate of the moment the card is read. A terminal on an app version without dollar prices refuses the intent with INVALID_PAYMENT_AMOUNT and asks for an update. See Prices in US dollars.
Opciones disponibles:
MXN,
USD
Ejemplo:
"MXN"
externalId
string
requerido
Your unique identifier for this payment intent. Must be unique per organization.
Ejemplo:
"order_12345_pos"
terminalCode
string
Serial number of the target POS terminal. If provided, the payment intent is routed to that specific terminal and any other pending intents for that terminal are automatically cancelled. If omitted, the payment intent is available to any terminal in your organization.
Ejemplo:
"TERMINAL-001"
redirectAppId
string
Android application id of the app the Compago POS app returns to after the payment finishes (successfully or cancelled). Overrides the integration configured locally on the terminal. If omitted, the terminal falls back to its local integration configuration. Requires the app to be installed on the terminal device.
Maximum string length: 255
Ejemplo:
"com.mycompany.pos"
bankAccountId
string<uuid> | null
Optional. The bank account that receives the money of this payment intent, 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: with one account the money goes there, with automatic sharing the rule picks the account, and with manual sharing it goes to your default account. An id that is not one of your verified accounts fails with BANK_ACCOUNT_NOT_AVAILABLE.
Ejemplo:
"5b1d7c2e-8a34-4f6b-9c1d-0e2f3a4b5c61"
allocations
object[] | null
Optional. Splits the money of this payment intent 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.
The installment plans the terminal may charge, as numbers of months (1 is a single payment, 3 is 3 meses sin intereses). Send several to limit what the terminal offers, or one to fix the plan the cashier already chose at the till: the terminal then skips its plan screen. Every value must be a card-present plan active for your account, or the request is refused with ALLOWED_TERMS_UNAVAILABLE. Omit it (or send null) to offer every active plan. An empty list is refused.
Minimum array length: 1
Rango requerido: 1 <= x <= 48
Ejemplo:
[3, 6]
printVoucher
boolean
predeterminado:true
When the terminal prints the card voucher. It always prints it: true right after the approval, false right under the next receipt your system prints on the terminal (or on its own after a minute without one).
Ejemplo:
false
tipAmount
number<decimal> | null
Optional. A tip your till already took, in the intent's currency, charged on top of amount in the same card charge. The terminal shows the total and does not ask for a tip. At most 30% of amount, in whole cents (TIP_EXCEEDS_LIMIT, TIP_INVALID_AMOUNT). It does not need tips turned on for the business. Cannot be sent with collectTip.
Ejemplo:
52.5
collectTip
boolean
predeterminado:false
Optional. true has the terminal ask the customer for a tip (10, 15 or 20%, another amount, or none) before the card, as on a sale typed on the terminal. The business must have tips turned on, or the request is refused with TIPS_DISABLED. Cannot be sent with tipAmount. Omit it, or send false, to charge amount with no tip, as before.
Ejemplo:
true
Respuesta
Payment intent created successfully
The created payment intent object
id
string<uuid>
requerido
Unique identifier of the payment intent
Ejemplo:
"aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
status
enum<string>
requerido
Initial status is always PENDING
Opciones disponibles:
PENDING
amount
number<decimal>
requerido
The payment amount
currency
string
requerido
Ejemplo:
"MXN"
externalId
string
requerido
Your external identifier
redirectAppId
string | null
Android application id the terminal returns to after the payment finishes, if provided at creation
Ejemplo:
"com.mycompany.pos"
bankAccountId
string<uuid> | null
The bank account this payment intent asked for. null follows your deposit rule.
organizationId
string<uuid>
The organization that owns this payment intent
Ejemplo:
"11111111-2222-3333-4444-555555555555"
terminalId
string<uuid>
The terminal associated with this payment intent, if any
Ejemplo:
"66666666-7777-8888-9999-000000000000"
createdAt
string<date-time>
updatedAt
string<date-time>
allowedTerms
integer[] | null
The plans the terminal may charge, sorted and without repeats. null offers every active plan.
Ejemplo:
[3, 6]
printVoucher
boolean
false when the terminal prints the card voucher under your system's receipt instead of right after the approval.
{"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-intent/create","slug":"/api-reference/payment-intent/create","pageMetadata":{"title":"Create","openapi":"POST /developer/v1/payment-intent","description":null,"href":"/api-reference/payment-intent/create"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create","openapi":"POST /developer/v1/payment-intent","description":null,"href":"/api-reference/payment-intent/create"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/compago/3e9a54dea3a54b22/ai-assistant/widget.js","/_mintlify/custom/compago/ecd13ae4c09ef98e/navbar-search.js"],"openApiReferenceData":{"operation":{"tags":["PaymentIntent"],"summary":"Create a payment intent","operationId":"createPaymentIntent","security":["70325f13-ffa9-4d37-a65c-8bc43a27b972"],"requestBody":"9147a1a4-03fa-44e7-9880-900fd272b402","responses":{"200":"687d87e1-48a1-48f8-8b44-9ffd3a17dc4c","400":"6fd0f081-5104-4bb7-9c1c-29295e9f8074","401":"976f860d-8049-48af-b015-550890b1a94b","404":"a2db1be3-ba65-4c70-bb6e-1fb06ac3c61e","422":"53c3505c-ddef-42e7-9ce8-dc1d257c198c"},"method":"post","type":"path","servers":["129ca737-b7b9-4a85-b1e8-2d4b3c38f811","29a0e366-23ca-46ad-bd65-259ea2a50331"],"path":"/developer/v1/payment-intent","baseUrlOptions":["https://demo-api-harmony.compago.com/api","https://api-harmony.compago.com/api"],"title":"Create a payment intent","description":"","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"Request body for creating a payment intent. Payment intents represent card-present payment requests that are processed by POS terminals.","properties":{"amount":{"type":"number","format":"decimal","example":350.5,"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` and `tipAmount`. With USD the terminal shows the price in dollars and charges the card in MXN at the exchange rate of the moment the card is read. A terminal on an app version without dollar prices refuses the intent with `INVALID_PAYMENT_AMOUNT` and asks for an update. See [Prices in US dollars](/core-concepts/usd-pricing).","isRequired":true,"uniqueKey":"currency","typeLabel":"enum\u003cstring>"},"externalId":{"type":"string","example":"order_12345_pos","description":"Your unique identifier for this payment intent. Must be unique per organization.","isRequired":true,"uniqueKey":"externalId","typeLabel":"string"},"terminalCode":{"type":"string","example":"TERMINAL-001","description":"Serial number of the target POS terminal. If provided, the payment intent is routed to that specific terminal and any other pending intents for that terminal are automatically cancelled. If omitted, the payment intent is available to any terminal in your organization.","uniqueKey":"terminalCode","typeLabel":"string"},"redirectAppId":{"type":"string","maxLength":255,"example":"com.mycompany.pos","description":"Android application id of the app the Compago POS app returns to after the payment finishes (successfully or cancelled). Overrides the integration configured locally on the terminal. If omitted, the terminal falls back to its local integration configuration. Requires the app to be installed on the terminal device.","uniqueKey":"redirectAppId","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 payment intent, 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: with one account the money goes there, with automatic sharing the rule picks the account, and with manual sharing it goes to your default account. An id that is not one of your verified accounts fails with `BANK_ACCOUNT_NOT_AVAILABLE`.","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 payment intent, 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: with one account the money goes there, with automatic sharing the rule picks the account, and with manual sharing it goes to your default account. An id that is not one of your verified accounts fails with `BANK_ACCOUNT_NOT_AVAILABLE`.","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 payment intent 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 payment intent 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"},"allowedTerms":{"oneOf":[{"type":"array","items":{"type":"integer","minimum":1,"maximum":48,"uniqueKey":"allowedTerms.oneOf.0.items.[INDEX]","typeLabel":"integer"},"minItems":1,"example":[3,6],"description":"The installment plans the terminal may charge, as numbers of months (`1` is a single payment, `3` is 3 meses sin intereses). Send several to limit what the terminal offers, or one to fix the plan the cashier already chose at the till: the terminal then skips its plan screen. Every value must be a card-present plan active for your account, or the request is refused with `ALLOWED_TERMS_UNAVAILABLE`. Omit it (or send `null`) to offer every active plan. An empty list is refused.","uniqueKey":"allowedTerms.oneOf.0","typeLabel":"integer[]"},{"type":"null","items":{"type":"integer","minimum":1,"maximum":48},"minItems":1,"example":[3,6],"description":"The installment plans the terminal may charge, as numbers of months (`1` is a single payment, `3` is 3 meses sin intereses). Send several to limit what the terminal offers, or one to fix the plan the cashier already chose at the till: the terminal then skips its plan screen. Every value must be a card-present plan active for your account, or the request is refused with `ALLOWED_TERMS_UNAVAILABLE`. Omit it (or send `null`) to offer every active plan. An empty list is refused.","uniqueKey":"allowedTerms.oneOf.1","typeLabel":"null"}],"uniqueKey":"allowedTerms","typeLabel":"integer[] | null"},"printVoucher":{"type":"boolean","default":true,"example":false,"description":"When the terminal prints the card voucher. It always prints it: `true` right after the approval, `false` right under the next receipt your system prints on the terminal (or on its own after a minute without one).","uniqueKey":"printVoucher","typeLabel":"boolean"},"tipAmount":{"oneOf":[{"type":"number","format":"decimal","exclusiveMinimum":0,"example":52.5,"description":"Optional. A tip your till already took, in the intent's `currency`, charged on top of `amount` in the same card charge. The terminal shows the total and does not ask for a tip. At most 30% of `amount`, in whole cents (`TIP_EXCEEDS_LIMIT`, `TIP_INVALID_AMOUNT`). It does not need tips turned on for the business. Cannot be sent with `collectTip`.","uniqueKey":"tipAmount.oneOf.0","typeLabel":"number\u003cdecimal>"},{"type":"null","format":"decimal","exclusiveMinimum":0,"example":52.5,"description":"Optional. A tip your till already took, in the intent's `currency`, charged on top of `amount` in the same card charge. The terminal shows the total and does not ask for a tip. At most 30% of `amount`, in whole cents (`TIP_EXCEEDS_LIMIT`, `TIP_INVALID_AMOUNT`). It does not need tips turned on for the business. Cannot be sent with `collectTip`.","uniqueKey":"tipAmount.oneOf.1","typeLabel":"null"}],"uniqueKey":"tipAmount","typeLabel":"number\u003cdecimal> | null"},"collectTip":{"type":"boolean","default":false,"example":true,"description":"Optional. `true` has the terminal ask the customer for a tip (10, 15 or 20%, another amount, or none) before the card, as on a sale typed on the terminal. The business must have tips turned on, or the request is refused with `TIPS_DISABLED`. Cannot be sent with `tipAmount`. Omit it, or send `false`, to charge `amount` with no tip, as before.","uniqueKey":"collectTip","typeLabel":"boolean"}},"required":["amount","currency","externalId"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"amount":350.5,"currency":"MXN","externalId":"order_12345_pos","terminalCode":"TERMINAL-001","redirectAppId":"com.mycompany.pos","bankAccountId":"5b1d7c2e-8a34-4f6b-9c1d-0e2f3a4b5c61","allocations":[{"bankAccountId":"5b1d7c2e-8a34-4f6b-9c1d-0e2f3a4b5c61","amount":600,"absorbsFee":false}],"allowedTerms":[3,6],"printVoucher":false,"tipAmount":52.5,"collectTip":true}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"687d87e1-48a1-48f8-8b44-9ffd3a17dc4c":{"description":"Payment intent created successfully","content":{"application/json":{"schema":{"type":"object","description":"The created payment intent object","properties":{"id":{"type":"string","format":"uuid","example":"aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee","description":"Unique identifier of the payment intent","isRequired":true,"uniqueKey":"id","typeLabel":"string\u003cuuid>"},"status":{"type":"string","enum":["PENDING"],"description":"Initial status is always PENDING","isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"amount":{"type":"number","format":"decimal","description":"The payment amount","isRequired":true,"uniqueKey":"amount","typeLabel":"number\u003cdecimal>"},"currency":{"type":"string","example":"MXN","isRequired":true,"uniqueKey":"currency","typeLabel":"string"},"externalId":{"type":"string","description":"Your external identifier","isRequired":true,"uniqueKey":"externalId","typeLabel":"string"},"redirectAppId":{"oneOf":[{"type":"string","example":"com.mycompany.pos","description":"Android application id the terminal returns to after the payment finishes, if provided at creation","uniqueKey":"redirectAppId.oneOf.0","typeLabel":"string"},{"type":"null","example":"com.mycompany.pos","description":"Android application id the terminal returns to after the payment finishes, if provided at creation","uniqueKey":"redirectAppId.oneOf.1","typeLabel":"null"}],"uniqueKey":"redirectAppId","typeLabel":"string | null"},"bankAccountId":{"oneOf":[{"type":"string","format":"uuid","description":"The bank account this payment intent asked for. `null` follows your deposit rule.","uniqueKey":"bankAccountId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"The bank account this payment intent asked for. `null` follows your deposit rule.","uniqueKey":"bankAccountId.oneOf.1","typeLabel":"null"}],"uniqueKey":"bankAccountId","typeLabel":"string\u003cuuid> | null"},"organizationId":{"type":"string","format":"uuid","example":"11111111-2222-3333-4444-555555555555","description":"The organization that owns this payment intent","uniqueKey":"organizationId","typeLabel":"string\u003cuuid>"},"terminalId":{"type":"string","format":"uuid","example":"66666666-7777-8888-9999-000000000000","description":"The terminal associated with this payment intent, if any","uniqueKey":"terminalId","typeLabel":"string\u003cuuid>"},"createdAt":{"type":"string","format":"date-time","uniqueKey":"createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"type":"string","format":"date-time","uniqueKey":"updatedAt","typeLabel":"string\u003cdate-time>"},"allowedTerms":{"oneOf":[{"type":"array","items":{"type":"integer","uniqueKey":"allowedTerms.oneOf.0.items.[INDEX]","typeLabel":"integer"},"example":[3,6],"description":"The plans the terminal may charge, sorted and without repeats. `null` offers every active plan.","uniqueKey":"allowedTerms.oneOf.0","typeLabel":"integer[]"},{"type":"null","items":{"type":"integer"},"example":[3,6],"description":"The plans the terminal may charge, sorted and without repeats. `null` offers every active plan.","uniqueKey":"allowedTerms.oneOf.1","typeLabel":"null"}],"uniqueKey":"allowedTerms","typeLabel":"integer[] | null"},"printVoucher":{"type":"boolean","description":"`false` when the terminal prints the card voucher under your system's receipt instead of right after the approval.","uniqueKey":"printVoucher","typeLabel":"boolean"}},"required":["id","status","amount","currency","externalId"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee","status":"PENDING","amount":123,"currency":"MXN","externalId":"\u003cstring>","redirectAppId":"com.mycompany.pos","bankAccountId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","organizationId":"11111111-2222-3333-4444-555555555555","terminalId":"66666666-7777-8888-9999-000000000000","createdAt":"2023-11-07T05:31:56Z","updatedAt":"2023-11-07T05:31:56Z","allowedTerms":[3,6],"printVoucher":true}}},"exampleType":"generated"}},"exampleType":"generated"},"6fd0f081-5104-4bb7-9c1c-29295e9f8074":{"description":"Invalid request, missing organization context, unsupported currency, or `ALLOWED_TERMS_UNAVAILABLE` (an `allowedTerms` value is not an active card-present plan for your account; the body lists `unavailableTerms` and `availableTerms`). `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":""}}}},"976f860d-8049-48af-b015-550890b1a94b":{"description":"Unauthorized: the `x-api-key` or `Authorization: Bearer` credential was not accepted (missing, invalid, disabled, expired, or from the other environment).","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"a2db1be3-ba65-4c70-bb6e-1fb06ac3c61e":{"description":"Terminal not found","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"53c3505c-ddef-42e7-9ce8-dc1d257c198c":{"description":"`bankAccountId`, or an account in `allocations`, is not one of your verified bank accounts. Nothing was created.","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":{"70325f13-ffa9-4d37-a65c-8bc43a27b972":{"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":"Create - Compago","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"es":{"href":"/api-reference/payment-intent/create","matchLevel":0}}},"lastModified":"2026-11-10T17:39:41.024Z","originalFileLocation":"api-reference/payment-intent/create.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=\"Create - 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-intent/create\">\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=Payment+intents\u0026amp;title=Create\u0026amp;theme=92a34b957a380e1788d91362\u0026amp;signature=8fc8c4923f2766d8e3cbe4c5626d16d3449a02f363cc984a0495042f5b66b198\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create - Compago\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://compago.mintlify.site/_mintlify/api/og/v2?division=Payment+intents\u0026amp;title=Create\u0026amp;theme=92a34b957a380e1788d91362\u0026amp;signature=8fc8c4923f2766d8e3cbe4c5626d16d3449a02f363cc984a0495042f5b66b198\">\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-intent/create\">\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-intent/create.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-intent/create#webpage\",\"url\":\"https://docs.compago.com/api-reference/payment-intent/create\",\"name\":\"Create\",\"dateModified\":\"2026-11-10T17:39:41.024Z\",\"isPartOf\":{\"@id\":\"https://docs.compago.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.compago.com/api-reference/payment-intent/create#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.compago.com/api-reference/payment-intent/create#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\":\"Create\",\"item\":\"https://docs.compago.com/api-reference/payment-intent/create\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.compago.com/api-reference/payment-intent/create#apireference\",\"headline\":\"Create\",\"name\":\"Create\",\"url\":\"https://docs.compago.com/api-reference/payment-intent/create\",\"mainEntityOfPage\":{\"@id\":\"https://docs.compago.com/api-reference/payment-intent/create#webpage\"},\"dateModified\":\"2026-11-10T17:39:41.024Z\",\"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-intent/create.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","description":"Refunds the one-time payment's sale in full, to the same card or account. Only on the day of the sale, before 10:30 PM Mexico City time. The customer gets the full charge back; Compago may keep the fee it charged on the sale and deduct it from the business's pending settlement (see `refund.feeRetained`). Call `GET /one-time-payment/{id}/refund-quote` first to know what it will cost and whether it will be accepted.","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}","description":null,"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}","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","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":"Create - 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"]}