API key del API Gateway de Tapi. Requerida en todas las operaciones. Distinta por ambiente (desarrollo, homologación, producción).
x-authorization-token
string
header
requerido
Token TAPI JWT. Requerido en todas las operaciones. Se envía sin prefijo "Bearer". Ej: x-authorization-token: eyJhbGci...
Encabezados
Idempotency-Key
string
Clave de idempotencia (opcional). Si no se envía externalPaymentLinkId en el body, el valor del header se usa como externalPaymentLinkId; si se envían los dos, el header se ignora. Repetir un externalPaymentLinkId devuelve 409 RESOURCE_CONFLICT y no se crea ninguna deuda. Sin ninguno de los dos, el link no tiene llave externa (externalPaymentLinkId es null en la respuesta).
Parámetros de consulta
companyCode
string
Solo si tu cliente tiene varias companies: indica en cuál operas. En POST y PATCH también se puede enviar en el cuerpo (el cuerpo tiene prioridad). Si tu cliente tiene varias companies y no lo envías, 400 BAD_REQUEST; si no es una company de tu cliente, 422 RESOLUTION_ERROR (403 en /v2/debts/orders).
Ejemplo:
"MX-S-67890"
Cuerpo
application/json
Los campos no declarados se ignoran.
amount
number
requerido
Monto en pesos (hasta 2 decimales, mínimo 0.01)
Rango requerido: x >= 0.01Debe ser un múltiplo de 0.01
description
string
requerido
Descripción visible en la página de pago. Debe ser string (si no, 400).
expiresAt
string<date-time>
requerido
Fecha/hora de expiración, obligatoria. Debe ser un date-time RFC 3339 (con Z u offset) y estar en el futuro; 2026-12-31 23:59 o solo fecha devuelven 400. Se convierte y guarda en UTC. El vencimiento de la deuda asociada es la fecha UTC de expiresAt.
Ejemplo:
"2026-12-31T23:59:59Z"
currency
enum<string>
predeterminado:MXN
Código de moneda ISO 4217 (MXN, ARS, PEN, COP, CLP, USD). Default MXN.
Opciones disponibles:
MXN,
ARS,
PEN,
COP,
CLP,
USD
externalPaymentLinkId
string
Llave natural del link. Única por organización. Usada para idempotencia y matching externo. Si no se envía, se usa el header Idempotency-Key. Si no hay ninguno de los dos, el link no tiene llave externa: en la respuesta externalPaymentLinkId es null y el debtId usa el UUID del link (debt_pl-debt-<uuid>). Repetirla devuelve 409 RESOURCE_CONFLICT y no se crea ninguna deuda.
successUrl
string<uri>
URL de redirección al completar el pago (opcional). Debe ser una URL http o https (si no, 400).
paymentMethods
enum<string>[] | null
Filtro de los medios de pago que el pagador ve en el portal de la liga (opcional). Ausente o null: sin filtro, se ofrecen todos los medios habilitados para la organización. Si se envía, tiene que ser un array no vacío de strings del enum; los duplicados se eliminan conservando el orden. Array vacío, valor que no es array, items que no son string o valores fuera del enum devuelven 400 INVALID_REQUEST con details[].field = "paymentMethods". El portal muestra solo los medios pedidos que la organización tiene habilitados (TRANSFER y BANK_TRANSFER como transferencia SPEI, WALLET como pago digital); si ninguno está habilitado, muestra todos los habilitados. Aplica solo al portal de la liga, no al SDK ni al portal embebido. Se guarda en la liga y es por deuda: aplica solo al pagar la deuda de esta liga (su debtId), no a otras deudas del mismo usuario, y no se hereda.
Minimum array length: 1
Opciones disponibles:
CASH,
CARD,
TRANSFER,
WALLET,
BANK_TRANSFER,
DIRECT_DEBIT,
BBVA_PAY_BY_BANK
Ejemplo:
["CARD", "TRANSFER"]
singleUse
boolean
predeterminado:true
Si true, el link se desactiva tras el primer pago. Si false, acepta múltiples pagos (reutilizable). Default true.
metadata
object
Metadatos arbitrarios del cliente (opcional). Objeto plano.
externalClientId
string
Identificador del deudor (cliente conocido). Mutuamente excluyente con contactData. Si se proporciona, la API resuelve el contacto existente por externalClientId en la organización. Si no corresponde a un contacto existente, la API responde 422 BUSINESS_RULE_VIOLATION y no se crea nada; para crear el contacto en el mismo request usa contactData.
contactData
object
Datos del deudor inline. Mutuamente excluyente con externalClientId. Si se proporciona, se crea un nuevo contacto (o se reutiliza si externalClientId ya existe).
Show child attributes
productName
string
Nombre del producto a asociar (opcional). Se resuelve por name o se crea inline si no existe. Identificado por name único por companyCode.
identifierValue
string
Identificador explícito del link de pago (opcional). Si se proporciona, se sanitiza a URL-safe (alfanumérico + guiones, lowercase, máx 64 chars). Si tras sanear queda vacío, retorna 400 INVALID_REQUEST. Precedencia de resolución: identifierValue explícito > externalClientId (deudor) > sintético. Si se envía identifierValue: se usa ese valor (saneado). Si NO se envía y hay deudor conocido (externalClientId/contactData): se usa el identificador del deudor. Si NO se envía y NO hay deudor: se genera sintético {3letras}-{random}. Exposición en respuesta (PII-safe): SIN deudor conocido (anónimo/reutilizable) se expone identifierValue en respuesta. CON deudor conocido: se devuelve null, incluso si el cliente mandó identifierValue explícito.
Maximum string length: 64
additionalData
object
Objeto plano con las mismas claves reservadas que en deudas. Se guarda en la deuda asociada al link; no se devuelve en el link.
Ejemplo:
{ "source": "crm", "folio": "F-2026-0042" }
Respuesta
Link de pago creado
data
object
externalPaymentLinkId, expiresAt, successUrl, paymentMethods, metadata, identifierValue, contact y product siempre vienen, con null cuando no hay valor.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Tapipay","colors":{"primary":"#044B47","light":"#D0ED9B","dark":"#044B47"},"logo":{"light":"https://mintcdn.com/tapi-d0a74b1d/Ee-T_CDRZ18YJiKr/logo/light.png?fit=max\u0026auto=format\u0026n=Ee-T_CDRZ18YJiKr\u0026q=85\u0026s=a650c74357b75b59b5494647173fef25","dark":"https://mintcdn.com/tapi-d0a74b1d/Ee-T_CDRZ18YJiKr/logo/dark.png?fit=max\u0026auto=format\u0026n=Ee-T_CDRZ18YJiKr\u0026q=85\u0026s=34a42dafe938a870ed1f27c0f971b55d"},"favicon":"https://mintcdn.com/tapi-d0a74b1d/Ee-T_CDRZ18YJiKr/favicon.png?fit=max\u0026auto=format\u0026n=Ee-T_CDRZ18YJiKr\u0026q=85\u0026s=793ff4a5f69525cee04ab417331cb460","contextual":{"options":["copy","chatgpt","claude","cursor","vscode","mcp"],"display":"header"},"styling":{"latex":false},"navigation":{"languages":[{"language":"es","default":true,"href":"es"},{"language":"en","href":"en"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"tapi-d0a74b1d","hasAudioNarration":false,"actualSubdomain":"tapi-d0a74b1d","customDomains":["devs.tapipay.la"],"gitSource":{"type":"github","owner":"tapipay-la","repo":"tapipay-facade-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6afc72098d58fd8eef0368da","clientVersion":"0.0.4336","searchFilterCounts":[{"language":"default","tag":"API Reference","count":35},{"language":"en","tag":"Guides","count":34},{"language":"es","tag":"Guías","count":34},{"language":"en","tag":"Webhooks","count":11},{"language":"es","tag":"Webhooks","count":11},{"language":"default","tag":"Subscriptions","count":8},{"language":"en","tag":"Payment portal","count":7},{"language":"en","tag":"Resources","count":7},{"language":"es","tag":"Portal de pagos","count":7},{"language":"es","tag":"Recursos","count":7},{"language":"default","tag":"Debts","count":6},{"language":"default","tag":"Payment Links","count":6},{"language":"en","tag":"Concepts","count":5},{"language":"es","tag":"Conceptos","count":5},{"language":"default","tag":"Products","count":5},{"language":"default","tag":"Contacts","count":4},{"language":"en","tag":"Get started","count":3},{"language":"es","tag":"Empieza aquí","count":3},{"language":"default","tag":"Adhesions","count":2},{"language":"default","tag":"Payment methods","count":2},{"language":"default","tag":"Payment orders","count":2},{"language":"en","tag":"What's new","count":1},{"language":"en","tag":"Connect your MCP","count":1},{"language":"es","tag":"Novedades","count":1},{"language":"es","tag":"Conecta tu MCP","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":"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":"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":"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":false},"customCss":[{"filePath":"style.css","content":"html[lang=\"es\"] #localization-select-trigger::before{content:\"🇲🇽\";margin-right:-0.15rem}html[lang=\"en\"] #localization-select-trigger::before{content:\"🇺🇸\";margin-right:-0.15rem}#localization-select-content [data-component-part=\"localization-select-item\"]:first-child::before{content:\"🇲🇽\";margin-right:-0.25rem}#localization-select-content [data-component-part=\"localization-select-item\"]:last-child::before{content:\"🇺🇸\";margin-right:-0.25rem}::-webkit-scrollbar{width:12px!important;height:12px!important}::-webkit-scrollbar-track{background:transparent!important}::-webkit-scrollbar-corner{background:transparent!important}::-webkit-scrollbar-thumb{background-color:rgba(0, 0, 0, 0.18)!important;border-radius:9999px!important;border:3px solid transparent!important;background-clip:content-box!important}::-webkit-scrollbar-thumb:hover{background-color:rgba(0, 0, 0, 0.32)!important}.dark ::-webkit-scrollbar-thumb{background-color:rgba(255, 255, 255, 0.22)!important}.dark ::-webkit-scrollbar-thumb:hover{background-color:rgba(255, 255, 255, 0.38)!important}*{scrollbar-width:thin;scrollbar-color:rgba(0, 0, 0, 0.25) transparent}.dark *{scrollbar-color:rgba(255, 255, 255, 0.25) transparent}.stable-scrollbar-gutter .code-block-background{overflow:visible!important}[class*=\"100dvh-11rem\"]{max-height:none!important;overflow:visible!important}html:has([class*=\"max-w-screen-xl\"][class*=\"100dvh-6rem\"]){overflow:hidden!important}[class*=\"max-w-screen-xl\"][class*=\"100dvh-6rem\"]{box-sizing:border-box!important;border-right:14px solid transparent!important;background-clip:border-box!important}[class*=\"max-w-screen-xl\"][class*=\"100dvh-6rem\"]::-webkit-scrollbar{width:8px!important}.method-nav-pill{width:2.75rem!important}.method-nav-pill span{font-size:0.65rem!important;line-height:1!important}#sidebar a[aria-current=\"page\"] span[class*=\"break-words\"]{font-weight:400!important}#sidebar,#sidebar *{hyphens:none!important;overflow-wrap:normal!important;word-break:normal!important}@media (min-width: 1024px){#sidebar{width:21rem!important}}#content-area table code{white-space:nowrap!important}#search-bar-entry{width:auto!important;flex:0 0 auto!important;justify-content:center!important;gap:0.4rem!important}#search-bar-entry>span{display:none!important}#search-bar-entry .truncate{display:none!important}html[lang=\"es\"] #search-bar-entry>div::after{content:\"Buscar\"}html[lang=\"en\"] #search-bar-entry>div::after{content:\"Search\"}div:has(>#search-bar-entry){justify-content:center!important}#assistant-entry>svg{display:none!important}.chat-assistant-sheet-header>div:first-child>svg{display:none!important}[role=\"tablist\"]{flex-wrap:wrap!important;overflow:visible!important;gap:0.4rem 1rem!important}"}]}
{"page":{"pagePath":"api-reference/payment-links/crear-link-de-pago","slug":"/api-reference/payment-links/crear-link-de-pago","pageMetadata":{"title":"Crear link de pago","description":"Genera una liga de pago para cobrar sin conocer al deudor de antemano.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /payment-links","href":"/api-reference/payment-links/crear-link-de-pago","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Genera una liga de pago para cobrar sin conocer al deudor de antemano.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Crear link de pago","description":"Genera una liga de pago para cobrar sin conocer al deudor de antemano.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /payment-links","href":"/api-reference/payment-links/crear-link-de-pago","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Crear link de pago","description":"Genera una liga de pago para cobrar sin conocer al deudor de antemano.","operationId":"createPaymentLink","tags":["Payment Links"],"parameters":["c3ff15d8-75be-4519-b14f-ab6e8e0a07ea","a4648054-51a9-4967-8417-c8565c40f45a"],"requestBody":"acd57193-f68e-403d-a14d-6ceeaa4e7012","responses":{"201":"914b9de6-3940-4fbc-bb02-ff7b5c76b7b6","400":"73d407c6-a039-420d-947a-8df692a474f4","401":"4c711e2f-813b-4bb5-86d5-bd00f92c0785","403":"ce9911ec-9fdc-4efe-9a37-8942dde3befc","409":"649e421f-b8a3-40db-a4c6-e07b9eb56f18","422":"8e882920-abf7-4e45-8c8e-241256d68538"},"method":"post","type":"path","servers":["1123fd2f-1c5e-46e4-a674-f5932378232a"],"security":["aa076407-bc45-4d05-a467-6e99bde41b61"],"path":"/payment-links","baseUrlOptions":["https://tapipay-facade.homo.tapila.cloud"],"title":"Crear link de pago","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"c3ff15d8-75be-4519-b14f-ab6e8e0a07ea":{"name":"companyCode","in":"query","required":false,"schema":{"type":"string","example":"MX-S-67890","isRequired":false,"description":"Solo si tu cliente tiene varias companies: indica en cuál operas. En POST y PATCH también se puede enviar en el cuerpo (el cuerpo tiene prioridad). Si tu cliente tiene varias companies y no lo envías, 400 BAD_REQUEST; si no es una company de tu cliente, 422 RESOLUTION_ERROR (403 en /v2/debts/orders).","uniqueKey":"","typeLabel":"string"},"description":"Solo si tu cliente tiene varias companies: indica en cuál operas. En POST y PATCH también se puede enviar en el cuerpo (el cuerpo tiene prioridad). Si tu cliente tiene varias companies y no lo envías, 400 BAD_REQUEST; si no es una company de tu cliente, 422 RESOLUTION_ERROR (403 en /v2/debts/orders)."},"a4648054-51a9-4967-8417-c8565c40f45a":{"name":"Idempotency-Key","in":"header","schema":{"type":"string","description":"Clave de idempotencia (opcional). Si no se envía externalPaymentLinkId en el body, el valor del header se usa como externalPaymentLinkId; si se envían los dos, el header se ignora. Repetir un externalPaymentLinkId devuelve 409 RESOURCE_CONFLICT y no se crea ninguna deuda. Sin ninguno de los dos, el link no tiene llave externa (externalPaymentLinkId es null en la respuesta).\n","uniqueKey":"","typeLabel":"string"},"description":"Clave de idempotencia (opcional). Si no se envía externalPaymentLinkId en el body, el valor del header se usa como externalPaymentLinkId; si se envían los dos, el header se ignora. Repetir un externalPaymentLinkId devuelve 409 RESOURCE_CONFLICT y no se crea ninguna deuda. Sin ninguno de los dos, el link no tiene llave externa (externalPaymentLinkId es null en la respuesta).\n"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"Los campos no declarados se ignoran.","required":["amount","description","expiresAt"],"properties":{"amount":{"type":"number","minimum":0.01,"multipleOf":0.01,"description":"Monto en pesos (hasta 2 decimales, mínimo 0.01)","isRequired":true,"uniqueKey":"amount","typeLabel":"number"},"description":{"type":"string","description":"Descripción visible en la página de pago. Debe ser string (si no, 400).","isRequired":true,"uniqueKey":"description","typeLabel":"string"},"expiresAt":{"type":"string","format":"date-time","example":"2026-12-31T23:59:59Z","description":"Fecha/hora de expiración, obligatoria. Debe ser un date-time RFC 3339 (con `Z` u offset) y estar en el futuro; `2026-12-31 23:59` o solo fecha devuelven 400. Se convierte y guarda en UTC. El vencimiento de la deuda asociada es la fecha UTC de expiresAt.\n","isRequired":true,"uniqueKey":"expiresAt","typeLabel":"string\u003cdate-time>"},"currency":{"type":"string","enum":["MXN","ARS","PEN","COP","CLP","USD"],"default":"MXN","description":"Código de moneda ISO 4217 (MXN, ARS, PEN, COP, CLP, USD). Default MXN.","uniqueKey":"currency","typeLabel":"enum\u003cstring>"},"externalPaymentLinkId":{"type":"string","description":"Llave natural del link. Única por organización. Usada para idempotencia y matching externo. Si no se envía, se usa el header Idempotency-Key. Si no hay ninguno de los dos, el link no tiene llave externa: en la respuesta externalPaymentLinkId es null y el debtId usa el UUID del link (`debt_pl-debt-\u003cuuid>`). Repetirla devuelve 409 RESOURCE_CONFLICT y no se crea ninguna deuda.\n","uniqueKey":"externalPaymentLinkId","typeLabel":"string"},"successUrl":{"type":"string","format":"uri","description":"URL de redirección al completar el pago (opcional). Debe ser una URL http o https (si no, 400).","uniqueKey":"successUrl","typeLabel":"string\u003curi>"},"paymentMethods":{"oneOf":[{"type":"array","minItems":1,"items":{"type":"string","enum":["CASH","CARD","TRANSFER","WALLET","BANK_TRANSFER","DIRECT_DEBIT","BBVA_PAY_BY_BANK"],"uniqueKey":"paymentMethods.oneOf.0.items.[INDEX]","typeLabel":"enum\u003cstring>"},"example":["CARD","TRANSFER"],"description":"Filtro de los medios de pago que el pagador ve en el portal de la liga (opcional). Ausente o null: sin filtro, se ofrecen todos los medios habilitados para la organización. Si se envía, tiene que ser un array no vacío de strings del enum; los duplicados se eliminan conservando el orden. Array vacío, valor que no es array, items que no son string o valores fuera del enum devuelven 400 INVALID_REQUEST con `details[].field = \"paymentMethods\"`. El portal muestra solo los medios pedidos que la organización tiene habilitados (TRANSFER y BANK_TRANSFER como transferencia SPEI, WALLET como pago digital); si ninguno está habilitado, muestra todos los habilitados. Aplica solo al portal de la liga, no al SDK ni al portal embebido. Se guarda en la liga y es por deuda: aplica solo al pagar la deuda de esta liga (su debtId), no a otras deudas del mismo usuario, y no se hereda.\n","uniqueKey":"paymentMethods.oneOf.0","typeLabel":"enum\u003cstring>[]"},{"type":"null","minItems":1,"items":{"type":"string","enum":["CASH","CARD","TRANSFER","WALLET","BANK_TRANSFER","DIRECT_DEBIT","BBVA_PAY_BY_BANK"]},"example":["CARD","TRANSFER"],"description":"Filtro de los medios de pago que el pagador ve en el portal de la liga (opcional). Ausente o null: sin filtro, se ofrecen todos los medios habilitados para la organización. Si se envía, tiene que ser un array no vacío de strings del enum; los duplicados se eliminan conservando el orden. Array vacío, valor que no es array, items que no son string o valores fuera del enum devuelven 400 INVALID_REQUEST con `details[].field = \"paymentMethods\"`. El portal muestra solo los medios pedidos que la organización tiene habilitados (TRANSFER y BANK_TRANSFER como transferencia SPEI, WALLET como pago digital); si ninguno está habilitado, muestra todos los habilitados. Aplica solo al portal de la liga, no al SDK ni al portal embebido. Se guarda en la liga y es por deuda: aplica solo al pagar la deuda de esta liga (su debtId), no a otras deudas del mismo usuario, y no se hereda.\n","uniqueKey":"paymentMethods.oneOf.1","typeLabel":"null"}],"uniqueKey":"paymentMethods","typeLabel":"enum\u003cstring>[] | null"},"singleUse":{"type":"boolean","default":true,"description":"Si true, el link se desactiva tras el primer pago. Si false, acepta múltiples pagos (reutilizable). Default true.\n","uniqueKey":"singleUse","typeLabel":"boolean"},"metadata":{"type":"object","description":"Metadatos arbitrarios del cliente (opcional). Objeto plano.","uniqueKey":"metadata","typeLabel":"object"},"externalClientId":{"type":"string","description":"Identificador del deudor (cliente conocido). Mutuamente excluyente con contactData. Si se proporciona, la API resuelve el contacto existente por externalClientId en la organización. Si no corresponde a un contacto existente, la API responde 422 BUSINESS_RULE_VIOLATION y no se crea nada; para crear el contacto en el mismo request usa contactData.\n","uniqueKey":"externalClientId","typeLabel":"string"},"contactData":{"type":"object","required":["externalClientId","name"],"properties":{"externalClientId":{"type":"string","description":"Llave natural del contacto. Única por organización.","isRequired":true,"uniqueKey":"contactData.externalClientId","typeLabel":"string"},"name":{"type":"string","description":"Nombre del deudor","isRequired":true,"uniqueKey":"contactData.name","typeLabel":"string"},"email":{"type":"string","format":"email","description":"Email del deudor (opcional). Si se envía, tiene que ser un email válido.","uniqueKey":"contactData.email","typeLabel":"string\u003cemail>"},"phones":{"type":"array","description":"Lista de teléfonos del deudor (opcional)","items":{"type":"object","required":["number","type"],"properties":{"number":{"type":"string","description":"Número de teléfono. Ej +5215512345678","isRequired":true,"uniqueKey":"contactData.phones.items.[INDEX].number","typeLabel":"string"},"type":{"type":"string","enum":["MAIN","MOBILE","WORK","RELATIVE","OTHER"],"isRequired":true,"uniqueKey":"contactData.phones.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"primary":{"type":"boolean","default":false,"description":"Indica si es el número telefónico principal. Opcional (default: false).\n","uniqueKey":"contactData.phones.items.[INDEX].primary","typeLabel":"boolean"},"description":{"type":"string","description":"Descripción o etiqueta del teléfono. Opcional (default: type cuando no se especifica).\n","uniqueKey":"contactData.phones.items.[INDEX].description","typeLabel":"string"}},"uniqueKey":"contactData.phones.items.[INDEX]","typeLabel":"object"},"uniqueKey":"contactData.phones","typeLabel":"object[]"}},"description":"Datos del deudor inline. Mutuamente excluyente con externalClientId. Si se proporciona, se crea un nuevo contacto (o se reutiliza si externalClientId ya existe).\n","uniqueKey":"contactData","typeLabel":"object"},"productName":{"type":"string","description":"Nombre del producto a asociar (opcional). Se resuelve por name o se crea inline si no existe. Identificado por name único por companyCode.\n","uniqueKey":"productName","typeLabel":"string"},"identifierValue":{"type":"string","maxLength":64,"description":"Identificador explícito del link de pago (opcional). Si se proporciona, se sanitiza a URL-safe (alfanumérico + guiones, lowercase, máx 64 chars). Si tras sanear queda vacío, retorna 400 INVALID_REQUEST. Precedencia de resolución: identifierValue explícito > externalClientId (deudor) > sintético. Si se envía identifierValue: se usa ese valor (saneado). Si NO se envía y hay deudor conocido (externalClientId/contactData): se usa el identificador del deudor. Si NO se envía y NO hay deudor: se genera sintético {3letras}-{random}. Exposición en respuesta (PII-safe): SIN deudor conocido (anónimo/reutilizable) se expone identifierValue en respuesta. CON deudor conocido: se devuelve null, incluso si el cliente mandó identifierValue explícito.\n","uniqueKey":"identifierValue","typeLabel":"string"},"additionalData":{"type":"object","description":"Objeto plano con las mismas claves reservadas que en deudas. Se guarda en la deuda asociada al link; no se devuelve en el link.","example":{"source":"crm","folio":"F-2026-0042"},"additionalProperties":true,"uniqueKey":"additionalData","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"amount":1.01,"description":"\u003cstring>","expiresAt":"2026-12-31T23:59:59Z","currency":"MXN","externalPaymentLinkId":"\u003cstring>","successUrl":"\u003cstring>","paymentMethods":["CARD","TRANSFER"],"singleUse":true,"metadata":{},"externalClientId":"\u003cstring>","productName":"\u003cstring>","identifierValue":"\u003cstring>","additionalData":{"source":"crm","folio":"F-2026-0042"}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"914b9de6-3940-4fbc-bb02-ff7b5c76b7b6":{"description":"Link de pago creado","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","description":"externalPaymentLinkId, expiresAt, successUrl, paymentMethods, metadata, identifierValue, contact y product siempre vienen, con null cuando no hay valor.","required":["paymentLinkId","status","amount","currency","description","singleUse","createdAt","paymentUrl","externalPaymentLinkId","expiresAt","successUrl","paymentMethods","metadata","identifierValue","contact","product"],"properties":{"paymentLinkId":{"type":"string","pattern":"^plk_[a-zA-Z0-9-]+$","example":"plk_61a837f5-3c67-423a-ade7-94b78e0007cb","description":"ID público del PaymentLink (`plk_` + UUID)","isRequired":true,"uniqueKey":"data.paymentLinkId","typeLabel":"string"},"externalPaymentLinkId":{"oneOf":[{"type":"string","description":"Llave externa del link (única por organización). Null si el link se creó sin externalPaymentLinkId ni header Idempotency-Key.","isRequired":true,"uniqueKey":"data.externalPaymentLinkId.oneOf.0","typeLabel":"string"},{"type":"null","description":"Llave externa del link (única por organización). Null si el link se creó sin externalPaymentLinkId ni header Idempotency-Key.","isRequired":true,"uniqueKey":"data.externalPaymentLinkId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.externalPaymentLinkId","typeLabel":"string | null"},"status":{"type":"string","enum":["ACTIVE","PAID","EXPIRED","CANCELLED"],"description":"Estado del link (ACTIVE, PAID, EXPIRED, CANCELLED)","isRequired":true,"uniqueKey":"data.status","typeLabel":"enum\u003cstring>"},"amount":{"type":"number","description":"Monto en pesos (hasta 2 decimales, inmutable tras creación)","isRequired":true,"uniqueKey":"data.amount","typeLabel":"number"},"currency":{"type":"string","enum":["MXN","ARS","PEN","COP","CLP","USD"],"default":"MXN","description":"Moneda del link (inmutable tras creación)","isRequired":true,"uniqueKey":"data.currency","typeLabel":"enum\u003cstring>"},"description":{"type":"string","description":"Descripción visible en la página de pago (actualizable)","isRequired":true,"uniqueKey":"data.description","typeLabel":"string"},"singleUse":{"type":"boolean","description":"Si true, se desactiva tras el primer pago (inmutable tras creación)","isRequired":true,"uniqueKey":"data.singleUse","typeLabel":"boolean"},"expiresAt":{"type":"string","format":"date-time","example":"2027-02-11T05:30:00.000Z","description":"Fecha/hora de expiración. Nunca es null: los links siempre vencen. Se devuelve siempre en UTC con milisegundos y Z (`YYYY-MM-DDTHH:mm:ss.sssZ`), aunque se haya enviado con offset: `2027-02-10T23:30:00-06:00` sale como `2027-02-11T05:30:00.000Z`. Links viejos guardados con fecha sola (`2026-12-01`) salen como el inicio de ese día UTC (`2026-12-01T00:00:00.000Z`). Actualizable, pero solo a valores futuros válidos.\n","isRequired":true,"uniqueKey":"data.expiresAt","typeLabel":"string\u003cdate-time>"},"successUrl":{"oneOf":[{"type":"string","format":"uri","description":"URL de redirección post-pago exitoso. Actualizable con PATCH; null si la liga no tiene.","isRequired":true,"uniqueKey":"data.successUrl.oneOf.0","typeLabel":"string\u003curi>"},{"type":"null","format":"uri","description":"URL de redirección post-pago exitoso. Actualizable con PATCH; null si la liga no tiene.","isRequired":true,"uniqueKey":"data.successUrl.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.successUrl","typeLabel":"string\u003curi> | null"},"paymentMethods":{"oneOf":[{"type":"array","items":{"type":"string","enum":["CASH","CARD","TRANSFER","WALLET","BANK_TRANSFER","DIRECT_DEBIT","BBVA_PAY_BY_BANK"],"uniqueKey":"data.paymentMethods.oneOf.0.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Filtro de medios de pago de la liga, sin duplicados. Null si la liga no tiene filtro (se ofrecen todos los medios habilitados). Actualizable con PATCH.","isRequired":true,"uniqueKey":"data.paymentMethods.oneOf.0","typeLabel":"enum\u003cstring>[]"},{"type":"null","items":{"type":"string","enum":["CASH","CARD","TRANSFER","WALLET","BANK_TRANSFER","DIRECT_DEBIT","BBVA_PAY_BY_BANK"]},"description":"Filtro de medios de pago de la liga, sin duplicados. Null si la liga no tiene filtro (se ofrecen todos los medios habilitados). Actualizable con PATCH.","isRequired":true,"uniqueKey":"data.paymentMethods.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.paymentMethods","typeLabel":"enum\u003cstring>[] | null"},"metadata":{"oneOf":[{"type":"object","description":"Metadatos arbitrarios (actualizable). Null si no hay.","isRequired":true,"uniqueKey":"data.metadata.oneOf.0","typeLabel":"object"},{"type":"null","description":"Metadatos arbitrarios (actualizable). Null si no hay.","isRequired":true,"uniqueKey":"data.metadata.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.metadata","typeLabel":"object | null"},"paymentUrl":{"oneOf":[{"type":"string","format":"uri","description":"URL pública del portal de pago. Es una URL opaca: no la parsees ni construyas a mano. Con Private Links habilitado lleva un shortCode y no contiene el identifierValue. Sin Private Links, o si la generación del shortCode falla, es la URL legacy `.../portal/{identifierValue}/debts/payment-methods`. Si la integración falla, es null (el link se crea igual). Los links creados antes de este cambio conservan su URL legacy.\n","isRequired":true,"uniqueKey":"data.paymentUrl.oneOf.0","typeLabel":"string\u003curi>"},{"type":"null","format":"uri","description":"URL pública del portal de pago. Es una URL opaca: no la parsees ni construyas a mano. Con Private Links habilitado lleva un shortCode y no contiene el identifierValue. Sin Private Links, o si la generación del shortCode falla, es la URL legacy `.../portal/{identifierValue}/debts/payment-methods`. Si la integración falla, es null (el link se crea igual). Los links creados antes de este cambio conservan su URL legacy.\n","isRequired":true,"uniqueKey":"data.paymentUrl.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.paymentUrl","typeLabel":"string\u003curi> | null"},"identifierValue":{"oneOf":[{"type":"string","description":"**SOLO PARA LINKS SIN DEUDOR CONOCIDO (anónimo/reutilizable).** Null para links con deudor conocido (PII-safe).\nPatrón del sintético: {primeras 3 letras sanitizadas del nombre org}-{random alfanumérico ≥8}. Ejemplo: acm-x3kM9pQr. Se normaliza el nombre de la org (diacríticos a ASCII, no alfanuméricos eliminados, lowercase) y se toman las primeras 3 letras; si quedan menos de 3, se usa el fallback \"lnk\".\n","isRequired":true,"uniqueKey":"data.identifierValue.oneOf.0","typeLabel":"string"},{"type":"null","description":"**SOLO PARA LINKS SIN DEUDOR CONOCIDO (anónimo/reutilizable).** Null para links con deudor conocido (PII-safe).\nPatrón del sintético: {primeras 3 letras sanitizadas del nombre org}-{random alfanumérico ≥8}. Ejemplo: acm-x3kM9pQr. Se normaliza el nombre de la org (diacríticos a ASCII, no alfanuméricos eliminados, lowercase) y se toman las primeras 3 letras; si quedan menos de 3, se usa el fallback \"lnk\".\n","isRequired":true,"uniqueKey":"data.identifierValue.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.identifierValue","typeLabel":"string | null"},"contact":{"oneOf":[{"type":"object","description":"Siempre null en v1 (reservado para v2).\n","required":["contactId","externalClientId","createdInline"],"properties":{"contactId":{"oneOf":[{"type":"string","pattern":"^con_[a-zA-Z0-9]+$","description":"ID interno del contacto (prefijo con_, también cuando el contacto se crea inline). Puede venir en null si el contacto recién creado todavía no se pudo leer; consúltalo después con GET /contacts.","isRequired":true,"uniqueKey":"data.contact.oneOf.0.contactId.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^con_[a-zA-Z0-9]+$","description":"ID interno del contacto (prefijo con_, también cuando el contacto se crea inline). Puede venir en null si el contacto recién creado todavía no se pudo leer; consúltalo después con GET /contacts.","isRequired":true,"uniqueKey":"data.contact.oneOf.0.contactId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.contact.oneOf.0.contactId","typeLabel":"string | null"},"externalClientId":{"type":"string","description":"Llave natural del contacto","isRequired":true,"uniqueKey":"data.contact.oneOf.0.externalClientId","typeLabel":"string"},"createdInline":{"type":"boolean","description":"Indica si el contacto fue creado inline en esta operación. NOTA: Este es un embedded thin contact (no incluye name/email/phones/active/updatedAt del contacto completo). Para obtener datos completos del contacto, consultá GET /contacts/{id}.\n","isRequired":true,"uniqueKey":"data.contact.oneOf.0.createdInline","typeLabel":"boolean"}},"isRequired":true,"uniqueKey":"data.contact.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"data.contact.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.contact","typeLabel":"object | null"},"product":{"oneOf":[{"type":"object","description":"Producto asociado si fue referenciado en creación (via productName). Se resuelve o crea inline igual que en Subscription. Null si no se especificó producto.\n","required":["productId","name","active","createdInline"],"properties":{"productId":{"type":"string","pattern":"^prd_\\d+$","description":"ID público del producto, con prefijo `prd_` (ej. `prd_12985`).","isRequired":true,"uniqueKey":"data.product.oneOf.0.productId","typeLabel":"string"},"name":{"type":"string","description":"Nombre del producto","isRequired":true,"uniqueKey":"data.product.oneOf.0.name","typeLabel":"string"},"active":{"type":"boolean","description":"Estado del producto","isRequired":true,"uniqueKey":"data.product.oneOf.0.active","typeLabel":"boolean"},"createdInline":{"type":"boolean","description":"Indica si el producto fue creado inline en esta operación (solo posible via productName en suscripciones y ligas de pago). En deudas es siempre false: el producto debe existir de antemano. Se conserva en las lecturas.","isRequired":true,"uniqueKey":"data.product.oneOf.0.createdInline","typeLabel":"boolean"}},"isRequired":true,"uniqueKey":"data.product.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"data.product.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.product","typeLabel":"object | null"},"createdAt":{"type":"string","format":"date-time","description":"Timestamp de creación (ISO 8601 en UTC con milisegundos y Z)","isRequired":true,"uniqueKey":"data.createdAt","typeLabel":"string\u003cdate-time>"},"debtId":{"type":"string","example":"debt_pl-debt-FAC-777","description":"ID de la deuda asociada al link: `debt_pl-debt-` + externalPaymentLinkId. Si el link no tiene externalPaymentLinkId, `debt_pl-debt-` + el UUID del paymentLinkId (sin el prefijo `plk_`). Se puede usar en GET /debts/{id} y como filtro en GET /payment-links.","uniqueKey":"data.debtId","typeLabel":"string"}},"example":{"paymentLinkId":"plk_61a837f5-3c67-423a-ade7-94b78e0007cb","status":"ACTIVE","amount":4500,"currency":"MXN","description":"Factura única #777","singleUse":true,"paymentUrl":"https://app.tapipay.la/s/acme-corp/portal/McXmbnKaju/debts/payment-methods?externalRequestId=pl-debt-FAC-777","createdAt":"2026-06-03T19:20:00.000Z","debtId":"debt_pl-debt-FAC-777","externalPaymentLinkId":"FAC-777","expiresAt":"2026-06-30T23:59:59.000Z","successUrl":null,"paymentMethods":["CARD","TRANSFER"],"metadata":null,"identifierValue":"acm-x3kM9pQr","contact":null,"product":null},"uniqueKey":"data","typeLabel":"object"},"requestId":{"type":"string","uniqueKey":"requestId","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"data":{"paymentLinkId":"plk_61a837f5-3c67-423a-ade7-94b78e0007cb","status":"ACTIVE","amount":4500,"currency":"MXN","description":"Factura única #777","singleUse":true,"paymentUrl":"https://app.tapipay.la/s/acme-corp/portal/McXmbnKaju/debts/payment-methods?externalRequestId=pl-debt-FAC-777","createdAt":"2026-06-03T19:20:00.000Z","debtId":"debt_pl-debt-FAC-777","externalPaymentLinkId":"FAC-777","expiresAt":"2026-06-30T23:59:59.000Z","successUrl":null,"paymentMethods":["CARD","TRANSFER"],"metadata":null,"identifierValue":"acm-x3kM9pQr","contact":null,"product":null},"requestId":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"73d407c6-a039-420d-947a-8df692a474f4":{"description":"Validación fallida: expiresAt que no es date-time RFC 3339 o no es futuro, description no string, additionalData no objeto o con claves reservadas, successUrl que no es URL http/https, paymentMethods vacío, que no es array, con items no string o fuera del enum.","content":{"application/json":{"schema":{"type":"object","required":["error","requestId"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["INVALID_REQUEST","BAD_REQUEST","RESOURCE_NOT_FOUND","RESOURCE_CONFLICT","RESOLUTION_ERROR","BUSINESS_RULE_VIOLATION","RATE_LIMITED","INTERNAL_ERROR","PARTIAL_UPDATE","NO_ACTIVE_PAYMENT_METHOD","COMPANY_WITHOUT_PRODUCT_MODALITY","COMPANY_WITHOUT_DEBT_ID_MODALITY","PAYMENT_METHOD_CASCADE_FAILED","PAYMENT_METHOD_NOT_DELETED"],"description":"Código de error estándar. BAD_REQUEST se usa cuando tu cliente tiene varias companies y no se envía `companyCode`. NO_ACTIVE_PAYMENT_METHOD y COMPANY_WITHOUT_PRODUCT_MODALITY aparecen en POST /adhesions. COMPANY_WITHOUT_DEBT_ID_MODALITY solo aparece en POST /v2/debts/orders/async. PAYMENT_METHOD_CASCADE_FAILED y PAYMENT_METHOD_NOT_DELETED solo aparecen en DELETE /payment-methods/{externalPaymentMethodId}. PARTIAL_UPDATE solo aparece en el 207 de PATCH /subscriptions/{id}: la suscripción se actualizó, pero alguna de sus deudas no. Los 401 y 403 los emite el API Gateway y no usan este envelope (ver GatewayError). Excepción: en /v2/debts/orders, RESOLUTION_ERROR responde 403 con este envelope.","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Mensaje legible del error. Es informativo: no lo parsees, usa `code` y, cuando venga, `details[].field`.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"array","description":"Array de detalles adicionales (validaciones por campo, etc.). Un JSON malformado devuelve `[{ \"field\": \"body\", \"issue\": \"Invalid JSON syntax\" }]`. No todos los 400 lo traen: cuando no viene, el `message` dice qué falló.","items":{"type":"object","properties":{"field":{"type":"string","description":"Campo que falló la validación","uniqueKey":"error.details.items.[INDEX].field","typeLabel":"string"},"issue":{"type":"string","description":"Descripción del problema","uniqueKey":"error.details.items.[INDEX].issue","typeLabel":"string"},"index":{"type":"integer","description":"Solo en los lotes de POST /v2/debts y POST /debts/cancel. Posición del item en `debts`.","uniqueKey":"error.details.items.[INDEX].index","typeLabel":"integer"},"externalRequestId":{"type":"string","description":"Solo en el modo lote de POST /v2/debts. externalRequestId del item.","uniqueKey":"error.details.items.[INDEX].externalRequestId","typeLabel":"string"},"productId":{"oneOf":[{"type":"string","description":"Solo en DELETE /payment-methods/{externalPaymentMethodId}. Producto de la adhesión.","uniqueKey":"error.details.items.[INDEX].productId.oneOf.0","typeLabel":"string"},{"type":"null","description":"Solo en DELETE /payment-methods/{externalPaymentMethodId}. Producto de la adhesión.","uniqueKey":"error.details.items.[INDEX].productId.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details.items.[INDEX].productId","typeLabel":"string | null"},"outcome":{"type":"string","enum":["DEACTIVATED","FAILED"],"description":"Solo en PAYMENT_METHOD_CASCADE_FAILED. Si la adhesión se dio de baja o no.","uniqueKey":"error.details.items.[INDEX].outcome","typeLabel":"enum\u003cstring>"}},"uniqueKey":"error.details.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error.details","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"requestId":{"type":"string","pattern":"^req_[a-zA-Z0-9]+$","description":"ID único del request para trazabilidad","isRequired":true,"uniqueKey":"requestId","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"INVALID_REQUEST","message":"\u003cstring>","details":[{"field":"\u003cstring>","issue":"\u003cstring>","index":123,"externalRequestId":"\u003cstring>","productId":"\u003cstring>","outcome":"DEACTIVATED"}]},"requestId":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"4c711e2f-813b-4bb5-86d5-bd00f92c0785":{"description":"No autenticado. Lo emite el API Gateway cuando falta el token en `x-authorization-token` o viene vacío, aunque también falte la `x-api-key`. Body `{\"message\": \"Unauthorized\"}`, sin envelope `error` ni `requestId`. Un token inválido responde 403 (ver Forbidden).","content":{"application/json":{"schema":{"type":"object","description":"Respuesta de error emitida por el API Gateway, antes de llegar al servicio. No lleva el envelope `error` ni `requestId`. El gateway valida primero el token. Casos: token faltante o vacío en `x-authorization-token` devuelve `401 {\"message\": \"Unauthorized\"}`; token inválido o sin permiso sobre el recurso devuelve `403 {\"Message\": \"User is not authorized to access this resource with an explicit deny in an identity-based policy\"}`; token válido con `x-api-key` faltante o inválida devuelve `403 {\"message\": \"Forbidden\"}`. Ojo al tipar: en el 403 por token el campo viene con mayúscula (`Message`), no `message`.","properties":{"message":{"type":"string","example":"Unauthorized","uniqueKey":"message","typeLabel":"string"},"Message":{"type":"string","description":"Solo en el 403 por token inválido o sin permiso (con mayúscula).","example":"User is not authorized to access this resource with an explicit deny in an identity-based policy","uniqueKey":"Message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"message":"Unauthorized"},"examples":{"Example":{"title":"Example","value":{"message":"Unauthorized"}}},"exampleType":"examples"}},"exampleType":"examples"},"ce9911ec-9fdc-4efe-9a37-8942dde3befc":{"description":"Prohibido. Lo emite el API Gateway, sin envelope `error` ni `requestId`. Si el token es inválido o no tiene permiso sobre el recurso, el body es `{\"Message\": \"User is not authorized to access this resource with an explicit deny in an identity-based policy\"}` (campo con mayúscula). Si el token es válido pero falta la `x-api-key` o es inválida, el body es `{\"message\": \"Forbidden\"}`.","content":{"application/json":{"schema":{"type":"object","description":"Respuesta de error emitida por el API Gateway, antes de llegar al servicio. No lleva el envelope `error` ni `requestId`. El gateway valida primero el token. Casos: token faltante o vacío en `x-authorization-token` devuelve `401 {\"message\": \"Unauthorized\"}`; token inválido o sin permiso sobre el recurso devuelve `403 {\"Message\": \"User is not authorized to access this resource with an explicit deny in an identity-based policy\"}`; token válido con `x-api-key` faltante o inválida devuelve `403 {\"message\": \"Forbidden\"}`. Ojo al tipar: en el 403 por token el campo viene con mayúscula (`Message`), no `message`.","properties":{"message":{"type":"string","example":"Unauthorized","uniqueKey":"message","typeLabel":"string"},"Message":{"type":"string","description":"Solo en el 403 por token inválido o sin permiso (con mayúscula).","example":"User is not authorized to access this resource with an explicit deny in an identity-based policy","uniqueKey":"Message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"apiKey":{"title":"apiKey","summary":"x-api-key faltante o inválida (con token válido)","value":{"message":"Forbidden"}},"explicitDeny":{"title":"explicitDeny","summary":"Token inválido o sin permiso sobre el recurso","value":{"Message":"User is not authorized to access this resource with an explicit deny in an identity-based policy"}}},"exampleType":"examples"}},"exampleType":"examples"},"649e421f-b8a3-40db-a4c6-e07b9eb56f18":{"description":"externalPaymentLinkId ya existe (RESOURCE_CONFLICT). No se crea ninguna deuda.","content":{"application/json":{"schema":{"type":"object","required":["error","requestId"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["INVALID_REQUEST","BAD_REQUEST","RESOURCE_NOT_FOUND","RESOURCE_CONFLICT","RESOLUTION_ERROR","BUSINESS_RULE_VIOLATION","RATE_LIMITED","INTERNAL_ERROR","PARTIAL_UPDATE","NO_ACTIVE_PAYMENT_METHOD","COMPANY_WITHOUT_PRODUCT_MODALITY","COMPANY_WITHOUT_DEBT_ID_MODALITY","PAYMENT_METHOD_CASCADE_FAILED","PAYMENT_METHOD_NOT_DELETED"],"description":"Código de error estándar. BAD_REQUEST se usa cuando tu cliente tiene varias companies y no se envía `companyCode`. NO_ACTIVE_PAYMENT_METHOD y COMPANY_WITHOUT_PRODUCT_MODALITY aparecen en POST /adhesions. COMPANY_WITHOUT_DEBT_ID_MODALITY solo aparece en POST /v2/debts/orders/async. PAYMENT_METHOD_CASCADE_FAILED y PAYMENT_METHOD_NOT_DELETED solo aparecen en DELETE /payment-methods/{externalPaymentMethodId}. PARTIAL_UPDATE solo aparece en el 207 de PATCH /subscriptions/{id}: la suscripción se actualizó, pero alguna de sus deudas no. Los 401 y 403 los emite el API Gateway y no usan este envelope (ver GatewayError). Excepción: en /v2/debts/orders, RESOLUTION_ERROR responde 403 con este envelope.","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Mensaje legible del error. Es informativo: no lo parsees, usa `code` y, cuando venga, `details[].field`.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"array","description":"Array de detalles adicionales (validaciones por campo, etc.). Un JSON malformado devuelve `[{ \"field\": \"body\", \"issue\": \"Invalid JSON syntax\" }]`. No todos los 400 lo traen: cuando no viene, el `message` dice qué falló.","items":{"type":"object","properties":{"field":{"type":"string","description":"Campo que falló la validación","uniqueKey":"error.details.items.[INDEX].field","typeLabel":"string"},"issue":{"type":"string","description":"Descripción del problema","uniqueKey":"error.details.items.[INDEX].issue","typeLabel":"string"},"index":{"type":"integer","description":"Solo en los lotes de POST /v2/debts y POST /debts/cancel. Posición del item en `debts`.","uniqueKey":"error.details.items.[INDEX].index","typeLabel":"integer"},"externalRequestId":{"type":"string","description":"Solo en el modo lote de POST /v2/debts. externalRequestId del item.","uniqueKey":"error.details.items.[INDEX].externalRequestId","typeLabel":"string"},"productId":{"oneOf":[{"type":"string","description":"Solo en DELETE /payment-methods/{externalPaymentMethodId}. Producto de la adhesión.","uniqueKey":"error.details.items.[INDEX].productId.oneOf.0","typeLabel":"string"},{"type":"null","description":"Solo en DELETE /payment-methods/{externalPaymentMethodId}. Producto de la adhesión.","uniqueKey":"error.details.items.[INDEX].productId.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details.items.[INDEX].productId","typeLabel":"string | null"},"outcome":{"type":"string","enum":["DEACTIVATED","FAILED"],"description":"Solo en PAYMENT_METHOD_CASCADE_FAILED. Si la adhesión se dio de baja o no.","uniqueKey":"error.details.items.[INDEX].outcome","typeLabel":"enum\u003cstring>"}},"uniqueKey":"error.details.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error.details","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"requestId":{"type":"string","pattern":"^req_[a-zA-Z0-9]+$","description":"ID único del request para trazabilidad","isRequired":true,"uniqueKey":"requestId","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"INVALID_REQUEST","message":"\u003cstring>","details":[{"field":"\u003cstring>","issue":"\u003cstring>","index":123,"externalRequestId":"\u003cstring>","productId":"\u003cstring>","outcome":"DEACTIVATED"}]},"requestId":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"8e882920-abf7-4e45-8c8e-241256d68538":{"description":"BUSINESS_RULE_VIOLATION si externalClientId no corresponde a un contacto (`Contact ... does not exist.`); no se crea nada. También RESOLUTION_ERROR por companyCode que no pertenece a tu cliente.","content":{"application/json":{"schema":{"type":"object","required":["error","requestId"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["INVALID_REQUEST","BAD_REQUEST","RESOURCE_NOT_FOUND","RESOURCE_CONFLICT","RESOLUTION_ERROR","BUSINESS_RULE_VIOLATION","RATE_LIMITED","INTERNAL_ERROR","PARTIAL_UPDATE","NO_ACTIVE_PAYMENT_METHOD","COMPANY_WITHOUT_PRODUCT_MODALITY","COMPANY_WITHOUT_DEBT_ID_MODALITY","PAYMENT_METHOD_CASCADE_FAILED","PAYMENT_METHOD_NOT_DELETED"],"description":"Código de error estándar. BAD_REQUEST se usa cuando tu cliente tiene varias companies y no se envía `companyCode`. NO_ACTIVE_PAYMENT_METHOD y COMPANY_WITHOUT_PRODUCT_MODALITY aparecen en POST /adhesions. COMPANY_WITHOUT_DEBT_ID_MODALITY solo aparece en POST /v2/debts/orders/async. PAYMENT_METHOD_CASCADE_FAILED y PAYMENT_METHOD_NOT_DELETED solo aparecen en DELETE /payment-methods/{externalPaymentMethodId}. PARTIAL_UPDATE solo aparece en el 207 de PATCH /subscriptions/{id}: la suscripción se actualizó, pero alguna de sus deudas no. Los 401 y 403 los emite el API Gateway y no usan este envelope (ver GatewayError). Excepción: en /v2/debts/orders, RESOLUTION_ERROR responde 403 con este envelope.","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Mensaje legible del error. Es informativo: no lo parsees, usa `code` y, cuando venga, `details[].field`.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"array","description":"Array de detalles adicionales (validaciones por campo, etc.). Un JSON malformado devuelve `[{ \"field\": \"body\", \"issue\": \"Invalid JSON syntax\" }]`. No todos los 400 lo traen: cuando no viene, el `message` dice qué falló.","items":{"type":"object","properties":{"field":{"type":"string","description":"Campo que falló la validación","uniqueKey":"error.details.items.[INDEX].field","typeLabel":"string"},"issue":{"type":"string","description":"Descripción del problema","uniqueKey":"error.details.items.[INDEX].issue","typeLabel":"string"},"index":{"type":"integer","description":"Solo en los lotes de POST /v2/debts y POST /debts/cancel. Posición del item en `debts`.","uniqueKey":"error.details.items.[INDEX].index","typeLabel":"integer"},"externalRequestId":{"type":"string","description":"Solo en el modo lote de POST /v2/debts. externalRequestId del item.","uniqueKey":"error.details.items.[INDEX].externalRequestId","typeLabel":"string"},"productId":{"oneOf":[{"type":"string","description":"Solo en DELETE /payment-methods/{externalPaymentMethodId}. Producto de la adhesión.","uniqueKey":"error.details.items.[INDEX].productId.oneOf.0","typeLabel":"string"},{"type":"null","description":"Solo en DELETE /payment-methods/{externalPaymentMethodId}. Producto de la adhesión.","uniqueKey":"error.details.items.[INDEX].productId.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details.items.[INDEX].productId","typeLabel":"string | null"},"outcome":{"type":"string","enum":["DEACTIVATED","FAILED"],"description":"Solo en PAYMENT_METHOD_CASCADE_FAILED. Si la adhesión se dio de baja o no.","uniqueKey":"error.details.items.[INDEX].outcome","typeLabel":"enum\u003cstring>"}},"uniqueKey":"error.details.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error.details","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"requestId":{"type":"string","pattern":"^req_[a-zA-Z0-9]+$","description":"ID único del request para trazabilidad","isRequired":true,"uniqueKey":"requestId","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"INVALID_REQUEST","message":"\u003cstring>","details":[{"field":"\u003cstring>","issue":"\u003cstring>","index":123,"externalRequestId":"\u003cstring>","productId":"\u003cstring>","outcome":"DEACTIVATED"}]},"requestId":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"aa076407-bc45-4d05-a467-6e99bde41b61":{"apiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key","description":"API key del API Gateway de Tapi. Requerida en todas las operaciones. Distinta por ambiente (desarrollo, homologación, producción).\n","scopes":[],"schemeName":"apiKeyAuth"},"tapiAuth":{"type":"apiKey","in":"header","name":"x-authorization-token","description":"Token TAPI JWT. Requerido en todas las operaciones. Se envía sin prefijo \"Bearer\". Ej: x-authorization-token: eyJhbGci...\n","scopes":[],"schemeName":"tapiAuth"}}},"servers":{"1123fd2f-1c5e-46e4-a674-f5932378232a":{"url":"https://tapipay-facade.homo.tapila.cloud","description":"Homologación"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-api-key","description":"API key del API Gateway de Tapi. Requerida en todas las operaciones. Distinta por ambiente (desarrollo, homologación, producción).\n","scopes":[],"schemeName":"apiKeyAuth"},"schema":{"title":"x-api-key","type":"string","description":"API key del API Gateway de Tapi. Requerida en todas las operaciones. Distinta por ambiente (desarrollo, homologación, producción).\n","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"apiKeyAuth","name":"x-api-key"},{"scheme":{"type":"apiKey","in":"header","name":"x-authorization-token","description":"Token TAPI JWT. Requerido en todas las operaciones. Se envía sin prefijo \"Bearer\". Ej: x-authorization-token: eyJhbGci...\n","scopes":[],"schemeName":"tapiAuth"},"schema":{"title":"x-authorization-token","type":"string","description":"Token TAPI JWT. Requerido en todas las operaciones. Se envía sin prefijo \"Bearer\". Ej: x-authorization-token: eyJhbGci...\n","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"tapiAuth","name":"x-authorization-token"}],"title":"apiKeyAuth \u0026 tapiAuth"}]},"originalFileLocation":"api-reference/openapi.yaml"},"subdomain":"tapi-d0a74b1d","siteName":"Tapipay","title":"Crear link de pago - Tapipay","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"es":{"href":"/api-reference/payment-links/crear-link-de-pago","matchLevel":0},"en":{"href":"/api-reference/payment-links/crear-link-de-pago","matchLevel":0}}},"lastModified":"2026-11-17T15:26:06.854Z","originalFileLocation":"api-reference/payment-links/crear-link-de-pago.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=\"description\" content=\"Genera una liga de pago para cobrar sin conocer al deudor de antemano.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Tapipay\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/tapi-d0a74b1d/W5k8z0F4uKv5MVzy/_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/tapi-d0a74b1d/W5k8z0F4uKv5MVzy/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/tapi-d0a74b1d/W5k8z0F4uKv5MVzy/_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/tapi-d0a74b1d/W5k8z0F4uKv5MVzy/_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/tapi-d0a74b1d/W5k8z0F4uKv5MVzy/_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/tapi-d0a74b1d/W5k8z0F4uKv5MVzy/_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/tapi-d0a74b1d/W5k8z0F4uKv5MVzy/_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/tapi-d0a74b1d/W5k8z0F4uKv5MVzy/_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/tapi-d0a74b1d/W5k8z0F4uKv5MVzy/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Crear link de pago - Tapipay\">\u003cmeta data-mint-head property=\"og:description\" content=\"Genera una liga de pago para cobrar sin conocer al deudor de antemano.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Tapipay\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://devs.tapipay.la/api-reference/payment-links/crear-link-de-pago\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://tapi-d0a74b1d.mintlify.site/_mintlify/api/og/v2?division=Payment+Links\u0026amp;title=Crear+link+de+pago\u0026amp;description=Genera+una+liga+de+pago+para+cobrar+sin+conocer+al+deudor+de+antemano.\u0026amp;theme=2110198f209891629b816f1c\u0026amp;signature=0f629889629d01ef480b1b94d2611cde11ccaa1d36b3f0f25ec3f60bb0ab4cc4\">\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=\"Crear link de pago - Tapipay\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Genera una liga de pago para cobrar sin conocer al deudor de antemano.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://tapi-d0a74b1d.mintlify.site/_mintlify/api/og/v2?division=Payment+Links\u0026amp;title=Crear+link+de+pago\u0026amp;description=Genera+una+liga+de+pago+para+cobrar+sin+conocer+al+deudor+de+antemano.\u0026amp;theme=2110198f209891629b816f1c\u0026amp;signature=0f629889629d01ef480b1b94d2611cde11ccaa1d36b3f0f25ec3f60bb0ab4cc4\">\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/tapi-d0a74b1d/W5k8z0F4uKv5MVzy/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Tapipay\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#044B47\">\u003clink data-mint-head rel=\"canonical\" href=\"https://devs.tapipay.la/api-reference/payment-links/crear-link-de-pago\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/payment-links/crear-link-de-pago.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://devs.tapipay.la/#organization\",\"name\":\"Tapipay\",\"url\":\"https://devs.tapipay.la\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/tapi-d0a74b1d/Ee-T_CDRZ18YJiKr/logo/light.png?fit=max\u0026auto=format\u0026n=Ee-T_CDRZ18YJiKr\u0026q=85\u0026s=a650c74357b75b59b5494647173fef25\"}},{\"@type\":\"WebSite\",\"@id\":\"https://devs.tapipay.la#website\",\"name\":\"Tapipay\",\"url\":\"https://devs.tapipay.la\",\"publisher\":{\"@id\":\"https://devs.tapipay.la/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://devs.tapipay.la/api-reference/payment-links/crear-link-de-pago#webpage\",\"url\":\"https://devs.tapipay.la/api-reference/payment-links/crear-link-de-pago\",\"name\":\"Crear link de pago\",\"description\":\"Genera una liga de pago para cobrar sin conocer al deudor de antemano.\",\"dateModified\":\"2026-11-17T15:26:06.854Z\",\"isPartOf\":{\"@id\":\"https://devs.tapipay.la#website\"},\"breadcrumb\":{\"@id\":\"https://devs.tapipay.la/api-reference/payment-links/crear-link-de-pago#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://devs.tapipay.la/api-reference/payment-links/crear-link-de-pago#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Payment Links\",\"item\":\"https://devs.tapipay.la/api-reference/payment-links/listar-links-de-pago\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Crear link de pago\",\"item\":\"https://devs.tapipay.la/api-reference/payment-links/crear-link-de-pago\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://devs.tapipay.la/api-reference/payment-links/crear-link-de-pago#apireference\",\"headline\":\"Crear link de pago\",\"name\":\"Crear link de pago\",\"description\":\"Genera una liga de pago para cobrar sin conocer al deudor de antemano.\",\"url\":\"https://devs.tapipay.la/api-reference/payment-links/crear-link-de-pago\",\"mainEntityOfPage\":{\"@id\":\"https://devs.tapipay.la/api-reference/payment-links/crear-link-de-pago#webpage\"},\"dateModified\":\"2026-11-17T15:26:06.854Z\",\"publisher\":{\"@id\":\"https://devs.tapipay.la/#organization\"},\"isPartOf\":{\"@id\":\"https://devs.tapipay.la#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Tapipay\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Tapipay\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/payment-links/crear-link-de-pago.md","siteName":"Tapipay","nav":{"global":null,"languages":[{"language":"es","default":true,"tabs":[{"tab":"Guías","pages":[{"title":"Guías","href":"/es"}]},{"tab":"API Reference","groups":[{"group":"Contacts","pages":[{"title":"Listar contactos","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /contacts","href":"/api-reference/contacts/listar-contactos"},{"title":"Crear contacto","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /contacts","href":"/api-reference/contacts/crear-contacto"},{"title":"Obtener contacto","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /contacts/{id}","href":"/api-reference/contacts/obtener-contacto"},{"title":"Actualizar contacto","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml patch /contacts/{id}","href":"/api-reference/contacts/actualizar-contacto"}]},{"group":"Products","pages":[{"title":"Listar productos","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /products","href":"/api-reference/products/listar-productos"},{"title":"Crear producto","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /products","href":"/api-reference/products/crear-producto"},{"title":"Obtener producto","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /products/{id}","href":"/api-reference/products/obtener-producto"},{"title":"Eliminar producto","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /products/{id}","href":"/api-reference/products/eliminar-producto"},{"title":"Actualizar producto","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml patch /products/{id}","href":"/api-reference/products/actualizar-producto"}]},{"group":"Debts","pages":[{"title":"Crear deuda con debito automatico","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v2/debts","href":"/api-reference/debts/crear-deuda-con-debito-automatico"},{"title":"Listar deudas","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /debts","href":"/api-reference/debts/listar-deudas"},{"title":"Obtener deuda","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /debts/{id}","href":"/api-reference/debts/obtener-deuda"},{"title":"Actualizar deuda","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml patch /debts/{id}","href":"/api-reference/debts/actualizar-deuda"},{"title":"Cancelar deudas en lote","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /debts/cancel","href":"/api-reference/debts/cancelar-deudas-en-lote"},{"title":"Cancelar deuda","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /debts/{id}/cancel","href":"/api-reference/debts/cancelar-deuda"}]},{"group":"Payment methods","pages":[{"title":"Listar medios de pago del usuario","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /payment-methods","href":"/api-reference/payment-methods/listar-medios-de-pago-del-usuario"},{"title":"Eliminar un medio de pago del usuario","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /payment-methods/{externalPaymentMethodId}","href":"/api-reference/payment-methods/eliminar-un-medio-de-pago-del-usuario"}]},{"group":"Adhesions","pages":[{"title":"Adherir un usuario a un producto","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /adhesions","href":"/api-reference/adhesions/adherir-un-usuario-a-un-producto"},{"title":"Dar de baja la adhesión de un usuario a un producto","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /adhesions/cancel","href":"/api-reference/adhesions/dar-de-baja-la-adhesión-de-un-usuario-a-un-producto"}]},{"group":"Payment orders","pages":[{"title":"Crear orden de pago","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v2/debts/orders/async","href":"/api-reference/payment-orders/crear-orden-de-pago"},{"title":"Consultar orden de pago","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v2/debts/orders","href":"/api-reference/payment-orders/consultar-orden-de-pago"}]},{"group":"Subscriptions","pages":[{"title":"Listar suscripciones","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /subscriptions","href":"/api-reference/subscriptions/listar-suscripciones"},{"title":"Crear suscripción","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /subscriptions","href":"/api-reference/subscriptions/crear-suscripción"},{"title":"Obtener suscripción","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /subscriptions/{id}","href":"/api-reference/subscriptions/obtener-suscripción"},{"title":"Actualizar suscripción","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml patch /subscriptions/{id}","href":"/api-reference/subscriptions/actualizar-suscripción"},{"title":"Pausar suscripción","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /subscriptions/{id}/pause","href":"/api-reference/subscriptions/pausar-suscripción"},{"title":"Reanudar suscripción","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /subscriptions/{id}/resume","href":"/api-reference/subscriptions/reanudar-suscripción"},{"title":"Cancelar suscripción","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /subscriptions/{id}/cancel","href":"/api-reference/subscriptions/cancelar-suscripción"},{"title":"Listar deudas de la suscripción","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /subscriptions/{id}/debts","href":"/api-reference/subscriptions/listar-deudas-de-la-suscripción"}]},{"group":"Payment Links","pages":[{"title":"Listar links de pago","description":"Devuelve tus links de pago con filtros y paginación, ordenados por externalPaymentLinkId descendente (no por fecha).","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /payment-links","href":"/api-reference/payment-links/listar-links-de-pago"},{"title":"Crear link de pago","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /payment-links","href":"/api-reference/payment-links/crear-link-de-pago"},{"title":"Obtener link de pago","description":"Recupera un link de pago por su paymentLinkId.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /payment-links/{id}","href":"/api-reference/payment-links/obtener-link-de-pago"},{"title":"Actualizar link de pago","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml patch /payment-links/{id}","href":"/api-reference/payment-links/actualizar-link-de-pago"},{"title":"Cancelar link de pago","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /payment-links/{id}/cancel","href":"/api-reference/payment-links/cancelar-link-de-pago"},{"title":"Listar pagos del link","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /payment-links/{id}/payments","href":"/api-reference/payment-links/listar-pagos-del-link"}]}]},{"tab":"Conecta tu MCP","pages":[{"title":"Conecta tu MCP","href":"/es/mcp"}]}]},{"language":"en","tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/en"}]},{"tab":"API Reference","groups":[{"group":"Contacts","pages":[{"title":"Listar contactos","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /contacts","href":"/api-reference/contacts/listar-contactos"},{"title":"Crear contacto","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /contacts","href":"/api-reference/contacts/crear-contacto"},{"title":"Obtener contacto","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /contacts/{id}","href":"/api-reference/contacts/obtener-contacto"},{"title":"Actualizar contacto","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml patch /contacts/{id}","href":"/api-reference/contacts/actualizar-contacto"}]},{"group":"Products","pages":[{"title":"Listar productos","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /products","href":"/api-reference/products/listar-productos"},{"title":"Crear producto","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /products","href":"/api-reference/products/crear-producto"},{"title":"Obtener producto","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /products/{id}","href":"/api-reference/products/obtener-producto"},{"title":"Eliminar producto","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /products/{id}","href":"/api-reference/products/eliminar-producto"},{"title":"Actualizar producto","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml patch /products/{id}","href":"/api-reference/products/actualizar-producto"}]},{"group":"Debts","pages":[{"title":"Crear deuda con debito automatico","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v2/debts","href":"/api-reference/debts/crear-deuda-con-debito-automatico"},{"title":"Listar deudas","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /debts","href":"/api-reference/debts/listar-deudas"},{"title":"Obtener deuda","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /debts/{id}","href":"/api-reference/debts/obtener-deuda"},{"title":"Actualizar deuda","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml patch /debts/{id}","href":"/api-reference/debts/actualizar-deuda"},{"title":"Cancelar deudas en lote","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /debts/cancel","href":"/api-reference/debts/cancelar-deudas-en-lote"},{"title":"Cancelar deuda","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /debts/{id}/cancel","href":"/api-reference/debts/cancelar-deuda"}]},{"group":"Payment methods","pages":[{"title":"Listar medios de pago del usuario","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /payment-methods","href":"/api-reference/payment-methods/listar-medios-de-pago-del-usuario"},{"title":"Eliminar un medio de pago del usuario","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /payment-methods/{externalPaymentMethodId}","href":"/api-reference/payment-methods/eliminar-un-medio-de-pago-del-usuario"}]},{"group":"Adhesions","pages":[{"title":"Adherir un usuario a un producto","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /adhesions","href":"/api-reference/adhesions/adherir-un-usuario-a-un-producto"},{"title":"Dar de baja la adhesión de un usuario a un producto","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /adhesions/cancel","href":"/api-reference/adhesions/dar-de-baja-la-adhesión-de-un-usuario-a-un-producto"}]},{"group":"Payment orders","pages":[{"title":"Crear orden de pago","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /v2/debts/orders/async","href":"/api-reference/payment-orders/crear-orden-de-pago"},{"title":"Consultar orden de pago","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /v2/debts/orders","href":"/api-reference/payment-orders/consultar-orden-de-pago"}]},{"group":"Subscriptions","pages":[{"title":"Listar suscripciones","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /subscriptions","href":"/api-reference/subscriptions/listar-suscripciones"},{"title":"Crear suscripción","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /subscriptions","href":"/api-reference/subscriptions/crear-suscripción"},{"title":"Obtener suscripción","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /subscriptions/{id}","href":"/api-reference/subscriptions/obtener-suscripción"},{"title":"Actualizar suscripción","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml patch /subscriptions/{id}","href":"/api-reference/subscriptions/actualizar-suscripción"},{"title":"Pausar suscripción","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /subscriptions/{id}/pause","href":"/api-reference/subscriptions/pausar-suscripción"},{"title":"Reanudar suscripción","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /subscriptions/{id}/resume","href":"/api-reference/subscriptions/reanudar-suscripción"},{"title":"Cancelar suscripción","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /subscriptions/{id}/cancel","href":"/api-reference/subscriptions/cancelar-suscripción"},{"title":"Listar deudas de la suscripción","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /subscriptions/{id}/debts","href":"/api-reference/subscriptions/listar-deudas-de-la-suscripción"}]},{"group":"Payment Links","pages":[{"title":"Listar links de pago","description":"Devuelve tus links de pago con filtros y paginación, ordenados por externalPaymentLinkId descendente (no por fecha).","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /payment-links","href":"/api-reference/payment-links/listar-links-de-pago"},{"title":"Crear link de pago","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /payment-links","href":"/api-reference/payment-links/crear-link-de-pago"},{"title":"Obtener link de pago","description":"Recupera un link de pago por su paymentLinkId.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /payment-links/{id}","href":"/api-reference/payment-links/obtener-link-de-pago"},{"title":"Actualizar link de pago","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml patch /payment-links/{id}","href":"/api-reference/payment-links/actualizar-link-de-pago"},{"title":"Cancelar link de pago","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /payment-links/{id}/cancel","href":"/api-reference/payment-links/cancelar-link-de-pago"},{"title":"Listar pagos del link","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /payment-links/{id}/payments","href":"/api-reference/payment-links/listar-pagos-del-link"}]}]},{"tab":"Connect your MCP","pages":[{"title":"Connect your MCP","href":"/en/mcp"}]}]}]},"basePath":"","title":"Crear link de pago - Tapipay","deploymentId":"dpl_9bQLTw9nc2h9csDGYcKwWenPcQWn","buildId":"dpl_9bQLTw9nc2h9csDGYcKwWenPcQWn","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-D4yvBxwa.js","snippetPresets-CkhhQaIQ.js","utils-XnMGX2lF.js","style-to-object-BY3JEAdk.js","utils-CRXL1dwr.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-DvwRKZnA.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DYtgUc7n.js","_Uint8Array-D8z7zjjJ.js","isObject-FP1Yky1u.js","ApiExamples-RYQSJVS4.js","usePlaygroundInputsStore-k_R_BTDL.js","shallow-BwVhzryZ.js","isEqual-Cx5TQjMc.js","CodeSnippets-BDe2dS5N.js","CodeSnippet-C1QlaNYl.js","use-playground-group-access-DyQ_1IIe.js","Page-DQd9HN9r.js","api-description-markdown-BpDftTKT.js","DynamicMarkdown-CZT_WAnN.js","SectionHeading-K1iuDm9j.js","MethodPill-Dx3JIwHJ.js","getPastedJson-buPTdYs_.js","Check2Icon-DmMrzBYX.js","axios-CsQoIw0U.js","Markdown-erv2ryQz.js","AssistantPageLink-DJ01X1Sn.js","dist-D9mz3EIS.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}