Customize a página de pagamento e o portal /minha-area por produto, não só por seller
Disponível a partir da v0.8.0. Plataformas B2B2C que modelam professores / coaches / prestadores como Products sob um único Seller podem ter logo, cor e mensagens próprias por profissional, sem fragmentar a contabilidade do seller.
Quando usar
SaaS de coaching que cobra por professor
Plataforma de cursos onde cada instrutor tem branding próprio
Marketplace administrativo onde vendedores são representados como Products
Para casos B2C simples (uma única marca por seller), use a configuração de portal a nível de seller.
Endpoints
Base: /api/v1/products/{uuid}/portal-config
{uuid} é o identificador do produto — estável e não-enumerável, retornado por GET /api/v1/products e por list_products no MCP. A API v1 é indexada por UUID.
GET — ler config atual
Retorna a config persistida ou null se o produto não tem customização (cai no fallback do seller).
POST / PATCH — upsert com merge
Mesma semântica em ambos: só os campos enviados são gravados; os omitidos preservam o valor anterior. Mande null num campo para herdar do seller.
{ "businessName": "Coach Maria — Corrida & Trilha", "primaryColor": "#257264", "logoUrl": "https://cdn.exemplo.com/coaches/maria.png", "customWelcomeText": "Bem-vinda à equipe da Maria!"}
DELETE — limpar tudo
Remove a row inteira; o produto volta a usar a config do seller.
Campos
Branding
Campo
Tipo
Descrição
businessName
string | null
Nome exibido no header da página de pagamento
logoUrl
string | null
URL HTTPS de logo (max 500 chars)
primaryColor
string | null
Cor primária em hex (#257264 ou #abc)
Políticas do portal /minha-area
Campo
Tipo
Default herdado
allowCancelSubscription
boolean | null
seller
allowUpdatePaymentMethod
boolean | null
seller
allowUpdateBillingInfo
boolean | null
seller
allowViewInvoices
boolean | null
seller
allowApplyCoupons
boolean | null
seller
requireCancelReason
boolean | null
seller
cancelAtPeriodEndOnly
boolean | null
seller
E-mails transacionais
Campo
Tipo
sendCancellationEmail
boolean | null
sendPaymentMethodUpdatedEmail
boolean | null
Mensagens customizadas
Campo
Tipo
Limite
customSuccessMessage
string | null
500 chars
customCancellationMessage
string | null
500 chars
customWelcomeText
string | null
500 chars
Exemplo: SaaS de coaching
# Coach 1 (Maria) — verde, com mensagem própriacurl -X POST https://garu.com.br/api/v1/products/a1b2c3d4-e5f6-7890-abcd-ef1234567890/portal-config \ -H "Authorization: Bearer $GARU_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "businessName": "Coach Maria — Corrida & Trilha", "primaryColor": "#257264", "logoUrl": "https://cdn.atletia.com.br/coaches/maria.png", "customWelcomeText": "Bem-vinda ao plano de corrida!" }'# Coach 2 (Jefter) — laranja, sem custom message (herda do seller)curl -X POST https://garu.com.br/api/v1/products/b2c3d4e5-f6a7-8901-bcde-f23456789012/portal-config \ -H "Authorization: Bearer $GARU_API_KEY" \ -d '{ "businessName": "Jefter — Instrutor de Corridas", "primaryColor": "#CB9454", "logoUrl": "https://cdn.atletia.com.br/coaches/jefter.png" }'
Quando o cliente paga um produto do Jefter, ele vê laranja + nome dele. Pagando um da Maria, vê verde + nome dela. Mas a transação aparece para o seller “Atletia” no dashboard — uma única conta, uma única contabilidade.
SDK
import { Garu } from '@garuhq/node';const garu = new Garu({ apiKey: process.env.GARU_API_KEY! });// O SDK ainda assina como `number`; chame com o id numérico ou faça a chamada// direta via REST se preferir o UUID. Wrapper UUID-first vem num release próximo.await garu.products.portalConfig.set(57, { businessName: 'Coach Maria — Corrida & Trilha', primaryColor: '#257264'});
MCP
Agentes podem customizar o portal por produto direto pela ferramenta:
set_product_portal_config — upsert com merge
get_product_portal_config — ler config atual
clear_product_portal_config — limpar tudo
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/schema.json","name":"Garu","description":"Documentação oficial da API Garu - Gateway de pagamentos que simplifica a gestão e apoia empreendedores no seu crescimento. Integre PIX, Cartão de Crédito e Boleto em minutos.","colors":{"primary":"#257264","light":"#FAF6ED","dark":"#005243"},"logo":{"light":"https://mintcdn.com/garu/g-shOvMOEbJZqokd/logo/light.svg?fit=max\u0026auto=format\u0026n=g-shOvMOEbJZqokd\u0026q=85\u0026s=b6c0de2b9b2378205ccf76d131a91a69","dark":"https://mintcdn.com/garu/g-shOvMOEbJZqokd/logo/dark.svg?fit=max\u0026auto=format\u0026n=g-shOvMOEbJZqokd\u0026q=85\u0026s=4c31441f3c8b4cf869015f4f30d47395"},"favicon":"https://mintcdn.com/garu/g-shOvMOEbJZqokd/favicon.png?fit=max\u0026auto=format\u0026n=g-shOvMOEbJZqokd\u0026q=85\u0026s=8cac01c3f496d267e96afa23109702bf","api":{"playground":{},"mdx":{"auth":{"method":"bearer","name":"Authorization"},"server":"https://garu.com.br"}},"navbar":{"links":[{"href":"mailto:contato@garu.com.br","label":"Suporte"}],"primary":{"type":"button","label":"Dashboard","href":"https://garu.com.br/inicio"}},"footer":{"socials":{"instagram":"https://www.instagram.com/tecnosolve","linkedin":"https://www.linkedin.com/company/tecnosolve"}},"seo":{},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"metadata":{"timestamp":false},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Dashboard","icon":"gauge","href":"https://garu.com.br/inicio"},{"anchor":"OpenAPI","icon":"code","href":"https://garu.com.br/api/openapi.json"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"garu","hasAudioNarration":false,"actualSubdomain":"garu","customDomains":["docs.garu.com.br"],"gitSource":{"type":"github","owner":"garu-pagamentos","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"issues":false},"entitlements":{},"buildId":"6ada8827b792eded1561428d","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"default","tag":"Referência da API","count":74},{"language":"default","tag":"Guias","count":22},{"language":"default","tag":"Integrando Pagamentos","count":12},{"language":"default","tag":"Cobranças Agendadas","count":9},{"language":"default","tag":"Boleto Parcelado (Carnê)","count":8},{"language":"default","tag":"Webhooks e Exemplos","count":8},{"language":"default","tag":"Assinaturas","count":7},{"language":"default","tag":"Clientes","count":6},{"language":"default","tag":"Produtos","count":6},{"language":"default","tag":"Preços de Assinatura","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":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":"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":"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":"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}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/produtos/portal-config","slug":"/api-reference/produtos/portal-config","pageMetadata":{"title":"Portal customizado por produto (B2B2C)","description":"Customize a página de pagamento e o portal /minha-area por produto, não só por seller","href":"/api-reference/produtos/portal-config"},"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: \"Customize a página de pagamento e o portal /minha-area por produto, não só por seller\"\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`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Disponível a partir da `,_jsx(_components.strong,{children:`v0.8.0`}),`. Plataformas B2B2C que modelam `,_jsx(_components.strong,{children:`professores / coaches / prestadores como Products`}),` sob um único Seller podem ter logo, cor e mensagens próprias por profissional, sem fragmentar a contabilidade do seller.`]}),`\n`,_jsx(Heading,{level:`2`,id:`quando-usar`,children:`Quando usar`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`SaaS de coaching que cobra por professor`}),`\n`,_jsx(_components.li,{children:`Plataforma de cursos onde cada instrutor tem branding próprio`}),`\n`,_jsx(_components.li,{children:`Marketplace administrativo onde vendedores são representados como Products`}),`\n`]}),`\n`,_jsx(_components.p,{children:`Para casos B2C simples (uma única marca por seller), use a configuração de portal a nível de seller.`}),`\n`,_jsx(Heading,{level:`2`,id:`endpoints`,children:`Endpoints`}),`\n`,_jsxs(_components.p,{children:[`Base: `,_jsx(_components.code,{children:`/api/v1/products/{uuid}/portal-config`})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`{uuid}`}),` é o identificador do produto — estável e não-enumerável, retornado por `,_jsx(_components.code,{children:`GET /api/v1/products`}),` e por `,_jsx(_components.code,{children:`list_products`}),` no MCP. A API v1 é indexada por UUID.`]})}),`\n`,_jsxs(Heading,{level:`3`,id:`get-—-ler-config-atual`,children:[_jsx(_components.code,{children:`GET`}),` — ler config atual`]}),`\n`,_jsxs(_components.p,{children:[`Retorna a config persistida ou `,_jsx(_components.code,{children:`null`}),` se o produto não tem customização (cai no fallback do seller).`]}),`\n`,_jsxs(Heading,{level:`3`,id:`post-/-patch-—-upsert-com-merge`,children:[_jsx(_components.code,{children:`POST`}),` / `,_jsx(_components.code,{children:`PATCH`}),` — upsert com merge`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Mesma semântica em ambos`}),`: só os campos enviados são gravados; os omitidos preservam o valor anterior. Mande `,_jsx(_components.code,{children:`null`}),` num campo para herdar do seller.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,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:`6`,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:` \"businessName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Coach Maria — Corrida \u0026 Trilha\"`}),_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:` \"primaryColor\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"#257264\"`}),_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:` \"logoUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://cdn.exemplo.com/coaches/maria.png\"`}),_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:` \"customWelcomeText\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Bem-vinda à equipe da Maria!\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(Heading,{level:`3`,id:`delete-—-limpar-tudo`,children:[_jsx(_components.code,{children:`DELETE`}),` — limpar tudo`]}),`\n`,_jsx(_components.p,{children:`Remove a row inteira; o produto volta a usar a config do seller.`}),`\n`,_jsx(Heading,{level:`2`,id:`campos`,children:`Campos`}),`\n`,_jsx(Heading,{level:`3`,id:`branding`,children:`Branding`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Campo`}),_jsx(_components.th,{children:`Tipo`}),_jsx(_components.th,{children:`Descrição`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`businessName`})}),_jsx(_components.td,{children:`string | null`}),_jsx(_components.td,{children:`Nome exibido no header da página de pagamento`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`logoUrl`})}),_jsx(_components.td,{children:`string | null`}),_jsx(_components.td,{children:`URL HTTPS de logo (max 500 chars)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`primaryColor`})}),_jsx(_components.td,{children:`string | null`}),_jsxs(_components.td,{children:[`Cor primária em hex (`,_jsx(_components.code,{children:`#257264`}),` ou `,_jsx(_components.code,{children:`#abc`}),`)`]})]})]})]}),`\n`,_jsxs(Heading,{level:`3`,id:`políticas-do-portal-/minha-area`,children:[`Políticas do portal `,_jsx(_components.code,{children:`/minha-area`})]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Campo`}),_jsx(_components.th,{children:`Tipo`}),_jsx(_components.th,{children:`Default herdado`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`allowCancelSubscription`})}),_jsx(_components.td,{children:`boolean | null`}),_jsx(_components.td,{children:`seller`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`allowUpdatePaymentMethod`})}),_jsx(_components.td,{children:`boolean | null`}),_jsx(_components.td,{children:`seller`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`allowUpdateBillingInfo`})}),_jsx(_components.td,{children:`boolean | null`}),_jsx(_components.td,{children:`seller`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`allowViewInvoices`})}),_jsx(_components.td,{children:`boolean | null`}),_jsx(_components.td,{children:`seller`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`allowApplyCoupons`})}),_jsx(_components.td,{children:`boolean | null`}),_jsx(_components.td,{children:`seller`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`requireCancelReason`})}),_jsx(_components.td,{children:`boolean | null`}),_jsx(_components.td,{children:`seller`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`cancelAtPeriodEndOnly`})}),_jsx(_components.td,{children:`boolean | null`}),_jsx(_components.td,{children:`seller`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`e-mails-transacionais`,children:`E-mails transacionais`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Campo`}),_jsx(_components.th,{children:`Tipo`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`sendCancellationEmail`})}),_jsx(_components.td,{children:`boolean | null`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`sendPaymentMethodUpdatedEmail`})}),_jsx(_components.td,{children:`boolean | null`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`mensagens-customizadas`,children:`Mensagens customizadas`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Campo`}),_jsx(_components.th,{children:`Tipo`}),_jsx(_components.th,{children:`Limite`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`customSuccessMessage`})}),_jsx(_components.td,{children:`string | null`}),_jsx(_components.td,{children:`500 chars`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`customCancellationMessage`})}),_jsx(_components.td,{children:`string | null`}),_jsx(_components.td,{children:`500 chars`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`customWelcomeText`})}),_jsx(_components.td,{children:`string | null`}),_jsx(_components.td,{children:`500 chars`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`exemplo-saas-de-coaching`,children:`Exemplo: SaaS de coaching`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`19`,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:`19`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Coach 1 (Maria) — verde, com mensagem própria`})}),`\n`,_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://garu.com.br/api/v1/products/a1b2c3d4-e5f6-7890-abcd-ef1234567890/portal-config`}),_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 `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$GARU_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:` -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:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"businessName\": \"Coach Maria — Corrida \u0026 Trilha\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"primaryColor\": \"#257264\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"logoUrl\": \"https://cdn.atletia.com.br/coaches/maria.png\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"customWelcomeText\": \"Bem-vinda ao plano de corrida!\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Coach 2 (Jefter) — laranja, sem custom message (herda do seller)`})}),`\n`,_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://garu.com.br/api/v1/products/b2c3d4e5-f6a7-8901-bcde-f23456789012/portal-config`}),_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 `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$GARU_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:` -d`}),_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:` \"businessName\": \"Jefter — Instrutor de Corridas\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"primaryColor\": \"#CB9454\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"logoUrl\": \"https://cdn.atletia.com.br/coaches/jefter.png\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Quando o cliente paga um produto do Jefter, ele vê laranja + nome dele. Pagando um da Maria, vê verde + nome dela. Mas a transação aparece para o seller “Atletia” no dashboard — uma única conta, uma única contabilidade.`}),`\n`,_jsx(Heading,{level:`2`,id:`sdk`,children:`SDK`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`typescript`,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:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Garu`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '@garuhq/node'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` garu`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Garu`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`apiKey:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` process`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`env`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`GARU_API_KEY`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:\"// O SDK ainda assina como `number`; chame com o id numérico ou faça a chamada\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// direta via REST se preferir o UUID. Wrapper UUID-first vem num release próximo.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` garu`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`products`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`portalConfig`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`set`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`57`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` businessName:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Coach Maria — Corrida \u0026 Trilha'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` primaryColor:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '#257264'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`mcp`,children:`MCP`}),`\n`,_jsx(_components.p,{children:`Agentes podem customizar o portal por produto direto pela ferramenta:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`set_product_portal_config`}),` — upsert com merge`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`get_product_portal_config`}),` — ler config atual`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`clear_product_portal_config`}),` — limpar tudo`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Portal customizado por produto (B2B2C)","description":"Customize a página de pagamento e o portal /minha-area por produto, não só por seller","href":"/api-reference/produtos/portal-config"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Quando usar","slug":"quando-usar","depth":2,"children":[]},{"title":"Endpoints","slug":"endpoints","depth":2,"children":[{"title":"GET — ler config atual","slug":"get-—-ler-config-atual","depth":3,"children":[]},{"title":"POST / PATCH — upsert com merge","slug":"post-/-patch-—-upsert-com-merge","depth":3,"children":[]},{"title":"DELETE — limpar tudo","slug":"delete-—-limpar-tudo","depth":3,"children":[]}]},{"title":"Campos","slug":"campos","depth":2,"children":[{"title":"Branding","slug":"branding","depth":3,"children":[]},{"title":"Políticas do portal /minha-area","slug":"políticas-do-portal-/minha-area","depth":3,"children":[]},{"title":"E-mails transacionais","slug":"e-mails-transacionais","depth":3,"children":[]},{"title":"Mensagens customizadas","slug":"mensagens-customizadas","depth":3,"children":[]}]},{"title":"Exemplo: SaaS de coaching","slug":"exemplo-saas-de-coaching","depth":2,"children":[]},{"title":"SDK","slug":"sdk","depth":2,"children":[]},{"title":"MCP","slug":"mcp","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"garu","siteName":"Garu","title":"Portal customizado por produto (B2B2C) - Garu","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-07-18T21:40:56.373Z","originalFileLocation":"api-reference/produtos/portal-config.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=\"Customize a página de pagamento e o portal /minha-area por produto, não só por seller\">\u003cmeta data-mint-head name=\"application-name\" content=\"Garu\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/garu/ITGxpj5UQhT-Vt8F/_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/garu/ITGxpj5UQhT-Vt8F/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/garu/ITGxpj5UQhT-Vt8F/_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/garu/ITGxpj5UQhT-Vt8F/_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/garu/ITGxpj5UQhT-Vt8F/_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/garu/ITGxpj5UQhT-Vt8F/_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/garu/ITGxpj5UQhT-Vt8F/_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/garu/ITGxpj5UQhT-Vt8F/_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/garu/ITGxpj5UQhT-Vt8F/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Portal customizado por produto (B2B2C) - Garu\">\u003cmeta data-mint-head property=\"og:description\" content=\"Customize a página de pagamento e o portal /minha-area por produto, não só por seller\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Garu\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.garu.com.br/api-reference/produtos/portal-config\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://garu.mintlify.site/_mintlify/api/og/v2?division=Produtos\u0026amp;title=Portal+customizado+por+produto+%28B2B2C%29\u0026amp;description=Customize+a+p%C3%A1gina+de+pagamento+e+o+portal+%2Fminha-area+por+produto%2C+n%C3%A3o+s%C3%B3+por+seller\u0026amp;theme=284dae2754295f04476f1dce\u0026amp;signature=e7c44f13df258b34784175189228c5511207546f0cc268b6c007f78912bcc07b\">\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=\"Portal customizado por produto (B2B2C) - Garu\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Customize a página de pagamento e o portal /minha-area por produto, não só por seller\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://garu.mintlify.site/_mintlify/api/og/v2?division=Produtos\u0026amp;title=Portal+customizado+por+produto+%28B2B2C%29\u0026amp;description=Customize+a+p%C3%A1gina+de+pagamento+e+o+portal+%2Fminha-area+por+produto%2C+n%C3%A3o+s%C3%B3+por+seller\u0026amp;theme=284dae2754295f04476f1dce\u0026amp;signature=e7c44f13df258b34784175189228c5511207546f0cc268b6c007f78912bcc07b\">\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/garu/ITGxpj5UQhT-Vt8F/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Garu\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#257264\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.garu.com.br/api-reference/produtos/portal-config\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/produtos/portal-config.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.garu.com.br/#organization\",\"name\":\"Garu\",\"url\":\"https://docs.garu.com.br\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/garu/g-shOvMOEbJZqokd/logo/light.svg?fit=max\u0026auto=format\u0026n=g-shOvMOEbJZqokd\u0026q=85\u0026s=b6c0de2b9b2378205ccf76d131a91a69\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.garu.com.br#website\",\"name\":\"Garu\",\"url\":\"https://docs.garu.com.br\",\"publisher\":{\"@id\":\"https://docs.garu.com.br/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.garu.com.br/api-reference/produtos/portal-config#webpage\",\"url\":\"https://docs.garu.com.br/api-reference/produtos/portal-config\",\"name\":\"Portal customizado por produto (B2B2C)\",\"description\":\"Customize a página de pagamento e o portal /minha-area por produto, não só por seller\",\"dateModified\":\"2026-07-18T21:40:56.373Z\",\"isPartOf\":{\"@id\":\"https://docs.garu.com.br#website\"},\"breadcrumb\":{\"@id\":\"https://docs.garu.com.br/api-reference/produtos/portal-config#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.garu.com.br/api-reference/produtos/portal-config#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Produtos\",\"item\":\"https://docs.garu.com.br/api-reference/produtos/criar\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Portal customizado por produto (B2B2C)\",\"item\":\"https://docs.garu.com.br/api-reference/produtos/portal-config\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.garu.com.br/api-reference/produtos/portal-config#article\",\"headline\":\"Portal customizado por produto (B2B2C)\",\"name\":\"Portal customizado por produto (B2B2C)\",\"description\":\"Customize a página de pagamento e o portal /minha-area por produto, não só por seller\",\"url\":\"https://docs.garu.com.br/api-reference/produtos/portal-config\",\"mainEntityOfPage\":{\"@id\":\"https://docs.garu.com.br/api-reference/produtos/portal-config#webpage\"},\"dateModified\":\"2026-07-18T21:40:56.373Z\",\"publisher\":{\"@id\":\"https://docs.garu.com.br/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.garu.com.br#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Garu\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Garu\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/produtos/portal-config.md","siteName":"Garu","nav":{"global":{"anchors":[{"anchor":"Dashboard","icon":"gauge","href":"https://garu.com.br/inicio"},{"anchor":"OpenAPI","icon":"code","href":"https://garu.com.br/api/openapi.json"}]},"tabs":[{"tab":"Guias","pages":[{"title":"Guias","href":""}]},{"tab":"Referência da API","groups":[{"group":"Primeiros Passos","pages":[{"title":"Introdução","href":"/api-reference/introduction"},{"title":"Autenticação","href":"/api-reference/autenticacao"}]},{"group":"Produtos","pages":[{"title":"Criar Produto","api":"POST /api/v1/products","href":"/api-reference/produtos/criar"},{"title":"Link de Pagamento","href":"/api-reference/produtos/link-pagamento"},{"title":"Listar Produtos","api":"GET /api/v1/products","href":"/api-reference/produtos/listar"},{"title":"Atualizar Produto","api":"PATCH /api/v1/products/{uuid}","href":"/api-reference/produtos/atualizar"},{"title":"Excluir Produto","description":"Desative um produto existente","api":"DELETE /api/v1/products/{uuid}","href":"/api-reference/produtos/excluir"},{"title":"Portal customizado por produto (B2B2C)","href":"/api-reference/produtos/portal-config"}]},{"group":"Checkout Sessions","pages":[{"title":"Criar Checkout Session","description":"Crie links de pagamento programaticamente com dados do cliente pré-preenchidos","api":"POST /api/checkout/sessions","href":"/api-reference/checkout/criar"},{"title":"Listar Checkout Sessions","api":"GET /api/checkout/sessions","href":"/api-reference/checkout/listar"},{"title":"Detalhes da Checkout Session","api":"GET /api/checkout/sessions/{id}","href":"/api-reference/checkout/detalhes"},{"title":"Expirar Checkout Session","api":"POST /api/checkout/sessions/{id}/expire","href":"/api-reference/checkout/expirar"}]},{"group":"Cobranças","pages":[{"title":"Criar Cobrança","api":"POST /api/v1/charges","href":"/api-reference/cobrancas/criar"},{"title":"Consultar Cobrança","api":"GET /api/v1/charges/{uuid}","href":"/api-reference/cobrancas/detalhes"},{"title":"Listar Cobranças","api":"GET /api/v1/charges","href":"/api-reference/cobrancas/listar"},{"title":"Estornar Cobrança","api":"POST /api/v1/charges/{uuid}/refund","href":"/api-reference/cobrancas/reembolsar"},{"title":"Cancelar Cobrança","api":"DELETE /api/v1/charges/{uuid}","href":"/api-reference/cobrancas/cancelar"}]},{"group":"Clientes","pages":[{"title":"Registrar Cliente","api":"POST /api/v1/customers","href":"/api-reference/clientes/criar"},{"title":"Listar Clientes","api":"GET /api/v1/customers","href":"/api-reference/clientes/listar"},{"title":"Consultar Cliente","api":"GET /api/v1/customers/{uuid}","href":"/api-reference/clientes/detalhes"},{"title":"Atualizar Cliente","api":"PATCH /api/v1/customers/{uuid}","href":"/api-reference/clientes/atualizar"},{"title":"Definir E-mail de Cobrança","api":"PATCH /api/v1/customers/{uuid}/billing-email-override","href":"/api-reference/clientes/definir-email-cobranca"},{"title":"Remover Cliente","api":"DELETE /api/v1/customers/{uuid}","href":"/api-reference/clientes/excluir"}]},{"group":"Transações","pages":[{"title":"Listar Transações","api":"GET /api/transactions","href":"/api-reference/transacoes/listar"},{"title":"Detalhes da Transação","api":"GET /api/transactions/{id}","href":"/api-reference/transacoes/detalhes"},{"title":"Consultar Status","api":"GET /api/transactions/status/{galaxPayId}","href":"/api-reference/transacoes/status"},{"title":"Reembolsar Transação","api":"POST /api/transactions/{id}/refund","href":"/api-reference/transacoes/reembolsar"},{"title":"Cancelar Transação","api":"DELETE /api/transactions/{id}","href":"/api-reference/transacoes/cancelar"}]},{"group":"Preços de Assinatura","pages":[{"title":"Criar Preço de Assinatura","api":"POST /api/subscription-prices","href":"/api-reference/assinaturas/precos/criar"},{"title":"Listar Preços de Assinatura","api":"GET /api/subscription-prices","href":"/api-reference/assinaturas/precos/listar"},{"title":"Detalhes do Preço","api":"GET /api/subscription-prices/{id}","href":"/api-reference/assinaturas/precos/detalhes"},{"title":"Atualizar Preço de Assinatura","api":"PATCH /api/subscription-prices/{id}","href":"/api-reference/assinaturas/precos/atualizar"},{"title":"Excluir Preço de Assinatura","api":"DELETE /api/subscription-prices/{id}","href":"/api-reference/assinaturas/precos/excluir"}]},{"group":"Assinaturas","pages":[{"title":"Listar Assinaturas","api":"GET /api/subscriptions","href":"/api-reference/assinaturas/listar"},{"title":"Detalhes da Assinatura","api":"GET /api/subscriptions/{id}","href":"/api-reference/assinaturas/detalhes"},{"title":"Cancelar Assinatura","api":"POST /api/subscriptions/{id}/cancel","href":"/api-reference/assinaturas/cancelar"},{"title":"Pausar Assinatura","api":"POST /api/subscriptions/{id}/pause","href":"/api-reference/assinaturas/pausar"},{"title":"Retomar Assinatura","api":"POST /api/subscriptions/{id}/resume","href":"/api-reference/assinaturas/retomar"},{"title":"Eventos da Assinatura","api":"GET /api/subscriptions/{id}/events","href":"/api-reference/assinaturas/eventos"},{"title":"Portal do Cliente","api":"POST /api/portal/sessions","href":"/api-reference/assinaturas/portal"}]},{"group":"Cobranças Agendadas","pages":[{"title":"Criar Cobrança Agendada","api":"POST /api/v1/scheduled-charges","href":"/api-reference/cobrancas-agendadas/criar"},{"title":"Listar Cobranças Agendadas","api":"GET /api/v1/scheduled-charges","href":"/api-reference/cobrancas-agendadas/listar"},{"title":"Detalhes da Cobrança Agendada","api":"GET /api/v1/scheduled-charges/{id}","href":"/api-reference/cobrancas-agendadas/detalhes"},{"title":"Cobrar Agora","api":"POST /api/v1/scheduled-charges/{id}/charge-now","href":"/api-reference/cobrancas-agendadas/cobrar-agora"},{"title":"Adiar Cobrança","api":"POST /api/v1/scheduled-charges/{id}/postpone","href":"/api-reference/cobrancas-agendadas/adiar"},{"title":"Pausar Cobrança","api":"POST /api/v1/scheduled-charges/{id}/pause","href":"/api-reference/cobrancas-agendadas/pausar"},{"title":"Retomar Cobrança","api":"POST /api/v1/scheduled-charges/{id}/resume","href":"/api-reference/cobrancas-agendadas/retomar"},{"title":"Marcar como Paga","api":"POST /api/v1/scheduled-charges/{id}/mark-paid","href":"/api-reference/cobrancas-agendadas/marcar-como-paga"},{"title":"Listar tentativas de cobrança","api":"GET /api/v1/scheduled-charges/{id}/attempts","href":"/api-reference/cobrancas-agendadas/tentativas"}]},{"group":"Boleto Parcelado (Carnê)","pages":[{"title":"Criar Carnê","api":"POST /api/v1/installment-plans","href":"/api-reference/carne/criar"},{"title":"Listar Carnês","api":"GET /api/v1/installment-plans","href":"/api-reference/carne/listar"},{"title":"Detalhes do Carnê","api":"GET /api/v1/installment-plans/{uuid}","href":"/api-reference/carne/detalhes"},{"title":"Segunda Via de Parcela","api":"POST /api/v1/installment-plans/{uuid}/installments/{number}/reissue","href":"/api-reference/carne/segunda-via"},{"title":"Adiar Parcela","api":"POST /api/v1/installment-plans/{uuid}/installments/{number}/postpone","href":"/api-reference/carne/adiar"},{"title":"Marcar Parcela como Paga","api":"POST /api/v1/installment-plans/{uuid}/installments/{number}/mark-paid","href":"/api-reference/carne/marcar-como-paga"},{"title":"Cancelar Carnê","api":"POST /api/v1/installment-plans/{uuid}/cancel","href":"/api-reference/carne/cancelar"},{"title":"Solicitar Estorno de Carnê","api":"POST /api/v1/installment-plans/{uuid}/refund-requests","href":"/api-reference/carne/solicitar-estorno"}]},{"group":"Pedidos de Estorno","pages":[{"title":"Listar Pedidos de Estorno","api":"GET /api/v1/refund-requests","href":"/api-reference/estornos/listar"},{"title":"Detalhes do Pedido de Estorno","api":"GET /api/v1/refund-requests/{uuid}","href":"/api-reference/estornos/detalhes"},{"title":"Confirmar Estorno","api":"POST /api/v1/refund-requests/{uuid}/confirm","href":"/api-reference/estornos/confirmar"},{"title":"Rejeitar Estorno","api":"POST /api/v1/refund-requests/{uuid}/reject","href":"/api-reference/estornos/rejeitar"}]},{"group":"Portal do Cliente","pages":[{"title":"Solicitar Link Mágico","api":"POST /api/public/minha-area/request","href":"/api-reference/portal-do-cliente/solicitar-link"},{"title":"Listar Cobranças do Cliente","api":"GET /api/public/minha-area/charges","href":"/api-reference/portal-do-cliente/listar-cobrancas"},{"title":"Atualizar E-mail de Cobrança","api":"PATCH /api/public/minha-area/profile","href":"/api-reference/portal-do-cliente/atualizar-email"}]},{"group":"Configuração da Conta","pages":[{"title":"Consultar Taxas Negociadas","api":"GET /api/seller-config/me","href":"/api-reference/seller-config/taxas"}]},{"group":"Webhooks e Exemplos","pages":[{"title":"Webhooks","href":"/api-reference/webhooks"},{"title":"Códigos de falha","href":"/api-reference/webhooks/codigos-de-falha"},{"title":"Disparar webhook manualmente","api":"POST /api/webhook-endpoints/{id}/trigger","href":"/api-reference/webhooks/disparar-manualmente"},{"title":"Listar Eventos de Webhook","api":"GET /api/v1/webhook-events","href":"/api-reference/webhooks/eventos/listar"},{"title":"Detalhes do Evento de Webhook","api":"GET /api/v1/webhook-events/{uuid}","href":"/api-reference/webhooks/eventos/detalhes"},{"title":"Reenviar (clonando) Evento de Webhook","api":"POST /api/v1/webhook-events/{uuid}/resend","href":"/api-reference/webhooks/eventos/resend"},{"title":"Reenviar Evento de Webhook","api":"POST /api/v1/webhook-events/{uuid}/retry","href":"/api-reference/webhooks/eventos/reenviar"},{"title":"Exemplos de Código","href":"/api-reference/exemplos"}]},{"group":"Suporte","pages":[{"title":"Solução de Problemas","href":"/api-reference/troubleshooting"}]}]}]},"basePath":"","title":"Portal customizado por produto (B2B2C) - Garu","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":[],"chunks":[]}