Request body for creating a one-time payment link. You can redirect the user to the resulting URL to complete the payment, the payment will be processed by the Compago platform, and then the user will be redirected back to the homepage URL provided.
amount
number<decimal>
requerido
The amount to be charged for the one-time payment. Must be a positive number.
Ejemplo:
100
currency
enum<string>
predeterminado:MXN
requerido
Currency of amount. With USD the price is shown in dollars and the card is charged in MXN at the exchange rate of the moment the customer pays (Banxico's FIX plus your markup). USD takes card payments only: paymentMethods must include CARD and paymentMethodOptions.bankTransfer is refused. See Prices in US dollars.
Opciones disponibles:
MXN,
USD
Ejemplo:
"MXN"
externalId
string
requerido
Optional external ID to track the payment in your system. Must be unique for each payment.
Ejemplo:
"tracking-id-from-your-system"
description
string
requerido
A description of the payment. This will be displayed to the user during the payment process.
Ejemplo:
"Lorem ipsum dolor sit amet"
homepageUrl
string<uri>
requerido
The homepage URL of your application to link the user back to your application in case they cancel the payment or want to go back. This should be a valid URL that your application can handle.
Ejemplo:
"https://app.compago.com/"
redirectUrl
string<uri>
requerido
The URL of your application to redirect the user back to after the payment is completed. This should be a valid URL that your application can handle.
Ejemplo:
"https://app.compago.com/"
billingInformation
object
Optional. Send it when you already know the customer and the checkout asks only for the card. Omit it and the checkout asks the payer for their own name, email and phone alongside the card. Either way the details end up on the payment once it is paid.
Show child attributes
ttlMinutes
integer
Optional time-to-live in minutes for the payment link. Minimum 10 minutes, maximum 2,880 minutes (48 hours). Defaults to 48 hours if not specified.
Rango requerido: 10 <= x <= 2880
Ejemplo:
1440
allowedTerms
integer[] | null
Optional. The installment plans the checkout offers, as numbers of monthly installments: 1 is a single payment and any larger number is that many months without interest (MSI). Send one term, for example [12], and the customer pays with that plan without being able to choose another. Send several, for example [3, 6], and the customer chooses among them. Omit it, or send null, to offer every plan active on your account. Every term must be active on your account when you create the payment, otherwise the request fails with ALLOWED_TERMS_UNAVAILABLE. Duplicates are removed and the list is stored sorted. The checkout never offers a plan outside this list, and it drops any listed plan that stops being available before the customer pays.
Required array length: 1 - 48 elements
Rango requerido: 1 <= x <= 48
Ejemplo:
[12]
paymentMethods
enum<string>[] | null
The ways to pay the checkout offers: CARD, BANK_TRANSFER (every bank transfer your account takes: in Mexico, SPEI to a CLABE made for the purchase) and SPEI (only SPEI transfers). null or omitted offers every method available to your account. A payment that offers only bank transfers is rejected with SPEI_NOT_OFFERED unless SPEI is enabled for your account and amount reaches your SPEI minimum.
Opciones disponibles:
CARD,
BANK_TRANSFER,
SPEI
Ejemplo:
["BANK_TRANSFER"]
defaultPaymentMethod
enum<string> | null
The method the checkout opens on, one of paymentMethods. null opens on the first one offered.
Opciones disponibles:
CARD,
BANK_TRANSFER,
SPEI,
null
Ejemplo:
"BANK_TRANSFER"
bankAccountId
string<uuid> | null
Optional. The bank account that receives the money of this payment, 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 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.
Settings for one payment method, only for a method paymentMethods offers. Sending options for a method it leaves out is rejected with PAYMENT_METHOD_NOT_OFFERED.
Show child attributes
Respuesta
Link successfully created
redirectUrl
string<uri>
requerido
bankTransfer
object | null
The CLABE, with paymentMethodOptions.bankTransfer.generateAt: CREATE. null otherwise, or when the CLABE could not be made right then: ask for it with POST /developer/v1/one-time-payment/{id}/bank-transfer.
Show child attributes
{"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/one-time-payment/create","slug":"/api-reference/one-time-payment/create","pageMetadata":{"title":"Create","openapi":"POST /developer/v1/one-time-payment","description":null,"href":"/api-reference/one-time-payment/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/one-time-payment","description":null,"href":"/api-reference/one-time-payment/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":["OneTimePayment"],"summary":"Create a one-time-payment link","operationId":"createOneTimePayment","security":["1d874f11-7376-403a-8433-212f787eea5c"],"requestBody":"4d9661b6-587f-47fd-be5c-ad76ac4021b9","responses":{"200":"2e409e42-ccf8-4834-8401-6bb53ad3eb5c","400":"2b21db46-95b9-4fd9-b075-8be8318b92d1","401":"142aa055-5314-484a-bb1d-1cde392bc148","422":"9163ce97-f6d8-459d-92fe-2b6fd88a0d2a"},"method":"post","type":"path","servers":["129ca737-b7b9-4a85-b1e8-2d4b3c38f811","29a0e366-23ca-46ad-bd65-259ea2a50331"],"path":"/developer/v1/one-time-payment","baseUrlOptions":["https://demo-api-harmony.compago.com/api","https://api-harmony.compago.com/api"],"title":"Create a one-time-payment link","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 one-time payment link. You can redirect the user to the resulting URL to complete the payment, the payment will be processed by the Compago platform, and then the user will be redirected back to the homepage URL provided.","properties":{"amount":{"type":"number","format":"decimal","example":100,"description":"The amount to be charged for the one-time payment. 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`. With USD the price is shown in dollars and the card is charged in MXN at the exchange rate of the moment the customer pays (Banxico's FIX plus your markup). USD takes card payments only: `paymentMethods` must include CARD and `paymentMethodOptions.bankTransfer` is refused. See [Prices in US dollars](/core-concepts/usd-pricing).","isRequired":true,"uniqueKey":"currency","typeLabel":"enum\u003cstring>"},"externalId":{"type":"string","example":"tracking-id-from-your-system","description":"Optional external ID to track the payment in your system. Must be unique for each payment.","isRequired":true,"uniqueKey":"externalId","typeLabel":"string"},"description":{"type":"string","example":"Lorem ipsum dolor sit amet","description":"A description of the payment. This will be displayed to the user during the payment process.","isRequired":true,"uniqueKey":"description","typeLabel":"string"},"homepageUrl":{"type":"string","format":"uri","description":"The homepage URL of your application to link the user back to your application in case they cancel the payment or want to go back. This should be a valid URL that your application can handle.","example":"https://app.compago.com/","isRequired":true,"uniqueKey":"homepageUrl","typeLabel":"string\u003curi>"},"redirectUrl":{"type":"string","format":"uri","description":"The URL of your application to redirect the user back to after the payment is completed. This should be a valid URL that your application can handle.","example":"https://app.compago.com/","isRequired":true,"uniqueKey":"redirectUrl","typeLabel":"string\u003curi>"},"billingInformation":{"type":"object","description":"Optional. Send it when you already know the customer and the checkout asks only for the card. Omit it and the checkout asks the payer for their own name, email and phone alongside the card. Either way the details end up on the payment once it is paid.","properties":{"email":{"type":"string","format":"email","example":"maria.gonzalez@example.com","description":"Customer's email address","isRequired":true,"uniqueKey":"billingInformation.email","typeLabel":"string\u003cemail>"},"firstName":{"type":"string","example":"María","description":"Customer's first name","isRequired":true,"uniqueKey":"billingInformation.firstName","typeLabel":"string"},"lastName":{"type":"string","example":"González","description":"Customer's last name","isRequired":true,"uniqueKey":"billingInformation.lastName","typeLabel":"string"},"phoneNumber":{"type":"string","example":"+5215512345678","description":"Customer's phone number","isRequired":true,"uniqueKey":"billingInformation.phoneNumber","typeLabel":"string"},"address":{"type":"object","description":"Physical address for billing purposes","properties":{"addressLine":{"type":"string","example":"Av. Insurgentes Sur 1234","description":"Street address, including number and street name","isRequired":true,"uniqueKey":"billingInformation.address.addressLine","typeLabel":"string"},"city":{"type":"string","example":"Ciudad de México","description":"The city where the address is located","isRequired":true,"uniqueKey":"billingInformation.address.city","typeLabel":"string"},"state":{"type":"string","example":"CDMX","description":"The state or province where the address is located","enum":["AGU","BCN","BCS","CAM","CHP","CHH","CDMX","COA","COL","DUR","MEX","GUA","GRO","HID","JAL","MIC","MOR","NAY","NLE","OAX","PUE","QUE","ROO","SLP","SIN","SON","TAB","TAM","TLA","VER","YUC","ZAC"],"isRequired":true,"uniqueKey":"billingInformation.address.state","typeLabel":"enum\u003cstring>"},"zip":{"type":"string","example":"03100","description":"Zip code or Postal code where the address is located","isRequired":true,"uniqueKey":"billingInformation.address.zip","typeLabel":"string"}},"required":["addressLine","city","state","zip"],"uniqueKey":"billingInformation.address","typeLabel":"object"}},"required":["email","firstName","lastName","phoneNumber"],"uniqueKey":"billingInformation","typeLabel":"object"},"ttlMinutes":{"type":"integer","minimum":10,"maximum":2880,"example":1440,"description":"Optional time-to-live in minutes for the payment link. Minimum 10 minutes, maximum 2,880 minutes (48 hours). Defaults to 48 hours if not specified.","uniqueKey":"ttlMinutes","typeLabel":"integer"},"allowedTerms":{"oneOf":[{"type":"array","items":{"type":"integer","minimum":1,"maximum":48,"uniqueKey":"allowedTerms.oneOf.0.items.[INDEX]","typeLabel":"integer"},"minItems":1,"maxItems":48,"example":[12],"description":"Optional. The installment plans the checkout offers, as numbers of monthly installments: `1` is a single payment and any larger number is that many months without interest (MSI). Send one term, for example `[12]`, and the customer pays with that plan without being able to choose another. Send several, for example `[3, 6]`, and the customer chooses among them. Omit it, or send `null`, to offer every plan active on your account. Every term must be active on your account when you create the payment, otherwise the request fails with `ALLOWED_TERMS_UNAVAILABLE`. Duplicates are removed and the list is stored sorted. The checkout never offers a plan outside this list, and it drops any listed plan that stops being available before the customer pays.","uniqueKey":"allowedTerms.oneOf.0","typeLabel":"integer[]"},{"type":"null","items":{"type":"integer","minimum":1,"maximum":48},"minItems":1,"maxItems":48,"example":[12],"description":"Optional. The installment plans the checkout offers, as numbers of monthly installments: `1` is a single payment and any larger number is that many months without interest (MSI). Send one term, for example `[12]`, and the customer pays with that plan without being able to choose another. Send several, for example `[3, 6]`, and the customer chooses among them. Omit it, or send `null`, to offer every plan active on your account. Every term must be active on your account when you create the payment, otherwise the request fails with `ALLOWED_TERMS_UNAVAILABLE`. Duplicates are removed and the list is stored sorted. The checkout never offers a plan outside this list, and it drops any listed plan that stops being available before the customer pays.","uniqueKey":"allowedTerms.oneOf.1","typeLabel":"null"}],"uniqueKey":"allowedTerms","typeLabel":"integer[] | null"},"paymentMethods":{"oneOf":[{"type":"array","items":{"type":"string","enum":["CARD","BANK_TRANSFER","SPEI"],"uniqueKey":"paymentMethods.oneOf.0.items.[INDEX]","typeLabel":"enum\u003cstring>"},"example":["BANK_TRANSFER"],"description":"The ways to pay the checkout offers: `CARD`, `BANK_TRANSFER` (every bank transfer your account takes: in Mexico, SPEI to a CLABE made for the purchase) and `SPEI` (only SPEI transfers). `null` or omitted offers every method available to your account. A payment that offers only bank transfers is rejected with `SPEI_NOT_OFFERED` unless SPEI is enabled for your account and `amount` reaches your SPEI minimum.","uniqueKey":"paymentMethods.oneOf.0","typeLabel":"enum\u003cstring>[]"},{"type":"null","items":{"type":"string","enum":["CARD","BANK_TRANSFER","SPEI"]},"example":["BANK_TRANSFER"],"description":"The ways to pay the checkout offers: `CARD`, `BANK_TRANSFER` (every bank transfer your account takes: in Mexico, SPEI to a CLABE made for the purchase) and `SPEI` (only SPEI transfers). `null` or omitted offers every method available to your account. A payment that offers only bank transfers is rejected with `SPEI_NOT_OFFERED` unless SPEI is enabled for your account and `amount` reaches your SPEI minimum.","uniqueKey":"paymentMethods.oneOf.1","typeLabel":"null"}],"uniqueKey":"paymentMethods","typeLabel":"enum\u003cstring>[] | null"},"defaultPaymentMethod":{"oneOf":[{"type":"string","enum":["CARD","BANK_TRANSFER","SPEI",null],"example":"BANK_TRANSFER","description":"The method the checkout opens on, one of `paymentMethods`. `null` opens on the first one offered.","uniqueKey":"defaultPaymentMethod.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["CARD","BANK_TRANSFER","SPEI",null],"example":"BANK_TRANSFER","description":"The method the checkout opens on, one of `paymentMethods`. `null` opens on the first one offered.","uniqueKey":"defaultPaymentMethod.oneOf.1","typeLabel":"null"}],"uniqueKey":"defaultPaymentMethod","typeLabel":"enum\u003cstring> | null"},"bankAccountId":{"oneOf":[{"type":"string","format":"uuid","example":"5b1d7c2e-8a34-4f6b-9c1d-0e2f3a4b5c61","description":"Optional. The bank account that receives the money of this payment, 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, 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 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 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"},"paymentMethodOptions":{"type":"object","description":"Settings for one payment method, only for a method `paymentMethods` offers. Sending options for a method it leaves out is rejected with `PAYMENT_METHOD_NOT_OFFERED`.","properties":{"bankTransfer":{"type":"object","properties":{"generateAt":{"type":"string","enum":["CHECKOUT","CREATE"],"default":"CHECKOUT","description":"When the CLABE is made. `CHECKOUT` (default): when the customer picks bank transfer on the checkout, so a link shared ahead of time does not hold a CLABE that expires. `CREATE`: now, returned as `bankTransfer` in the response, for showing the CLABE in your own screen. `CREATE` needs `billingInformation`, SPEI enabled for your account and `amount` at or above your SPEI minimum.","uniqueKey":"paymentMethodOptions.bankTransfer.generateAt","typeLabel":"enum\u003cstring>"}},"uniqueKey":"paymentMethodOptions.bankTransfer","typeLabel":"object"}},"uniqueKey":"paymentMethodOptions","typeLabel":"object"}},"required":["amount","currency","externalId","description","homepageUrl","redirectUrl"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"amount":100,"currency":"MXN","externalId":"tracking-id-from-your-system","description":"Lorem ipsum dolor sit amet","homepageUrl":"https://app.compago.com/","redirectUrl":"https://app.compago.com/","ttlMinutes":1440,"allowedTerms":[12],"paymentMethods":["BANK_TRANSFER"],"defaultPaymentMethod":"BANK_TRANSFER","bankAccountId":"5b1d7c2e-8a34-4f6b-9c1d-0e2f3a4b5c61","allocations":[{"bankAccountId":"5b1d7c2e-8a34-4f6b-9c1d-0e2f3a4b5c61","amount":600,"absorbsFee":false}],"paymentMethodOptions":{"bankTransfer":{"generateAt":"CHECKOUT"}}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"2e409e42-ccf8-4834-8401-6bb53ad3eb5c":{"description":"Link successfully created","content":{"application/json":{"schema":{"type":"object","properties":{"redirectUrl":{"type":"string","format":"uri","isRequired":true,"uniqueKey":"redirectUrl","typeLabel":"string\u003curi>"},"bankTransfer":{"oneOf":[{"type":"object","description":"The CLABE, with `paymentMethodOptions.bankTransfer.generateAt: CREATE`. `null` otherwise, or when the CLABE could not be made right then: ask for it with `POST /developer/v1/one-time-payment/{id}/bank-transfer`.","required":["id","status","rail","clabe","clabeLast4","bank","beneficiary","concept","amount","amountReceived","amountDue","currency","expiresAt","createdAt","paidAt","paymentId","url"],"properties":{"id":{"type":"string","format":"uuid","description":"The CLABE request. Asking again while it is live returns this same id.","isRequired":true,"uniqueKey":"bankTransfer.oneOf.0.id","typeLabel":"string\u003cuuid>"},"status":{"type":"string","enum":["AWAITING_TRANSFER","PAID","EXPIRED","CANCELLED","RETURNED"],"description":"Where the CLABE stands. `AWAITING_TRANSFER`: it takes money and the payment is not paid yet. `PAID`: the transfer arrived and became a payment. `EXPIRED`: nothing arrived before `expiresAt`. `CANCELLED`: the payment was paid another way, or stopped being payable, before anything arrived. `RETURNED`: what arrived went back to whoever sent it, for example part of the price when the CLABE expired.","isRequired":true,"uniqueKey":"bankTransfer.oneOf.0.status","typeLabel":"enum\u003cstring>"},"rail":{"type":"string","enum":["SPEI"],"description":"The transfer network. Always `SPEI` today.","isRequired":true,"uniqueKey":"bankTransfer.oneOf.0.rail","typeLabel":"enum\u003cstring>"},"clabe":{"oneOf":[{"type":"string","example":"738180000000012345","description":"The 18-digit CLABE the customer transfers to. Only while `status` is `AWAITING_TRANSFER`; `null` once it stops taking money.","isRequired":true,"uniqueKey":"bankTransfer.oneOf.0.clabe.oneOf.0","typeLabel":"string"},{"type":"null","example":"738180000000012345","description":"The 18-digit CLABE the customer transfers to. Only while `status` is `AWAITING_TRANSFER`; `null` once it stops taking money.","isRequired":true,"uniqueKey":"bankTransfer.oneOf.0.clabe.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"bankTransfer.oneOf.0.clabe","typeLabel":"string | null"},"clabeLast4":{"type":"string","example":"2345","description":"The last four digits, kept after the CLABE closes.","isRequired":true,"uniqueKey":"bankTransfer.oneOf.0.clabeLast4","typeLabel":"string"},"bank":{"type":"string","example":"FINTOC","description":"The bank of the CLABE, as the customer's banking app shows it.","isRequired":true,"uniqueKey":"bankTransfer.oneOf.0.bank","typeLabel":"string"},"beneficiary":{"type":"string","example":"Sharepay SA de CV","description":"The account holder the customer's bank shows when it validates the CLABE. Show your business name beside it.","isRequired":true,"uniqueKey":"bankTransfer.oneOf.0.beneficiary","typeLabel":"string"},"concept":{"type":"string","example":"Compra Mueblería Sol 3F2A1B","description":"A suggested transfer concept. Optional for the customer: the CLABE alone identifies the payment.","isRequired":true,"uniqueKey":"bankTransfer.oneOf.0.concept","typeLabel":"string"},"amount":{"type":"number","example":12000,"description":"The price of the one-time payment.","isRequired":true,"uniqueKey":"bankTransfer.oneOf.0.amount","typeLabel":"number"},"amountReceived":{"type":"number","example":0,"description":"What has arrived so far. A payment can be paid in several transfers.","isRequired":true,"uniqueKey":"bankTransfer.oneOf.0.amountReceived","typeLabel":"number"},"amountDue":{"type":"number","example":12000,"description":"What is still missing while the CLABE is live, `0` otherwise.","isRequired":true,"uniqueKey":"bankTransfer.oneOf.0.amountDue","typeLabel":"number"},"currency":{"type":"string","enum":["MXN"],"isRequired":true,"uniqueKey":"bankTransfer.oneOf.0.currency","typeLabel":"enum\u003cstring>"},"expiresAt":{"type":"string","format":"date-time","description":"When the CLABE stops taking money. Never later than the one-time payment's own `expiresAt`.","isRequired":true,"uniqueKey":"bankTransfer.oneOf.0.expiresAt","typeLabel":"string\u003cdate-time>"},"createdAt":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"bankTransfer.oneOf.0.createdAt","typeLabel":"string\u003cdate-time>"},"paidAt":{"oneOf":[{"type":"string","format":"date-time","description":"When the transfer that completed the price arrived. Only when `status` is `PAID`.","isRequired":true,"uniqueKey":"bankTransfer.oneOf.0.paidAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the transfer that completed the price arrived. Only when `status` is `PAID`.","isRequired":true,"uniqueKey":"bankTransfer.oneOf.0.paidAt.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"bankTransfer.oneOf.0.paidAt","typeLabel":"string\u003cdate-time> | null"},"paymentId":{"oneOf":[{"type":"string","format":"uuid","description":"The payment the transfer became, readable at `GET /developer/v1/payment/{id}`. Only when `status` is `PAID`.","isRequired":true,"uniqueKey":"bankTransfer.oneOf.0.paymentId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"The payment the transfer became, readable at `GET /developer/v1/payment/{id}`. Only when `status` is `PAID`.","isRequired":true,"uniqueKey":"bankTransfer.oneOf.0.paymentId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"bankTransfer.oneOf.0.paymentId","typeLabel":"string\u003cuuid> | null"},"url":{"type":"string","format":"uri","description":"The Compago checkout screen of this same CLABE, for a customer who would rather open it. Encode it in a QR if you show one.","isRequired":true,"uniqueKey":"bankTransfer.oneOf.0.url","typeLabel":"string\u003curi>"}},"uniqueKey":"bankTransfer.oneOf.0","typeLabel":"object"},{"type":"null","description":"The CLABE, with `paymentMethodOptions.bankTransfer.generateAt: CREATE`. `null` otherwise, or when the CLABE could not be made right then: ask for it with `POST /developer/v1/one-time-payment/{id}/bank-transfer`.","uniqueKey":"bankTransfer.oneOf.1","typeLabel":"null"}],"uniqueKey":"bankTransfer","typeLabel":"object | null"}},"required":["redirectUrl"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"redirectUrl":"\u003cstring>","bankTransfer":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","status":"AWAITING_TRANSFER","rail":"SPEI","clabe":"738180000000012345","clabeLast4":"2345","bank":"FINTOC","beneficiary":"Sharepay SA de CV","concept":"Compra Mueblería Sol 3F2A1B","amount":12000,"amountReceived":0,"amountDue":12000,"currency":"MXN","expiresAt":"2023-11-07T05:31:56Z","createdAt":"2023-11-07T05:31:56Z","paidAt":"2023-11-07T05:31:56Z","paymentId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","url":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"2b21db46-95b9-4fd9-b075-8be8318b92d1":{"description":"Invalid request, missing organization context, or an `allowedTerms` entry that is not active on your account. `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":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","example":"ALLOWED_TERMS_UNAVAILABLE","description":"Present when the request failed for a reason your integration can branch on.","uniqueKey":"code","typeLabel":"string"},"unavailableTerms":{"type":"array","items":{"type":"integer","uniqueKey":"unavailableTerms.items.[INDEX]","typeLabel":"integer"},"example":[18],"description":"Only with `ALLOWED_TERMS_UNAVAILABLE`: the terms you sent that are not active on your account.","uniqueKey":"unavailableTerms","typeLabel":"integer[]"},"availableTerms":{"type":"array","items":{"type":"integer","uniqueKey":"availableTerms.items.[INDEX]","typeLabel":"integer"},"example":[1,3,6,12],"description":"Only with `ALLOWED_TERMS_UNAVAILABLE`: the terms active on your account right now.","uniqueKey":"availableTerms","typeLabel":"integer[]"}},"required":["message"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>","code":"ALLOWED_TERMS_UNAVAILABLE","unavailableTerms":[18],"availableTerms":[1,3,6,12]}}},"exampleType":"generated"}},"exampleType":"generated"},"142aa055-5314-484a-bb1d-1cde392bc148":{"description":"Unauthorized – missing or invalid API key","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"9163ce97-f6d8-459d-92fe-2b6fd88a0d2a":{"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":{"1d874f11-7376-403a-8433-212f787eea5c":{"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/one-time-payment/create","matchLevel":0}}},"lastModified":"2026-11-10T17:39:41.026Z","originalFileLocation":"api-reference/one-time-payment/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/one-time-payment/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=One-time+payments\u0026amp;title=Create\u0026amp;theme=92a34b957a380e1788d91362\u0026amp;signature=cea8e8d97a9305c7cd6004de14fe64a210078e12ce88148275c6bfe880bb3778\">\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=One-time+payments\u0026amp;title=Create\u0026amp;theme=92a34b957a380e1788d91362\u0026amp;signature=cea8e8d97a9305c7cd6004de14fe64a210078e12ce88148275c6bfe880bb3778\">\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/one-time-payment/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/one-time-payment/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/one-time-payment/create#webpage\",\"url\":\"https://docs.compago.com/api-reference/one-time-payment/create\",\"name\":\"Create\",\"dateModified\":\"2026-11-10T17:39:41.026Z\",\"isPartOf\":{\"@id\":\"https://docs.compago.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.compago.com/api-reference/one-time-payment/create#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.compago.com/api-reference/one-time-payment/create#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Compago\",\"item\":\"https://docs.compago.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create\",\"item\":\"https://docs.compago.com/api-reference/one-time-payment/create\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.compago.com/api-reference/one-time-payment/create#apireference\",\"headline\":\"Create\",\"name\":\"Create\",\"url\":\"https://docs.compago.com/api-reference/one-time-payment/create\",\"mainEntityOfPage\":{\"@id\":\"https://docs.compago.com/api-reference/one-time-payment/create#webpage\"},\"dateModified\":\"2026-11-10T17:39:41.026Z\",\"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/one-time-payment/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","description":"Full documentation of all available Compago API endpoints for processing payments, managing installments, and automating disbursements.","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","description":"Deprecated: use `GET /developer/v1/one-time-payment`, the same resource in the versioned developer API format. This path keeps working until every integration has moved.","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}","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"]}