Altera status e/ou expiry_date da assinatura mais recente do par (plano, CPF). Campos ausentes não são alterados; corpo vazio não altera nada e retorna a assinatura atual.
status fora dos valores aceitos (details.status); expiry_date no passado ou anterior a start_date (a message explica qual); plan_id em formato inválido.
404
SUBSCRIPTION_NOT_FOUND
Não há assinatura para o par plano + CPF no seu parceiro e ambiente.
Authorizations
x-api-key
string
header
required
Chave emitida pela Zentek: zk_live_... (produção) ou zk_test_... (sandbox).
Headers
x-tracking-id
string
Identificador de correlação escolhido por você (ex.: UUID ou ID do pedido). Os eventos da requisição ficam consultáveis em GET /track/tracking/{tracking_id}. Não é devolvido na resposta: guarde o valor que enviou.
Path Parameters
plan_id
string
required
ID do plano (plan_ + 6 dígitos, ex.: plan_010051). IDs legados de 5 dígitos (plan_10051) são aceitos e convertidos.
Example:
"plan_010051"
cpf
string
required
CPF do beneficiário, somente os 11 dígitos.
Pattern: ^[0-9]{11}$
Example:
"52998224725"
Body
application/json
status
enum<string>
Available options:
active,
cancelled,
expired
expiry_date
string | null
ISO 8601, ≥ hoje e ≥ start_date. null remove a data de término.
Response
Assinatura atualizada (mascarada).
Assinatura com dados pessoais mascarados.
id
string<uuid>
partner_id
string
plan_id
string
Sempre no formato canônico de 6 dígitos.
status
enum<string>
Available options:
active,
cancelled,
expired
start_date
string<date-time>
expiry_date
string<date-time> | null
beneficiary
object
Dados do beneficiário como enviados, com name, cpf, email, birth_date e address.zipcode/address.street mascarados.
beneficiary_cpf
string
CPF mascarado (ex.: 52*******25).
is_production
boolean
true para assinaturas criadas com chave de produção.
is_synthetic
boolean
Uso interno da Zentek; sempre false para parceiros.
created_at
string<date-time>
updated_at
string<date-time>
Was this page helpful?
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Zentek Developer Hub","colors":{"primary":"#0D73D9","light":"#07A3F2","dark":"#0D73D9"},"favicon":"https://mintcdn.com/zentek/T-ZQJPZ0S2grhGCE/favicon.webp?fit=max\u0026auto=format\u0026n=T-ZQJPZ0S2grhGCE\u0026q=85\u0026s=198201080331cdf36199f54757ec4313","logo":{"light":"https://mintcdn.com/zentek/T-ZQJPZ0S2grhGCE/logo/dark.webp?fit=max\u0026auto=format\u0026n=T-ZQJPZ0S2grhGCE\u0026q=85\u0026s=a44818d715f6af744223938e0cdda416","dark":"https://mintcdn.com/zentek/T-ZQJPZ0S2grhGCE/logo/dark.webp?fit=max\u0026auto=format\u0026n=T-ZQJPZ0S2grhGCE\u0026q=85\u0026s=a44818d715f6af744223938e0cdda416"},"api":{"playground":{"display":"simple"},"mdx":{"server":"https://api.partner.zentek.com.br/v1","auth":{"method":"key","name":"x-api-key"}}},"navbar":{"links":[{"label":"Suporte","href":"mailto:suporte@zentek.com.br"}],"primary":{"type":"button","label":"Começar","href":"https://docs.zentek.com.br/quickstart"}},"footer":{"socials":{"website":"https://zentek.com.br","linkedin":"https://linkedin.com/company/zentek"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"zentek","hasAudioNarration":false,"actualSubdomain":"zentek","customDomains":["docs.zentek.com.br"],"gitSource":{"type":"github","owner":"acardozzo","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b10adc99ffae5051c3fd7cd"},"feedback":{"thumbs":true},"entitlements":{},"buildId":"6aecbbda7e2a3b454e4692d1","clientVersion":"0.0.4448","searchFilterCounts":[{"language":"default","tag":"API Reference","count":36},{"language":"default","tag":"Ecossistemas","count":34},{"language":"default","tag":"Proteção Digital","count":6},{"language":"default","tag":"Assinaturas","count":5},{"language":"default","tag":"Documentation","count":5},{"language":"default","tag":"Coberturas","count":5},{"language":"default","tag":"Casa","count":4},{"language":"default","tag":"Rastreamento","count":3},{"language":"default","tag":"Core Services","count":3},{"language":"default","tag":"PME","count":2}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/subscriptions/update","slug":"/api-reference/subscriptions/update","pageMetadata":{"title":"Atualizar assinatura","openapi":"api-reference/openapi.json PUT /subscriptions/{plan_id}/{cpf}","description":"Altera `status` e/ou `expiry_date` da assinatura mais recente do par (plano, CPF). Campos ausentes não são alterados; corpo vazio não altera nada e retorna a assinatura atual.","href":"/api-reference/subscriptions/update"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Altera \", _jsx(_components.code, {\n children: \"status\"\n }), \" e/ou \", _jsx(_components.code, {\n children: \"expiry_date\"\n }), \" da assinatura mais recente do par (plano, CPF). Campos ausentes não são alterados; corpo vazio não altera nada e retorna a assinatura atual.\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Heading,Table,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Altera o `,_jsx(_components.code,{children:`status`}),` e/ou a `,_jsx(_components.code,{children:`expiry_date`}),` da assinatura mais recente do par `,_jsx(_components.strong,{children:`plano + CPF`}),`. Use-o para `,_jsx(_components.strong,{children:`cancelar`}),`, marcar como `,_jsx(_components.strong,{children:`expirada`}),` ou ajustar a `,_jsx(_components.strong,{children:`vigência`}),`.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Campo`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Valores`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Efeito`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`status`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.code,{children:`active`}),`, `,_jsx(_components.code,{children:`cancelled`}),`, `,_jsx(_components.code,{children:`expired`})]}),_jsx(_components.td,{style:{textAlign:`left`},children:`Novo status.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`expiry_date`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`data ISO 8601 ou `,_jsx(_components.code,{children:`null`})]}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Nova data de término. `,_jsx(_components.code,{children:`null`}),` remove a data de término (vigência aberta). Deve ser ≥ hoje e ≥ `,_jsx(_components.code,{children:`start_date`}),`.`]})]})]})]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Campos ausentes não são alterados; um corpo vazio (`,_jsx(_components.code,{children:`{}`}),`) não altera nada e retorna a assinatura atual.`]}),`\n`,_jsxs(_components.li,{children:[`Outros campos (dados do beneficiário, plano, `,_jsx(_components.code,{children:`start_date`}),`) não podem ser alterados por este endpoint.`]}),`\n`,_jsx(_components.li,{children:`Em produção, a alteração vale para a cobertura do beneficiário. No sandbox, altera apenas os dados de teste.`}),`\n`,_jsx(_components.li,{children:`A resposta traz a assinatura atualizada, com dados pessoais mascarados.`}),`\n`]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Para voltar a cobrir um beneficiário cancelado, envie-o novamente em `,_jsx(_components.a,{href:`/api-reference/subscriptions/create-bulk`,children:_jsx(_components.code,{children:`POST /subscriptions`})}),`: uma nova assinatura é criada.`]})}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Cancelar`,numberOfLines:`4`,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:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` PUT`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.partner.zentek.com.br/v1/subscriptions/plan_010051/52998224725\"`}),_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:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-api-key: SUA_CHAVE_AQUI\"`}),_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:` '{ \"status\": \"cancelled\" }'`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Alterar vigência`,numberOfLines:`4`,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:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` PUT`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.partner.zentek.com.br/v1/subscriptions/plan_010051/52998224725\"`}),_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:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-api-key: SUA_CHAVE_AQUI\"`}),_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:` '{ \"expiry_date\": \"2027-12-31\" }'`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Remover data de término`,numberOfLines:`4`,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:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` PUT`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.partner.zentek.com.br/v1/subscriptions/plan_010051/52998224725\"`}),_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:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-api-key: SUA_CHAVE_AQUI\"`}),_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:` '{ \"expiry_date\": null }'`})]}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`erros`,children:`Erros`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`HTTP`}),_jsx(_components.th,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`code`})}),_jsx(_components.th,{style:{textAlign:`left`},children:`Causa`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`400`}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`FIELD_INVALID`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.code,{children:`status`}),` fora dos valores aceitos (`,_jsx(_components.code,{children:`details.status`}),`); `,_jsx(_components.code,{children:`expiry_date`}),` no passado ou anterior a `,_jsx(_components.code,{children:`start_date`}),` (a `,_jsx(_components.code,{children:`message`}),` explica qual); `,_jsx(_components.code,{children:`plan_id`}),` em formato inválido.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`404`}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`SUBSCRIPTION_NOT_FOUND`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Não há assinatura para o par plano + CPF no seu parceiro e ambiente.`})]})]})]})]})}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":"Atualizar assinatura","openapi":"api-reference/openapi.json PUT /subscriptions/{plan_id}/{cpf}","description":"Altera `status` e/ou `expiry_date` da assinatura mais recente do par (plano, CPF). Campos ausentes não são alterados; corpo vazio não altera nada e retorna a assinatura atual.","href":"/api-reference/subscriptions/update"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Erros","slug":"erros","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Atualizar assinatura","description":"Altera `status` e/ou `expiry_date` da assinatura mais recente do par (plano, CPF). Campos ausentes não são alterados; corpo vazio não altera nada e retorna a assinatura atual.","tags":["Assinaturas"],"operationId":"updateSubscription","parameters":["d60378c6-0972-43be-8d6a-e81644ef5621","a600820d-c1ea-41ad-91e7-fb7ec848fed9","7691ab8a-6092-4eaf-b855-53406205cc8d"],"requestBody":"1580e325-fdde-430c-9d7b-fb2e0e1878ce","responses":{"200":"1f8eef4e-9bb3-45f5-991f-b00e024651fb","400":"aebfcded-aaa6-48b5-99bb-44ee34093ad6","401":"b1313a09-7a23-42a7-a555-08f9219669ca","404":"8d4ce453-26f1-47fc-9c64-8279873d6bf7","429":"d95b9f4a-d057-4856-acd5-50575452f0b7","500":"0a664095-f5e4-4353-a1b4-94d8f9e4e979","503":"f2dc2e05-7122-4a15-991f-6e573a173f85"},"method":"put","type":"path","servers":["96f45973-6bac-4de4-a88d-c487a3b9a741"],"security":["0575ad66-005a-48ec-a9e3-5a10ee28acaf"],"path":"/subscriptions/{plan_id}/{cpf}","baseUrlOptions":["https://api.partner.zentek.com.br/v1"],"title":"Atualizar assinatura","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"d60378c6-0972-43be-8d6a-e81644ef5621":{"name":"x-tracking-id","in":"header","required":false,"description":"Identificador de correlação escolhido por você (ex.: UUID ou ID do pedido). Os eventos da requisição ficam consultáveis em `GET /track/tracking/{tracking_id}`. Não é devolvido na resposta: guarde o valor que enviou.","schema":{"type":"string","isRequired":false,"description":"Identificador de correlação escolhido por você (ex.: UUID ou ID do pedido). Os eventos da requisição ficam consultáveis em `GET /track/tracking/{tracking_id}`. Não é devolvido na resposta: guarde o valor que enviou.","uniqueKey":"","typeLabel":"string"}},"a600820d-c1ea-41ad-91e7-fb7ec848fed9":{"name":"plan_id","in":"path","required":true,"description":"ID do plano (`plan_` + 6 dígitos, ex.: `plan_010051`). IDs legados de 5 dígitos (`plan_10051`) são aceitos e convertidos.","schema":{"type":"string","example":"plan_010051","isRequired":true,"description":"ID do plano (`plan_` + 6 dígitos, ex.: `plan_010051`). IDs legados de 5 dígitos (`plan_10051`) são aceitos e convertidos.","uniqueKey":"","typeLabel":"string"}},"7691ab8a-6092-4eaf-b855-53406205cc8d":{"name":"cpf","in":"path","required":true,"description":"CPF do beneficiário, somente os 11 dígitos.","schema":{"type":"string","pattern":"^[0-9]{11}$","example":"52998224725","isRequired":true,"description":"CPF do beneficiário, somente os 11 dígitos.","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["active","cancelled","expired"],"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"expiry_date":{"oneOf":[{"type":"string","description":"ISO 8601, ≥ hoje e ≥ `start_date`. `null` remove a data de término.","uniqueKey":"expiry_date.oneOf.0","typeLabel":"string"},{"type":"null","description":"ISO 8601, ≥ hoje e ≥ `start_date`. `null` remove a data de término.","uniqueKey":"expiry_date.oneOf.1","typeLabel":"null"}],"uniqueKey":"expiry_date","typeLabel":"string | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"cancelar":{"title":"cancelar","summary":"Cancelar","value":{"status":"cancelled"}},"vigencia":{"title":"vigencia","summary":"Definir fim de vigência","value":{"expiry_date":"2027-12-31"}},"sem_fim":{"title":"sem_fim","summary":"Remover fim de vigência","value":{"expiry_date":null}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"1f8eef4e-9bb3-45f5-991f-b00e024651fb":{"description":"Assinatura atualizada (mascarada).","content":{"application/json":{"schema":{"type":"object","description":"Assinatura com dados pessoais mascarados.","properties":{"id":{"type":"string","format":"uuid","uniqueKey":"id","typeLabel":"string\u003cuuid>"},"partner_id":{"type":"string","uniqueKey":"partner_id","typeLabel":"string"},"plan_id":{"type":"string","description":"Sempre no formato canônico de 6 dígitos.","uniqueKey":"plan_id","typeLabel":"string"},"status":{"type":"string","enum":["active","cancelled","expired"],"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"start_date":{"type":"string","format":"date-time","uniqueKey":"start_date","typeLabel":"string\u003cdate-time>"},"expiry_date":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"expiry_date.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"expiry_date.oneOf.1","typeLabel":"null"}],"uniqueKey":"expiry_date","typeLabel":"string\u003cdate-time> | null"},"beneficiary":{"type":"object","additionalProperties":true,"description":"Dados do beneficiário como enviados, com `name`, `cpf`, `email`, `birth_date` e `address.zipcode`/`address.street` mascarados.","uniqueKey":"beneficiary","typeLabel":"object"},"beneficiary_cpf":{"type":"string","description":"CPF mascarado (ex.: `52*******25`).","uniqueKey":"beneficiary_cpf","typeLabel":"string"},"is_production":{"type":"boolean","description":"`true` para assinaturas criadas com chave de produção.","uniqueKey":"is_production","typeLabel":"boolean"},"is_synthetic":{"type":"boolean","description":"Uso interno da Zentek; sempre `false` para parceiros.","uniqueKey":"is_synthetic","typeLabel":"boolean"},"created_at":{"type":"string","format":"date-time","uniqueKey":"created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","uniqueKey":"updated_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"","typeLabel":"object"},"example":{"id":"7f1c2a9e-3b4d-4e5f-8a6b-1c2d3e4f5a6b","partner_id":"pa_10001","plan_id":"plan_010051","status":"cancelled","start_date":"2026-11-05T00:00:00+00:00","expiry_date":"2027-12-31T00:00:00+00:00","beneficiary":{"cpf":"52*******25","name":"Maria ***","email":"m***************m","birth_date":"1990-**-**","gender":"F","foreign_id":"cliente-123"},"beneficiary_cpf":"52*******25","is_production":false,"is_synthetic":false,"created_at":"2026-11-05T14:03:12.412+00:00","updated_at":"2026-11-05T14:03:12.412+00:00"},"examples":{"Example":{"title":"Example","value":{"id":"7f1c2a9e-3b4d-4e5f-8a6b-1c2d3e4f5a6b","partner_id":"pa_10001","plan_id":"plan_010051","status":"cancelled","start_date":"2026-11-05T00:00:00+00:00","expiry_date":"2027-12-31T00:00:00+00:00","beneficiary":{"cpf":"52*******25","name":"Maria ***","email":"m***************m","birth_date":"1990-**-**","gender":"F","foreign_id":"cliente-123"},"beneficiary_cpf":"52*******25","is_production":false,"is_synthetic":false,"created_at":"2026-11-05T14:03:12.412+00:00","updated_at":"2026-11-05T14:03:12.412+00:00"}}},"exampleType":"examples"}},"exampleType":"examples"},"aebfcded-aaa6-48b5-99bb-44ee34093ad6":{"description":"Valor inválido.","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Código estável, legível por máquina.","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Mensagem descritiva (pode mudar; não use para lógica).","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"description":"Contexto do erro (ex.: campo e valor recebidos).","uniqueKey":"details","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"status":{"title":"status","summary":"status","value":{"code":"FIELD_INVALID","message":"Erro de Dominio: Valor de atibuto inválido","details":{"status":"paused"}}},"expiry_date":{"title":"expiry_date","summary":"expiry_date","value":{"code":"FIELD_INVALID","message":"subscription.expiry_date must be equal to or higher than today's date","details":{"expiry_date":"2000-01-01"}}}},"exampleType":"examples"}},"exampleType":"examples"},"b1313a09-7a23-42a7-a555-08f9219669ca":{"description":"Chave de API ausente ou inválida.","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Código estável, legível por máquina.","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Mensagem descritiva (pode mudar; não use para lógica).","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"description":"Contexto do erro (ex.: campo e valor recebidos).","uniqueKey":"details","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"API_KEY_MISSING":{"title":"API_KEY_MISSING","summary":"API_KEY_MISSING","value":{"code":"API_KEY_MISSING","message":"Missing API key. Please provide a valid API key in the x-api-key header.","details":{}}},"API_KEY_INVALID":{"title":"API_KEY_INVALID","summary":"API_KEY_INVALID","value":{"code":"API_KEY_INVALID","message":"Invalid API key. Please check your API key and try again.","details":{"reason":"PARTNER_INACTIVE"}}}},"exampleType":"examples"}},"exampleType":"examples"},"8d4ce453-26f1-47fc-9c64-8279873d6bf7":{"description":"Assinatura não encontrada.","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Código estável, legível por máquina.","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Mensagem descritiva (pode mudar; não use para lógica).","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"description":"Contexto do erro (ex.: campo e valor recebidos).","uniqueKey":"details","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"SUBSCRIPTION_NOT_FOUND":{"title":"SUBSCRIPTION_NOT_FOUND","summary":"SUBSCRIPTION_NOT_FOUND","value":{"code":"SUBSCRIPTION_NOT_FOUND","message":"SUBSCRIPTION_NOT_FOUND","details":{"planId":"plan_010051","id":"52998224725"}}}},"exampleType":"examples"}},"exampleType":"examples"},"d95b9f4a-d057-4856-acd5-50575452f0b7":{"description":"Limite de requisições da chave excedido.","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Código estável, legível por máquina.","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Mensagem descritiva (pode mudar; não use para lógica).","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"description":"Contexto do erro (ex.: campo e valor recebidos).","uniqueKey":"details","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"RATE_LIMITED":{"title":"RATE_LIMITED","summary":"RATE_LIMITED","value":{"code":"RATE_LIMITED","message":"Rate limit exceeded for this API key. Please retry later.","details":{}}}},"exampleType":"examples"}},"exampleType":"examples"},"0a664095-f5e4-4353-a1b4-94d8f9e4e979":{"description":"Erro interno inesperado.","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Código estável, legível por máquina.","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Mensagem descritiva (pode mudar; não use para lógica).","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"description":"Contexto do erro (ex.: campo e valor recebidos).","uniqueKey":"details","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"INTERNAL_ERROR":{"title":"INTERNAL_ERROR","summary":"INTERNAL_ERROR","value":{"code":"INTERNAL_ERROR","message":"Internal server error"}}},"exampleType":"examples"}},"exampleType":"examples"},"f2dc2e05-7122-4a15-991f-6e573a173f85":{"description":"Serviço de verificação de chaves indisponível. Tente novamente.","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Código estável, legível por máquina.","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Mensagem descritiva (pode mudar; não use para lógica).","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"description":"Contexto do erro (ex.: campo e valor recebidos).","uniqueKey":"details","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"AUTH_UPSTREAM_UNAVAILABLE":{"title":"AUTH_UPSTREAM_UNAVAILABLE","summary":"AUTH_UPSTREAM_UNAVAILABLE","value":{"code":"AUTH_UPSTREAM_UNAVAILABLE","message":"API key verification service unavailable. Please retry later.","details":{}}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"0575ad66-005a-48ec-a9e3-5a10ee28acaf":{"apiKey":{"type":"apiKey","in":"header","name":"x-api-key","description":"Chave emitida pela Zentek: `zk_live_...` (produção) ou `zk_test_...` (sandbox).","scopes":[],"schemeName":"apiKey"}}},"servers":{"96f45973-6bac-4de4-a88d-c487a3b9a741":{"url":"https://api.partner.zentek.com.br/v1","description":"Produção e sandbox (o ambiente é definido pela chave de API)"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-api-key","description":"Chave emitida pela Zentek: `zk_live_...` (produção) ou `zk_test_...` (sandbox).","scopes":[],"schemeName":"apiKey"},"schema":{"title":"x-api-key","type":"string","description":"Chave emitida pela Zentek: `zk_live_...` (produção) ou `zk_test_...` (sandbox).","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"apiKey","name":"x-api-key"}],"title":"apiKey"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"zentek","siteName":"Zentek Developer Hub","title":"Atualizar assinatura - Zentek Developer Hub","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-05T17:25:58.165Z","originalFileLocation":"api-reference/subscriptions/update.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=\"Altera status e/ou expiry_date da assinatura mais recente do par (plano, CPF). Campos ausentes não são alterados; corpo vazio não altera nada e retorna a assinatura atual.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Zentek Developer Hub\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/zentek/PekBNFGDW3x_-lzo/_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/zentek/PekBNFGDW3x_-lzo/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/zentek/PekBNFGDW3x_-lzo/_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/zentek/PekBNFGDW3x_-lzo/_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/zentek/PekBNFGDW3x_-lzo/_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/zentek/PekBNFGDW3x_-lzo/_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/zentek/PekBNFGDW3x_-lzo/_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/zentek/PekBNFGDW3x_-lzo/_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/zentek/PekBNFGDW3x_-lzo/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Atualizar assinatura - Zentek Developer Hub\">\u003cmeta data-mint-head property=\"og:description\" content=\"Altera status e/ou expiry_date da assinatura mais recente do par (plano, CPF). Campos ausentes não são alterados; corpo vazio não altera nada e retorna a assinatura atual.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Zentek Developer Hub\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.zentek.com.br/api-reference/subscriptions/update\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://zentek.mintlify.site/_mintlify/api/og/v2?division=Assinaturas\u0026amp;title=Atualizar+assinatura\u0026amp;description=Altera+%60status%60+e%2Fou+%60expiry_date%60+da+assinatura+mais+recente+do+par+%28plano%2C+CPF%29.+Campos+ausentes+n%C3%A3o+s%C3%A3o+alterados%3B+corpo+vazio+n%C3%A3o+altera+nada+e+retorna+a+as\u0026amp;theme=7767881eb2ea5b1b80bca79c\u0026amp;signature=9127421d06a778e36f76c6487ab14ea13a8d33d0e6df43980715657ae3bc36d7\">\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=\"Atualizar assinatura - Zentek Developer Hub\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Altera status e/ou expiry_date da assinatura mais recente do par (plano, CPF). Campos ausentes não são alterados; corpo vazio não altera nada e retorna a assinatura atual.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://zentek.mintlify.site/_mintlify/api/og/v2?division=Assinaturas\u0026amp;title=Atualizar+assinatura\u0026amp;description=Altera+%60status%60+e%2Fou+%60expiry_date%60+da+assinatura+mais+recente+do+par+%28plano%2C+CPF%29.+Campos+ausentes+n%C3%A3o+s%C3%A3o+alterados%3B+corpo+vazio+n%C3%A3o+altera+nada+e+retorna+a+as\u0026amp;theme=7767881eb2ea5b1b80bca79c\u0026amp;signature=9127421d06a778e36f76c6487ab14ea13a8d33d0e6df43980715657ae3bc36d7\">\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/zentek/PekBNFGDW3x_-lzo/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Zentek Developer Hub\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0D73D9\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.zentek.com.br/api-reference/subscriptions/update\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/subscriptions/update.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.zentek.com.br/#organization\",\"name\":\"Zentek Developer Hub\",\"url\":\"https://docs.zentek.com.br\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/zentek/T-ZQJPZ0S2grhGCE/logo/dark.webp?fit=max\u0026auto=format\u0026n=T-ZQJPZ0S2grhGCE\u0026q=85\u0026s=a44818d715f6af744223938e0cdda416\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.zentek.com.br#website\",\"name\":\"Zentek Developer Hub\",\"url\":\"https://docs.zentek.com.br\",\"publisher\":{\"@id\":\"https://docs.zentek.com.br/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.zentek.com.br/api-reference/subscriptions/update#webpage\",\"url\":\"https://docs.zentek.com.br/api-reference/subscriptions/update\",\"name\":\"Atualizar assinatura\",\"description\":\"Altera status e/ou expiry_date da assinatura mais recente do par (plano, CPF). Campos ausentes não são alterados; corpo vazio não altera nada e retorna a assinatura atual.\",\"dateModified\":\"2026-11-05T17:25:58.165Z\",\"isPartOf\":{\"@id\":\"https://docs.zentek.com.br#website\"},\"breadcrumb\":{\"@id\":\"https://docs.zentek.com.br/api-reference/subscriptions/update#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.zentek.com.br/api-reference/subscriptions/update#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API Reference\",\"item\":\"https://docs.zentek.com.br/api-reference/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Assinaturas\",\"item\":\"https://docs.zentek.com.br/api-reference/subscriptions/create-bulk\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Atualizar assinatura\",\"item\":\"https://docs.zentek.com.br/api-reference/subscriptions/update\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.zentek.com.br/api-reference/subscriptions/update#apireference\",\"headline\":\"Atualizar assinatura\",\"name\":\"Atualizar assinatura\",\"description\":\"Altera status e/ou expiry_date da assinatura mais recente do par (plano, CPF). Campos ausentes não são alterados; corpo vazio não altera nada e retorna a assinatura atual.\",\"url\":\"https://docs.zentek.com.br/api-reference/subscriptions/update\",\"mainEntityOfPage\":{\"@id\":\"https://docs.zentek.com.br/api-reference/subscriptions/update#webpage\"},\"dateModified\":\"2026-11-05T17:25:58.165Z\",\"publisher\":{\"@id\":\"https://docs.zentek.com.br/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.zentek.com.br#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Zentek Developer Hub\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Zentek Developer Hub\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/subscriptions/update.md","siteName":"Zentek Developer Hub","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"Ecossistemas","pages":[{"title":"Ecossistemas","href":"/ecosystems/casa/overview"}]},{"tab":"API Reference","groups":[{"group":"API Reference","pages":[{"title":"Introdução","href":"/api-reference/introduction"},{"title":"Erros","href":"/api-reference/errors"},{"title":"Verificar disponibilidade","openapi":"api-reference/openapi.json GET /health","href":"/api-reference/health"},{"group":"Planos","pages":[{"title":"Listar planos","openapi":"api-reference/openapi.json GET /plans","href":"/api-reference/plans/list"}]},{"group":"Parceiro","pages":[{"title":"Consultar parceiro","openapi":"api-reference/openapi.json GET /partners/{partner_id}","href":"/api-reference/partners/get"}]},{"group":"Assinaturas","pages":[{"title":"Criar assinaturas em lote","openapi":"api-reference/openapi.json POST /subscriptions","href":"/api-reference/subscriptions/create-bulk"},{"title":"Listar assinaturas","openapi":"api-reference/openapi.json GET /subscriptions","href":"/api-reference/subscriptions/list"},{"title":"Buscar assinaturas por CPF","openapi":"api-reference/openapi.json POST /subscriptions/beneficiary","href":"/api-reference/subscriptions/lookup-beneficiary"},{"title":"Consultar assinatura","openapi":"api-reference/openapi.json GET /subscriptions/{plan_id}/{cpf}","description":"Retorna a assinatura mais recente do par (plano, CPF) no seu parceiro e ambiente, com dados pessoais mascarados.","href":"/api-reference/subscriptions/get-by-id"},{"title":"Atualizar assinatura","openapi":"api-reference/openapi.json PUT /subscriptions/{plan_id}/{cpf}","href":"/api-reference/subscriptions/update"}]},{"group":"Rastreamento","pages":[{"title":"Eventos por tracking id","openapi":"api-reference/openapi.json GET /track/tracking/{tracking_id}","description":"Retorna até 100 eventos (mais recentes primeiro) de uma cadeia de rastreamento, ou seja, das requisições enviadas com o header `x-tracking-id` igual a `tracking_id`. Restrito ao seu parceiro: um ID desconhecido retorna `events` vazio.","href":"/api-reference/tracking/by-tracking-id"},{"title":"Eventos por assinatura","openapi":"api-reference/openapi.json GET /track/subscription/{subscription_id}","href":"/api-reference/tracking/by-subscription"},{"title":"Eventos recentes do parceiro","openapi":"api-reference/openapi.json GET /track/partner","href":"/api-reference/tracking/partner"}]},{"group":"Proteção Digital","pages":[{"title":"Proteção Digital API","href":"/api-reference/cyber/introduction"}]},{"group":"Casa Conectada","pages":[{"title":"Casa Conectada API","href":"/api-reference/casa/introduction"}]},{"group":"Game Assist","pages":[{"title":"Game Assist API","href":"/api-reference/games/introduction"}]},{"group":"Gestor de Vida Digital","pages":[{"title":"Gestor de Vida Digital API","href":"/api-reference/life-manager/introduction"}]},{"group":"PME","pages":[{"title":"PME API","href":"/api-reference/pme/introduction"}]}]}]}]},"basePath":"","title":"Atualizar assinatura - Zentek Developer Hub","deploymentId":"dpl_XLevHnGPjzxq9mbREha5Faad63Sp","buildId":"dpl_XLevHnGPjzxq9mbREha5Faad63Sp","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-BD9G1WMi.js","snippetPresets-Bcqr8I2u.js","utils-BrYn4XiY.js","style-to-object-BY3JEAdk.js","utils-CYrCnchl.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-CNFO66BS.js","conditional-requirements-CFM0id0Q.js","cloneDeep-BneVo7uA.js","_Uint8Array-n4RvRzp3.js","isObject-FP1Yky1u.js","ApiExamples-C1YMsTjy.js","usePlaygroundInputsStore-DayW4kZ9.js","shallow-DDCzdKmR.js","isEqual-CBVoazy8.js","CodeSnippets-CWandYY5.js","CodeSnippet-grFP6YU_.js","use-playground-group-access-BBqHUxQK.js","Page-DBPN_x5x.js","api-description-markdown-1J-AA_Kv.js","DynamicMarkdown-Dgh_e4rL.js","SectionHeading-BP6Np9Uh.js","MethodPill-4k_Ty_Xv.js","getPastedJson-CWUNKLcr.js","Check2Icon-Cs4FQb2J.js","axios-CsQoIw0U.js","Markdown-CR8c2fXT.js","AssistantPageLink-BBR7elHb.js","dist-DjFwSv8l.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}