Send a secret biqli_... workspace API key with Conversions: Write
(conversions.create). The key selects the workspace. Never expose it in
browser code and never send a workspace ID.
After a lead has established customer attribution, you may omit clickId.
Biqli first uses the named lead when leadEventName is present, then the
customer attribution selected by the workspace’s first-click or last-click
model.
Use a stable invoiceId and paymentProcessor for durable financial-event
deduplication. Also send Idempotency-Key for safe transport retries. An exact
replay returns the original 201 response and the
Idempotency-Replayed: true header without repeating side effects.Reusing an invoice, event, or idempotency identifier with different data
returns 409 idempotency_conflict.
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Biqli","colors":{"primary":"#3B82F6","light":"#60A5FA","dark":"#1D4ED8"},"logo":{"light":"https://mintcdn.com/biqlillc-cc349ea4/vhOVG3nb6zjxQ8qQ/logo/light.png?fit=max\u0026auto=format\u0026n=vhOVG3nb6zjxQ8qQ\u0026q=85\u0026s=e047892083738e2bb348400f1a82f718","dark":"https://mintcdn.com/biqlillc-cc349ea4/vhOVG3nb6zjxQ8qQ/logo/dark.png?fit=max\u0026auto=format\u0026n=vhOVG3nb6zjxQ8qQ\u0026q=85\u0026s=76e3c2c1aa4073c126d611b40c7626cf","href":"/"},"favicon":"https://mintcdn.com/biqlillc-cc349ea4/vhOVG3nb6zjxQ8qQ/favicon.png?fit=max\u0026auto=format\u0026n=vhOVG3nb6zjxQ8qQ\u0026q=85\u0026s=9a00282d19492f9a39544861751e37f5","api":{},"navbar":{"links":[{"href":"https://biq.li/contact","label":"Contact Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://biq.li/dashboard"}},"footer":{"socials":{"x":"https://x.com/mintlify","github":"https://github.com/mintlify","linkedin":"https://linkedin.com/company/mintlify"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"biqlillc-cc349ea4","hasAudioNarration":false,"actualSubdomain":"biqlillc-cc349ea4","customDomains":["learn.biq.li"],"gitSource":{"type":"github","owner":"morphcode007","repo":"biqli-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ad52d09126aad4f2ebbfbed","clientVersion":"0.0.4087","searchFilterCounts":[{"language":"default","tag":"Help Center","count":172},{"language":"default","tag":"MANAGING YOUR LINKS","count":91},{"language":"default","tag":"API Reference","count":72},{"language":"default","tag":"BIQLI LINKS API","count":50},{"language":"default","tag":"MANAGING YOUR WORKSPACE","count":46},{"language":"default","tag":"Biolinks","count":32},{"language":"default","tag":"Developer Docs","count":31},{"language":"default","tag":"Links","count":26},{"language":"default","tag":"BIQLI PARTNER PROGRAM","count":16},{"language":"default","tag":"GETTING STARTED","count":13}]},"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":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"#search-bar-entry{max-width:384px!important;border-radius:9999px!important;background-color:rgba(3, 7, 18, 0.03)!important;border:none!important;box-shadow:none!important;height:36px!important;color:#6b7280!important}#search-bar-entry:hover{background-color:rgba(3, 7, 18, 0.08)!important}.dark #search-bar-entry{background-color:rgba(255, 255, 255, 0.03)!important;color:rgba(255, 255, 255, 0.5)!important}.dark #search-bar-entry:hover{background-color:rgba(255, 255, 255, 0.08)!important}.navbar-link a{background-color:rgba(3, 7, 18, 0.03)!important;padding:8px 14px!important;border-radius:12px!important;font-weight:500!important;color:#1f2937!important;transition:background-color 0.2s ease, color 0.2s ease}.navbar-link a:hover{background-color:rgba(3, 7, 18, 0.08)!important;color:#111827!important;text-decoration:none!important}.dark .navbar-link a{background-color:rgba(255, 255, 255, 0.03)!important;color:#f3f4f6!important}.dark .navbar-link a:hover{background-color:rgba(255, 255, 255, 0.08)!important;color:#ffffff!important}#topbar-cta-button span{border-radius:12px!important;background-color:#155dfc!important}#topbar-cta-button:hover span{opacity:0.9!important}[data-testid=\"copy-code-button\"]{opacity:1!important;visibility:visible!important}.biqli-payout-country-filters{align-items:center}.biqli-payout-country-filter{appearance:none!important;display:inline-flex!important;flex:0 0 auto;align-items:center;justify-content:center;min-height:34px;padding:6px 16px;border:1px solid #e5e7eb!important;border-radius:9999px!important;background:#ffffff!important;color:#404040!important;font-size:14px;font-weight:400;line-height:20px;white-space:nowrap;cursor:pointer;transition:background-color 0.15s ease, border-color 0.15s ease,\n color 0.15s ease, box-shadow 0.15s ease}.biqli-payout-country-filter:hover{border-color:#d4d4d4!important;background:#fafafa!important;color:#171717!important}.biqli-payout-country-filter[data-active=\"true\"]{border-color:#171717!important;background:#171717!important;color:#ffffff!important;font-weight:500}.biqli-payout-country-filter[data-active=\"true\"]:hover{border-color:#262626!important;background:#262626!important;color:#ffffff!important}.biqli-payout-country-filter:focus-visible{outline:2px solid #2563eb;outline-offset:2px}.dark .biqli-payout-country-filter{border-color:#404040!important;background:#171717!important;color:#d4d4d4!important}.dark .biqli-payout-country-filter:hover{border-color:#525252!important;background:#262626!important;color:#ffffff!important}.dark .biqli-payout-country-filter[data-active=\"true\"]{border-color:#f5f5f5!important;background:#f5f5f5!important;color:#171717!important}.dark .biqli-payout-country-filter[data-active=\"true\"]:hover{border-color:#ffffff!important;background:#ffffff!important;color:#171717!important}"}],"page":{"pagePath":"docs/api-reference/conversions/track-sale","slug":"/docs/api-reference/conversions/track-sale","pageMetadata":{"title":"Track a sale","description":"Record an idempotent server-side sale with direct or deferred attribution.","openapi":"POST /v1/track/sale","href":"/docs/api-reference/conversions/track-sale"},"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: \"Record an idempotent server-side sale with direct or deferred attribution.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Use this endpoint from a trusted server after a paid order, subscription,\nrenewal, or other revenue event.`}),`\n`,_jsx(Heading,{level:`2`,id:`authentication-and-permission`,children:`Authentication and permission`}),`\n`,_jsxs(_components.p,{children:[`Send a secret `,_jsx(_components.code,{children:`biqli_...`}),` workspace API key with `,_jsx(_components.strong,{children:`Conversions: Write`}),`\n(`,_jsx(_components.code,{children:`conversions.create`}),`). The key selects the workspace. Never expose it in\nbrowser code and never send a workspace ID.`]}),`\n`,_jsx(Heading,{level:`2`,id:`direct-sale-request`,children:`Direct sale request`}),`\n`,_jsxs(_components.p,{children:[`Pass `,_jsx(_components.code,{children:`clickId`}),` when the checkout or order still carries the Biqli `,_jsx(_components.code,{children:`bq_id`}),`.\nAmounts are integers in the currency’s minor unit, so `,_jsx(_components.code,{children:`$54.99`}),` is `,_jsx(_components.code,{children:`5499`}),` for\n`,_jsx(_components.code,{children:`usd`}),`.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`21`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`21`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://biq.li/api/v1/track/sale`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$BIQLI_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Accept: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Idempotency-Key: order_2026_1842'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'X-Biq-Client: acme-backend'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'X-Biq-Client-Version: 1.4.0'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --data`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"clickId\": \"fGQimsCLcpoa\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"customerExternalId\": \"customer_1842\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"amount\": 5499,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"currency\": \"usd\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"eventName\": \"Purchase\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"paymentProcessor\": \"stripe\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"invoiceId\": \"in_1842\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"eventId\": \"sale_order_2026_1842\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"metadata\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"orderId\": \"order_2026_1842\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`deferred-sale-request`,children:`Deferred sale request`}),`\n`,_jsxs(_components.p,{children:[`After a lead has established customer attribution, you may omit `,_jsx(_components.code,{children:`clickId`}),`.\nBiqli first uses the named lead when `,_jsx(_components.code,{children:`leadEventName`}),` is present, then the\ncustomer attribution selected by the workspace’s first-click or last-click\nmodel.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"customerExternalId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"customer_1842\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1299`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"currency\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"usd\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"eventName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Renewal\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"paymentProcessor\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"stripe\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"invoiceId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"in_renewal_1842_02\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"leadEventName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Signed up\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Field`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Required`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`customerExternalId`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Yes`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Stable customer ID from your system, from 1 to 100 characters.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`amount`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Yes`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Non-negative integer in the currency’s minor unit.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`currency`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`No`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Supported lowercase ISO 4217 code. Defaults to `,_jsx(_components.code,{children:`usd`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`clickId`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Conditional`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Direct attribution click. Omit only when the customer already has eligible attribution.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`eventName`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`No`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Sale name. Defaults to `,_jsx(_components.code,{children:`Purchase`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`paymentProcessor`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`No`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Lowercase processor namespace. Defaults to `,_jsx(_components.code,{children:`custom`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`invoiceId`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Recommended`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Durable invoice identifier, unique per workspace and payment processor.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`leadEventName`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`No`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Prefer attribution from this customer’s matching lead event.`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.code,{children:`customerName`}),`, `,_jsx(_components.code,{children:`customerEmail`}),`, `,_jsx(_components.code,{children:`customerAvatar`})]}),_jsx(_components.td,{style:{textAlign:`left`},children:`No`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Optional customer identity fields.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`eventId`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`No`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Stable event identifier, from 1 to 100 safe identifier characters.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`metadata`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`No`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Bounded JSON metadata object. Keys contain 1 to 64 characters and cannot be numeric-only.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`occurredAt`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`No`}),_jsx(_components.td,{style:{textAlign:`left`},children:`ISO 8601 event time within the accepted clock window.`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`idempotency`,children:`Idempotency`}),`\n`,_jsxs(_components.p,{children:[`Use a stable `,_jsx(_components.code,{children:`invoiceId`}),` and `,_jsx(_components.code,{children:`paymentProcessor`}),` for durable financial-event\ndeduplication. Also send `,_jsx(_components.code,{children:`Idempotency-Key`}),` for safe transport retries. An exact\nreplay returns the original `,_jsx(_components.code,{children:`201`}),` response and the\n`,_jsx(_components.code,{children:`Idempotency-Replayed: true`}),` header without repeating side effects.`]}),`\n`,_jsxs(_components.p,{children:[`Reusing an invoice, event, or idempotency identifier with different data\nreturns `,_jsx(_components.code,{children:`409 idempotency_conflict`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(_components.p,{children:`The response includes the same event, click, link, customer, and request fields\nas a lead, plus normalized sale data:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`29`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`29`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"event\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"biq_sev_01M2C4AB8VQ3V45N1HTG8D7R2K\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"eventName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Purchase\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sale\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"occurredAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-09-13T10:30:00+00:00\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"click\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"fGQimsCLcpoa\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"link\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"biq_lnk_01M2BVVED2HDH0JVM5HV9WQ2F6\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"shortUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://biq.li/3bKxigL\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"destinationUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/checkout\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"customer\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"biq_cus_01M2BW50TQD96C0QPCM6Z6WZNF\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"externalId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"customer_1842\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Ada Lovelace\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"email\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ada@example.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"avatar\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"sale\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5499`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"currency\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"usd\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"amountUsd\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5499`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"paymentProcessor\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"stripe\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"invoiceId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"in_1842\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"request_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"c2fe3069-9416-47ed-928d-a96bf37cc690\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`amountUsd`}),` is an integer in USD cents. A non-USD request requires a current\nexchange rate; otherwise the API returns `,_jsx(_components.code,{children:`422 currency_unavailable`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`errors`,children:`Errors`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Status`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Code`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:_jsx(_components.code,{children:`401`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`invalid_token`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`The workspace API key is missing, invalid, revoked, or the wrong credential type.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:_jsx(_components.code,{children:`403`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`insufficient_scope`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`The key lacks `,_jsx(_components.code,{children:`conversions.create`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:_jsx(_components.code,{children:`403`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`tracking_disabled`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Conversion tracking is unavailable or disabled for the workspace.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:_jsx(_components.code,{children:`404`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`resource_not_found`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`A supplied click is unavailable in this workspace.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:_jsx(_components.code,{children:`405`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`method_not_allowed`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`This endpoint only accepts `,_jsx(_components.code,{children:`POST`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:_jsx(_components.code,{children:`409`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`idempotency_conflict`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`An invoice, event, or idempotency identifier was reused with different data.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:_jsx(_components.code,{children:`422`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`attribution_required`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`No direct or existing customer attribution was available.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:_jsx(_components.code,{children:`422`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`currency_unavailable`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`No current exchange rate is available for the requested currency.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:_jsx(_components.code,{children:`422`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`validation_error`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`The JSON body, amount, currency, metadata, or event time is invalid.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:_jsx(_components.code,{children:`429`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`rate_limit_exceeded`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`The workspace exceeded its API request allowance.`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Read `,_jsx(_components.a,{href:`/docs/api-reference/conversions/track-lead`,children:`Track a lead`}),` for customer\nattribution setup and `,_jsx(_components.a,{href:`/docs/api-reference/authentication`,children:`Authentication`}),` for\nAPI-key rotation and least-privilege access.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Track a sale","description":"Record an idempotent server-side sale with direct or deferred attribution.","openapi":"POST /v1/track/sale","href":"/docs/api-reference/conversions/track-sale"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Authentication and permission","slug":"authentication-and-permission","depth":2,"children":[]},{"title":"Direct sale request","slug":"direct-sale-request","depth":2,"children":[]},{"title":"Deferred sale request","slug":"deferred-sale-request","depth":2,"children":[]},{"title":"Idempotency","slug":"idempotency","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]},{"title":"Errors","slug":"errors","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"tracking.sale","summary":"Track a sale","description":"Record an idempotent server-side sale with direct or deferred attribution.","tags":["Conversions"],"parameters":["097a4cb5-bdaa-4184-a99a-83d1cea0322c","79c51649-cc18-42de-bc7c-29f6d098f39f","f1b965a2-b46d-4f26-a3e6-3ac8500b1883","e2ec7712-6cac-4408-853f-e272f0d2e5e3"],"requestBody":"cc5c8d34-fe49-4737-a67c-72f3f117f21e","responses":{"201":"3629b36b-ebd7-4608-93be-222225500b8e","401":"b5b5e7d1-01f3-4574-b246-dffafc1707ab","403":"80cc4f66-8dd7-463f-addc-45e25f8a2717","404":"3bdf6e98-3b16-433c-bf3d-f169692bfb4f","405":"39ce968b-68e7-4ad1-884f-a6e7a43497ac","409":"4a97e27d-c9cc-4530-9179-61eefc78c179","422":"0eb15bcc-d4bc-4bbd-8954-efc419b969e9","429":"b3b57b2b-27f6-4c27-9771-c23e3b7ef54d","500":"ddda5289-adac-4fa3-ab96-93fb1488ed5a"},"method":"post","type":"path","servers":["2efa6d45-e74a-42aa-b55e-7e2ed6501676"],"security":["b0a2461c-5f0a-4771-907e-392809d004de","f2961585-0644-49fc-947d-36ebb0b61eeb"],"path":"/v1/track/sale","baseUrlOptions":["https://biq.li/api"],"title":"Track a sale","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"097a4cb5-bdaa-4184-a99a-83d1cea0322c":{"name":"Idempotency-Key","in":"header","required":false,"description":"Stable retry key. Reuse only for the same logical request and payload.","schema":{"type":"string","minLength":1,"maxLength":255,"isRequired":false,"description":"Stable retry key. Reuse only for the same logical request and payload.","uniqueKey":"","typeLabel":"string"}},"79c51649-cc18-42de-bc7c-29f6d098f39f":{"name":"X-Biq-Client","in":"header","required":false,"description":"Integration name recorded in API diagnostics.","schema":{"type":"string","maxLength":64,"isRequired":false,"description":"Integration name recorded in API diagnostics.","uniqueKey":"","typeLabel":"string"}},"f1b965a2-b46d-4f26-a3e6-3ac8500b1883":{"name":"X-Biq-Client-Version","in":"header","required":false,"description":"Integration version recorded in API diagnostics.","schema":{"type":"string","maxLength":64,"isRequired":false,"description":"Integration version recorded in API diagnostics.","uniqueKey":"","typeLabel":"string"}},"e2ec7712-6cac-4408-853f-e272f0d2e5e3":{"name":"X-Biq-Request-Id","in":"header","required":false,"description":"Caller-generated request identifier for tracing.","schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9._:-]+$","isRequired":false,"description":"Caller-generated request identifier for tracing.","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["customerExternalId","amount"],"properties":{"customerExternalId":{"type":"string","minLength":1,"maxLength":100,"isRequired":true,"uniqueKey":"customerExternalId","typeLabel":"string"},"amount":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Amount in the currency's minor unit.","isRequired":true,"uniqueKey":"amount","typeLabel":"integer"},"clickId":{"oneOf":[{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9_-]+$","uniqueKey":"clickId.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9_-]+$","uniqueKey":"clickId.oneOf.1","typeLabel":"null"}],"uniqueKey":"clickId","typeLabel":"string | null"},"currency":{"oneOf":[{"type":"string","pattern":"^[a-z]{3}$","default":"usd","uniqueKey":"currency.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^[a-z]{3}$","default":"usd","uniqueKey":"currency.oneOf.1","typeLabel":"null"}],"uniqueKey":"currency","typeLabel":"string | null"},"eventName":{"oneOf":[{"type":"string","minLength":1,"maxLength":255,"default":"Purchase","uniqueKey":"eventName.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"maxLength":255,"default":"Purchase","uniqueKey":"eventName.oneOf.1","typeLabel":"null"}],"uniqueKey":"eventName","typeLabel":"string | null"},"paymentProcessor":{"oneOf":[{"type":"string","maxLength":32,"pattern":"^[a-z0-9](?:[a-z0-9._-]*[a-z0-9])?$","default":"custom","uniqueKey":"paymentProcessor.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":32,"pattern":"^[a-z0-9](?:[a-z0-9._-]*[a-z0-9])?$","default":"custom","uniqueKey":"paymentProcessor.oneOf.1","typeLabel":"null"}],"uniqueKey":"paymentProcessor","typeLabel":"string | null"},"invoiceId":{"oneOf":[{"type":"string","minLength":1,"maxLength":255,"uniqueKey":"invoiceId.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"maxLength":255,"uniqueKey":"invoiceId.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoiceId","typeLabel":"string | null"},"leadEventName":{"oneOf":[{"type":"string","minLength":1,"maxLength":255,"uniqueKey":"leadEventName.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"maxLength":255,"uniqueKey":"leadEventName.oneOf.1","typeLabel":"null"}],"uniqueKey":"leadEventName","typeLabel":"string | null"},"customerName":{"oneOf":[{"type":"string","maxLength":255,"uniqueKey":"customerName.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":255,"uniqueKey":"customerName.oneOf.1","typeLabel":"null"}],"uniqueKey":"customerName","typeLabel":"string | null"},"customerEmail":{"oneOf":[{"type":"string","format":"email","maxLength":254,"uniqueKey":"customerEmail.oneOf.0","typeLabel":"string\u003cemail>"},{"type":"null","format":"email","maxLength":254,"uniqueKey":"customerEmail.oneOf.1","typeLabel":"null"}],"uniqueKey":"customerEmail","typeLabel":"string\u003cemail> | null"},"customerAvatar":{"oneOf":[{"type":"string","format":"uri","pattern":"^https?://","maxLength":2048,"uniqueKey":"customerAvatar.oneOf.0","typeLabel":"string\u003curi>"},{"type":"null","format":"uri","pattern":"^https?://","maxLength":2048,"uniqueKey":"customerAvatar.oneOf.1","typeLabel":"null"}],"uniqueKey":"customerAvatar","typeLabel":"string\u003curi> | null"},"eventId":{"oneOf":[{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9](?:[A-Za-z0-9._:-]*[A-Za-z0-9])?$","uniqueKey":"eventId.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9](?:[A-Za-z0-9._:-]*[A-Za-z0-9])?$","uniqueKey":"eventId.oneOf.1","typeLabel":"null"}],"uniqueKey":"eventId","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","maxProperties":50,"propertyNames":{"pattern":"^(?=.*[^0-9])[^\\u0000-\\u001F\\u007F]{1,64}$"},"additionalProperties":true,"uniqueKey":"metadata.oneOf.0","typeLabel":"object"},{"type":"null","maxProperties":50,"propertyNames":{"pattern":"^(?=.*[^0-9])[^\\u0000-\\u001F\\u007F]{1,64}$"},"additionalProperties":true,"uniqueKey":"metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"metadata","typeLabel":"object | null"},"occurredAt":{"oneOf":[{"type":"string","format":"date-time","pattern":"Z$","uniqueKey":"occurredAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","pattern":"Z$","uniqueKey":"occurredAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"occurredAt","typeLabel":"string\u003cdate-time> | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"customerExternalId":"\u003cstring>","amount":4503599627370495,"clickId":"\u003cstring>","currency":"usd","eventName":"Purchase","paymentProcessor":"custom","invoiceId":"\u003cstring>","leadEventName":"\u003cstring>","customerName":"\u003cstring>","customerEmail":"jsmith@example.com","customerAvatar":"\u003cstring>","eventId":"\u003cstring>","metadata":{},"occurredAt":"2023-11-07T05:31:56Z"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"3629b36b-ebd7-4608-93be-222225500b8e":{"description":"Sale created or idempotently replayed.","headers":{"X-Biq-Request-Id":{"description":"Request identifier for tracing and support.","schema":{"type":"string"}},"Idempotency-Replayed":{"description":"Present with value true when the original successful result is replayed.","schema":{"type":"string","const":"true"}}},"content":{"application/json":{"schema":{"type":"object","required":["sale","event","click","link","customer","request_id"],"properties":{"event":{"type":"object","required":["id","eventName","type","occurredAt"],"properties":{"id":{"type":"string","pattern":"^biq_(?:lev|sev)_[0-9A-HJKMNP-TV-Z]{26}$","isRequired":true,"uniqueKey":"event.id","typeLabel":"string"},"eventName":{"type":"string","isRequired":true,"uniqueKey":"event.eventName","typeLabel":"string"},"type":{"type":"string","enum":["lead","sale"],"isRequired":true,"uniqueKey":"event.type","typeLabel":"enum\u003cstring>"},"occurredAt":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"event.occurredAt","typeLabel":"string\u003cdate-time>"}},"isRequired":true,"uniqueKey":"event","typeLabel":"object"},"click":{"type":"object","required":["id"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"click.id","typeLabel":"string"}},"isRequired":true,"uniqueKey":"click","typeLabel":"object"},"link":{"oneOf":[{"type":"object","properties":{"id":{"oneOf":[{"type":"string","pattern":"^biq_lnk_[0-9A-HJKMNP-TV-Z]{26}$","uniqueKey":"link.oneOf.0.id.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^biq_lnk_[0-9A-HJKMNP-TV-Z]{26}$","uniqueKey":"link.oneOf.0.id.oneOf.1","typeLabel":"null"}],"uniqueKey":"link.oneOf.0.id","typeLabel":"string | null"},"shortUrl":{"oneOf":[{"type":"string","format":"uri","uniqueKey":"link.oneOf.0.shortUrl.oneOf.0","typeLabel":"string\u003curi>"},{"type":"null","format":"uri","uniqueKey":"link.oneOf.0.shortUrl.oneOf.1","typeLabel":"null"}],"uniqueKey":"link.oneOf.0.shortUrl","typeLabel":"string\u003curi> | null"},"destinationUrl":{"oneOf":[{"type":"string","format":"uri","uniqueKey":"link.oneOf.0.destinationUrl.oneOf.0","typeLabel":"string\u003curi>"},{"type":"null","format":"uri","uniqueKey":"link.oneOf.0.destinationUrl.oneOf.1","typeLabel":"null"}],"uniqueKey":"link.oneOf.0.destinationUrl","typeLabel":"string\u003curi> | null"}},"isRequired":true,"uniqueKey":"link.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"id":{"oneOf":[{"type":"string","pattern":"^biq_lnk_[0-9A-HJKMNP-TV-Z]{26}$"},{"type":"null","pattern":"^biq_lnk_[0-9A-HJKMNP-TV-Z]{26}$"}]},"shortUrl":{"oneOf":[{"type":"string","format":"uri"},{"type":"null","format":"uri"}]},"destinationUrl":{"oneOf":[{"type":"string","format":"uri"},{"type":"null","format":"uri"}]}},"isRequired":true,"uniqueKey":"link.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"link","typeLabel":"object | null"},"customer":{"type":"object","required":["id","externalId","name","email","avatar"],"properties":{"id":{"oneOf":[{"type":"string","pattern":"^biq_cus_[0-9A-HJKMNP-TV-Z]{26}$","isRequired":true,"uniqueKey":"customer.id.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^biq_cus_[0-9A-HJKMNP-TV-Z]{26}$","isRequired":true,"uniqueKey":"customer.id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"customer.id","typeLabel":"string | null"},"externalId":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"customer.externalId.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"customer.externalId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"customer.externalId","typeLabel":"string | null"},"name":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"customer.name.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"customer.name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"customer.name","typeLabel":"string | null"},"email":{"oneOf":[{"type":"string","format":"email","isRequired":true,"uniqueKey":"customer.email.oneOf.0","typeLabel":"string\u003cemail>"},{"type":"null","format":"email","isRequired":true,"uniqueKey":"customer.email.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"customer.email","typeLabel":"string\u003cemail> | null"},"avatar":{"oneOf":[{"type":"string","format":"uri","isRequired":true,"uniqueKey":"customer.avatar.oneOf.0","typeLabel":"string\u003curi>"},{"type":"null","format":"uri","isRequired":true,"uniqueKey":"customer.avatar.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"customer.avatar","typeLabel":"string\u003curi> | null"}},"isRequired":true,"uniqueKey":"customer","typeLabel":"object"},"request_id":{"type":"string","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"sale":{"type":"object","required":["amount","currency","amountUsd","paymentProcessor","invoiceId"],"properties":{"amount":{"type":"integer","minimum":0,"description":"Original amount in minor units.","isRequired":true,"uniqueKey":"sale.amount","typeLabel":"integer"},"currency":{"type":"string","pattern":"^[a-z]{3}$","isRequired":true,"uniqueKey":"sale.currency","typeLabel":"string"},"amountUsd":{"type":"integer","minimum":0,"description":"USD-normalized amount in cents.","isRequired":true,"uniqueKey":"sale.amountUsd","typeLabel":"integer"},"paymentProcessor":{"type":"string","isRequired":true,"uniqueKey":"sale.paymentProcessor","typeLabel":"string"},"invoiceId":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"sale.invoiceId.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"sale.invoiceId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"sale.invoiceId","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"sale","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"event":{"id":"\u003cstring>","eventName":"\u003cstring>","type":"lead","occurredAt":"2023-11-07T05:31:56Z"},"click":{"id":"\u003cstring>"},"link":{"id":"\u003cstring>","shortUrl":"\u003cstring>","destinationUrl":"\u003cstring>"},"customer":{"id":"\u003cstring>","externalId":"\u003cstring>","name":"\u003cstring>","email":"jsmith@example.com","avatar":"\u003cstring>"},"request_id":"\u003cstring>","sale":{"amount":1,"currency":"\u003cstring>","amountUsd":1,"paymentProcessor":"\u003cstring>","invoiceId":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"b5b5e7d1-01f3-4574-b246-dffafc1707ab":{"description":"The bearer credential is missing, invalid, expired, or revoked.","headers":{"X-Biq-Request-Id":{"description":"Request identifier for support and tracing.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["error","request_id"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_token","insufficient_scope","upgrade_required","quota_exceeded","resource_not_found","tracking_disabled","attribution_required","currency_unavailable","idempotency_conflict","idempotency_key_required","invalid_preflight","origin_required","hostname_not_configured","origin_not_allowed","client_click_tracking_disabled","invalid_click_id","stripe_account_not_connected","stripe_environment_required","stripe_attribution_conflict","stripe_mode_mismatch","domain_taken","alias_taken","external_id_taken","folder_name_taken","tag_name_taken","pixel_name_taken","biolink_name_taken","method_not_allowed","url_blocked","dns_verification_failed","validation_error","rate_limit_exceeded","internal_server_error"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"uniqueKey":"error.details","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"type":"string","description":"Request identifier to include when contacting support.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"invalid_token","message":"\u003cstring>","details":{}},"request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"80cc4f66-8dd7-463f-addc-45e25f8a2717":{"description":"The credential lacks a required permission, the workspace must upgrade, or its quota is exhausted.","headers":{"X-Biq-Request-Id":{"description":"Request identifier for support and tracing.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["error","request_id"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_token","insufficient_scope","upgrade_required","quota_exceeded","resource_not_found","tracking_disabled","attribution_required","currency_unavailable","idempotency_conflict","idempotency_key_required","invalid_preflight","origin_required","hostname_not_configured","origin_not_allowed","client_click_tracking_disabled","invalid_click_id","stripe_account_not_connected","stripe_environment_required","stripe_attribution_conflict","stripe_mode_mismatch","domain_taken","alias_taken","external_id_taken","folder_name_taken","tag_name_taken","pixel_name_taken","biolink_name_taken","method_not_allowed","url_blocked","dns_verification_failed","validation_error","rate_limit_exceeded","internal_server_error"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"uniqueKey":"error.details","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"type":"string","description":"Request identifier to include when contacting support.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"invalid_token","message":"\u003cstring>","details":{}},"request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"3bdf6e98-3b16-433c-bf3d-f169692bfb4f":{"description":"The requested resource or referenced public ID is unavailable in the authenticated workspace.","headers":{"X-Biq-Request-Id":{"description":"Request identifier for support and tracing.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["error","request_id"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_token","insufficient_scope","upgrade_required","quota_exceeded","resource_not_found","tracking_disabled","attribution_required","currency_unavailable","idempotency_conflict","idempotency_key_required","invalid_preflight","origin_required","hostname_not_configured","origin_not_allowed","client_click_tracking_disabled","invalid_click_id","stripe_account_not_connected","stripe_environment_required","stripe_attribution_conflict","stripe_mode_mismatch","domain_taken","alias_taken","external_id_taken","folder_name_taken","tag_name_taken","pixel_name_taken","biolink_name_taken","method_not_allowed","url_blocked","dns_verification_failed","validation_error","rate_limit_exceeded","internal_server_error"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"uniqueKey":"error.details","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"type":"string","description":"Request identifier to include when contacting support.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"invalid_token","message":"\u003cstring>","details":{}},"request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"39ce968b-68e7-4ad1-884f-a6e7a43497ac":{"description":"The endpoint does not support the requested HTTP method.","headers":{"Allow":{"description":"HTTP methods supported by this endpoint.","schema":{"type":"string","const":"POST"}},"X-Biq-Request-Id":{"description":"Request identifier for tracing and support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["error","request_id"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_token","insufficient_scope","upgrade_required","quota_exceeded","resource_not_found","tracking_disabled","attribution_required","currency_unavailable","idempotency_conflict","idempotency_key_required","invalid_preflight","origin_required","hostname_not_configured","origin_not_allowed","client_click_tracking_disabled","invalid_click_id","stripe_account_not_connected","stripe_environment_required","stripe_attribution_conflict","stripe_mode_mismatch","domain_taken","alias_taken","external_id_taken","folder_name_taken","tag_name_taken","pixel_name_taken","biolink_name_taken","method_not_allowed","url_blocked","dns_verification_failed","validation_error","rate_limit_exceeded","internal_server_error"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"uniqueKey":"error.details","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"type":"string","description":"Request identifier to include when contacting support.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"invalid_token","message":"\u003cstring>","details":{}},"request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"4a97e27d-c9cc-4530-9179-61eefc78c179":{"description":"A unique alias, external ID, custom domain, or workspace resource name is already in use.","headers":{"X-Biq-Request-Id":{"description":"Request identifier for support and tracing.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["error","request_id"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_token","insufficient_scope","upgrade_required","quota_exceeded","resource_not_found","tracking_disabled","attribution_required","currency_unavailable","idempotency_conflict","idempotency_key_required","invalid_preflight","origin_required","hostname_not_configured","origin_not_allowed","client_click_tracking_disabled","invalid_click_id","stripe_account_not_connected","stripe_environment_required","stripe_attribution_conflict","stripe_mode_mismatch","domain_taken","alias_taken","external_id_taken","folder_name_taken","tag_name_taken","pixel_name_taken","biolink_name_taken","method_not_allowed","url_blocked","dns_verification_failed","validation_error","rate_limit_exceeded","internal_server_error"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"uniqueKey":"error.details","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"type":"string","description":"Request identifier to include when contacting support.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"invalid_token","message":"\u003cstring>","details":{}},"request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"0eb15bcc-d4bc-4bbd-8954-efc419b969e9":{"description":"The payload is invalid, a destination was blocked, or domain DNS verification is not ready.","headers":{"X-Biq-Request-Id":{"description":"Request identifier for support and tracing.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["error","request_id"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_token","insufficient_scope","upgrade_required","quota_exceeded","resource_not_found","tracking_disabled","attribution_required","currency_unavailable","idempotency_conflict","idempotency_key_required","invalid_preflight","origin_required","hostname_not_configured","origin_not_allowed","client_click_tracking_disabled","invalid_click_id","stripe_account_not_connected","stripe_environment_required","stripe_attribution_conflict","stripe_mode_mismatch","domain_taken","alias_taken","external_id_taken","folder_name_taken","tag_name_taken","pixel_name_taken","biolink_name_taken","method_not_allowed","url_blocked","dns_verification_failed","validation_error","rate_limit_exceeded","internal_server_error"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"uniqueKey":"error.details","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"type":"string","description":"Request identifier to include when contacting support.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"invalid_token","message":"\u003cstring>","details":{}},"request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"b3b57b2b-27f6-4c27-9771-c23e3b7ef54d":{"description":"The workspace exceeded its plan's API rate limit.","headers":{"RateLimit-Policy":{"description":"Current IETF HTTPAPI quota policy as a structured field.","schema":{"type":"string","example":"\"workspace-api\";q=1000;w=60"}},"RateLimit":{"description":"Current IETF HTTPAPI service limit as a structured field.","schema":{"type":"string","example":"\"workspace-api\";r=0;t=17"}},"Retry-After":{"description":"Seconds to wait before retrying the request.","schema":{"type":"integer","minimum":0,"example":17}},"X-RateLimit-Limit":{"description":"Legacy maximum request count for the current window.","schema":{"type":"integer","minimum":1,"example":1000}},"X-RateLimit-Remaining":{"description":"Legacy remaining request count.","schema":{"type":"integer","minimum":0,"example":0}},"X-RateLimit-Reset":{"description":"Legacy reset time as a UTC Unix timestamp.","schema":{"type":"integer","format":"int64","example":1788126519}},"X-Biq-Request-Id":{"description":"Request identifier for support and tracing.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["error","request_id"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_token","insufficient_scope","upgrade_required","quota_exceeded","resource_not_found","tracking_disabled","attribution_required","currency_unavailable","idempotency_conflict","idempotency_key_required","invalid_preflight","origin_required","hostname_not_configured","origin_not_allowed","client_click_tracking_disabled","invalid_click_id","stripe_account_not_connected","stripe_environment_required","stripe_attribution_conflict","stripe_mode_mismatch","domain_taken","alias_taken","external_id_taken","folder_name_taken","tag_name_taken","pixel_name_taken","biolink_name_taken","method_not_allowed","url_blocked","dns_verification_failed","validation_error","rate_limit_exceeded","internal_server_error"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"uniqueKey":"error.details","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"type":"string","description":"Request identifier to include when contacting support.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"invalid_token","message":"\u003cstring>","details":{}},"request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"ddda5289-adac-4fa3-ab96-93fb1488ed5a":{"description":"The request failed unexpectedly.","headers":{"X-Biq-Request-Id":{"description":"Request identifier for support and tracing.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["error","request_id"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_token","insufficient_scope","upgrade_required","quota_exceeded","resource_not_found","tracking_disabled","attribution_required","currency_unavailable","idempotency_conflict","idempotency_key_required","invalid_preflight","origin_required","hostname_not_configured","origin_not_allowed","client_click_tracking_disabled","invalid_click_id","stripe_account_not_connected","stripe_environment_required","stripe_attribution_conflict","stripe_mode_mismatch","domain_taken","alias_taken","external_id_taken","folder_name_taken","tag_name_taken","pixel_name_taken","biolink_name_taken","method_not_allowed","url_blocked","dns_verification_failed","validation_error","rate_limit_exceeded","internal_server_error"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"uniqueKey":"error.details","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"type":"string","description":"Request identifier to include when contacting support.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"invalid_token","message":"\u003cstring>","details":{}},"request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"b0a2461c-5f0a-4771-907e-392809d004de":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"Workspace API key","description":"A workspace API key beginning with biqli_.","scopes":[]}},"f2961585-0644-49fc-947d-36ebb0b61eeb":{"integrationOAuth":{"type":"oauth2","description":"OAuth 2.0 authorization code flow for self-service and Biqli-managed integrations. A user selects one workspace and approves the requested permissions. Confidential clients authenticate with a secret; public clients use S256 PKCE.","flows":{"authorizationCode":{"authorizationUrl":"https://biq.li/oauth/authorize","tokenUrl":"https://biq.li/api/v1/oauth/token","refreshUrl":"https://biq.li/api/v1/oauth/token","scopes":{"workspace.read":"Read the connected user and workspace identity.","links.view":"View links in the connected workspace.","links.create":"Create links in the connected workspace.","links.update":"Update links in the connected workspace.","links.delete":"Delete links in the connected workspace.","qr_codes.view":"View QR codes in the connected workspace.","qr_codes.create":"Create QR codes in the connected workspace.","qr_codes.update":"Update QR codes in the connected workspace.","qr_codes.delete":"Delete QR codes in the connected workspace.","biolinks.view":"View Biolinks in the connected workspace.","biolinks.create":"Create Biolinks in the connected workspace.","biolinks.update":"Update Biolinks in the connected workspace.","biolinks.delete":"Delete Biolinks in the connected workspace.","link_groups.view":"View folders in the connected workspace.","link_groups.create":"Create folders in the connected workspace.","link_groups.update":"Update folders in the connected workspace.","link_groups.delete":"Delete folders in the connected workspace.","tracking_pixels.view":"View tracking pixels in the connected workspace.","tracking_pixels.create":"Create tracking pixels in the connected workspace.","tracking_pixels.update":"Update tracking pixels in the connected workspace.","tracking_pixels.delete":"Delete tracking pixels in the connected workspace.","custom_domains.view":"View custom domains in the connected workspace.","custom_domains.create":"Create custom domains in the connected workspace.","custom_domains.update":"Update custom domains in the connected workspace.","custom_domains.delete":"Delete custom domains in the connected workspace.","tags.view":"View tags in the connected workspace.","tags.create":"Create tags in the connected workspace.","tags.update":"Update tags in the connected workspace.","tags.delete":"Delete tags in the connected workspace.","webhooks.view":"View webhook endpoints and delivery history in the connected workspace.","webhooks.create":"Create webhook endpoints in the connected workspace.","webhooks.update":"Update and test webhook endpoints in the connected workspace.","webhooks.delete":"Delete webhook endpoints in the connected workspace.","conversions.create":"Record attributed lead and sale events in the connected workspace.","links.read":"Compatibility scope for viewing links in a Biqli-managed integration.","links.write":"Compatibility scope for managing links and viewing their referenced resources.","webhooks.read":"Compatibility scope for reading representative webhook payloads.","webhooks.write":"Compatibility scope for managing Biqli-owned automation subscriptions.","conversions.write":"Compatibility scope for recording attributed lead and sale events."}}},"scopes":[]}}},"servers":{"2efa6d45-e74a-42aa-b55e-7e2ed6501676":{"url":"https://biq.li/api"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"Workspace API key","description":"A workspace API key beginning with biqli_.","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"A workspace API key beginning with biqli_.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"},{"schemes":[{"scheme":{"type":"oauth2","description":"OAuth 2.0 authorization code flow for self-service and Biqli-managed integrations. A user selects one workspace and approves the requested permissions. Confidential clients authenticate with a secret; public clients use S256 PKCE.","flows":{"authorizationCode":{"authorizationUrl":"https://biq.li/oauth/authorize","tokenUrl":"https://biq.li/api/v1/oauth/token","refreshUrl":"https://biq.li/api/v1/oauth/token","scopes":{"workspace.read":"Read the connected user and workspace identity.","links.view":"View links in the connected workspace.","links.create":"Create links in the connected workspace.","links.update":"Update links in the connected workspace.","links.delete":"Delete links in the connected workspace.","qr_codes.view":"View QR codes in the connected workspace.","qr_codes.create":"Create QR codes in the connected workspace.","qr_codes.update":"Update QR codes in the connected workspace.","qr_codes.delete":"Delete QR codes in the connected workspace.","biolinks.view":"View Biolinks in the connected workspace.","biolinks.create":"Create Biolinks in the connected workspace.","biolinks.update":"Update Biolinks in the connected workspace.","biolinks.delete":"Delete Biolinks in the connected workspace.","link_groups.view":"View folders in the connected workspace.","link_groups.create":"Create folders in the connected workspace.","link_groups.update":"Update folders in the connected workspace.","link_groups.delete":"Delete folders in the connected workspace.","tracking_pixels.view":"View tracking pixels in the connected workspace.","tracking_pixels.create":"Create tracking pixels in the connected workspace.","tracking_pixels.update":"Update tracking pixels in the connected workspace.","tracking_pixels.delete":"Delete tracking pixels in the connected workspace.","custom_domains.view":"View custom domains in the connected workspace.","custom_domains.create":"Create custom domains in the connected workspace.","custom_domains.update":"Update custom domains in the connected workspace.","custom_domains.delete":"Delete custom domains in the connected workspace.","tags.view":"View tags in the connected workspace.","tags.create":"Create tags in the connected workspace.","tags.update":"Update tags in the connected workspace.","tags.delete":"Delete tags in the connected workspace.","webhooks.view":"View webhook endpoints and delivery history in the connected workspace.","webhooks.create":"Create webhook endpoints in the connected workspace.","webhooks.update":"Update and test webhook endpoints in the connected workspace.","webhooks.delete":"Delete webhook endpoints in the connected workspace.","conversions.create":"Record attributed lead and sale events in the connected workspace.","links.read":"Compatibility scope for viewing links in a Biqli-managed integration.","links.write":"Compatibility scope for managing links and viewing their referenced resources.","webhooks.read":"Compatibility scope for reading representative webhook payloads.","webhooks.write":"Compatibility scope for managing Biqli-owned automation subscriptions.","conversions.write":"Compatibility scope for recording attributed lead and sale events."}}},"scopes":[]},"schema":{"title":"OAuth2 Auth","type":"string","isRequired":true,"description":"OAuth 2.0 authorization code flow for self-service and Biqli-managed integrations. A user selects one workspace and approves the requested permissions. Confidential clients authenticate with a secret; public clients use S256 PKCE.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"integrationOAuth","name":"Authorization"}],"title":"integrationOAuth"}]},"originalFileLocation":"openapi.json"},"subdomain":"biqlillc-cc349ea4","siteName":"Biqli","title":"Track a sale - Biqli","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-14T18:39:46.440Z","originalFileLocation":"docs/api-reference/conversions/track-sale.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=\"Record an idempotent server-side sale with direct or deferred attribution.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Biqli\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/biqlillc-cc349ea4/T5qpvXSLmYQj7Z5y/_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/biqlillc-cc349ea4/T5qpvXSLmYQj7Z5y/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/biqlillc-cc349ea4/T5qpvXSLmYQj7Z5y/_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/biqlillc-cc349ea4/T5qpvXSLmYQj7Z5y/_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/biqlillc-cc349ea4/T5qpvXSLmYQj7Z5y/_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/biqlillc-cc349ea4/T5qpvXSLmYQj7Z5y/_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/biqlillc-cc349ea4/T5qpvXSLmYQj7Z5y/_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/biqlillc-cc349ea4/T5qpvXSLmYQj7Z5y/_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/biqlillc-cc349ea4/T5qpvXSLmYQj7Z5y/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Track a sale - Biqli\">\u003cmeta data-mint-head property=\"og:description\" content=\"Record an idempotent server-side sale with direct or deferred attribution.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Biqli\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://learn.biq.li/docs/api-reference/conversions/track-sale\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://biqlillc-cc349ea4.mintlify.site/_mintlify/api/og/v2?division=Conversions\u0026amp;title=Track+a+sale\u0026amp;description=Record+an+idempotent+server-side+sale+with+direct+or+deferred+attribution.\u0026amp;theme=7fdbf1577f29ece888d7a2b3\u0026amp;signature=9fb7fd9617cd9a55170bb3cac4c759f394664118a8e441005f90502c95bda923\">\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=\"Track a sale - Biqli\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Record an idempotent server-side sale with direct or deferred attribution.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://biqlillc-cc349ea4.mintlify.site/_mintlify/api/og/v2?division=Conversions\u0026amp;title=Track+a+sale\u0026amp;description=Record+an+idempotent+server-side+sale+with+direct+or+deferred+attribution.\u0026amp;theme=7fdbf1577f29ece888d7a2b3\u0026amp;signature=9fb7fd9617cd9a55170bb3cac4c759f394664118a8e441005f90502c95bda923\">\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/biqlillc-cc349ea4/T5qpvXSLmYQj7Z5y/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Biqli\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3B82F6\">\u003clink data-mint-head rel=\"canonical\" href=\"https://learn.biq.li/docs/api-reference/conversions/track-sale\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/conversions/track-sale.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://learn.biq.li/#organization\",\"name\":\"Biqli\",\"url\":\"https://learn.biq.li\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/biqlillc-cc349ea4/vhOVG3nb6zjxQ8qQ/logo/light.png?fit=max\u0026auto=format\u0026n=vhOVG3nb6zjxQ8qQ\u0026q=85\u0026s=e047892083738e2bb348400f1a82f718\"}},{\"@type\":\"WebSite\",\"@id\":\"https://learn.biq.li#website\",\"name\":\"Biqli\",\"url\":\"https://learn.biq.li\",\"publisher\":{\"@id\":\"https://learn.biq.li/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://learn.biq.li/docs/api-reference/conversions/track-sale#webpage\",\"url\":\"https://learn.biq.li/docs/api-reference/conversions/track-sale\",\"name\":\"Track a sale\",\"description\":\"Record an idempotent server-side sale with direct or deferred attribution.\",\"dateModified\":\"2026-09-14T18:39:46.440Z\",\"isPartOf\":{\"@id\":\"https://learn.biq.li#website\"},\"breadcrumb\":{\"@id\":\"https://learn.biq.li/docs/api-reference/conversions/track-sale#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://learn.biq.li/docs/api-reference/conversions/track-sale#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"BIQLI LINKS API\",\"item\":\"https://learn.biq.li/docs/api-reference/links/create\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Conversions\",\"item\":\"https://learn.biq.li/docs/api-reference/conversions/track-lead\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Track a sale\",\"item\":\"https://learn.biq.li/docs/api-reference/conversions/track-sale\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://learn.biq.li/docs/api-reference/conversions/track-sale#apireference\",\"headline\":\"Track a sale\",\"name\":\"Track a sale\",\"description\":\"Record an idempotent server-side sale with direct or deferred attribution.\",\"url\":\"https://learn.biq.li/docs/api-reference/conversions/track-sale\",\"mainEntityOfPage\":{\"@id\":\"https://learn.biq.li/docs/api-reference/conversions/track-sale#webpage\"},\"dateModified\":\"2026-09-14T18:39:46.440Z\",\"publisher\":{\"@id\":\"https://learn.biq.li/#organization\"},\"isPartOf\":{\"@id\":\"https://learn.biq.li#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Biqli\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Biqli","nav":{"global":null,"tabs":[{"tab":"Developer Docs","icon":"code","pages":[{"title":"Developer Docs","href":"/developers/introduction"}]},{"tab":"Help Center","icon":"life-ring","pages":[{"title":"Help Center","href":"/help"}]},{"tab":"API Reference","icon":"rectangle-terminal","groups":[{"group":"GETTING STARTED","pages":[{"title":"Introduction","href":"/docs/api-reference/introduction"},{"title":"Authentication","href":"/docs/api-reference/authentication"},{"title":"Rate limits","href":"/docs/api-reference/rate-limits"},{"title":"Errors","href":"/docs/api-reference/errors"},{"title":"Pagination","href":"/docs/api-reference/pagination"}]},{"group":"OAUTH 2.0","pages":[{"title":"OAuth 2.0 overview","href":"/docs/api-reference/oauth/overview"},{"title":"Authorize a workspace","href":"/docs/api-reference/oauth/authorize"},{"title":"Exchange or refresh a token","href":"/docs/api-reference/oauth/token"},{"title":"Retrieve the connected workspace","href":"/docs/api-reference/oauth/connection"},{"title":"Revoke a connection","href":"/docs/api-reference/oauth/revoke"},{"title":"OAuth scopes","href":"/docs/api-reference/oauth/scopes"},{"title":"OAuth errors","href":"/docs/api-reference/oauth/errors"}]},{"group":"OFFICIAL AUTOMATION APIS","pages":[{"title":"Official Zapier integration API","href":"/docs/api-reference/integrations/zapier"},{"title":"Official Make integration API","href":"/docs/api-reference/integrations/make"}]},{"group":"SDKs","pages":[{"title":"SDK overview","href":"/docs/api-reference/sdks/overview"},{"title":"Browser SDK","href":"/docs/api-reference/sdks/browser"},{"title":"TypeScript SDK","href":"/docs/api-reference/sdks/typescript"},{"title":"PHP SDK","href":"/docs/api-reference/sdks/php"},{"title":"Android SDK","href":"/docs/api-reference/sdks/android"},{"title":"iOS SDK","href":"/docs/api-reference/sdks/ios"}]},{"group":"MOBILE ATTRIBUTION","pages":[{"title":"Resolve a mobile open","openapi":"POST /v1/track/open","href":"/docs/api-reference/mobile/track-open"},{"title":"Verify attribution receipts","href":"/docs/api-reference/mobile/attribution-receipts"}]},{"group":"BIQLI LINKS API","pages":[{"group":"Links","pages":[{"title":"Create a link","openapi":"POST /v1/link","href":"/docs/api-reference/links/create"},{"title":"Retrieve a link","openapi":"GET /v1/link/{link}","href":"/docs/api-reference/links/get"},{"title":"Update a link","openapi":"PATCH /v1/link/{link}","href":"/docs/api-reference/links/update"},{"title":"Delete a link","openapi":"DELETE /v1/link/{link}","href":"/docs/api-reference/links/delete"},{"title":"List links","openapi":"GET /v1/link","href":"/docs/api-reference/links/list"},{"title":"Count links","openapi":"GET /v1/link/count","href":"/docs/api-reference/links/count"},{"title":"Bulk create links","openapi":"POST /v1/link/bulk","href":"/docs/api-reference/links/bulk-create"},{"title":"Bulk update links","openapi":"PATCH /v1/link/bulk","href":"/docs/api-reference/links/bulk-update"},{"title":"Bulk delete links","openapi":"DELETE /v1/link/bulk","href":"/docs/api-reference/links/bulk-delete"}]},{"group":"Webhook endpoints","pages":[{"title":"Manage webhook endpoints","href":"/docs/api-reference/webhooks/manage"}]},{"group":"Conversions","pages":[{"title":"Track a lead","description":"Record an idempotent server-side lead and attribute it to a Biqli click.","openapi":"POST /v1/track/lead","href":"/docs/api-reference/conversions/track-lead"},{"title":"Track a sale","openapi":"POST /v1/track/sale","href":"/docs/api-reference/conversions/track-sale"},{"title":"Store a Stripe Checkout Session","sidebarTitle":"Store Stripe session","description":"Bind a Stripe Checkout Session to the current Biqli click before payment.","href":"/docs/api-reference/conversions/store-stripe-session"}]},{"group":"Domains","pages":[{"title":"Create a domain","openapi":"POST /v1/domain","href":"/docs/api-reference/domains/create"},{"title":"Retrieve a domain","openapi":"GET /v1/domain/{domain}","href":"/docs/api-reference/domains/get"},{"title":"Update a domain","openapi":"PATCH /v1/domain/{domain}","href":"/docs/api-reference/domains/update"},{"title":"Delete a domain","openapi":"DELETE /v1/domain/{domain}","href":"/docs/api-reference/domains/delete"},{"title":"List domains","openapi":"GET /v1/domain","href":"/docs/api-reference/domains/list"},{"title":"Check domain availability","openapi":"GET /v1/domain/availability","href":"/docs/api-reference/domains/availability"},{"title":"Retrieve DNS configuration","openapi":"GET /v1/domain/{domain}/dns-config","href":"/docs/api-reference/domains/dns-config"},{"title":"Verify a domain","openapi":"POST /v1/domain/{domain}/verify","href":"/docs/api-reference/domains/verify"}]},{"group":"Folders","pages":[{"title":"Create a folder","openapi":"POST /v1/folder","href":"/docs/api-reference/folders/create"},{"title":"Retrieve a folder","openapi":"GET /v1/folder/{folder}","href":"/docs/api-reference/folders/get"},{"title":"Update a folder","openapi":"PATCH /v1/folder/{folder}","href":"/docs/api-reference/folders/update"},{"title":"Delete a folder","openapi":"DELETE /v1/folder/{folder}","href":"/docs/api-reference/folders/delete"},{"title":"List folders","openapi":"GET /v1/folder","href":"/docs/api-reference/folders/list"},{"title":"Manage folder links","openapi":"PUT /v1/folder/{folder}/links/{link}","href":"/docs/api-reference/folders/links"}]},{"group":"Tags","pages":[{"title":"Create a tag","openapi":"POST /v1/tag","href":"/docs/api-reference/tags/create"},{"title":"Retrieve a tag","openapi":"GET /v1/tag/{tag}","href":"/docs/api-reference/tags/get"},{"title":"Update a tag","openapi":"PATCH /v1/tag/{tag}","href":"/docs/api-reference/tags/update"},{"title":"Delete a tag","openapi":"DELETE /v1/tag/{tag}","href":"/docs/api-reference/tags/delete"},{"title":"List tags","openapi":"GET /v1/tag","href":"/docs/api-reference/tags/list"},{"title":"Manage tagged links","openapi":"PUT /v1/tag/{tag}/links/{link}","href":"/docs/api-reference/tags/links"}]},{"group":"Tracking pixels","pages":[{"title":"Create a tracking pixel","openapi":"POST /v1/tracking-pixel","href":"/docs/api-reference/tracking-pixels/create"},{"title":"Retrieve a tracking pixel","openapi":"GET /v1/tracking-pixel/{pixel}","href":"/docs/api-reference/tracking-pixels/get"},{"title":"Update a tracking pixel","openapi":"PATCH /v1/tracking-pixel/{pixel}","href":"/docs/api-reference/tracking-pixels/update"},{"title":"Delete a tracking pixel","openapi":"DELETE /v1/tracking-pixel/{pixel}","href":"/docs/api-reference/tracking-pixels/delete"},{"title":"List tracking pixels","openapi":"GET /v1/tracking-pixel","href":"/docs/api-reference/tracking-pixels/list"},{"title":"Manage pixel links","openapi":"PUT /v1/tracking-pixel/{pixel}/links/{link}","href":"/docs/api-reference/tracking-pixels/links"}]},{"group":"QR codes","pages":[{"title":"Create a QR code","openapi":"POST /v1/qr","href":"/docs/api-reference/qr-codes/create"},{"title":"Style a QR code","href":"/docs/api-reference/qr-codes/styling"},{"title":"Retrieve a QR code","openapi":"GET /v1/qr/{qr}","href":"/docs/api-reference/qr-codes/get"},{"title":"Update a QR code","openapi":"PATCH /v1/qr/{qr}","href":"/docs/api-reference/qr-codes/update"},{"title":"Delete a QR code","openapi":"DELETE /v1/qr/{qr}","href":"/docs/api-reference/qr-codes/delete"},{"title":"List QR codes","openapi":"GET /v1/qr","href":"/docs/api-reference/qr-codes/list"}]},{"group":"Biolinks","pages":[{"title":"Create a biolink","openapi":"POST /v1/bio","href":"/docs/api-reference/biolinks/create"},{"title":"Retrieve a biolink","openapi":"GET /v1/bio/{bio}","href":"/docs/api-reference/biolinks/get"},{"title":"Update a biolink","openapi":"PATCH /v1/bio/{bio}","href":"/docs/api-reference/biolinks/update"},{"title":"Delete a biolink","openapi":"DELETE /v1/bio/{bio}","href":"/docs/api-reference/biolinks/delete"},{"title":"List biolinks","openapi":"GET /v1/bio","href":"/docs/api-reference/biolinks/list"}]}]}]},{"tab":"Webhooks","icon":"webhook","pages":[{"title":"Webhooks","href":"/webhooks/introduction"}]}]},"basePath":"","title":"Track a sale - Biqli","buildId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","deploymentId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CBsVopKK.js","utils-DZAk68jJ.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-D32AYZrP.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-D_A5_cny.js","snippetPresets-xNRfS9th.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BIB25-tq.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CydJ4w4j.js","shallow-CYPBeQSG.js","getApiPlaygroundDisplay-A5xJVBOu.js","CodeSnippet-BVRTgi3m.js","CodeSnippets-DjD6BSlt.js","Page-Dr40SSJq.js","getPastedJson-D4V4JyrR.js","icon-uhcnG22T.js","MethodPill-CM-ZQdGH.js","DuplicateIcon-B_WnOiNf.js","createIcon-CJsb8utt.js","DynamicMarkdown-D-2HDKEp.js","SectionHeading-KP5xmMgQ.js","axios-vUo_bRtp.js","Markdown-D_k0dg6k.js","clsx-DK3K4Z1S.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-DE3EVdvd.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-fN9H9n9g.js"]}