Acepta una cotización vigente y crea la operación. Tus pesos quedan comprometidos y la operación nace en PROCESANDO.Scope requerido: SWAP · Idempotente por Idempotency-Key (obligatorio con API key).
Esta llamada puede tardar hasta ~8 segundos. Usa un timeout de cliente de 30 segundos o más. Si hay timeout, reintenta con la MISMA Idempotency-Key: devuelve la misma operación y no se crea otra. Nunca generes una key nueva para el mismo intento: podrías duplicar la compra. Si dudas, consulta GET /swaps antes de aceptar de nuevo.
Headers
string
required
De 8 a 128 caracteres: letras, números y _ - : . (por ejemplo un UUID). Un valor ausente o con formato inválido responde 400 IDEMPOTENCY_KEY_REQUIRED. Genera uno nuevo por cada intención de compra y reutilízalo solo para reintentar esa misma aceptación.
Body
string
required
quote.id devuelto por POST /swaps/quotes. Debe estar vigente (expiresAt).
En un reintento con la misma Idempotency-Key y la misma cotización la respuesta es 200 con la misma operación y "replay": true. Los campos depositAddress y clientTxHash no aplican a la compra y siempre vienen null. Descripción de los campos en GET /swaps/:id.
Idempotencia
Situación
Respuesta
Misma Idempotency-Key y mismo quoteId ya aceptados
200 con la misma operación y "replay": true
Misma Idempotency-Key con otroquoteId
422 IDEMPOTENCY_KEY_REUSED (el body incluye swapId de la operación original)
quoteId ya usado con otra Idempotency-Key
409 QUOTE_ALREADY_USED (el body incluye swapId: consúltalo con GET /swaps/:id)
Intento anterior rechazado al aceptar
Repetir la misma Idempotency-Key devuelve el mismo error
Cotización vencida
410 QUOTE_EXPIRED: cotiza de nuevo y usa una Idempotency-Key nueva
Errores
HTTP
error
Cuándo y qué hacer
400
IDEMPOTENCY_KEY_REQUIRED
Falta el header Idempotency-Key o su formato es inválido
400
INVALID_REQUEST
quoteId ausente o mal formado
403
INSUFFICIENT_SCOPE
La llave no es scope SWAP
403
SWAP_NOT_ENABLED
Tu empresa no tiene el servicio habilitado
403
COMPANY_NOT_ACTIVE
Tu empresa no está activa para operar
403
BLACKLISTED
No es posible procesar la operación. Contacta a soporte
403
MULTISIG_NOT_SUPPORTED
El servicio aún no está disponible para empresas con aprobación multifirma
404
QUOTE_NOT_FOUND
La cotización no existe o es de otra empresa
409
QUOTE_ALREADY_USED
La cotización ya fue aceptada. Usa el swapId del body
No se pudo validar o confirmar. Reintenta con una cotización nueva; si persiste, contacta a soporte con el error
Una operación rechazada al aceptar (por ejemplo por un límite o saldo insuficiente) puede dejar un registro CANCELADO en el listado, sin movimiento de fondos, además de la respuesta de error.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Mouv API","colors":{"primary":"#00E5A0","light":"#5CFFD6","dark":"#007A52"},"logo":{"light":"https://mintcdn.com/mouv/eG2tXnYX7anPBQKH/logo/light.svg?fit=max\u0026auto=format\u0026n=eG2tXnYX7anPBQKH\u0026q=85\u0026s=0d419f38b95c82c90cd323f5e8e1a102","dark":"https://mintcdn.com/mouv/eG2tXnYX7anPBQKH/logo/dark.svg?fit=max\u0026auto=format\u0026n=eG2tXnYX7anPBQKH\u0026q=85\u0026s=58aa3e7369c064ef7f09e29ff3750172"},"favicon":"https://mintcdn.com/mouv/eG2tXnYX7anPBQKH/favicon.svg?fit=max\u0026auto=format\u0026n=eG2tXnYX7anPBQKH\u0026q=85\u0026s=17d843a8effce61499351a6ed46e4317","navbar":{"links":[{"href":"mailto:hola@vectora.com.co","label":"Contacto"}],"primary":{"type":"button","label":"Ir al dashboard","href":"https://consola.mouvlatam.com"}},"footer":{"socials":{"website":"https://mouvlatam.com"}},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Estado del sistema","icon":"signal-stream","href":"https://consola.mouvlatam.com/api/health"},{"anchor":"Soporte","icon":"envelope","href":"mailto:hola@vectora.com.co"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"mouv","hasAudioNarration":false,"actualSubdomain":"mouv","customDomains":["developer.mouvlatam.com"],"gitSource":{"type":"github","owner":"vectora-co","repo":"mouv-api-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ad6c305f2d0bf100fe04e3d","clientVersion":"0.0.4143","searchFilterCounts":[{"language":"default","tag":"Conversión COP→USDT","count":12},{"language":"default","tag":"Recaudos Bre-B (agregadores)","count":7},{"language":"default","tag":"Retiros (Outflows)","count":4},{"language":"default","tag":"Comenzar","count":4},{"language":"default","tag":"Referencia","count":4},{"language":"default","tag":"Recaudos PSE","count":3},{"language":"default","tag":"Transacciones","count":3},{"language":"default","tag":"Saldos","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"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":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/swaps/accept","slug":"/api-reference/swaps/accept","pageMetadata":{"title":"POST /swaps","description":"Aceptar una cotización y crear la operación","api":"POST https://consola.mouvlatam.com/api/swaps","href":"/api-reference/swaps/accept"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Aceptar una cotización y crear la operación\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,ParamField,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Acepta una cotización vigente y crea la operación. Tus pesos quedan comprometidos y la operación nace en `,_jsx(_components.code,{children:`PROCESANDO`}),`.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Scope requerido`}),`: `,_jsx(_components.code,{children:`SWAP`}),` · `,_jsxs(_components.strong,{children:[`Idempotente por `,_jsx(_components.code,{children:`Idempotency-Key`})]}),` (obligatorio con API key).`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Esta llamada puede tardar `,_jsx(_components.strong,{children:`hasta ~8 segundos`}),`. Usa un timeout de cliente de `,_jsx(_components.strong,{children:`30 segundos o más`}),`. Si hay timeout, `,_jsxs(_components.strong,{children:[`reintenta con la MISMA `,_jsx(_components.code,{children:`Idempotency-Key`})]}),`: devuelve la misma operación y no se crea otra. `,_jsx(_components.strong,{children:`Nunca generes una key nueva para el mismo intento`}),`: podrías duplicar la compra. Si dudas, consulta `,_jsx(_components.a,{href:`/api-reference/swaps/list`,children:_jsx(_components.code,{children:`GET /swaps`})}),` antes de aceptar de nuevo.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`headers`,children:`Headers`}),`\n`,_jsx(ParamField,{header:`Idempotency-Key`,type:`string`,required:true,id:`param-idempotency-key`,children:_jsxs(_components.p,{children:[`De 8 a 128 caracteres: letras, números y `,_jsx(_components.code,{children:`_ - : .`}),` (por ejemplo un UUID). Un valor ausente o con formato inválido responde `,_jsx(_components.code,{children:`400 IDEMPOTENCY_KEY_REQUIRED`}),`. Genera uno nuevo por cada intención de compra y reutilízalo `,_jsx(_components.strong,{children:`solo`}),` para reintentar esa misma aceptación.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`body`,children:`Body`}),`\n`,_jsx(ParamField,{body:`quoteId`,type:`string`,required:true,id:`param-quote-id`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`quote.id`}),` devuelto por `,_jsx(_components.a,{href:`/api-reference/swaps/create-quote`,children:_jsx(_components.code,{children:`POST /swaps/quotes`})}),`. Debe estar vigente (`,_jsx(_components.code,{children:`expiresAt`}),`).`]})}),`\n`,_jsx(_components.p,{children:`Con API key no se solicita código 2FA.`}),`\n`,_jsx(Heading,{level:`2`,id:`response-201-operación-nueva-·-200-reintento-idempotente`,children:`Response 201 (operación nueva) · 200 (reintento idempotente)`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`25`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`25`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"swap\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"e3a1b7c9-5d24-4f8a-b0c6-9a7e2d1f4b38\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"PROCESANDO\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"side\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"BUY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"network\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"TRON\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"usdtAmount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1000.000000\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"usdtAmountMicro\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1000000000\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"copAmount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"4012350.00\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"copAmountCents\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"401235000\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"rate\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"4012.35\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"walletId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"5f0c2a64-7a5b-4d0e-9f3a-0c1d2e3f4a5b\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"destinationAddress\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"TJRabPrwbZy45sbavfcjinPJC18kjpRTv8\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"depositAddress\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"txHash\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"clientTxHash\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"failureCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"failureMessage\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"createdAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-10-08T15:00:00.000Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"acceptedAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-10-08T15:00:12.000Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"settledAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"cancelledAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"replay\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`En un reintento con la misma `,_jsx(_components.code,{children:`Idempotency-Key`}),` y la misma cotización la respuesta es `,_jsx(_components.code,{children:`200`}),` con la `,_jsx(_components.strong,{children:`misma`}),` operación y `,_jsx(_components.code,{children:`\"replay\": true`}),`. Los campos `,_jsx(_components.code,{children:`depositAddress`}),` y `,_jsx(_components.code,{children:`clientTxHash`}),` no aplican a la compra y siempre vienen `,_jsx(_components.code,{children:`null`}),`. Descripción de los campos en `,_jsx(_components.a,{href:`/api-reference/swaps/get`,children:_jsx(_components.code,{children:`GET /swaps/:id`})}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`idempotencia`,children:`Idempotencia`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Situación`}),_jsx(_components.th,{children:`Respuesta`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`Misma `,_jsx(_components.code,{children:`Idempotency-Key`}),` y mismo `,_jsx(_components.code,{children:`quoteId`}),` ya aceptados`]}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`200`}),` con la misma operación y `,_jsx(_components.code,{children:`\"replay\": true`})]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`Misma `,_jsx(_components.code,{children:`Idempotency-Key`}),` con `,_jsx(_components.strong,{children:`otro`}),` `,_jsx(_components.code,{children:`quoteId`})]}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`422 IDEMPOTENCY_KEY_REUSED`}),` (el body incluye `,_jsx(_components.code,{children:`swapId`}),` de la operación original)`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`quoteId`}),` ya usado con otra `,_jsx(_components.code,{children:`Idempotency-Key`})]}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`409 QUOTE_ALREADY_USED`}),` (el body incluye `,_jsx(_components.code,{children:`swapId`}),`: consúltalo con `,_jsx(_components.code,{children:`GET /swaps/:id`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Intento anterior rechazado al aceptar`}),_jsxs(_components.td,{children:[`Repetir la misma `,_jsx(_components.code,{children:`Idempotency-Key`}),` devuelve el mismo error`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Cotización vencida`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`410 QUOTE_EXPIRED`}),`: cotiza de nuevo y usa una `,_jsx(_components.code,{children:`Idempotency-Key`}),` nueva`]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`errores`,children:`Errores`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`HTTP`}),_jsx(_components.th,{children:_jsx(_components.code,{children:`error`})}),_jsx(_components.th,{children:`Cuándo y qué hacer`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`IDEMPOTENCY_KEY_REQUIRED`})}),_jsxs(_components.td,{children:[`Falta el header `,_jsx(_components.code,{children:`Idempotency-Key`}),` o su formato es inválido`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`INVALID_REQUEST`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`quoteId`}),` ausente o mal formado`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`INSUFFICIENT_SCOPE`})}),_jsxs(_components.td,{children:[`La llave no es scope `,_jsx(_components.code,{children:`SWAP`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`SWAP_NOT_ENABLED`})}),_jsx(_components.td,{children:`Tu empresa no tiene el servicio habilitado`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`COMPANY_NOT_ACTIVE`})}),_jsx(_components.td,{children:`Tu empresa no está activa para operar`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`BLACKLISTED`})}),_jsx(_components.td,{children:`No es posible procesar la operación. Contacta a soporte`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`MULTISIG_NOT_SUPPORTED`})}),_jsx(_components.td,{children:`El servicio aún no está disponible para empresas con aprobación multifirma`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`404`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`QUOTE_NOT_FOUND`})}),_jsx(_components.td,{children:`La cotización no existe o es de otra empresa`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`409`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`QUOTE_ALREADY_USED`})}),_jsxs(_components.td,{children:[`La cotización ya fue aceptada. Usa el `,_jsx(_components.code,{children:`swapId`}),` del body`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`409`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`STRUCTURING`})}),_jsxs(_components.td,{children:[`Tienes operaciones recientes. Espera `,_jsx(_components.code,{children:`retryAfterSeconds`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`410`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`QUOTE_EXPIRED`})}),_jsx(_components.td,{children:`Cotiza de nuevo`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`422`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`IDEMPOTENCY_KEY_REUSED`})}),_jsxs(_components.td,{children:[`La key ya se usó con otra cotización. Usa el `,_jsx(_components.code,{children:`swapId`}),` del body o genera una nueva key para una nueva intención`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`422`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`INSUFFICIENT_FUNDS`})}),_jsx(_components.td,{children:`Saldo COP insuficiente`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`422`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`AMOUNT_BELOW_MINIMUM`}),`, `,_jsx(_components.code,{children:`LIMIT_EXCEEDED`})]}),_jsxs(_components.td,{children:[`Monto fuera de los límites de tu empresa (ver `,_jsx(_components.code,{children:`minUsdt`}),`, `,_jsx(_components.code,{children:`maxUsdt`}),`, `,_jsx(_components.code,{children:`scope`}),`). Se revalidan al aceptar`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`422`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`WALLET_NOT_WHITELISTED`})}),_jsx(_components.td,{children:`La billetera ya no está disponible`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`422`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`ACCOUNT_NOT_ELIGIBLE`})}),_jsx(_components.td,{children:`Tu cuenta no está habilitada para conversiones. Contacta a soporte`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`503`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`SWAP_CAPACITY_UNAVAILABLE`})}),_jsx(_components.td,{children:`Sin cupo en este momento. Reintenta más tarde`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`503`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`SWAP_TEMPORARILY_UNAVAILABLE`}),`, `,_jsx(_components.code,{children:`SWAP_UNAVAILABLE`}),`, `,_jsx(_components.code,{children:`GATE_CHECK_FAILED`}),`, `,_jsx(_components.code,{children:`QUOTE_INTEGRITY`})]}),_jsxs(_components.td,{children:[`No se pudo validar o confirmar. Reintenta con una cotización nueva; si persiste, contacta a soporte con el `,_jsx(_components.code,{children:`error`})]})]})]})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Una operación rechazada al aceptar (por ejemplo por un límite o saldo insuficiente) puede dejar un registro `,_jsx(_components.code,{children:`CANCELADO`}),` en el listado, sin movimiento de fondos, además de la respuesta de error.`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"POST /swaps","description":"Aceptar una cotización y crear la operación","api":"POST https://consola.mouvlatam.com/api/swaps","href":"/api-reference/swaps/accept"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[375,380,"RequestExample,Table"],[606,623,"RequestExample)_missingMdxReference(`RequestExample`,true);if(!Table)_missingMdx"],[22041,22043,",`\n`,_jsx(RequestExample,{children:_jsx(CodeBlock,{filename:`curl`,numberOfLines:`6`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://consola.mouvlatam.com/api/swaps\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --max-time`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 30`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer mvk_...\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Idempotency-Key: 7d2f9b0e-4a1c-4e8b-9d63-1b5c8a2e7f40\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{ \"quoteId\": \"c1f4a8e2-3b7d-4c59-8a60-2f9e1d7b5a43\" }'`})]}),`\n`]})})})})]}"]]},"mdxExtracts":{"tableOfContents":[{"title":"Headers","slug":"headers","depth":2,"children":[]},{"title":"Body","slug":"body","depth":2,"children":[]},{"title":"Response 201 (operación nueva) · 200 (reintento idempotente)","slug":"response-201-operación-nueva-·-200-reintento-idempotente","depth":2,"children":[]},{"title":"Idempotencia","slug":"idempotencia","depth":2,"children":[]},{"title":"Errores","slug":"errores","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"curl","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"6\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://consola.mouvlatam.com/api/swaps\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --max-time\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\"> 30\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization: Bearer mvk_...\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Idempotency-Key: 7d2f9b0e-4a1c-4e8b-9d63-1b5c8a2e7f40\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type: application/json\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -d\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{ \"quoteId\": \"c1f4a8e2-3b7d-4c59-8a60-2f9e1d7b5a43\" }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"POST /swaps","path":"/api/swaps","servers":[{"url":"https://consola.mouvlatam.com"}],"method":"post","request":{"security":[],"parameters":{"query":{},"header":{"Idempotency-Key":{"schema":[{"type":"string","description":"De 8 a 128 caracteres: letras, números y `_ - : .` (por ejemplo un UUID). Un valor ausente o con formato inválido responde `400 IDEMPOTENCY_KEY_REQUIRED` . Genera uno nuevo por cada intención de compra y reutilízalo solo para reintentar esa misma aceptación.","required":true}]}},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"quoteId":[{"type":"string","description":"`quote.id` devuelto por `POST /swaps/quotes` . Debe estar vigente ( `expiresAt` ).","required":true}]}}],"examples":{"example":{"value":{"quoteId":"\u003cstring>"}}}}}},"response":{},"deprecated":false}},"jsLinks":[],"subdomain":"mouv","siteName":"Mouv API","title":"POST /swaps - Mouv API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-20T01:21:20.785Z","originalFileLocation":"api-reference/swaps/accept.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Aceptar una cotización y crear la operación\">\u003cmeta data-mint-head name=\"application-name\" content=\"Mouv API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/mouv/dhBwO_Z18oqSU_4o/_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/mouv/dhBwO_Z18oqSU_4o/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/mouv/dhBwO_Z18oqSU_4o/_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/mouv/dhBwO_Z18oqSU_4o/_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/mouv/dhBwO_Z18oqSU_4o/_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/mouv/dhBwO_Z18oqSU_4o/_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/mouv/dhBwO_Z18oqSU_4o/_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/mouv/dhBwO_Z18oqSU_4o/_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/mouv/dhBwO_Z18oqSU_4o/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"POST /swaps - Mouv API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Aceptar una cotización y crear la operación\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Mouv API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://developer.mouvlatam.com/api-reference/swaps/accept\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://mouv.mintlify.site/_mintlify/api/og/v2?division=Conversi%C3%B3n+COP%E2%86%92USDT\u0026amp;title=POST+%2Fswaps\u0026amp;description=Aceptar+una+cotizaci%C3%B3n+y+crear+la+operaci%C3%B3n\u0026amp;theme=f40e73f8f77f023da857282d\u0026amp;signature=fb55ffc73f32158cce533c74572a39d185cb2c72f4f4530ee0cfb79bbdf22173\">\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=\"POST /swaps - Mouv API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Aceptar una cotización y crear la operación\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://mouv.mintlify.site/_mintlify/api/og/v2?division=Conversi%C3%B3n+COP%E2%86%92USDT\u0026amp;title=POST+%2Fswaps\u0026amp;description=Aceptar+una+cotizaci%C3%B3n+y+crear+la+operaci%C3%B3n\u0026amp;theme=f40e73f8f77f023da857282d\u0026amp;signature=fb55ffc73f32158cce533c74572a39d185cb2c72f4f4530ee0cfb79bbdf22173\">\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/mouv/dhBwO_Z18oqSU_4o/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Mouv API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#00E5A0\">\u003clink data-mint-head rel=\"canonical\" href=\"https://developer.mouvlatam.com/api-reference/swaps/accept\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/swaps/accept.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://developer.mouvlatam.com/#organization\",\"name\":\"Mouv API\",\"url\":\"https://developer.mouvlatam.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/mouv/eG2tXnYX7anPBQKH/logo/light.svg?fit=max\u0026auto=format\u0026n=eG2tXnYX7anPBQKH\u0026q=85\u0026s=0d419f38b95c82c90cd323f5e8e1a102\"}},{\"@type\":\"WebSite\",\"@id\":\"https://developer.mouvlatam.com#website\",\"name\":\"Mouv API\",\"url\":\"https://developer.mouvlatam.com\",\"publisher\":{\"@id\":\"https://developer.mouvlatam.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://developer.mouvlatam.com/api-reference/swaps/accept#webpage\",\"url\":\"https://developer.mouvlatam.com/api-reference/swaps/accept\",\"name\":\"POST /swaps\",\"description\":\"Aceptar una cotización y crear la operación\",\"dateModified\":\"2026-10-20T01:21:20.785Z\",\"isPartOf\":{\"@id\":\"https://developer.mouvlatam.com#website\"},\"breadcrumb\":{\"@id\":\"https://developer.mouvlatam.com/api-reference/swaps/accept#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://developer.mouvlatam.com/api-reference/swaps/accept#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Conversión COP→USDT\",\"item\":\"https://developer.mouvlatam.com/guides/swap-cop-usdt\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"POST /swaps\",\"item\":\"https://developer.mouvlatam.com/api-reference/swaps/accept\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://developer.mouvlatam.com/api-reference/swaps/accept#apireference\",\"headline\":\"POST /swaps\",\"name\":\"POST /swaps\",\"description\":\"Aceptar una cotización y crear la operación\",\"url\":\"https://developer.mouvlatam.com/api-reference/swaps/accept\",\"mainEntityOfPage\":{\"@id\":\"https://developer.mouvlatam.com/api-reference/swaps/accept#webpage\"},\"dateModified\":\"2026-10-20T01:21:20.785Z\",\"publisher\":{\"@id\":\"https://developer.mouvlatam.com/#organization\"},\"isPartOf\":{\"@id\":\"https://developer.mouvlatam.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Mouv API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Mouv API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/swaps/accept.md","siteName":"Mouv API","nav":{"global":{"anchors":[{"anchor":"Estado del sistema","icon":"signal-stream","href":"https://consola.mouvlatam.com/api/health"},{"anchor":"Soporte","icon":"envelope","href":"mailto:hola@vectora.com.co"}]},"groups":[{"group":"Comenzar","pages":[{"title":"Introducción","href":"/introduction"},{"title":"Autenticación","href":"/authentication"},{"title":"Quickstart","href":"/quickstart"},{"title":"Scopes y permisos","href":"/scopes-and-permissions"}]},{"group":"Saldos","pages":[{"title":"GET /wallets/balance","api":"GET https://consola.mouvlatam.com/api/wallets/balance","href":"/api-reference/balance/get-balance"}]},{"group":"Retiros (Outflows)","pages":[{"title":"POST /transfers/resolve-key","api":"POST https://consola.mouvlatam.com/api/transfers/resolve-key","href":"/api-reference/transfers/resolve-key"},{"title":"POST /transfers/quote (BREB)","api":"POST https://consola.mouvlatam.com/api/transfers/quote","href":"/api-reference/transfers/quote-breb"},{"title":"POST /transfers/quote/ach","api":"POST https://consola.mouvlatam.com/api/transfers/quote/ach","href":"/api-reference/transfers/quote-ach"},{"title":"POST /transfers/send","api":"POST https://consola.mouvlatam.com/api/transfers/send","href":"/api-reference/transfers/send"}]},{"group":"Recaudos PSE","pages":[{"title":"POST /deposits/pse","api":"POST https://consola.mouvlatam.com/api/deposits/pse","href":"/api-reference/deposits/create-pse"},{"title":"GET /deposits","api":"GET https://consola.mouvlatam.com/api/deposits","href":"/api-reference/deposits/list"},{"title":"POST /deposits/:id/share-email","api":"POST https://consola.mouvlatam.com/api/deposits/:id/share-email","href":"/api-reference/deposits/share-email"}]},{"group":"Recaudos Bre-B (agregadores)","pages":[{"title":"Agregadores — recaudo Bre-B para tus clientes","href":"/guides/aggregators"},{"title":"POST /breb/collect-keys","api":"POST https://consola.mouvlatam.com/api/breb/collect-keys","href":"/api-reference/collect-keys/create"},{"title":"GET /breb/collect-keys","api":"GET https://consola.mouvlatam.com/api/breb/collect-keys","href":"/api-reference/collect-keys/list"},{"title":"GET /breb/collect-keys/{id}","api":"GET https://consola.mouvlatam.com/api/breb/collect-keys/{id}","href":"/api-reference/collect-keys/get"},{"title":"DELETE /breb/collect-keys/{id}","api":"DELETE https://consola.mouvlatam.com/api/breb/collect-keys/{id}","href":"/api-reference/collect-keys/delete"},{"title":"POST /breb/collect-keys/{id}/qr","api":"POST https://consola.mouvlatam.com/api/breb/collect-keys/{id}/qr","href":"/api-reference/collect-keys/qr"},{"title":"GET /deposits (recaudos Bre-B por cliente)","api":"GET https://consola.mouvlatam.com/api/deposits","href":"/api-reference/collect-keys/payments"}]},{"group":"Conversión COP→USDT","pages":[{"title":"Conversión COP→USDT","href":"/guides/swap-cop-usdt"},{"title":"GET /swaps/me","api":"GET https://consola.mouvlatam.com/api/swaps/me","href":"/api-reference/swaps/me"},{"title":"GET /swaps/networks","api":"GET https://consola.mouvlatam.com/api/swaps/networks","href":"/api-reference/swaps/networks"},{"title":"GET /swaps/wallets","api":"GET https://consola.mouvlatam.com/api/swaps/wallets","href":"/api-reference/swaps/list-wallets"},{"title":"POST /swaps/wallets","api":"POST https://consola.mouvlatam.com/api/swaps/wallets","href":"/api-reference/swaps/create-wallet"},{"title":"GET /swaps/wallets/:walletId","api":"GET https://consola.mouvlatam.com/api/swaps/wallets/{walletId}","href":"/api-reference/swaps/get-wallet"},{"title":"DELETE /swaps/wallets/:walletId","api":"DELETE https://consola.mouvlatam.com/api/swaps/wallets/{walletId}","href":"/api-reference/swaps/delete-wallet"},{"title":"POST /swaps/quotes","description":"Crear una cotización firme COP→USDT","api":"POST https://consola.mouvlatam.com/api/swaps/quotes","href":"/api-reference/swaps/create-quote"},{"title":"POST /swaps","api":"POST https://consola.mouvlatam.com/api/swaps","href":"/api-reference/swaps/accept"},{"title":"GET /swaps","description":"Listado paginado de tus operaciones de conversión","api":"GET https://consola.mouvlatam.com/api/swaps","href":"/api-reference/swaps/list"},{"title":"GET /swaps/:id","api":"GET https://consola.mouvlatam.com/api/swaps/{id}","href":"/api-reference/swaps/get"},{"title":"GET /swaps/:id/receipt.pdf","api":"GET https://consola.mouvlatam.com/api/swaps/{id}/receipt.pdf","href":"/api-reference/swaps/receipt"}]},{"group":"Transacciones","pages":[{"title":"GET /wallets/transactions","api":"GET https://consola.mouvlatam.com/api/wallets/transactions","href":"/api-reference/transactions/list"},{"title":"GET /wallets/transactions/:id","api":"GET https://consola.mouvlatam.com/api/wallets/transactions/:id","href":"/api-reference/transactions/get"},{"title":"GET /wallets/transactions/:id/receipt.pdf","href":"/api-reference/transactions/receipt"}]},{"group":"Referencia","pages":[{"title":"Códigos de error","href":"/errors"},{"title":"Rate limits","href":"/rate-limits"},{"title":"Diccionarios","href":"/dictionaries"},{"title":"SARLAFT y compliance","href":"/sarlaft-compliance"}]}]},"basePath":"","title":"POST /swaps - Mouv API","buildId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","deploymentId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-DdEMm2kG.js","utils-BMo572L7.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-C-4m9KAx.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DPLK2Oq9.js","snippetPresets-BKjfJMC9.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-DTsgtCEj.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-C8vmhyQM.js","shallow-r9w8LQGS.js","getApiPlaygroundDisplay-DjPI64HQ.js","CodeSnippet-C8Bvhl16.js","CodeSnippets-BtWUwcMy.js","Page-BIYvYBgk.js","getPastedJson-Dcm_3Pgl.js","icon-BXwrTpjc.js","MethodPill-CcjfVmmy.js","DuplicateIcon-BuKIbXAQ.js","createIcon-DaL9yXsO.js","DynamicMarkdown-Co5nikxh.js","SectionHeading-P4UNTsMZ.js","axios-vUo_bRtp.js"]}