Uma compra de produto mapeado foi aprovada, ou foi reembolsada ou contestada.
O acesso que a compra abre chega à parte, como access.granted — uma compra pode abrir
várias entregas, e cada uma é um evento de acesso. Em purchase.refunded, o
data.purchase.status distingue reembolso (refunded) de contestação (chargeback).
amount_cents é em centavos (19700 é R$ 197,00), e nulo quando a plataforma não
informou o valor.
purchase.paid: uma compra de produto mapeado foi aprovada — uma vez por
compra, mesmo que a plataforma reenvie. purchase.refunded: reembolso ou
contestação (purchase.status diz qual).
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"weve","description":"Integrações da Weve: API REST, MCP, webhook de venda e webhooks de saída.","colors":{"primary":"#18181b","light":"#fafafa","dark":"#18181b"},"favicon":"https://mintcdn.com/weve/oqvplSLD_r7J3HcO/favicon.svg?fit=max\u0026auto=format\u0026n=oqvplSLD_r7J3HcO\u0026q=85\u0026s=f43ad1ed00cf8fb4e3ab2352773fa9ce","api":{"openapi":"api-reference/openapi.yaml"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"weve","hasAudioNarration":false,"actualSubdomain":"weve","customDomains":["docs.useweve.com"],"gitSource":{"type":"github","owner":"useweve","repo":"monorepo","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6af1eadca4e37073d30d5c09","clientVersion":"0.0.4111","searchFilterCounts":[{"language":"default","tag":"Eventos de webhook","count":26},{"language":"default","tag":"Referência da API","count":11},{"language":"default","tag":"Documentação","count":7},{"language":"default","tag":"Matrículas","count":5},{"language":"default","tag":"Alunos","count":5},{"language":"default","tag":"Integrações","count":4},{"language":"default","tag":"Referência","count":2},{"language":"default","tag":"Entregas","count":1},{"language":"default","tag":"Começando","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/webhook-events/purchase","slug":"/api-reference/webhook-events/purchase","pageMetadata":{"title":"purchase.paid e purchase.refunded","description":"Uma compra de produto mapeado foi aprovada, ou foi reembolsada ou contestada.","openapi-schema":"WebhookPurchaseEvent","href":"/api-reference/webhook-events/purchase"},"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: \"Uma compra de produto mapeado foi aprovada, ou foi reembolsada ou contestada.\"\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={code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`O acesso que a compra abre chega à parte, como `,_jsx(_components.code,{children:`access.granted`}),` — uma compra pode abrir\nvárias entregas, e cada uma é um evento de acesso. Em `,_jsx(_components.code,{children:`purchase.refunded`}),`, o\n`,_jsx(_components.code,{children:`data.purchase.status`}),` distingue reembolso (`,_jsx(_components.code,{children:`refunded`}),`) de contestação (`,_jsx(_components.code,{children:`chargeback`}),`).`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`31`,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:`31`,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:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"3e5a7c9b-1d2f-4b4a-8c6e-0a2c4e6b8d1f\"`}),_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:`\"purchase.paid\"`}),_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:` \"occurred_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-09-14T13:02:41Z\"`}),_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:` \"club_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"7a1e9c4b-5d3f-4e2a-8b6c-1f0d9e8a7b65\"`}),_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:` \"data\"`}),_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:` \"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:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"8a0c2e4b-6d1f-4a3c-b5e7-1f3a5c7e9b0d\"`}),_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:`\"paid\"`}),_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:` \"student\"`}),_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:`\"c3d5e7f9-1a2b-4c6d-8e0f-a1b2c3d4e5f6\"`}),_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:`\"Maria Silva\"`}),_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:`\"maria.silva@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:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-09-14T13:02:40Z\"`})]}),`\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:` \"product\"`}),_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:`\"6f8a0c2e-4b1d-4f3a-a5c7-9e1b3d5f7a9c\"`}),_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:`\"Curso de Marketing\"`})]}),`\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:` \"subscription_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"platform\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"hotmart\"`}),_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:` \"external_transaction_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"HP17264981530123\"`}),_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:` \"external_product_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"4829173\"`}),_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:` \"external_offer_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"k7x2p9qa\"`}),_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:`19700`}),_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:`\"BRL\"`}),_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:` \"paid_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-09-14T13:01:58Z\"`}),_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:` \"refunded_at\"`}),_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`,_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:`amount_cents`}),` é em `,_jsx(_components.strong,{children:`centavos`}),` (`,_jsx(_components.code,{children:`19700`}),` é R$ 197,00), e nulo quando a plataforma não\ninformou o valor.`]})]})}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":"purchase.paid e purchase.refunded","description":"Uma compra de produto mapeado foi aprovada, ou foi reembolsada ou contestada.","openapi-schema":"WebhookPurchaseEvent","href":"/api-reference/webhook-events/purchase"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"schemaData":{"type":"object","required":["id","type","occurred_at","club_id","data"],"description":"`purchase.paid`: uma compra de produto mapeado foi aprovada — uma vez por\ncompra, mesmo que a plataforma reenvie. `purchase.refunded`: reembolso ou\ncontestação (`purchase.status` diz qual).\n","properties":{"id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"id","typeLabel":"string\u003cuuid>"},"type":{"type":"string","description":"O tipo de uma mensagem entregue — os eventos, mais o `webhook.test` do botão de teste.","enum":["student.created","student.updated","student.removed","access.granted","access.revoked","access.extended","access.shortened","access.restored","access.moved","purchase.paid","purchase.refunded","subscription.past_due","subscription.canceled","lesson.completed","course.completed","certificate.issued","student.tagged","student.untagged","student.level_reached","post.created","post.commented","webhook.test"],"isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"occurred_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"occurred_at","typeLabel":"string\u003cdate-time>"},"club_id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"club_id","typeLabel":"string\u003cuuid>"},"data":{"type":"object","required":["purchase"],"properties":{"purchase":{"type":"object","required":["id","status","student","product","subscription_id","platform","external_transaction_id","external_product_id","external_offer_id","amount_cents","currency","paid_at","refunded_at"],"properties":{"id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"data.purchase.id","typeLabel":"string\u003cuuid>"},"status":{"type":"string","enum":["paid","refunded","chargeback"],"isRequired":true,"uniqueKey":"data.purchase.status","typeLabel":"enum\u003cstring>"},"student":{"type":"object","required":["id","name","email","created_at"],"description":"O aluno, como está no momento em que o evento é montado — segundos depois\ndo fato. O documento (CPF) não sai em evento nenhum.\n","properties":{"id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"data.purchase.student.id","typeLabel":"string\u003cuuid>"},"name":{"type":"string","isRequired":true,"uniqueKey":"data.purchase.student.name","typeLabel":"string"},"email":{"type":"string","format":"email","isRequired":true,"uniqueKey":"data.purchase.student.email","typeLabel":"string\u003cemail>"},"created_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"data.purchase.student.created_at","typeLabel":"string\u003cdate-time>"}},"isRequired":true,"uniqueKey":"data.purchase.student","typeLabel":"object"},"product":{"oneOf":[{"type":"object","required":["id","name"],"properties":{"id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"data.purchase.product.oneOf.0.id","typeLabel":"string\u003cuuid>"},"name":{"type":"string","isRequired":true,"uniqueKey":"data.purchase.product.oneOf.0.name","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.purchase.product.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"data.purchase.product.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.purchase.product","typeLabel":"object | null"},"subscription_id":{"oneOf":[{"type":"string","description":"Presente quando a compra é a cobrança de uma assinatura.","format":"uuid","isRequired":true,"uniqueKey":"data.purchase.subscription_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","description":"Presente quando a compra é a cobrança de uma assinatura.","format":"uuid","isRequired":true,"uniqueKey":"data.purchase.subscription_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.purchase.subscription_id","typeLabel":"string\u003cuuid> | null"},"platform":{"type":"string","enum":["hotmart","kiwify","eduzz","guru","webhook"],"description":"As plataformas de venda que a API entende. `guru` é o Digital Manager\nGuru; `webhook` é o formato genérico, para gateways e automatizadores\nsem integração nativa.\n","isRequired":true,"uniqueKey":"data.purchase.platform","typeLabel":"enum\u003cstring>"},"external_transaction_id":{"type":"string","isRequired":true,"uniqueKey":"data.purchase.external_transaction_id","typeLabel":"string"},"external_product_id":{"type":"string","isRequired":true,"uniqueKey":"data.purchase.external_product_id","typeLabel":"string"},"external_offer_id":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.purchase.external_offer_id.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.purchase.external_offer_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.purchase.external_offer_id","typeLabel":"string | null"},"amount_cents":{"oneOf":[{"type":"integer","description":"Centavos. Nulo quando a plataforma não informou.","format":"int64","isRequired":true,"uniqueKey":"data.purchase.amount_cents.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","description":"Centavos. Nulo quando a plataforma não informou.","format":"int64","isRequired":true,"uniqueKey":"data.purchase.amount_cents.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.purchase.amount_cents","typeLabel":"integer\u003cint64> | null"},"currency":{"type":"string","isRequired":true,"uniqueKey":"data.purchase.currency","typeLabel":"string"},"paid_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"data.purchase.paid_at","typeLabel":"string\u003cdate-time>"},"refunded_at":{"oneOf":[{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"data.purchase.refunded_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","isRequired":true,"uniqueKey":"data.purchase.refunded_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.purchase.refunded_at","typeLabel":"string\u003cdate-time> | null"}},"isRequired":true,"uniqueKey":"data.purchase","typeLabel":"object"}},"isRequired":true,"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object","example":{"title":"Example","value":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","occurred_at":"2023-11-07T05:31:56Z","club_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","data":{"purchase":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","student":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","name":"\u003cstring>","email":"jsmith@example.com","created_at":"2023-11-07T05:31:56Z"},"product":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","name":"\u003cstring>"},"subscription_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","external_transaction_id":"\u003cstring>","external_product_id":"\u003cstring>","external_offer_id":"\u003cstring>","amount_cents":123,"currency":"\u003cstring>","paid_at":"2023-11-07T05:31:56Z","refunded_at":"2023-11-07T05:31:56Z"}}}}},"originalFileLocation":"api-reference/openapi.yaml"},"subdomain":"weve","siteName":"weve","title":"purchase.paid e purchase.refunded - weve","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-14T10:09:45.494Z","originalFileLocation":"api-reference/webhook-events/purchase.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=\"Uma compra de produto mapeado foi aprovada, ou foi reembolsada ou contestada.\">\u003cmeta data-mint-head name=\"application-name\" content=\"weve\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/weve/OktuvzdIKgwc0NlV/_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/weve/OktuvzdIKgwc0NlV/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/weve/OktuvzdIKgwc0NlV/_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/weve/OktuvzdIKgwc0NlV/_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/weve/OktuvzdIKgwc0NlV/_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/weve/OktuvzdIKgwc0NlV/_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/weve/OktuvzdIKgwc0NlV/_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/weve/OktuvzdIKgwc0NlV/_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/weve/OktuvzdIKgwc0NlV/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"purchase.paid e purchase.refunded - weve\">\u003cmeta data-mint-head property=\"og:description\" content=\"Uma compra de produto mapeado foi aprovada, ou foi reembolsada ou contestada.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"weve\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.useweve.com/api-reference/webhook-events/purchase\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://weve.mintlify.site/_mintlify/api/og/v2?division=Eventos+de+webhook\u0026amp;title=purchase.paid+e+purchase.refunded\u0026amp;description=Uma+compra+de+produto+mapeado+foi+aprovada%2C+ou+foi+reembolsada+ou+contestada.\u0026amp;theme=930979cc3c211af03187b82b\u0026amp;signature=57b9cf78329682f56c83e7a4254891302fffb921ac43778aaf84dd2ad752cfed\">\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=\"purchase.paid e purchase.refunded - weve\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Uma compra de produto mapeado foi aprovada, ou foi reembolsada ou contestada.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://weve.mintlify.site/_mintlify/api/og/v2?division=Eventos+de+webhook\u0026amp;title=purchase.paid+e+purchase.refunded\u0026amp;description=Uma+compra+de+produto+mapeado+foi+aprovada%2C+ou+foi+reembolsada+ou+contestada.\u0026amp;theme=930979cc3c211af03187b82b\u0026amp;signature=57b9cf78329682f56c83e7a4254891302fffb921ac43778aaf84dd2ad752cfed\">\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/weve/OktuvzdIKgwc0NlV/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"weve\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#18181b\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.useweve.com/api-reference/webhook-events/purchase\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/webhook-events/purchase.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.useweve.com/#organization\",\"name\":\"weve\",\"url\":\"https://docs.useweve.com\"},{\"@type\":\"WebSite\",\"@id\":\"https://docs.useweve.com#website\",\"name\":\"weve\",\"url\":\"https://docs.useweve.com\",\"publisher\":{\"@id\":\"https://docs.useweve.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.useweve.com/api-reference/webhook-events/purchase#webpage\",\"url\":\"https://docs.useweve.com/api-reference/webhook-events/purchase\",\"name\":\"purchase.paid e purchase.refunded\",\"description\":\"Uma compra de produto mapeado foi aprovada, ou foi reembolsada ou contestada.\",\"dateModified\":\"2026-09-14T10:09:45.494Z\",\"isPartOf\":{\"@id\":\"https://docs.useweve.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.useweve.com/api-reference/webhook-events/purchase#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.useweve.com/api-reference/webhook-events/purchase#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Eventos de webhook\",\"item\":\"https://docs.useweve.com/api-reference/webhook-events/student\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"purchase.paid e purchase.refunded\",\"item\":\"https://docs.useweve.com/api-reference/webhook-events/purchase\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.useweve.com/api-reference/webhook-events/purchase#apireference\",\"headline\":\"purchase.paid e purchase.refunded\",\"name\":\"purchase.paid e purchase.refunded\",\"description\":\"Uma compra de produto mapeado foi aprovada, ou foi reembolsada ou contestada.\",\"url\":\"https://docs.useweve.com/api-reference/webhook-events/purchase\",\"mainEntityOfPage\":{\"@id\":\"https://docs.useweve.com/api-reference/webhook-events/purchase#webpage\"},\"dateModified\":\"2026-09-14T10:09:45.494Z\",\"publisher\":{\"@id\":\"https://docs.useweve.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.useweve.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"weve\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"weve\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/webhook-events/purchase.md","siteName":"weve","nav":{"global":null,"tabs":[{"tab":"Documentação","pages":[{"title":"Documentação","href":""}]},{"tab":"Referência da API","pages":[{"title":"Referência da API","href":"/api-reference/students/list"}]},{"tab":"Eventos de webhook","groups":[{"group":"Eventos de webhook","pages":[{"title":"student.created e student.updated","href":"/api-reference/webhook-events/student"},{"title":"student.removed","href":"/api-reference/webhook-events/student-removed"},{"title":"access.*","description":"Uma mudança no acesso de um aluno a uma entrega: ganhou, perdeu, mudou o prazo, voltou ou trocou de turma.","href":"/api-reference/webhook-events/access"},{"title":"purchase.paid e purchase.refunded","href":"/api-reference/webhook-events/purchase"},{"title":"subscription.past_due e subscription.canceled","description":"A cobrança de uma assinatura atrasou, ou a assinatura foi cancelada.","href":"/api-reference/webhook-events/subscription"},{"title":"lesson.completed","href":"/api-reference/webhook-events/lesson-completed"},{"title":"course.completed","href":"/api-reference/webhook-events/course-completed"},{"title":"certificate.issued","href":"/api-reference/webhook-events/certificate-issued"},{"title":"student.tagged e student.untagged","href":"/api-reference/webhook-events/student-tagged"},{"title":"student.level_reached","href":"/api-reference/webhook-events/student-level-reached"},{"title":"post.created","href":"/api-reference/webhook-events/post-created"},{"title":"post.commented","href":"/api-reference/webhook-events/post-commented"},{"title":"webhook.test","href":"/api-reference/webhook-events/test"}]}]}]},"basePath":"","title":"purchase.paid e purchase.refunded - weve","buildId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","deploymentId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CybtLBIt.js","utils-BMLj2fvV.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-B6In562Y.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Dr8Mfhp9.js","snippetPresets-2rmQvMVl.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-WMqJYdZj.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CJ-MlPHu.js","shallow-dY3TMRCk.js","getApiPlaygroundDisplay-v-1B2bKm.js","CodeSnippet-BDhiTB7U.js","CodeSnippets-D9hnzQcS.js","Page-C4GwDT3_.js","getPastedJson-Th2V45jI.js","icon-BQXch1W9.js","MethodPill-BCqUneP3.js","DuplicateIcon-Q_-bhurZ.js","createIcon-DUjLHRqp.js","DynamicMarkdown-B-f2cqXQ.js","SectionHeading-Da5NsV4v.js","axios-vUo_bRtp.js","Markdown-D13FWkIM.js","clsx-D3Isdib3.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-C-XZBk9h.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink--qIqmmVG.js"]}