commission is null when nothing is earned (for example a lead that has not been marked won yet, or a purchase by the affiliate themselves).
Errors
Status
Meaning
401
The token is missing or wrong.
404
No affiliate or coupon matches.
422
The referral was refused (the affiliate is not approved, the program is not active, or the type is wrong), or a field failed validation. The error field says why.
Refund a sale
POST /referrals/refundTell Affiliate Manager that a sale was refunded. A commission that has not been paid yet is reversed.
Field
Type
Notes
external_id
string
The id you sent when you recorded the sale. Required.
program
string
Narrows the match when the same id could exist in two programs.
It returns the same shape as above with the new status, or 404 if no referral has that external_id.
Credit visitors from your website
To carry an affiliate’s ?ref= code from the link to your contact form, add https://YOUR-INSTALL/track.js to your pages. It stores the code in a cookie and fills any form field named affiliate_ref. Send that value as ref when you report the lead. See Connecting sales and leads.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Azvian Docs","colors":{"primary":"#4F46E5","light":"#818CF8","dark":"#4338CA"},"favicon":"https://mintcdn.com/azvian-3646dad2/fZNf7kUEC5uZAjgW/crm/favicon.svg?fit=max\u0026auto=format\u0026n=fZNf7kUEC5uZAjgW\u0026q=85\u0026s=ddf12494e33dbdfb1bfc74bd5a00a2b1","navbar":{"links":[{"href":"/start/support","label":"Support"}]},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"azvian-3646dad2","hasAudioNarration":false,"actualSubdomain":"azvian-3646dad2","customDomains":["docs.azvian.com"],"gitSource":{"type":"github","owner":"azvianofficial","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ae67483e7a853c3110a4249","clientVersion":"0.0.4340","searchFilterCounts":[{"language":"default","tag":"Web apps","count":127},{"language":"default","tag":"Get Started","count":36},{"language":"default","tag":"CRM","count":15},{"language":"default","tag":"Social","count":14},{"language":"default","tag":"Affiliate Manager","count":13},{"language":"default","tag":"Administration","count":12},{"language":"default","tag":"Mailer","count":12},{"language":"default","tag":"Uptime Monitor","count":12},{"language":"default","tag":"Contracts","count":11},{"language":"default","tag":"Help","count":11}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"affiliate-manager/api","slug":"/affiliate-manager/api","pageMetadata":{"title":"API reference","description":"Report a sale or lead, and reverse a refunded sale, from your own website or checkout","href":"/affiliate-manager/api"},"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: \"Report a sale or lead, and reverse a refunded sale, from your own website or checkout\"\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,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`The API lets your own server tell Affiliate Manager about a sale, a lead or a refund. It is JSON over HTTPS, authenticated with a bearer token.`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Call the API from your `,_jsx(_components.strong,{children:`server`}),`, never from a visitor’s browser. The token is a secret: anyone who has it can record referrals.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`authentication`,children:`Authentication`}),`\n`,_jsxs(_components.p,{children:[`Find your token under `,_jsx(_components.strong,{children:`Integrations → API token`}),`. Send it on every request:`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`3`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Authorization: Bearer YOUR_TOKEN`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Content-Type: application/json`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`Until a token exists the API is off and every call returns `,_jsx(_components.code,{children:`401`}),`. Requests are limited to `,_jsx(_components.strong,{children:`120 per minute`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Base address: `,_jsx(_components.code,{children:`https://YOUR-INSTALL/api/v1`})]}),`\n`,_jsx(Heading,{level:`2`,id:`record-a-sale-or-a-lead`,children:`Record a sale or a lead`}),`\n`,_jsx(_components.p,{children:_jsx(_components.code,{children:`POST /referrals`})}),`\n`,_jsxs(_components.p,{children:[`Credits a sale or a lead to an affiliate. Identify the affiliate by their `,_jsx(_components.strong,{children:`code`}),` (`,_jsx(_components.code,{children:`ref`}),`) or by a `,_jsx(_components.strong,{children:`coupon`}),` code.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Notes`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ref`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`The affiliate’s code (the `,_jsx(_components.code,{children:`ref`}),` value from their link). Required unless `,_jsx(_components.code,{children:`coupon`}),` is given.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`coupon`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`A coupon code that belongs to an affiliate. Required unless `,_jsx(_components.code,{children:`ref`}),` is given.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`program`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`The program’s address (slug). Recommended when you run more than one program.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`type`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`sale`}),` or `,_jsx(_components.code,{children:`lead`})]}),_jsxs(_components.td,{children:[`Defaults to `,_jsx(_components.code,{children:`sale`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`external_id`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Your own id for this order or form (up to 191 characters). `,_jsx(_components.strong,{children:`Sending the same value again credits only once.`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`email`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`The customer’s email. Used for fraud checks.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`amount`})}),_jsx(_components.td,{children:`number`}),_jsxs(_components.td,{children:[`The sale value in the program’s currency, for example `,_jsx(_components.code,{children:`49.00`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`amount_cents`})}),_jsx(_components.td,{children:`integer`}),_jsxs(_components.td,{children:[`The same in whole cents. Use one of `,_jsx(_components.code,{children:`amount`}),` and `,_jsx(_components.code,{children:`amount_cents`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`currency`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Three letters.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`notes`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Up to 1,000 characters.`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`example`,children:`Example`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,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:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://YOUR-INSTALL/api/v1/referrals`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer YOUR_TOKEN\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{\"program\":\"your-program\",\"type\":\"sale\",\"external_id\":\"order-8841\",\"coupon\":\"MAYA20\",\"email\":\"buyer@example.com\",\"amount\":49.00}'`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`response`,children:`Response`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`201 Created`}),` for a new referral, `,_jsx(_components.code,{children:`200 OK`}),` when the `,_jsx(_components.code,{children:`external_id`}),` was already recorded:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`12`,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:`12`,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:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`42`}),_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:` \"created\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_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:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"approved\"`}),_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:` \"commission\"`}),_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_cents\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`980`}),_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:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pending\"`}),_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:` \"payable_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-11-14\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\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:`commission`}),` is `,_jsx(_components.code,{children:`null`}),` when nothing is earned (for example a lead that has not been marked won yet, or a purchase by the affiliate themselves).`]}),`\n`,_jsx(Heading,{level:`3`,id:`errors`,children:`Errors`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`401`})}),_jsx(_components.td,{children:`The token is missing or wrong.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`404`})}),_jsx(_components.td,{children:`No affiliate or coupon matches.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`422`})}),_jsxs(_components.td,{children:[`The referral was refused (the affiliate is not approved, the program is not active, or the type is wrong), or a field failed validation. The `,_jsx(_components.code,{children:`error`}),` field says why.`]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`refund-a-sale`,children:`Refund a sale`}),`\n`,_jsx(_components.p,{children:_jsx(_components.code,{children:`POST /referrals/refund`})}),`\n`,_jsx(_components.p,{children:`Tell Affiliate Manager that a sale was refunded. A commission that has not been paid yet is reversed.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Notes`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`external_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`The id you sent when you recorded the sale. Required.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`program`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Narrows the match when the same id could exist in two programs.`})]})]})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,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:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://YOUR-INSTALL/api/v1/referrals/refund`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer YOUR_TOKEN\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{\"external_id\":\"order-8841\"}'`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`It returns the same shape as above with the new `,_jsx(_components.code,{children:`status`}),`, or `,_jsx(_components.code,{children:`404`}),` if no referral has that `,_jsx(_components.code,{children:`external_id`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`credit-visitors-from-your-website`,children:`Credit visitors from your website`}),`\n`,_jsxs(_components.p,{children:[`To carry an affiliate’s `,_jsx(_components.code,{children:`?ref=`}),` code from the link to your contact form, add `,_jsx(_components.code,{children:`https://YOUR-INSTALL/track.js`}),` to your pages. It stores the code in a cookie and fills any form field named `,_jsx(_components.code,{children:`affiliate_ref`}),`. Send that value as `,_jsx(_components.code,{children:`ref`}),` when you report the lead. See `,_jsx(_components.a,{href:`/affiliate-manager/connecting-sales`,children:`Connecting sales and leads`}),`.`]})]})}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":"API reference","description":"Report a sale or lead, and reverse a refunded sale, from your own website or checkout","href":"/affiliate-manager/api"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Authentication","slug":"authentication","depth":2,"children":[]},{"title":"Record a sale or a lead","slug":"record-a-sale-or-a-lead","depth":2,"children":[{"title":"Example","slug":"example","depth":3,"children":[]},{"title":"Response","slug":"response","depth":3,"children":[]},{"title":"Errors","slug":"errors","depth":3,"children":[]}]},{"title":"Refund a sale","slug":"refund-a-sale","depth":2,"children":[]},{"title":"Credit visitors from your website","slug":"credit-visitors-from-your-website","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"azvian-3646dad2","siteName":"Azvian Docs","title":"API reference - Azvian Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-21T00:55:47.225Z","originalFileLocation":"affiliate-manager/api.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=\"Report a sale or lead, and reverse a refunded sale, from your own website or checkout\">\u003cmeta data-mint-head name=\"application-name\" content=\"Azvian Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/azvian-3646dad2/R25xjSwX7CvNAlk6/_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/azvian-3646dad2/R25xjSwX7CvNAlk6/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/azvian-3646dad2/R25xjSwX7CvNAlk6/_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/azvian-3646dad2/R25xjSwX7CvNAlk6/_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/azvian-3646dad2/R25xjSwX7CvNAlk6/_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/azvian-3646dad2/R25xjSwX7CvNAlk6/_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/azvian-3646dad2/R25xjSwX7CvNAlk6/_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/azvian-3646dad2/R25xjSwX7CvNAlk6/_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/azvian-3646dad2/R25xjSwX7CvNAlk6/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"API reference - Azvian Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Report a sale or lead, and reverse a refunded sale, from your own website or checkout\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Azvian Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.azvian.com/affiliate-manager/api\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://azvian-3646dad2.mintlify.site/_mintlify/api/og/v2?division=Reference\u0026amp;title=API+reference\u0026amp;description=Report+a+sale+or+lead%2C+and+reverse+a+refunded+sale%2C+from+your+own+website+or+checkout\u0026amp;theme=01e646d607e9f4c56b237617\u0026amp;signature=7a880118bdc86adebfba36b1702ec935b90f956327f2c281635f1ed9e9a435f2\">\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=\"API reference - Azvian Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Report a sale or lead, and reverse a refunded sale, from your own website or checkout\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://azvian-3646dad2.mintlify.site/_mintlify/api/og/v2?division=Reference\u0026amp;title=API+reference\u0026amp;description=Report+a+sale+or+lead%2C+and+reverse+a+refunded+sale%2C+from+your+own+website+or+checkout\u0026amp;theme=01e646d607e9f4c56b237617\u0026amp;signature=7a880118bdc86adebfba36b1702ec935b90f956327f2c281635f1ed9e9a435f2\">\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/azvian-3646dad2/R25xjSwX7CvNAlk6/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Azvian Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#4F46E5\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.azvian.com/affiliate-manager/api\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/affiliate-manager/api.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.azvian.com/#organization\",\"name\":\"Azvian Docs\",\"url\":\"https://docs.azvian.com\"},{\"@type\":\"WebSite\",\"@id\":\"https://docs.azvian.com#website\",\"name\":\"Azvian Docs\",\"url\":\"https://docs.azvian.com\",\"publisher\":{\"@id\":\"https://docs.azvian.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.azvian.com/affiliate-manager/api#webpage\",\"url\":\"https://docs.azvian.com/affiliate-manager/api\",\"name\":\"API reference\",\"description\":\"Report a sale or lead, and reverse a refunded sale, from your own website or checkout\",\"dateModified\":\"2026-10-21T00:55:47.225Z\",\"isPartOf\":{\"@id\":\"https://docs.azvian.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.azvian.com/affiliate-manager/api#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.azvian.com/affiliate-manager/api#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Azvian Docs\",\"item\":\"https://docs.azvian.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"API reference\",\"item\":\"https://docs.azvian.com/affiliate-manager/api\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.azvian.com/affiliate-manager/api#article\",\"headline\":\"API reference\",\"name\":\"API reference\",\"description\":\"Report a sale or lead, and reverse a refunded sale, from your own website or checkout\",\"url\":\"https://docs.azvian.com/affiliate-manager/api\",\"mainEntityOfPage\":{\"@id\":\"https://docs.azvian.com/affiliate-manager/api#webpage\"},\"dateModified\":\"2026-10-21T00:55:47.225Z\",\"publisher\":{\"@id\":\"https://docs.azvian.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.azvian.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Azvian Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Azvian Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/affiliate-manager/api.md","siteName":"Azvian Docs","nav":{"global":null,"tabs":[{"tab":"Start here","icon":"rocket","pages":[{"title":"Start here","href":"/start"}]},{"tab":"Web apps","icon":"server","dropdowns":[{"dropdown":"Affiliate Manager","icon":"handshake","groups":[{"group":"Get Started","pages":[{"title":"Introduction","href":"/affiliate-manager"},{"title":"Installation","href":"/affiliate-manager/installation"},{"title":"Updating","href":"/affiliate-manager/updating"}]},{"group":"Set Up Your Program","pages":[{"title":"Programs","href":"/affiliate-manager/programs"},{"title":"Affiliates","href":"/affiliate-manager/affiliates"},{"title":"Connecting sales and leads","href":"/affiliate-manager/connecting-sales"}]},{"group":"Day to Day","pages":[{"title":"Commissions and payouts","href":"/affiliate-manager/commissions-and-payouts"},{"title":"Affiliate pages","href":"/affiliate-manager/affiliate-portal"},{"title":"Reports and fraud checks","href":"/affiliate-manager/reports-and-review"}]},{"group":"Administration","pages":[{"title":"Settings and team","href":"/affiliate-manager/settings"},{"title":"Backups","description":"Create, download and automate database backups from Settings → Backups","href":"/affiliate-manager/backups"}]},{"group":"Reference","pages":[{"title":"API reference","href":"/affiliate-manager/api"},{"title":"Troubleshooting","description":"Fixes for the most common problems with sales, payouts, email and sign-in","href":"/affiliate-manager/troubleshooting"}]}]},{"dropdown":"Contracts","icon":"file-signature","groups":[{"group":"Get Started","pages":[{"title":"Introduction","href":"/contracts"},{"title":"Installation","href":"/contracts/installation"},{"title":"Setting up","href":"/contracts/setup"},{"title":"Updating","href":"/contracts/updating"}]},{"group":"Writing and Sending","pages":[{"title":"Clients","href":"/contracts/clients"},{"title":"Templates and pricing","href":"/contracts/templates"},{"title":"Sending documents","href":"/contracts/sending-documents"}]},{"group":"Signing","pages":[{"title":"What your client sees","href":"/contracts/client-experience"},{"title":"After the signatures","href":"/contracts/after-signing"},{"title":"Reminders and the dashboard","href":"/contracts/reminders"}]},{"group":"Help","pages":[{"title":"Troubleshooting","href":"/contracts/troubleshooting"}]}]},{"dropdown":"Uptime Monitor","icon":"signal","groups":[{"group":"Get Started","pages":[{"title":"Introduction","href":"/uptime-monitor"},{"title":"Installation","href":"/uptime-monitor/installation"},{"title":"Updating","href":"/uptime-monitor/updating"}]},{"group":"Monitoring","pages":[{"title":"Websites and checks","href":"/uptime-monitor/monitoring"},{"title":"Incidents","href":"/uptime-monitor/incidents"},{"title":"Alerts","href":"/uptime-monitor/alerts"},{"title":"Maintenance windows","href":"/uptime-monitor/maintenance"}]},{"group":"Status Pages","pages":[{"title":"Status pages","href":"/uptime-monitor/status-pages"},{"title":"Email subscribers","href":"/uptime-monitor/subscribers"},{"title":"Custom domains","href":"/uptime-monitor/custom-domains"}]},{"group":"Administration","pages":[{"title":"Teams and administration","href":"/uptime-monitor/team-and-admin"},{"title":"Troubleshooting","href":"/uptime-monitor/troubleshooting"}]}]},{"dropdown":"Forms","icon":"pen-ruler","groups":[{"group":"Get Started","pages":[{"title":"Introduction","href":"/forms"},{"title":"Installation","href":"/forms/installation"},{"title":"Building forms","href":"/forms/building-forms"},{"title":"Publishing a form","href":"/forms/publishing"}]},{"group":"Day to Day","pages":[{"title":"Submissions","href":"/forms/submissions"},{"title":"Notifications and webhooks","href":"/forms/notifications-and-webhooks"},{"title":"Spam and privacy","href":"/forms/spam-and-privacy"}]},{"group":"Help","pages":[{"title":"Updating","href":"/forms/updating"},{"title":"Troubleshooting","href":"/forms/troubleshooting"}]}]},{"dropdown":"Invoicer","icon":"file-invoice-dollar","groups":[{"group":"Get Started","pages":[{"title":"Introduction","href":"/invoicer"},{"title":"Installation","href":"/invoicer/installation"},{"title":"Invoicing settings","href":"/invoicer/settings"},{"title":"Clients and items","href":"/invoicer/clients-and-items"}]},{"group":"Billing","pages":[{"title":"Invoices","href":"/invoicer/invoices"},{"title":"Estimates","href":"/invoicer/estimates"},{"title":"Sending and the client page","href":"/invoicer/sending"},{"title":"Payments","href":"/invoicer/payments"},{"title":"Dashboard and reports","href":"/invoicer/reports"}]},{"group":"Help","pages":[{"title":"Updating","href":"/invoicer/updating"},{"title":"Troubleshooting","href":"/invoicer/troubleshooting"}]}]},{"dropdown":"Knowledge Base","icon":"book","groups":[{"group":"Get Started","pages":[{"title":"Introduction","href":"/knowledge-base"},{"title":"Installation","href":"/knowledge-base/installation"},{"title":"Help center settings","href":"/knowledge-base/help-center-settings"}]},{"group":"Writing","pages":[{"title":"Writing articles","href":"/knowledge-base/writing-articles"},{"title":"Categories","href":"/knowledge-base/categories"},{"title":"Version history","href":"/knowledge-base/history"},{"title":"Team-only content","href":"/knowledge-base/team-only-content"}]},{"group":"Insights","pages":[{"title":"The dashboard and search","href":"/knowledge-base/insights"}]},{"group":"Help","pages":[{"title":"Updating","href":"/knowledge-base/updating"},{"title":"Troubleshooting","href":"/knowledge-base/troubleshooting"}]}]},{"dropdown":"QR \u0026 Link Manager","icon":"link","groups":[{"group":"Get Started","pages":[{"title":"Introduction","href":"/link-manager"},{"title":"Installation","href":"/link-manager/installation"},{"title":"Link settings","href":"/link-manager/link-settings"}]},{"group":"Links","pages":[{"title":"Creating and finding links","href":"/link-manager/creating-links"},{"title":"Link controls","href":"/link-manager/link-controls"},{"title":"Campaign tags (UTM)","href":"/link-manager/campaign-tags"},{"title":"QR codes","href":"/link-manager/qr-codes"},{"title":"Click statistics","href":"/link-manager/analytics"}]},{"group":"Help","pages":[{"title":"Updating","href":"/link-manager/updating"},{"title":"Troubleshooting","href":"/link-manager/troubleshooting"}]}]},{"dropdown":"CRM","icon":"users","groups":[{"group":"Get Started","pages":[{"title":"Introduction","href":"/crm"},{"title":"Installation","href":"/crm/installation"},{"title":"Updating","href":"/crm/updating"}]},{"group":"Core Features","pages":[{"title":"Customers \u0026 Contacts","href":"/crm/customers"},{"title":"Leads \u0026 Sales","href":"/crm/leads-and-sales"},{"title":"Projects \u0026 Tasks","href":"/crm/projects-and-tasks"},{"title":"Invoicing","href":"/crm/invoicing"},{"title":"Support Tickets","href":"/crm/support-tickets"},{"title":"Reports","href":"/crm/reports"}]},{"group":"Collaboration","pages":[{"title":"Team Collaboration","href":"/crm/collaboration"},{"title":"Client Portal","href":"/crm/client-portal"}]},{"group":"Administration","pages":[{"title":"Admin Guide","href":"/crm/admin-guide"}]},{"group":"Extending","pages":[{"title":"Customizing with Hooks","href":"/crm/customizing"},{"title":"Add-ons","href":"/crm/addons"}]},{"group":"Help","pages":[{"title":"Support","href":"/crm/support"}]}]},{"dropdown":"SEO","icon":"magnifying-glass-chart","groups":[{"group":"Get Started","pages":[{"title":"Introduction","href":"/seo"},{"title":"Installation","href":"/seo/installation"},{"title":"Updating","href":"/seo/updating"}]},{"group":"For Your Tenants","pages":[{"title":"Tenant Accounts","href":"/seo/tenant-accounts"},{"title":"Websites \u0026 Reports","href":"/seo/websites-and-reports"},{"title":"Web Tools","href":"/seo/web-tools"},{"title":"Billing","href":"/seo/billing"}]},{"group":"Developers","pages":[{"title":"API \u0026 Webhooks","href":"/seo/api-and-webhooks"}]},{"group":"Administration","pages":[{"title":"Admin Guide","href":"/seo/admin-guide"},{"title":"Demo Mode","href":"/seo/demo-mode"}]}]},{"dropdown":"Mailer","icon":"envelope","groups":[{"group":"Get Started","pages":[{"title":"Introduction","href":"/mailer"},{"title":"Installation","href":"/mailer/installation"},{"title":"Updating","href":"/mailer/updating"}]},{"group":"For Your Tenants","pages":[{"title":"Lists \u0026 Subscribers","href":"/mailer/lists-and-subscribers"},{"title":"Email Builder \u0026 Templates","href":"/mailer/email-builder-and-templates"},{"title":"Sending Servers","href":"/mailer/sending-servers"},{"title":"Campaigns \u0026 Tracking","href":"/mailer/campaigns-and-tracking"},{"title":"Automation","href":"/mailer/automation"},{"title":"Billing","href":"/mailer/billing"}]},{"group":"Developers","pages":[{"title":"API \u0026 Webhooks","href":"/mailer/api-and-webhooks"}]},{"group":"Administration","pages":[{"title":"Admin Guide","href":"/mailer/admin-guide"},{"title":"Demo Mode","href":"/mailer/demo-mode"}]}]},{"dropdown":"Social","icon":"share-nodes","groups":[{"group":"Get Started","pages":[{"title":"Introduction","href":"/social"},{"title":"Installation","href":"/social/installation"},{"title":"Updating","href":"/social/updating"}]},{"group":"Using Azvian Social","pages":[{"title":"Connecting Social Accounts","href":"/social/connecting-accounts"},{"title":"Composing \u0026 Scheduling","href":"/social/composing-and-scheduling"},{"title":"AI Writing and Images","href":"/social/ai-captions"},{"title":"Autopilot","href":"/social/autopilot"},{"title":"Assistant","href":"/social/assistant"},{"title":"Analytics","href":"/social/analytics"},{"title":"Team","href":"/social/team"}]},{"group":"Administration","pages":[{"title":"Admin Guide","href":"/social/admin-guide"},{"title":"API and AI assistants","href":"/social/api-and-ai-assistants"},{"title":"Demo Mode","href":"/social/demo-mode"}]},{"group":"Reference","pages":[{"title":"Known Limitations","href":"/social/known-limitations"}]}]}]}]},"basePath":"","title":"API reference - Azvian Docs","deploymentId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","buildId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","dynamics":[],"chunks":[]}