Use this endpoint to manually link a user’s merchant account in the development environment for testing purposes. You don’t need to install or invoke the client-side SDK. Calling this endpoint generates a linked merchant account on the Knot platform for a specific user and merchant. It can also optionally run the workflow of a given product on Knot’s platform.
The card_id parameter is required when card_switcher is true. The card_switcher parameter is mutually exclusive with the transactions parameter. You cannot use both in the same request.
You can test all of the following without using the client-side SDK:
Link a merchant account to the Knot platform.
Receive notification of the link via the AUTHENTICATED event to your webhook.
You can test all of the following without using the client-side SDK:
Link a merchant account to the Knot platform.
Receive notification of the link via the AUTHENTICATED event to your webhook.
Generate a sample subscription.
Receive notification of the subscription via the NEW_SUBSCRIPTIONS_AVAILABLE event to your webhook.
Only the sample merchants generate a sample subscription after you link them with this endpoint. Linking any other merchant doesn’t generate a sample subscription.
You can test all of the following without using the client-side SDK:
Link a merchant account to the Knot platform.
Receive notification of the link via the AUTHENTICATED event to your webhook.
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password. Use your client_id as the username and your secret as the password value.
Body
application/json
The input parameters required for linking a merchant account in development.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Knot","colors":{"primary":"#0F0E0E","light":"#D8D8D8","dark":"#0F0E0E"},"logo":{"light":"https://mintcdn.com/knot/VBuG2prLV3p6xOTo/logo/light.svg?fit=max\u0026auto=format\u0026n=VBuG2prLV3p6xOTo\u0026q=85\u0026s=fd06fd47577a90c8e224072b4be0e5dd","dark":"https://mintcdn.com/knot/VBuG2prLV3p6xOTo/logo/dark.svg?fit=max\u0026auto=format\u0026n=VBuG2prLV3p6xOTo\u0026q=85\u0026s=3ec182904f4fcae0296bd34329d1ffa0","href":"https://www.knotapi.com"},"favicon":"https://mintcdn.com/knot/VBuG2prLV3p6xOTo/favicon.svg?fit=max\u0026auto=format\u0026n=VBuG2prLV3p6xOTo\u0026q=85\u0026s=47782d8aa08991b4c5e03be1fb07dcd0","api":{"openapi":"api-reference/openapi.json"},"navbar":{"links":[{"href":"https://knotapi.com/careers","label":"We're hiring"}],"primary":{"type":"button","label":"Dashboard","href":"https://dashboard.knotapi.com"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/knotapi","x":"https://x.com/KnotAPIs"},"links":[{"header":"Products","items":[{"label":"CardSwitcher™","href":"https://www.knotapi.com/cardswitcher"},{"label":"TransactionLink™","href":"https://www.knotapi.com/txn-link"},{"label":"AgenticShopping™","href":"https://www.knotapi.com/agentic-shopping"},{"label":"AccountUpdater™","href":"https://www.knotapi.com/accountupdater"}]},{"header":"Use Cases","items":[{"label":"Personal Banking","href":"https://www.knotapi.com/personal-banking"},{"label":"Business Banking","href":"https://www.knotapi.com/business-banking"},{"label":"Merchants","href":"https://www.knotapi.com/merchants"},{"label":"BaaS","href":"https://www.knotapi.com/baas"}]},{"header":"Company","items":[{"label":"About Us","href":"https://www.knotapi.com/about-us"},{"label":"Trust Center","href":"https://trust.knotapi.com/"},{"label":"Contact","href":"https://www.knotapi.com/contact"},{"label":"Careers","href":"https://knotapi.com/careers"}]},{"header":"Legal","items":[{"label":"Terms \u0026 Conditions","href":"https://www.knotapi.com/terms"},{"label":"Privacy Policy","href":"https://www.knotapi.com/privacy"}]}]},"search":{"prompt":"Search or ask AI..."},"seo":{"organization":{"name":"Knot","url":"https://www.knotapi.com","sameAs":["https://www.linkedin.com/company/knotapi","https://x.com/KnotAPIs"]}},"fonts":{"heading":{"family":"Geist","weight":500},"body":{"family":"Geist","weight":400}},"styling":{"codeblocks":"system","latex":false},"integrations":{"segment":{"key":"2VQVWDiEQctuTfDIREdqA3l0KGlREyN5"}},"banner":{"content":"Build with AI in your IDE: install the [Knot skills](/ai/skills) and [MCP server](/ai/mcp-server).","dismissible":true},"errors":{"404":{"redirect":false,"title":"Hello there...","description":"This page doesn’t exist, but your next opportunity might 👀. Check out [open roles at Knot](https://knotapi.com/careers). Looking for documentation? Start at the [introduction](/), browse the [documentation index (llms.txt)](/llms.txt) or [sitemap](/sitemap.xml), or [contact Knot](https://www.knotapi.com/contact/)."}},"contextual":{"options":["assistant","copy","add-mcp","chatgpt","claude","cursor","vscode"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"knot","hasAudioNarration":true,"actualSubdomain":"knot","customDomains":["docs.knotapi.com"],"gitSource":{"type":"github","owner":"millionscard","repo":"knot-api-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ada2060f7b413b0bdc36c87","collectionId":"135a213d-7d45-4579-be18-027fbafb0e08","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ada2060f7b413b0bdc36c87"},"feedback":{"edits":false,"thumbs":true,"issues":true,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6adbb6653f7cf1d32f8da8b7","clientVersion":"0.0.3990","searchFilterCounts":[{"language":"default","tag":"Docs","count":74},{"language":"default","tag":"API Reference","count":47},{"language":"default","tag":"Webhook Events","count":28},{"language":"default","tag":"CardSwitcher","count":17},{"language":"default","tag":"TransactionLink","count":16},{"language":"default","tag":"Merchant Account Linking","count":13},{"language":"default","tag":"SubscriptionManager","count":12},{"language":"default","tag":"SDK","count":11},{"language":"default","tag":"Shopping","count":9},{"language":"default","tag":"General","count":8}],"searchSettings":{"showContentSnippets":true,"isFiltersEnabled":false}},"assistantConfig":{"enableStarterQuestions":true,"enableContextualStarterQuestions":false,"deflection":{"enabled":true,"email":"product@knotapi.com"}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","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":"editor-v7-file-tree","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":"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":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","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":"per-site-search-delta","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":"editor-private-page-search","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":"editor-nav-generations","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":"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":"byok-sep-25","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","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":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[{"_id":"6900107fa0d9fd2c40a2a17e","deploymentId":"67259f59f39b3bc1a898c425","questionText":"How do I get a list of available merchants?","status":"active","generatedBy":"manual","createdAt":"2025-10-28T00:38:23.158Z","updatedAt":"2025-10-28T00:38:23.158Z","__v":0},{"_id":"69001016a0d9fd2c40a27dce","deploymentId":"67259f59f39b3bc1a898c425","questionText":"How do I send card data to Knot?","status":"active","generatedBy":"manual","createdAt":"2025-10-28T00:36:38.949Z","updatedAt":"2025-10-28T00:36:38.949Z","__v":0},{"_id":"69000fe3a0d9fd2c40a26975","deploymentId":"67259f59f39b3bc1a898c425","questionText":"How do I create a session?","status":"active","generatedBy":"manual","createdAt":"2025-10-28T00:35:47.577Z","updatedAt":"2025-10-28T00:35:47.577Z","__v":0}],"isAtlas":false,"googleFontsInlined":true},"customCss":[{"filePath":"custom.css","content":"html[data-current-path=\"/api-reference/work-at-knot/apply\"] #sidebar{display:none}html[data-current-path=\"/api-reference/work-at-knot/apply\"] #content-area{margin-left:0;padding-left:0;max-width:100%}"}],"page":{"pagePath":"api-reference/development/link-account","slug":"/api-reference/development/link-account","pageMetadata":{"title":"Link Account","openapi":"POST /development/accounts/link","description":"Link a merchant account in development.","href":"/api-reference/development/link-account"},"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: \"Link a merchant account in development.\"\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`,li:`li`,ol:`ol`,p:`p`,..._provideComponents(),...props.components},{Heading,Note,Tab,Tabs,Tip}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(Tip,{children:_jsxs(_components.p,{children:[`Before using this endpoint, we recommend setting up a webhook for the development environment in the `,_jsx(_components.a,{href:`https://dashboard.knotapi.com/developers/webhooks`,children:`Knot Dashboard`}),` if you have not done so already.`]})}),`\n`,_jsx(Heading,{level:`4`,id:`overview`,children:`Overview`}),`\n`,_jsx(_components.p,{children:`Use this endpoint to manually link a user’s merchant account in the development environment for testing purposes. You don’t need to install or invoke the client-side SDK. Calling this endpoint generates a linked merchant account on the Knot platform for a specific user and merchant. It can also optionally run the workflow of a given product on Knot’s platform.`}),`\n`,_jsx(Heading,{level:`4`,id:`usage`,children:`Usage`}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`CardSwitcher`,id:`cardswitcher`,children:[_jsx(_components.p,{children:`You can test all of the following without using the client-side SDK:`}),_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Link a merchant account to the Knot platform.`}),`\n`,_jsxs(_components.li,{children:[`Receive notification of the link via the `,_jsx(_components.a,{href:`/link/webhook-events/authenticated`,children:_jsx(_components.code,{children:`AUTHENTICATED`})}),` event to your webhook, then POST card data to the `,_jsx(_components.a,{href:`/api-reference/products/card-switcher/switch-card-jwe`,children:_jsx(_components.code,{children:`Send Card (JWE)`})}),` or `,_jsx(_components.a,{href:`/api-reference/products/card-switcher/switch-card`,children:_jsx(_components.code,{children:`Send Card`})}),` endpoint.`]}),`\n`,_jsxs(_components.li,{children:[`Receive notification of the result via the `,_jsx(_components.a,{href:`/card-switcher/webhook-events/card-updated`,children:_jsx(_components.code,{children:`CARD_UPDATED`})}),` or `,_jsx(_components.a,{href:`/card-switcher/webhook-events/card-failed`,children:_jsx(_components.code,{children:`CARD_FAILED`})}),` event.`]}),`\n`]}),_jsx(Note,{children:_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`card_id`}),` parameter is required when `,_jsx(_components.code,{children:`card_switcher`}),` is `,_jsx(_components.code,{children:`true`}),`. The `,_jsx(_components.code,{children:`card_switcher`}),` parameter is mutually exclusive with the `,_jsx(_components.code,{children:`transactions`}),` parameter. You cannot use both in the same request.`]})})]}),_jsxs(Tab,{title:`TransactionLink`,id:`transactionlink`,children:[_jsx(_components.p,{children:`You can test all of the following without using the client-side SDK:`}),_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Link a merchant account to the Knot platform.`}),`\n`,_jsxs(_components.li,{children:[`Receive notification of the link via the `,_jsx(_components.a,{href:`/link/webhook-events/authenticated`,children:_jsx(_components.code,{children:`AUTHENTICATED`})}),` event to your webhook.`]}),`\n`,_jsx(_components.li,{children:`Generate sample transactions.`}),`\n`,_jsxs(_components.li,{children:[`Receive notification of the transactions via the `,_jsx(_components.a,{href:`/transaction-link/webhook-events/new-transactions-available`,children:_jsx(_components.code,{children:`NEW_TRANSACTIONS_AVAILABLE`})}),` event to your webhook.`]}),`\n`]})]}),_jsxs(Tab,{title:`SubscriptionManager`,id:`subscriptionmanager`,children:[_jsx(_components.p,{children:`You can test all of the following without using the client-side SDK:`}),_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Link a merchant account to the Knot platform.`}),`\n`,_jsxs(_components.li,{children:[`Receive notification of the link via the `,_jsx(_components.code,{children:`AUTHENTICATED`}),` event to your webhook.`]}),`\n`,_jsx(_components.li,{children:`Generate a sample subscription.`}),`\n`,_jsxs(_components.li,{children:[`Receive notification of the subscription via the `,_jsx(_components.code,{children:`NEW_SUBSCRIPTIONS_AVAILABLE`}),` event to your webhook.`]}),`\n`]}),_jsx(Note,{children:_jsxs(_components.p,{children:[`Only the `,_jsx(_components.a,{href:`/subscription-manager/quickstart#testing`,children:`sample merchants`}),` generate a sample subscription after you link them with this endpoint. Linking any other merchant doesn’t generate a sample subscription.`]})})]}),_jsxs(Tab,{title:`Shopping`,id:`shopping`,children:[_jsx(_components.p,{children:`You can test all of the following without using the client-side SDK:`}),_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Link a merchant account to the Knot platform.`}),`\n`,_jsxs(_components.li,{children:[`Receive notification of the link via the `,_jsx(_components.a,{href:`/link/webhook-events/authenticated`,children:_jsx(_components.code,{children:`AUTHENTICATED`})}),` event to your webhook.`]}),`\n`,_jsxs(_components.li,{children:[`Begin making requests to `,_jsx(_components.a,{href:`/api-reference/products/shopping/sync-cart`,children:`Sync Cart`}),` and `,_jsx(_components.a,{href:`/api-reference/products/shopping/checkout`,children:`Checkout`}),`.`]}),`\n`]})]})]})]})}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":{"codeStyling":"system","config":{},"pageMetadata":{"title":"Link Account","openapi":"POST /development/accounts/link","description":"Link a merchant account in development.","href":"/api-reference/development/link-account"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Overview","slug":"overview","depth":4,"children":[]},{"title":"Usage","slug":"usage","depth":4,"children":[]}],"codeExamples":{}},"jsLinks":[],"narration":{"path":"api-reference/development/link-account","locale":"en","estimatedDurationSec":138},"openApiReferenceData":{"operation":{"operationId":"development_accounts_link","summary":"Link Account","description":"Link a merchant account in development.","x-mint":{"mcp":{"enabled":true,"name":"link-account","description":"Link a merchant account in development."}},"requestBody":"9b050826-0815-4450-8a4c-29da54bfab5a","responses":{"200":"f09be11a-7616-483f-a697-862be9167ce3","400":"7879078f-519a-4c5f-be74-fd4de1657455","401":"8bed01db-c948-47e9-8f99-4f0298f573bf","500":"f1765a43-6cde-448c-b222-da6e605c162e"},"method":"post","type":"path","servers":["6b9901c7-82d0-40d4-9716-3747869a3e94"],"security":["2c7e4c2a-a79b-42a8-99a3-0f1e206b9c54"],"path":"/development/accounts/link","baseUrlOptions":["https://development.knotapi.com"],"title":"Link Account","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"description":"The input parameters required for linking a merchant account in development.","required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","title":"CardSwitcher","required":["external_user_id","merchant_id","card_switcher","card_id"],"properties":{"external_user_id":{"type":"string","description":"Your unique identifier for the user.","example":"abc123","isRequired":true,"uniqueKey":"oneOf.0.external_user_id","typeLabel":"string"},"merchant_id":{"type":"integer","description":"Unique identifier for the merchant.","example":19,"isRequired":true,"uniqueKey":"oneOf.0.merchant_id","typeLabel":"integer"},"card_switcher":{"type":"boolean","description":"When set to true, simulates the card switcher flow.","example":true,"isRequired":true,"uniqueKey":"oneOf.0.card_switcher","typeLabel":"boolean"},"card_id":{"type":"string","description":"Your unique identifier for a specific card. Required when `card_switcher` is `true`.","example":"81n9al10a0ayn13","isRequired":true,"uniqueKey":"oneOf.0.card_id","typeLabel":"string"},"metadata":{"oneOf":[{"type":"object","additionalProperties":{"type":"string","maxLength":500,"uniqueKey":"oneOf.0.metadata.oneOf.0.additionalProperties","typeLabel":"string"},"maxProperties":10,"description":"Optional key-value pairs to include in webhook payloads. Maximum 10 keys, 500 characters per value.","example":{"reference_token":"abc123","trace_id":"def456"},"default":null,"uniqueKey":"oneOf.0.metadata.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":{"type":"string","maxLength":500,"uniqueKey":"oneOf.0.metadata.oneOf.1.additionalProperties","typeLabel":"string"},"maxProperties":10,"description":"Optional key-value pairs to include in webhook payloads. Maximum 10 keys, 500 characters per value.","example":{"reference_token":"abc123","trace_id":"def456"},"default":null,"uniqueKey":"oneOf.0.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.metadata","typeLabel":"object | null"}},"uniqueKey":"oneOf.0","typeLabel":"CardSwitcher · object"},{"type":"object","title":"TransactionLink","required":["external_user_id","merchant_id","transactions"],"properties":{"external_user_id":{"type":"string","description":"Your unique identifier for the user.","example":"abc123","isRequired":true,"uniqueKey":"oneOf.1.external_user_id","typeLabel":"string"},"merchant_id":{"type":"integer","description":"Unique identifier for the merchant.","example":19,"isRequired":true,"uniqueKey":"oneOf.1.merchant_id","typeLabel":"integer"},"transactions":{"type":"object","description":"Configuration for whether to receive transactions when linking the account.","properties":{"new":{"type":"boolean","description":"Whether to generate new transactions and receive notification of them via the [`NEW_TRANSACTIONS_AVAILABLE`](/transaction-link/webhook-events/new-transactions-available) event to your webhook for testing.","example":true,"default":true,"isRequired":true,"uniqueKey":"oneOf.1.transactions.new","typeLabel":"boolean"},"updated":{"type":"boolean","description":"Whether to update newly-generated transactions and receive notification of them via the [`UPDATED_TRANSACTIONS_AVAILABLE`](/transaction-link/webhook-events/updated-transactions-available) event to your webhook for testing. You must pass `new: true` in the request to use this parameter.","example":false,"default":false,"uniqueKey":"oneOf.1.transactions.updated","typeLabel":"boolean"}},"required":["new"],"isRequired":true,"uniqueKey":"oneOf.1.transactions","typeLabel":"object"},"metadata":{"oneOf":[{"type":"object","additionalProperties":{"type":"string","maxLength":500,"uniqueKey":"oneOf.1.metadata.oneOf.0.additionalProperties","typeLabel":"string"},"maxProperties":10,"description":"Optional key-value pairs to include in webhook payloads. Maximum 10 keys, 500 characters per value.","example":{"reference_token":"abc123","trace_id":"def456"},"default":null,"uniqueKey":"oneOf.1.metadata.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":{"type":"string","maxLength":500,"uniqueKey":"oneOf.1.metadata.oneOf.1.additionalProperties","typeLabel":"string"},"maxProperties":10,"description":"Optional key-value pairs to include in webhook payloads. Maximum 10 keys, 500 characters per value.","example":{"reference_token":"abc123","trace_id":"def456"},"default":null,"uniqueKey":"oneOf.1.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.metadata","typeLabel":"object | null"}},"uniqueKey":"oneOf.1","typeLabel":"TransactionLink · object"},{"type":"object","title":"SubscriptionManager","required":["external_user_id","merchant_id"],"properties":{"external_user_id":{"type":"string","description":"Your unique identifier for the user.","example":"abc123","isRequired":true,"uniqueKey":"oneOf.2.external_user_id","typeLabel":"string"},"merchant_id":{"type":"integer","description":"Unique identifier for the merchant.","example":19,"isRequired":true,"uniqueKey":"oneOf.2.merchant_id","typeLabel":"integer"},"metadata":{"oneOf":[{"type":"object","additionalProperties":{"type":"string","maxLength":500,"uniqueKey":"oneOf.2.metadata.oneOf.0.additionalProperties","typeLabel":"string"},"maxProperties":10,"description":"Optional key-value pairs to include in webhook payloads. Maximum 10 keys, 500 characters per value.","example":{"reference_token":"abc123","trace_id":"def456"},"default":null,"uniqueKey":"oneOf.2.metadata.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":{"type":"string","maxLength":500,"uniqueKey":"oneOf.2.metadata.oneOf.1.additionalProperties","typeLabel":"string"},"maxProperties":10,"description":"Optional key-value pairs to include in webhook payloads. Maximum 10 keys, 500 characters per value.","example":{"reference_token":"abc123","trace_id":"def456"},"default":null,"uniqueKey":"oneOf.2.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.metadata","typeLabel":"object | null"}},"uniqueKey":"oneOf.2","typeLabel":"SubscriptionManager · object"},{"type":"object","title":"Shopping","required":["external_user_id","merchant_id"],"properties":{"external_user_id":{"type":"string","description":"Your unique identifier for the user.","example":"abc123","isRequired":true,"uniqueKey":"oneOf.3.external_user_id","typeLabel":"string"},"merchant_id":{"type":"integer","description":"Unique identifier for the merchant.","example":19,"isRequired":true,"uniqueKey":"oneOf.3.merchant_id","typeLabel":"integer"},"metadata":{"oneOf":[{"type":"object","additionalProperties":{"type":"string","maxLength":500,"uniqueKey":"oneOf.3.metadata.oneOf.0.additionalProperties","typeLabel":"string"},"maxProperties":10,"description":"Optional key-value pairs to include in webhook payloads. Maximum 10 keys, 500 characters per value.","example":{"reference_token":"abc123","trace_id":"def456"},"default":null,"uniqueKey":"oneOf.3.metadata.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":{"type":"string","maxLength":500,"uniqueKey":"oneOf.3.metadata.oneOf.1.additionalProperties","typeLabel":"string"},"maxProperties":10,"description":"Optional key-value pairs to include in webhook payloads. Maximum 10 keys, 500 characters per value.","example":{"reference_token":"abc123","trace_id":"def456"},"default":null,"uniqueKey":"oneOf.3.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.3.metadata","typeLabel":"object | null"}},"uniqueKey":"oneOf.3","typeLabel":"Shopping · object"}],"uniqueKey":"","typeLabel":"CardSwitcher · object | TransactionLink · object | SubscriptionManager · object | Shopping · object"},"examples":{"CardSwitcher":{"title":"CardSwitcher","value":{"external_user_id":"abc123","merchant_id":19,"card_switcher":true,"card_id":"81n9al10a0ayn13"}},"TransactionLink":{"title":"TransactionLink","value":{"external_user_id":"abc123","merchant_id":45,"transactions":{"new":true,"updated":false}}},"SubscriptionManager":{"title":"SubscriptionManager","value":{"external_user_id":"abc123","merchant_id":16}},"Shopping":{"title":"Shopping","value":{"external_user_id":"abc123","merchant_id":44}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"f09be11a-7616-483f-a697-862be9167ce3":{"description":"Successful request.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Success message.","example":"Success","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"Success"}}},"exampleType":"generated"}},"exampleType":"generated"},"7879078f-519a-4c5f-be74-fd4de1657455":{"description":"Bad request.","content":{"application/json":{"schema":{"type":"object","properties":{"error_type":{"type":"string","description":"Type of error.","enum":["INVALID_INPUT","INVALID_REQUEST","USER_ERROR","SESSION_ERROR","MERCHANT_ACCOUNT_ERROR","MERCHANT_ERROR","SUBSCRIPTION_ERROR","TRANSACTION_ERROR","CART_ERROR","WEBHOOK_ENDPOINT_ERROR","REQUEST_LOG_ERROR"],"example":"INVALID_REQUEST","uniqueKey":"error_type","typeLabel":"enum\u003cstring>"},"error_code":{"type":"string","description":"Error code.","enum":["INVALID_API_KEYS","INVALID_FIELD","INVALID_JWE","INVALID_CURSOR_FORMAT","USER_NOT_FOUND","MERCHANT_ACCOUNT_NOT_FOUND","MERCHANT_ACCOUNT_DISCONNECTED","SESSION_NOT_FOUND","EXTEND_NOT_SUPPORTED","MERCHANT_UNAVAILABLE","NO_ACCESS","TRANSACTION_NOT_FOUND","NO_TRANSACTIONS","SUBSCRIPTION_NOT_FOUND","CANCELLABLE_SUBSCRIPTION_NOT_FOUND","MULTIPLE_CANCELLABLE_SUBSCRIPTIONS_FOUND","ONGOING_OPERATION","CART_NOT_FOUND","FULFILLMENT_NOT_FOUND","INVALID_ACCESS_TOKEN","INSUFFICIENT_SCOPE","INSUFFICIENT_ROLE","WEBHOOK_ENDPOINT_NOT_FOUND","WEBHOOK_ENDPOINT_LIMIT_REACHED","WEBHOOK_ENDPOINT_ALREADY_EXISTS","RATE_LIMIT_EXCEEDED","ENVIRONMENT_MISMATCH","REQUEST_LOG_NOT_FOUND","REQUEST_LOG_QUERY_TIMEOUT"],"example":"INVALID_FIELD","uniqueKey":"error_code","typeLabel":"enum\u003cstring>"},"error_message":{"type":"string","description":"Detailed error message.","example":"The limit may not be greater than 10.","uniqueKey":"error_message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"ExternalUserIdRequired":{"title":"ExternalUserIdRequired","value":{"error_type":"INVALID_REQUEST","error_code":"INVALID_FIELD","error_message":"The external_user_id field is required."}},"MerchantIdRequired":{"title":"MerchantIdRequired","value":{"error_type":"INVALID_REQUEST","error_code":"INVALID_FIELD","error_message":"The merchant_id field is required."}},"InvalidMerchantId":{"title":"InvalidMerchantId","value":{"error_type":"INVALID_REQUEST","error_code":"INVALID_FIELD","error_message":"The selected merchant_id is invalid."}},"InvalidTransactions":{"title":"InvalidTransactions","value":{"error_type":"INVALID_REQUEST","error_code":"INVALID_FIELD","error_message":"The transactions must be an array."}},"InvalidTransactionsNew":{"title":"InvalidTransactionsNew","value":{"error_type":"INVALID_REQUEST","error_code":"INVALID_FIELD","error_message":"The transactions.new must be true or false."}},"InvalidTransactionsUpdated":{"title":"InvalidTransactionsUpdated","value":{"error_type":"INVALID_REQUEST","error_code":"INVALID_FIELD","error_message":"The transactions.updated must be true or false."}},"UserNotFound":{"title":"UserNotFound","value":{"error_type":"USER_ERROR","error_code":"USER_NOT_FOUND","error_message":"The user was not found. Cannot update transactions for a non-existent user."}},"MerchantAccountNotFound":{"title":"MerchantAccountNotFound","value":{"error_type":"MERCHANT_ACCOUNT_ERROR","error_code":"MERCHANT_ACCOUNT_NOT_FOUND","error_message":"The merchant account does not exist. Cannot update transactions for a non-existent merchant account."}},"NoTransactionsToUpdate":{"title":"NoTransactionsToUpdate","value":{"error_type":"MERCHANT_ACCOUNT_ERROR","error_code":"NO_TRANSACTIONS","error_message":"The merchant account does not have any transactions to update."}}},"exampleType":"examples"}},"exampleType":"examples"},"8bed01db-c948-47e9-8f99-4f0298f573bf":{"description":"Unauthorized request.","content":{"application/json":{"schema":{"type":"object","properties":{"error_type":{"type":"string","description":"Type of error.","enum":["INVALID_INPUT","INVALID_REQUEST","USER_ERROR","SESSION_ERROR","MERCHANT_ACCOUNT_ERROR","MERCHANT_ERROR","SUBSCRIPTION_ERROR","TRANSACTION_ERROR","CART_ERROR","WEBHOOK_ENDPOINT_ERROR","REQUEST_LOG_ERROR"],"example":"INVALID_REQUEST","uniqueKey":"error_type","typeLabel":"enum\u003cstring>"},"error_code":{"type":"string","description":"Error code.","enum":["INVALID_API_KEYS","INVALID_FIELD","INVALID_JWE","INVALID_CURSOR_FORMAT","USER_NOT_FOUND","MERCHANT_ACCOUNT_NOT_FOUND","MERCHANT_ACCOUNT_DISCONNECTED","SESSION_NOT_FOUND","EXTEND_NOT_SUPPORTED","MERCHANT_UNAVAILABLE","NO_ACCESS","TRANSACTION_NOT_FOUND","NO_TRANSACTIONS","SUBSCRIPTION_NOT_FOUND","CANCELLABLE_SUBSCRIPTION_NOT_FOUND","MULTIPLE_CANCELLABLE_SUBSCRIPTIONS_FOUND","ONGOING_OPERATION","CART_NOT_FOUND","FULFILLMENT_NOT_FOUND","INVALID_ACCESS_TOKEN","INSUFFICIENT_SCOPE","INSUFFICIENT_ROLE","WEBHOOK_ENDPOINT_NOT_FOUND","WEBHOOK_ENDPOINT_LIMIT_REACHED","WEBHOOK_ENDPOINT_ALREADY_EXISTS","RATE_LIMIT_EXCEEDED","ENVIRONMENT_MISMATCH","REQUEST_LOG_NOT_FOUND","REQUEST_LOG_QUERY_TIMEOUT"],"example":"INVALID_FIELD","uniqueKey":"error_code","typeLabel":"enum\u003cstring>"},"error_message":{"type":"string","description":"Detailed error message.","example":"The limit may not be greater than 10.","uniqueKey":"error_message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"AuthFailed":{"title":"AuthFailed","value":{"error_type":"INVALID_INPUT","error_code":"INVALID_API_KEYS","error_message":"Invalid client_id or secret provided."}}},"exampleType":"examples"}},"exampleType":"examples"},"f1765a43-6cde-448c-b222-da6e605c162e":{"description":"Internal server error.","content":{"application/json":{"schema":{"type":"object","properties":{"error_type":{"type":"string","description":"Type of error.","enum":["INVALID_INPUT","INVALID_REQUEST","USER_ERROR","SESSION_ERROR","MERCHANT_ACCOUNT_ERROR","MERCHANT_ERROR","SUBSCRIPTION_ERROR","TRANSACTION_ERROR","CART_ERROR","WEBHOOK_ENDPOINT_ERROR","REQUEST_LOG_ERROR"],"example":"INVALID_REQUEST","uniqueKey":"error_type","typeLabel":"enum\u003cstring>"},"error_code":{"type":"string","description":"Error code.","enum":["INVALID_API_KEYS","INVALID_FIELD","INVALID_JWE","INVALID_CURSOR_FORMAT","USER_NOT_FOUND","MERCHANT_ACCOUNT_NOT_FOUND","MERCHANT_ACCOUNT_DISCONNECTED","SESSION_NOT_FOUND","EXTEND_NOT_SUPPORTED","MERCHANT_UNAVAILABLE","NO_ACCESS","TRANSACTION_NOT_FOUND","NO_TRANSACTIONS","SUBSCRIPTION_NOT_FOUND","CANCELLABLE_SUBSCRIPTION_NOT_FOUND","MULTIPLE_CANCELLABLE_SUBSCRIPTIONS_FOUND","ONGOING_OPERATION","CART_NOT_FOUND","FULFILLMENT_NOT_FOUND","INVALID_ACCESS_TOKEN","INSUFFICIENT_SCOPE","INSUFFICIENT_ROLE","WEBHOOK_ENDPOINT_NOT_FOUND","WEBHOOK_ENDPOINT_LIMIT_REACHED","WEBHOOK_ENDPOINT_ALREADY_EXISTS","RATE_LIMIT_EXCEEDED","ENVIRONMENT_MISMATCH","REQUEST_LOG_NOT_FOUND","REQUEST_LOG_QUERY_TIMEOUT"],"example":"INVALID_FIELD","uniqueKey":"error_code","typeLabel":"enum\u003cstring>"},"error_message":{"type":"string","description":"Detailed error message.","example":"The limit may not be greater than 10.","uniqueKey":"error_message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"InternalServerError":{"title":"InternalServerError","value":{"message":"Server Error"}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"2c7e4c2a-a79b-42a8-99a3-0f1e206b9c54":{"basicAuth":{"type":"http","scheme":"basic","description":"Basic authentication header of the form `Basic \u003cencoded-value>`, where `\u003cencoded-value>` is the base64-encoded string `username:password`. Use your `client_id` as the `username` and your `secret` as the `password` value.","scopes":[],"schemeName":"basicAuth"}}},"servers":{"6b9901c7-82d0-40d4-9716-3747869a3e94":{"url":"https://development.knotapi.com","description":"Development server"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"basic","description":"Basic authentication header of the form `Basic \u003cencoded-value>`, where `\u003cencoded-value>` is the base64-encoded string `username:password`. Use your `client_id` as the `username` and your `secret` as the `password` value.","scopes":[],"schemeName":"basicAuth"},"schema":{"title":"Basic Auth","type":"object","description":"Basic authentication header of the form `Basic \u003cencoded-value>`, where `\u003cencoded-value>` is the base64-encoded string `username:password`. Use your `client_id` as the `username` and your `secret` as the `password` value.","isRequired":true,"properties":{"username":{"type":"string","uniqueKey":"username","isRequired":true,"typeLabel":"string","deprecated":false},"password":{"type":"string","uniqueKey":"password","isRequired":true,"typeLabel":"string","deprecated":false}},"additionalProperties":false,"deprecated":false},"schemeName":"basicAuth","name":"Authorization"}],"title":"basicAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"knot","siteName":"Knot","title":"Link Account - Knot","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-29T14:17:35.189Z","originalFileLocation":"api-reference/development/link-account.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=\"Link a merchant account in development.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Knot\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/knot/X2cfOEMCNQ4RTMjp/_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/knot/X2cfOEMCNQ4RTMjp/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/knot/X2cfOEMCNQ4RTMjp/_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/knot/X2cfOEMCNQ4RTMjp/_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/knot/X2cfOEMCNQ4RTMjp/_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/knot/X2cfOEMCNQ4RTMjp/_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/knot/X2cfOEMCNQ4RTMjp/_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/knot/X2cfOEMCNQ4RTMjp/_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/knot/X2cfOEMCNQ4RTMjp/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Link Account - Knot\">\u003cmeta data-mint-head property=\"og:description\" content=\"Link a merchant account in development.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Knot\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.knotapi.com/api-reference/development/link-account\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://knot.mintlify.app/_mintlify/api/og/v2?division=Development\u0026amp;title=Link+Account\u0026amp;description=Link+a+merchant+account+in+development.\u0026amp;theme=c2017d1867bb9f3af1e4a591\u0026amp;signature=1b3aad6d3b195b0734ad7e8f96da229ecfd61696c4cc1923717c8f322f6f082a\">\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=\"Link Account - Knot\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Link a merchant account in development.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://knot.mintlify.app/_mintlify/api/og/v2?division=Development\u0026amp;title=Link+Account\u0026amp;description=Link+a+merchant+account+in+development.\u0026amp;theme=c2017d1867bb9f3af1e4a591\u0026amp;signature=1b3aad6d3b195b0734ad7e8f96da229ecfd61696c4cc1923717c8f322f6f082a\">\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/knot/X2cfOEMCNQ4RTMjp/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Knot\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0F0E0E\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.knotapi.com/api-reference/development/link-account\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/development/link-account.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://www.knotapi.com/#organization\",\"name\":\"Knot\",\"url\":\"https://www.knotapi.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/knot/VBuG2prLV3p6xOTo/logo/light.svg?fit=max\u0026auto=format\u0026n=VBuG2prLV3p6xOTo\u0026q=85\u0026s=fd06fd47577a90c8e224072b4be0e5dd\"},\"sameAs\":[\"https://www.linkedin.com/company/knotapi\",\"https://x.com/KnotAPIs\"]},{\"@type\":\"WebSite\",\"@id\":\"https://docs.knotapi.com#website\",\"name\":\"Knot\",\"url\":\"https://docs.knotapi.com\",\"publisher\":{\"@id\":\"https://www.knotapi.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.knotapi.com/api-reference/development/link-account#webpage\",\"url\":\"https://docs.knotapi.com/api-reference/development/link-account\",\"name\":\"Link Account\",\"description\":\"Link a merchant account in development.\",\"dateModified\":\"2026-09-29T14:17:35.189Z\",\"isPartOf\":{\"@id\":\"https://docs.knotapi.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.knotapi.com/api-reference/development/link-account#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.knotapi.com/api-reference/development/link-account#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Knot\",\"item\":\"https://docs.knotapi.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Link Account\",\"item\":\"https://docs.knotapi.com/api-reference/development/link-account\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.knotapi.com/api-reference/development/link-account#apireference\",\"headline\":\"Link Account\",\"name\":\"Link Account\",\"description\":\"Link a merchant account in development.\",\"url\":\"https://docs.knotapi.com/api-reference/development/link-account\",\"mainEntityOfPage\":{\"@id\":\"https://docs.knotapi.com/api-reference/development/link-account#webpage\"},\"dateModified\":\"2026-09-29T14:17:35.189Z\",\"publisher\":{\"@id\":\"https://www.knotapi.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.knotapi.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Knot\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Knot","nav":{"global":null,"tabs":[{"tab":"Docs","pages":[{"title":"Docs","href":""}]},{"tab":"API Reference","groups":[{"group":"Overview","pages":[{"title":"Authenticate Knot API requests with HTTP basic auth","sidebarTitle":"Authentication","href":"/api-reference/authentication"},{"title":"Versioning","href":"/api-reference/versioning"},{"title":"mTLS","description":"Configure mutual TLS (mTLS) authentication for enhanced API security using client certificates.","href":"/api-reference/mTLS"}]},{"group":"Development","pages":[{"title":"Link Account","openapi":"POST /development/accounts/link","href":"/api-reference/development/link-account"}]},{"group":"Sessions","pages":[{"title":"Create Session","openapi":"POST /session/create","description":"Create a session and use it to initialize the SDK.","href":"/api-reference/sessions/create-session"},{"title":"Extend Session","openapi":"POST /session/extend","href":"/api-reference/sessions/extend-session"}]},{"group":"CardSwitcher","pages":[{"title":"Retrieve JWK","openapi":"GET /jwe/key","href":"/api-reference/products/card-switcher/retrieve-jwk"},{"title":"Switch Card JWE","openapi":"api-reference/openapi.json POST /card","href":"/api-reference/products/card-switcher/switch-card-jwe"},{"title":"Switch Card","openapi":"api-reference/openapi_secure.json POST /card","href":"/api-reference/products/card-switcher/switch-card"},{"title":"Create Knot Zero Link","openapi":"POST /zero-link/create","href":"/api-reference/products/card-switcher/create-knot-zero-link"},{"title":"Create Knot Zero Links (Batch)","openapi":"POST /zero-link/batch/create","href":"/api-reference/products/card-switcher/create-knot-zero-links-batch"},{"title":"Revoke Knot Zero Links","openapi":"POST /zero-link/revoke","href":"/api-reference/products/card-switcher/revoke-knot-zero-links"}]},{"group":"TransactionLink","pages":[{"title":"The Transaction Object","href":"/api-reference/products/transaction-link/transaction-object"},{"title":"Sync Transactions","openapi":"POST /transactions/sync","href":"/api-reference/products/transaction-link/sync"},{"title":"Get Transaction By ID","openapi":"GET /transactions/{id}","href":"/api-reference/products/transaction-link/get-by-id"},{"title":"Refresh Transactions","openapi":"POST /transactions/refresh","href":"/api-reference/products/transaction-link/refresh"}]},{"group":"SubscriptionManager","pages":[{"title":"The Subscription Object","href":"/api-reference/products/subscriptions/subscription-object"},{"title":"Get Subscription By ID","openapi":"GET /subscriptions/{id}","href":"/api-reference/products/subscriptions/get-by-id"},{"title":"List Subscriptions","openapi":"POST /subscriptions/list","href":"/api-reference/products/subscriptions/list"},{"title":"Refresh Subscriptions","openapi":"POST /subscriptions/refresh","href":"/api-reference/products/subscriptions/refresh"},{"title":"Cancel Subscription By ID","openapi":"POST /subscriptions/{id}/cancel","href":"/api-reference/products/subscriptions/cancel"},{"title":"Cancel Subscription By Account","openapi":"POST /subscriptions/cancel","href":"/api-reference/products/subscriptions/cancel-by-account"}]},{"group":"Shopping","pages":[{"title":"Sync Cart","openapi":"POST /cart","href":"/api-reference/products/shopping/sync-cart"},{"title":"Checkout","openapi":"POST /cart/checkout","href":"/api-reference/products/shopping/checkout"}]},{"group":"Merchants","pages":[{"title":"List Merchants","openapi":"POST /merchant/list","href":"/api-reference/merchants/list-merchants"}]},{"group":"Merchant Accounts","pages":[{"title":"Get Merchant Accounts","openapi":"GET /accounts/get","href":"/api-reference/accounts/get-accounts"},{"title":"Unlink Merchant Account","openapi":"POST /accounts/unlink","href":"/api-reference/accounts/unlink-account"}]},{"group":"Detected Accounts","pages":[{"title":"Detect Accounts","openapi":"POST /detect","href":"/api-reference/products/detect/detect-accounts"},{"title":"List Detected Accounts","openapi":"POST /detected-accounts/list","href":"/api-reference/products/detect/list-detected-accounts"},{"title":"Search Detected Accounts","openapi":"POST /detected-accounts/search","href":"/api-reference/products/detect/search-detected-accounts"},{"title":"Sync Detected Accounts","openapi":"POST /detected-accounts/sync","href":"/api-reference/products/detect/sync-detected-accounts"}]},{"group":"Users","pages":[{"title":"Delete User \u0026 Data","openapi":"POST /user/delete","href":"/api-reference/users/delete-user-and-data"}]},{"group":"Audit Logs","pages":[{"title":"Get Audit Logs","openapi":"GET /audit_logs","href":"/api-reference/audit-logs/get-audit-logs"}]},{"group":"Agent Authorization","pages":[{"title":"Agent authorization","sidebarTitle":"Overview","href":"/api-reference/agent-authorization/overview"},{"title":"Request Device Code","openapi":"POST /oauth/device/code","href":"/api-reference/agent-authorization/request-device-code"},{"title":"Request Access Token","openapi":"POST /oauth/token","href":"/api-reference/agent-authorization/request-access-token"}]},{"group":"Webhook Endpoints","pages":[{"title":"Webhook Endpoint Object","href":"/api-reference/webhook-endpoints/webhook-endpoint-object"},{"title":"Create Webhook Endpoint","openapi":"POST /webhook-endpoints/create","href":"/api-reference/webhook-endpoints/create"},{"title":"Get Webhook Endpoint By ID","openapi":"GET /webhook-endpoints/{id}","href":"/api-reference/webhook-endpoints/get-by-id"},{"title":"List Webhook Endpoints","openapi":"POST /webhook-endpoints/list","href":"/api-reference/webhook-endpoints/list"},{"title":"Update Webhook Endpoint","openapi":"POST /webhook-endpoints/{id}/update","href":"/api-reference/webhook-endpoints/update"},{"title":"Delete Webhook Endpoint","openapi":"POST /webhook-endpoints/{id}/delete","href":"/api-reference/webhook-endpoints/delete"}]},{"group":"Request Logs","pages":[{"title":"Request Log Object","href":"/api-reference/request-logs/request-log-object"},{"title":"List Request Logs","openapi":"GET /request-logs","href":"/api-reference/request-logs/list"},{"title":"Get Request Log By ID","openapi":"GET /request-logs/{id}","href":"/api-reference/request-logs/get-by-id"}]},{"group":"Supernova MCP","pages":[{"title":"Create MCP Token","openapi":"POST /mcp/tokens/create","href":"/api-reference/mcp-tokens/create-mcp-token"},{"title":"Revoke MCP Tokens","openapi":"POST /mcp/tokens/revoke","href":"/api-reference/mcp-tokens/revoke-mcp-tokens"}]}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog/product-updates"}]}]},"title":"Link Account - Knot","buildId":"dpl_2oYXwqkEXirXBPk8wV1FtM5USFWi","deploymentId":"dpl_2oYXwqkEXirXBPk8wV1FtM5USFWi","dynamics":["10e4515597","c2aa737661","2b790eda92","2bfc744e19","b0f84f53ff","a9bb46feb3"],"chunks":["BannerMarkdown-CJDb0dYK.js","dist-Cv_O2fky.js","lib--scc4DXi.js","lib-B8HbPgcC.js","clsx-BGBGWFTt.js","html-void-elements-mCSPHezU.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","OpenApiReferenceProvider-WRhTSUDL.js","utils-ChMov4Kr.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-_REmC2bI.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Bp6nVRCu.js","snippetPresets-DZadmXoU.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-CY2WdoTl.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-DwYG-Q4l.js","shallow-BXQIGwv4.js","getApiPlaygroundDisplay-CK5nK5B9.js","CodeSnippet-TH4a2aGW.js","CodeSnippets-DwsQiOFS.js","NarrationPlayer-Bl_u1h1-.js","types-CiTgMxws.js","Page-R3M_BF4L.js","getPastedJson-DD7kUzi_.js","icon-holE3QoJ.js","MethodPill-DUW0T8us.js","DuplicateIcon-CI_p4be-.js","createIcon-BdbRvavb.js","DynamicMarkdown-DN96a4Ur.js","SectionHeading-SCu36A9d.js","axios-vUo_bRtp.js","Markdown-CCeGv-zI.js","AssistantPageLink-2C5OB2eV.js"]}