{ "result": "There were problems creating 1 item(s) due to validation errors", "total_created_items": 1, "total_updated_items": 0, "total_not_created_items": 1, "not_created_items": [ { "cpf": "12345678900", "plan_id": "plan_010051", "errors": [ "value for beneficiary.cpf is not valid" ] } ]}
Assinaturas
Criar assinaturas em lote
Recebe um array de 1 a 100 itens. Cada item é validado e processado de forma independente: os que falham aparecem em not_created_items e não interrompem o lote. Reenviar um par (plan_id, beneficiary.cpf) que já tem assinatura ativa é um reenvio: conta em total_updated_items e altera somenteexpiry_date.
{ "result": "There were problems creating 1 item(s) due to validation errors", "total_created_items": 1, "total_updated_items": 0, "total_not_created_items": 1, "not_created_items": [ { "cpf": "12345678900", "plan_id": "plan_010051", "errors": [ "value for beneficiary.cpf is not valid" ] } ]}
Cria assinaturas para um ou mais beneficiários em uma única chamada. O corpo é sempre um array com 1 a 100 itens — mesmo para uma única assinatura.
Regras
Obrigatórios: apenas plan_id e beneficiary.cpf. Todos os demais campos são opcionais, mas são validados quando enviados.
Plano: plan_id precisa ser um plano ativo do seu parceiro (veja GET /plans). Caso contrário, o item é recusado com plan_id not found or not available for this partner.
Formato do plano: plan_ + 6 dígitos (plan_010051). O formato legado de 5 dígitos (plan_10051) é aceito e convertido para plan_010051; as consultas sempre retornam o formato canônico. Em not_created_items, o plan_id é devolvido exatamente como você enviou.
CPF: 11 dígitos, sem pontuação, com dígitos verificadores válidos.
Datas (ISO 8601):
start_date é opcional; se ausente, vale a data de hoje (UTC). Não pode ser anterior a hoje.
expiry_date é opcional; ausente ou null significa vigência sem data de término. Se enviada, deve ser maior ou igual a hoje e a start_date.
Processamento independente: cada item é validado e gravado separadamente (até 100 em paralelo). Itens inválidos vão para not_created_items e não impedem a criação dos demais. Por isso a resposta é 201 mesmo quando há itens recusados — sempre confira total_not_created_items.
Itens null ou objetos vazios ({}) são ignorados.
Para lotes grandes, configure no seu cliente HTTP um timeout de pelo menos 30 segundos.
Reenvio de uma assinatura ativa
Se o par (plan_id, beneficiary.cpf) já possui uma assinatura ativa no mesmo ambiente, o item é tratado como reenvio:
conta em total_updated_items (e não em total_created_items);
apenas expiry_date é atualizada — use isso para renovar ou estender a vigência. Enviar expiry_date: null remove a data de término; omitir expiry_date mantém a atual;
dados do beneficiário e partner_metadata enviados no reenvio são ignorados.
Se a assinatura anterior estiver cancelada ou expirada, o envio cria uma nova assinatura.
Campos do beneficiário
Campo
Regra quando enviado
cpf
Obrigatório. 11 dígitos válidos.
name
Ao menos 2 partes (nome e sobrenome), primeiro nome com 2+ caracteres, até 100 caracteres.
email
E-mail válido.
birth_date
ISO 8601 (1990-02-22).
gender
M, F ou X.
phone_number
Array de strings, cada uma com DDI e iniciando com + (ex.: ["+5511999998888"]).
address
Objeto com zipcode, street, number, complement, neighborhood, city, state.
foreign_id
Seu identificador interno do beneficiário.
partner_internal_id
Alias de foreign_id (usado quando foreign_id não é enviado).
primary_card, user_card
Números de cartão (texto).
partner_metadata é um objeto JSON livre (use chaves em snake_case). Ele é armazenado junto à assinatura, mas não é devolvido nas consultas.
Planos coletivos
Com is_group_plan: true, o item exige benefit_holder (CNPJ válido do titular) e group_size maior que 1. Fora de planos coletivos, benefit_holder é opcional, mas é validado se enviado.
Cada item de plano coletivo é expandido em group_size itens idênticos, que compartilham o mesmo CPF. Na prática, o resultado é uma assinatura ativa para esse CPF: na resposta, os group_size itens aparecem somados em total_created_items + total_updated_items. Para cobrir várias pessoas, envie um item por CPF.
Resposta (201) para o cURL acima — o segundo item tem CPF inválido:
{ "result": "There were problems creating 1 item(s) due to validation errors", "total_created_items": 1, "total_updated_items": 0, "total_not_created_items": 1, "not_created_items": [ { "cpf": "12345678900", "plan_id": "plan_010051", "errors": ["value for beneficiary.cpf is not valid"] } ]}
O campo result assume um destes valores:
result
Quando
All subscriptions were created successfully
Nenhum item recusado e nenhum reenvio.
All subscriptions were processed successfully
Nenhum item recusado e ao menos um reenvio.
There were problems creating N item(s) due to validation errors
Ao menos um item recusado.
Erros do lote
Estes erros recusam a requisição inteira (nada é gravado):
HTTP
code
Causa
400
SUBSCRIPTIONS_MUST_BE_ARRAY
O corpo não é um array JSON (inclui JSON malformado).
400
SUBSCRIPTIONS_EMPTY
Array vazio.
400
SUBSCRIPTIONS_LIMIT_EXCEEDED
Mais de 100 itens.
Mensagens de erro por item
Possíveis valores em not_created_items[].errors:
Mensagem
Causa
plan_id is empty
plan_id ausente (ou enviado em camelCase, planId).
plan_id format is invalid
Formato diferente de plan_ + 6 dígitos (ou do legado de 5 dígitos).
plan_id not found or not available for this partner
Plano inexistente, inativo ou de outro parceiro.
value for beneficiary.cpf is required
CPF ausente.
value for beneficiary.cpf is not valid
CPF com pontuação, tamanho errado ou dígito verificador inválido.
Invalid date format in the field subscription.start_date
start_date fora do ISO 8601.
subscription.start_date must be equal to or higher than today's date
start_date no passado.
Invalid date format in the field subscription.expiry_date
expiry_date fora do ISO 8601.
subscription.expiry_date must be equal to or higher than today's date
expiry_date no passado.
subscription.expiry_date must be equal to or higher than subscription.start_date
expiry_date anterior a start_date.
beneficiary.name first name must have at least 2 characters
Primeiro nome com menos de 2 caracteres.
beneficiary.name must have at least 2 parts
Nome sem sobrenome.
beneficiary.name must have a maximum of 100 characters
Nome longo demais.
value for beneficiary.gender is not valid
Gênero diferente de M, F ou X.
Invalid date format in the field beneficiary.birth_date
birth_date fora do ISO 8601.
value for beneficiary.email is invalid
E-mail inválido.
value for beneficiary.phone_number must be an array of strings
phone_number não é um array de strings.
beneficiary.phone_number must include DDI and start with a +
Telefone sem + e DDI.
CNPJ is required for group plans
is_group_plan: true sem benefit_holder.
CNPJ format is invalid
benefit_holder não é um CNPJ válido.
Group size must be greater than 1 for group plans
group_size ausente ou ≤ 1 em plano coletivo.
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.
Body
application/json
Required array length: 1 - 100 elements
plan_id
string
required
Obrigatório. Um plano ativo do seu parceiro (veja GET /plans). Formato plan_ + 6 dígitos; o formato legado de 5 dígitos é aceito.
Example:
"plan_010051"
beneficiary
object
required
Show child attributes
start_date
string | null
ISO 8601. Padrão: hoje (UTC). Não pode ser anterior a hoje.
expiry_date
string | null
ISO 8601. Ausente ou null = sem data de término. Deve ser ≥ hoje e ≥ start_date.
partner_metadata
object | null
Objeto JSON livre para seus metadados (use chaves snake_case). É armazenado, mas não é devolvido nas consultas.
is_group_plan
boolean
Plano coletivo. Quando true, exige benefit_holder e group_size.
benefit_holder
string
CNPJ válido do titular (empresa). Obrigatório se is_group_plan = true; validado se enviado.
group_size
integerstring
Tamanho do grupo; deve ser maior que 1 quando is_group_plan = true.
Response
Lote processado (inclusive quando há itens recusados).
result
string
Resumo textual do processamento.
total_created_items
integer
total_updated_items
integer
Reenvios de assinaturas já ativas.
total_not_created_items
integer
not_created_items
object[]
Show child attributes
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/create-bulk","slug":"/api-reference/subscriptions/create-bulk","pageMetadata":{"title":"Criar assinaturas em lote","openapi":"api-reference/openapi.json POST /subscriptions","description":"Recebe um **array** de 1 a 100 itens. Cada item é validado e processado de forma independente: os que falham aparecem em `not_created_items` e não interrompem o lote. Reenviar um par (`plan_id`, `beneficiary.cpf`) que já tem assinatura **ativa** é um *reenvio*: conta em `total_updated_items` e altera **somente** `expiry_date`.","href":"/api-reference/subscriptions/create-bulk"},"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 em: \"em\",\n p: \"p\",\n strong: \"strong\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Recebe um \", _jsx(_components.strong, {\n children: \"array\"\n }), \" de 1 a 100 itens. Cada item é validado e processado de forma independente: os que falham aparecem em \", _jsx(_components.code, {\n children: \"not_created_items\"\n }), \" e não interrompem o lote. Reenviar um par (\", _jsx(_components.code, {\n children: \"plan_id\"\n }), \", \", _jsx(_components.code, {\n children: \"beneficiary.cpf\"\n }), \") que já tem assinatura \", _jsx(_components.strong, {\n children: \"ativa\"\n }), \" é um \", _jsx(_components.em, {\n children: \"reenvio\"\n }), \": conta em \", _jsx(_components.code, {\n children: \"total_updated_items\"\n }), \" e altera \", _jsx(_components.strong, {\n children: \"somente\"\n }), \" \", _jsx(_components.code, {\n children: \"expiry_date\"\n }), \".\"]\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,Note,Table,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Cria assinaturas para um ou mais beneficiários em uma única chamada. O corpo é `,_jsx(_components.strong,{children:`sempre um array`}),` com 1 a 100 itens — mesmo para uma única assinatura.`]}),`\n`,_jsx(Heading,{level:`2`,id:`regras`,children:`Regras`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Obrigatórios`}),`: apenas `,_jsx(_components.code,{children:`plan_id`}),` e `,_jsx(_components.code,{children:`beneficiary.cpf`}),`. Todos os demais campos são opcionais, mas são validados quando enviados.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Plano`}),`: `,_jsx(_components.code,{children:`plan_id`}),` precisa ser um plano `,_jsx(_components.strong,{children:`ativo do seu parceiro`}),` (veja `,_jsx(_components.a,{href:`/api-reference/plans/list`,children:_jsx(_components.code,{children:`GET /plans`})}),`). Caso contrário, o item é recusado com `,_jsx(_components.code,{children:`plan_id not found or not available for this partner`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Formato do plano`}),`: `,_jsx(_components.code,{children:`plan_`}),` + 6 dígitos (`,_jsx(_components.code,{children:`plan_010051`}),`). O formato legado de 5 dígitos (`,_jsx(_components.code,{children:`plan_10051`}),`) é aceito e convertido para `,_jsx(_components.code,{children:`plan_010051`}),`; as consultas sempre retornam o formato canônico. Em `,_jsx(_components.code,{children:`not_created_items`}),`, o `,_jsx(_components.code,{children:`plan_id`}),` é devolvido exatamente como você enviou.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`CPF`}),`: 11 dígitos, sem pontuação, com dígitos verificadores válidos.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Datas`}),` (ISO 8601):`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`start_date`}),` é opcional; se ausente, vale a data de hoje (UTC). Não pode ser anterior a hoje.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`expiry_date`}),` é opcional; ausente ou `,_jsx(_components.code,{children:`null`}),` significa `,_jsx(_components.strong,{children:`vigência sem data de término`}),`. Se enviada, deve ser maior ou igual a hoje e a `,_jsx(_components.code,{children:`start_date`}),`.`]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Processamento independente`}),`: cada item é validado e gravado separadamente (até 100 em paralelo). Itens inválidos vão para `,_jsx(_components.code,{children:`not_created_items`}),` e `,_jsx(_components.strong,{children:`não`}),` impedem a criação dos demais. Por isso a resposta é `,_jsx(_components.code,{children:`201`}),` mesmo quando há itens recusados — sempre confira `,_jsx(_components.code,{children:`total_not_created_items`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Itens `,_jsx(_components.code,{children:`null`}),` ou objetos vazios (`,_jsx(_components.code,{children:`{}`}),`) são ignorados.`]}),`\n`]}),`\n`,_jsx(Tip,{children:_jsx(_components.p,{children:`Para lotes grandes, configure no seu cliente HTTP um timeout de pelo menos 30 segundos.`})}),`\n`,_jsx(Heading,{level:`2`,id:`reenvio-de-uma-assinatura-ativa`,children:`Reenvio de uma assinatura ativa`}),`\n`,_jsxs(_components.p,{children:[`Se o par (`,_jsx(_components.code,{children:`plan_id`}),`, `,_jsx(_components.code,{children:`beneficiary.cpf`}),`) já possui uma assinatura `,_jsx(_components.strong,{children:`ativa`}),` no mesmo ambiente, o item é tratado como `,_jsx(_components.strong,{children:`reenvio`}),`:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`conta em `,_jsx(_components.code,{children:`total_updated_items`}),` (e não em `,_jsx(_components.code,{children:`total_created_items`}),`);`]}),`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[`apenas `,_jsx(_components.code,{children:`expiry_date`}),` é atualizada`]}),` — use isso para renovar ou estender a vigência. Enviar `,_jsx(_components.code,{children:`expiry_date: null`}),` remove a data de término; omitir `,_jsx(_components.code,{children:`expiry_date`}),` mantém a atual;`]}),`\n`,_jsxs(_components.li,{children:[`dados do beneficiário e `,_jsx(_components.code,{children:`partner_metadata`}),` enviados no reenvio são `,_jsx(_components.strong,{children:`ignorados`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Se a assinatura anterior estiver cancelada ou expirada, o envio cria uma `,_jsx(_components.strong,{children:`nova`}),` assinatura.`]}),`\n`,_jsx(Heading,{level:`2`,id:`campos-do-beneficiário`,children:`Campos do beneficiário`}),`\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:`Regra quando enviado`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`cpf`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.strong,{children:`Obrigatório.`}),` 11 dígitos válidos.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`name`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Ao menos 2 partes (nome e sobrenome), primeiro nome com 2+ caracteres, até 100 caracteres.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`email`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`E-mail válido.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`birth_date`})}),_jsxs(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:[`ISO 8601 (`,_jsx(_components.code,{children:`1990-02-22`}),`).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`gender`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.code,{children:`M`}),`, `,_jsx(_components.code,{children:`F`}),` ou `,_jsx(_components.code,{children:`X`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`phone_number`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.strong,{children:`Array`}),` de strings, cada uma com DDI e iniciando com `,_jsx(_components.code,{children:`+`}),` (ex.: `,_jsx(_components.code,{children:`[\"+5511999998888\"]`}),`).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`address`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Objeto com `,_jsx(_components.code,{children:`zipcode`}),`, `,_jsx(_components.code,{children:`street`}),`, `,_jsx(_components.code,{children:`number`}),`, `,_jsx(_components.code,{children:`complement`}),`, `,_jsx(_components.code,{children:`neighborhood`}),`, `,_jsx(_components.code,{children:`city`}),`, `,_jsx(_components.code,{children:`state`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`foreign_id`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Seu identificador interno do beneficiário.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`partner_internal_id`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Alias de `,_jsx(_components.code,{children:`foreign_id`}),` (usado quando `,_jsx(_components.code,{children:`foreign_id`}),` não é enviado).`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.code,{children:`primary_card`}),`, `,_jsx(_components.code,{children:`user_card`})]}),_jsx(_components.td,{style:{textAlign:`left`},children:`Números de cartão (texto).`})]})]})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`partner_metadata`}),` é um `,_jsx(_components.strong,{children:`objeto JSON`}),` livre (use chaves em snake_case). Ele é armazenado junto à assinatura, mas não é devolvido nas consultas.`]}),`\n`,_jsx(Heading,{level:`2`,id:`planos-coletivos`,children:`Planos coletivos`}),`\n`,_jsxs(_components.p,{children:[`Com `,_jsx(_components.code,{children:`is_group_plan: true`}),`, o item exige `,_jsx(_components.code,{children:`benefit_holder`}),` (CNPJ válido do titular) e `,_jsx(_components.code,{children:`group_size`}),` maior que 1. Fora de planos coletivos, `,_jsx(_components.code,{children:`benefit_holder`}),` é opcional, mas é validado se enviado.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Cada item de plano coletivo é expandido em `,_jsx(_components.code,{children:`group_size`}),` itens idênticos, que compartilham o mesmo CPF. Na prática, o resultado é `,_jsx(_components.strong,{children:`uma`}),` assinatura ativa para esse CPF: na resposta, os `,_jsx(_components.code,{children:`group_size`}),` itens aparecem somados em `,_jsx(_components.code,{children:`total_created_items`}),` + `,_jsx(_components.code,{children:`total_updated_items`}),`. Para cobrir várias pessoas, envie um item por CPF.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`exemplo`,children:`Exemplo`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`23`,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:`23`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.partner.zentek.com.br/v1/subscriptions\"`}),_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:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-tracking-id: pedido-98765\"`}),_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:` {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"plan_id\": \"plan_010051\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"beneficiary\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"cpf\": \"52998224725\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"name\": \"Maria Silva\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"email\": \"maria@exemplo.com\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"birth_date\": \"1990-02-22\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"gender\": \"F\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"phone_number\": [\"+5511999998888\"],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"partner_internal_id\": \"cliente-123\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"partner_metadata\": { \"order_id\": \"pedido-98765\" }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"plan_id\": \"plan_010051\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"beneficiary\": { \"cpf\": \"12345678900\" }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ]'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`JavaScript`,numberOfLines:`18`,language:`javascript`,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:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`18`,children:[_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:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'https://api.partner.zentek.com.br/v1/subscriptions'`}),_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:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'POST'`}),_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:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'application/json'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'x-api-key'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_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:`ZENTEK_API_KEY`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'x-tracking-id'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'pedido-98765'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`([`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` plan_id:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'plan_010051'`}),_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:` beneficiary:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`cpf:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '52998224725'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`name:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Maria Silva'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]),`})}),`\n`,_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:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` result`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_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\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`total_not_created_items`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` >`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0`}),_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:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`warn`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`not_created_items`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),`\n`,_jsxs(_components.p,{children:[`Resposta (`,_jsx(_components.code,{children:`201`}),`) para o cURL acima — o segundo item tem CPF inválido:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`13`,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:`13`,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:` \"result\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"There were problems creating 1 item(s) due to validation errors\"`}),_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:` \"total_created_items\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_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:` \"total_updated_items\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_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:` \"total_not_created_items\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_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:` \"not_created_items\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"cpf\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"12345678900\"`}),_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:` \"plan_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"plan_010051\"`}),_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:` \"errors\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"value for beneficiary.cpf is not valid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`O campo `,_jsx(_components.code,{children:`result`}),` assume um destes valores:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`result`})}),_jsx(_components.th,{style:{textAlign:`left`},children:`Quando`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`All subscriptions were created successfully`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Nenhum item recusado e nenhum reenvio.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`All subscriptions were processed successfully`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Nenhum item recusado e ao menos um reenvio.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`There were problems creating N item(s) due to validation errors`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Ao menos um item recusado.`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`erros-do-lote`,children:`Erros do lote`}),`\n`,_jsx(_components.p,{children:`Estes erros recusam a requisição inteira (nada é gravado):`}),`\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:`SUBSCRIPTIONS_MUST_BE_ARRAY`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`O corpo não é um array JSON (inclui JSON malformado).`})]}),_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:`SUBSCRIPTIONS_EMPTY`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Array vazio.`})]}),_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:`SUBSCRIPTIONS_LIMIT_EXCEEDED`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Mais de 100 itens.`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`mensagens-de-erro-por-item`,children:`Mensagens de erro por item`}),`\n`,_jsxs(_components.p,{children:[`Possíveis valores em `,_jsx(_components.code,{children:`not_created_items[].errors`}),`:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Mensagem`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Causa`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`plan_id is empty`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.code,{children:`plan_id`}),` ausente (ou enviado em camelCase, `,_jsx(_components.code,{children:`planId`}),`).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`plan_id format is invalid`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Formato diferente de `,_jsx(_components.code,{children:`plan_`}),` + 6 dígitos (ou do legado de 5 dígitos).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`plan_id not found or not available for this partner`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Plano inexistente, inativo ou de outro parceiro.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`value for beneficiary.cpf is required`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`CPF ausente.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`value for beneficiary.cpf is not valid`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`CPF com pontuação, tamanho errado ou dígito verificador inválido.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`Invalid date format in the field subscription.start_date`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.code,{children:`start_date`}),` fora do ISO 8601.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`subscription.start_date must be equal to or higher than today's date`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.code,{children:`start_date`}),` no passado.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`Invalid date format in the field subscription.expiry_date`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.code,{children:`expiry_date`}),` fora do ISO 8601.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`subscription.expiry_date must be equal to or higher than today's date`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.code,{children:`expiry_date`}),` no passado.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`subscription.expiry_date must be equal to or higher than subscription.start_date`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.code,{children:`expiry_date`}),` anterior a `,_jsx(_components.code,{children:`start_date`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`beneficiary.name first name must have at least 2 characters`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Primeiro nome com menos de 2 caracteres.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`beneficiary.name must have at least 2 parts`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Nome sem sobrenome.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`beneficiary.name must have a maximum of 100 characters`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Nome longo demais.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`value for beneficiary.gender is not valid`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Gênero diferente de `,_jsx(_components.code,{children:`M`}),`, `,_jsx(_components.code,{children:`F`}),` ou `,_jsx(_components.code,{children:`X`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`Invalid date format in the field beneficiary.birth_date`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.code,{children:`birth_date`}),` fora do ISO 8601.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`value for beneficiary.email is invalid`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`E-mail inválido.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`value for beneficiary.phone_number must be an array of strings`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.code,{children:`phone_number`}),` não é um array de strings.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`beneficiary.phone_number must include DDI and start with a +`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Telefone sem `,_jsx(_components.code,{children:`+`}),` e DDI.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`CNPJ is required for group plans`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.code,{children:`is_group_plan: true`}),` sem `,_jsx(_components.code,{children:`benefit_holder`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`CNPJ format is invalid`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.code,{children:`benefit_holder`}),` não é um CNPJ válido.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`Group size must be greater than 1 for group plans`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.code,{children:`group_size`}),` ausente ou ≤ 1 em plano coletivo.`]})]})]})]})]})}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":"Criar assinaturas em lote","openapi":"api-reference/openapi.json POST /subscriptions","description":"Recebe um **array** de 1 a 100 itens. Cada item é validado e processado de forma independente: os que falham aparecem em `not_created_items` e não interrompem o lote. Reenviar um par (`plan_id`, `beneficiary.cpf`) que já tem assinatura **ativa** é um *reenvio*: conta em `total_updated_items` e altera **somente** `expiry_date`.","href":"/api-reference/subscriptions/create-bulk"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Regras","slug":"regras","depth":2,"children":[]},{"title":"Reenvio de uma assinatura ativa","slug":"reenvio-de-uma-assinatura-ativa","depth":2,"children":[]},{"title":"Campos do beneficiário","slug":"campos-do-beneficiário","depth":2,"children":[]},{"title":"Planos coletivos","slug":"planos-coletivos","depth":2,"children":[]},{"title":"Exemplo","slug":"exemplo","depth":2,"children":[]},{"title":"Erros do lote","slug":"erros-do-lote","depth":2,"children":[]},{"title":"Mensagens de erro por item","slug":"mensagens-de-erro-por-item","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Criar assinaturas em lote","description":"Recebe um **array** de 1 a 100 itens. Cada item é validado e processado de forma independente: os que falham aparecem em `not_created_items` e não interrompem o lote. Reenviar um par (`plan_id`, `beneficiary.cpf`) que já tem assinatura **ativa** é um *reenvio*: conta em `total_updated_items` e altera **somente** `expiry_date`.","tags":["Assinaturas"],"operationId":"createSubscriptions","parameters":["3592b8b9-eb8b-492f-bf8c-97ea9f3fcab4"],"requestBody":"2ed02b1a-56fd-41f3-aac5-b4dd62553930","responses":{"201":"92633d5e-0165-474e-90ac-ff9c25f542af","400":"a00be15e-a93e-47fe-b04e-8b76839fe37c","401":"0d4834d1-1ef1-403f-86ae-2a007438b907","429":"155ebe76-60b7-4c34-8143-7d18956460a4","500":"5d4e39e1-30d2-4018-b8c3-fa8bdb9e17be","503":"6c488901-484b-4b59-8b7c-0b3bfabd3435"},"method":"post","type":"path","servers":["96f45973-6bac-4de4-a88d-c487a3b9a741"],"security":["0575ad66-005a-48ec-a9e3-5a10ee28acaf"],"path":"/subscriptions","baseUrlOptions":["https://api.partner.zentek.com.br/v1"],"title":"Criar assinaturas em lote","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"3592b8b9-eb8b-492f-bf8c-97ea9f3fcab4":{"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"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["plan_id","beneficiary"],"properties":{"plan_id":{"type":"string","description":"**Obrigatório.** Um plano ativo do seu parceiro (veja `GET /plans`). Formato `plan_` + 6 dígitos; o formato legado de 5 dígitos é aceito.","example":"plan_010051","isRequired":true,"uniqueKey":"items.[INDEX].plan_id","typeLabel":"string"},"beneficiary":{"type":"object","required":["cpf"],"properties":{"cpf":{"type":"string","pattern":"^[0-9]{11}$","description":"**Obrigatório.** 11 dígitos, sem pontuação, com dígitos verificadores válidos.","example":"52998224725","isRequired":true,"uniqueKey":"items.[INDEX].beneficiary.cpf","typeLabel":"string"},"name":{"type":"string","maxLength":100,"description":"Nome completo: ao menos 2 partes, primeiro nome com 2+ caracteres, até 100 caracteres.","uniqueKey":"items.[INDEX].beneficiary.name","typeLabel":"string"},"email":{"type":"string","format":"email","uniqueKey":"items.[INDEX].beneficiary.email","typeLabel":"string\u003cemail>"},"birth_date":{"type":"string","description":"ISO 8601 (ex.: `1990-02-22`).","uniqueKey":"items.[INDEX].beneficiary.birth_date","typeLabel":"string"},"gender":{"type":"string","enum":["M","F","X"],"uniqueKey":"items.[INDEX].beneficiary.gender","typeLabel":"enum\u003cstring>"},"phone_number":{"type":"array","items":{"type":"string","uniqueKey":"items.[INDEX].beneficiary.phone_number.items.[INDEX]","typeLabel":"string"},"description":"Lista de telefones com DDI, cada um iniciando com `+` (ex.: `+5511999998888`).","uniqueKey":"items.[INDEX].beneficiary.phone_number","typeLabel":"string[]"},"address":{"type":"object","description":"Endereço (opcional; armazenado como enviado).","properties":{"zipcode":{"type":"string","description":"CEP, somente números.","uniqueKey":"items.[INDEX].beneficiary.address.zipcode","typeLabel":"string"},"street":{"type":"string","uniqueKey":"items.[INDEX].beneficiary.address.street","typeLabel":"string"},"number":{"type":"string","uniqueKey":"items.[INDEX].beneficiary.address.number","typeLabel":"string"},"complement":{"type":"string","uniqueKey":"items.[INDEX].beneficiary.address.complement","typeLabel":"string"},"neighborhood":{"type":"string","uniqueKey":"items.[INDEX].beneficiary.address.neighborhood","typeLabel":"string"},"city":{"type":"string","uniqueKey":"items.[INDEX].beneficiary.address.city","typeLabel":"string"},"state":{"type":"string","description":"UF com 2 letras.","uniqueKey":"items.[INDEX].beneficiary.address.state","typeLabel":"string"}},"uniqueKey":"items.[INDEX].beneficiary.address","typeLabel":"object"},"foreign_id":{"type":"string","description":"Seu identificador interno do beneficiário.","uniqueKey":"items.[INDEX].beneficiary.foreign_id","typeLabel":"string"},"partner_internal_id":{"type":"string","description":"Alias de `foreign_id` (usado quando `foreign_id` não é enviado).","uniqueKey":"items.[INDEX].beneficiary.partner_internal_id","typeLabel":"string"},"primary_card":{"type":"string","description":"Número do cartão principal (opcional).","uniqueKey":"items.[INDEX].beneficiary.primary_card","typeLabel":"string"},"user_card":{"type":"string","description":"Número do cartão do usuário (opcional).","uniqueKey":"items.[INDEX].beneficiary.user_card","typeLabel":"string"}},"isRequired":true,"uniqueKey":"items.[INDEX].beneficiary","typeLabel":"object"},"start_date":{"oneOf":[{"type":"string","description":"ISO 8601. Padrão: hoje (UTC). Não pode ser anterior a hoje.","uniqueKey":"items.[INDEX].start_date.oneOf.0","typeLabel":"string"},{"type":"null","description":"ISO 8601. Padrão: hoje (UTC). Não pode ser anterior a hoje.","uniqueKey":"items.[INDEX].start_date.oneOf.1","typeLabel":"null"}],"uniqueKey":"items.[INDEX].start_date","typeLabel":"string | null"},"expiry_date":{"oneOf":[{"type":"string","description":"ISO 8601. Ausente ou `null` = sem data de término. Deve ser ≥ hoje e ≥ `start_date`.","uniqueKey":"items.[INDEX].expiry_date.oneOf.0","typeLabel":"string"},{"type":"null","description":"ISO 8601. Ausente ou `null` = sem data de término. Deve ser ≥ hoje e ≥ `start_date`.","uniqueKey":"items.[INDEX].expiry_date.oneOf.1","typeLabel":"null"}],"uniqueKey":"items.[INDEX].expiry_date","typeLabel":"string | null"},"partner_metadata":{"oneOf":[{"type":"object","additionalProperties":true,"description":"Objeto JSON livre para seus metadados (use chaves snake_case). É armazenado, mas não é devolvido nas consultas.","uniqueKey":"items.[INDEX].partner_metadata.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":true,"description":"Objeto JSON livre para seus metadados (use chaves snake_case). É armazenado, mas não é devolvido nas consultas.","uniqueKey":"items.[INDEX].partner_metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"items.[INDEX].partner_metadata","typeLabel":"object | null"},"is_group_plan":{"type":"boolean","description":"Plano coletivo. Quando `true`, exige `benefit_holder` e `group_size`.","uniqueKey":"items.[INDEX].is_group_plan","typeLabel":"boolean"},"benefit_holder":{"type":"string","description":"CNPJ válido do titular (empresa). Obrigatório se `is_group_plan` = `true`; validado se enviado.","uniqueKey":"items.[INDEX].benefit_holder","typeLabel":"string"},"group_size":{"oneOf":[{"type":"integer","description":"Tamanho do grupo; deve ser maior que 1 quando `is_group_plan` = `true`.","uniqueKey":"items.[INDEX].group_size.oneOf.0","typeLabel":"integer"},{"type":"string","description":"Tamanho do grupo; deve ser maior que 1 quando `is_group_plan` = `true`.","uniqueKey":"items.[INDEX].group_size.oneOf.1","typeLabel":"string"}],"uniqueKey":"items.[INDEX].group_size","typeLabel":"integer | string"}},"uniqueKey":"items.[INDEX]","typeLabel":"object"},"uniqueKey":"","typeLabel":"object[]"},"example":[{"plan_id":"plan_010051","expiry_date":null,"beneficiary":{"cpf":"52998224725","name":"Maria Silva","email":"maria@exemplo.com","birth_date":"1990-02-22","gender":"F","phone_number":["+5511999998888"],"partner_internal_id":"cliente-123"},"partner_metadata":{"order_id":"pedido-98765"}}],"examples":{"Example":{"title":"Example","value":[{"plan_id":"plan_010051","expiry_date":null,"beneficiary":{"cpf":"52998224725","name":"Maria Silva","email":"maria@exemplo.com","birth_date":"1990-02-22","gender":"F","phone_number":["+5511999998888"],"partner_internal_id":"cliente-123"},"partner_metadata":{"order_id":"pedido-98765"}}]}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"92633d5e-0165-474e-90ac-ff9c25f542af":{"description":"Lote processado (inclusive quando há itens recusados).","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"string","description":"Resumo textual do processamento.","uniqueKey":"result","typeLabel":"string"},"total_created_items":{"type":"integer","uniqueKey":"total_created_items","typeLabel":"integer"},"total_updated_items":{"type":"integer","description":"Reenvios de assinaturas já ativas.","uniqueKey":"total_updated_items","typeLabel":"integer"},"total_not_created_items":{"type":"integer","uniqueKey":"total_not_created_items","typeLabel":"integer"},"not_created_items":{"type":"array","items":{"type":"object","properties":{"cpf":{"type":"string","description":"CPF como enviado.","uniqueKey":"not_created_items.items.[INDEX].cpf","typeLabel":"string"},"plan_id":{"type":"string","description":"`plan_id` exatamente como enviado.","uniqueKey":"not_created_items.items.[INDEX].plan_id","typeLabel":"string"},"benefit_holder":{"type":"string","description":"Presente apenas em itens de plano coletivo.","uniqueKey":"not_created_items.items.[INDEX].benefit_holder","typeLabel":"string"},"errors":{"type":"array","items":{"type":"string","uniqueKey":"not_created_items.items.[INDEX].errors.items.[INDEX]","typeLabel":"string"},"uniqueKey":"not_created_items.items.[INDEX].errors","typeLabel":"string[]"}},"uniqueKey":"not_created_items.items.[INDEX]","typeLabel":"object"},"uniqueKey":"not_created_items","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"example":{"result":"There were problems creating 1 item(s) due to validation errors","total_created_items":1,"total_updated_items":0,"total_not_created_items":1,"not_created_items":[{"cpf":"12345678900","plan_id":"plan_010051","errors":["value for beneficiary.cpf is not valid"]}]},"examples":{"Example":{"title":"Example","value":{"result":"There were problems creating 1 item(s) due to validation errors","total_created_items":1,"total_updated_items":0,"total_not_created_items":1,"not_created_items":[{"cpf":"12345678900","plan_id":"plan_010051","errors":["value for beneficiary.cpf is not valid"]}]}}},"exampleType":"examples"}},"exampleType":"examples"},"a00be15e-a93e-47fe-b04e-8b76839fe37c":{"description":"Corpo inválido no nível do lote.","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":{"SUBSCRIPTIONS_MUST_BE_ARRAY":{"title":"SUBSCRIPTIONS_MUST_BE_ARRAY","summary":"SUBSCRIPTIONS_MUST_BE_ARRAY","value":{"code":"SUBSCRIPTIONS_MUST_BE_ARRAY","message":"SUBSCRIPTIONS_MUST_BE_ARRAY","details":{"received":"object"}}},"SUBSCRIPTIONS_EMPTY":{"title":"SUBSCRIPTIONS_EMPTY","summary":"SUBSCRIPTIONS_EMPTY","value":{"code":"SUBSCRIPTIONS_EMPTY","message":"SUBSCRIPTIONS_EMPTY"}},"SUBSCRIPTIONS_LIMIT_EXCEEDED":{"title":"SUBSCRIPTIONS_LIMIT_EXCEEDED","summary":"SUBSCRIPTIONS_LIMIT_EXCEEDED","value":{"code":"SUBSCRIPTIONS_LIMIT_EXCEEDED","message":"SUBSCRIPTIONS_LIMIT_EXCEEDED","details":{"max":100,"received":101}}}},"exampleType":"examples"}},"exampleType":"examples"},"0d4834d1-1ef1-403f-86ae-2a007438b907":{"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"},"155ebe76-60b7-4c34-8143-7d18956460a4":{"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"},"5d4e39e1-30d2-4018-b8c3-fa8bdb9e17be":{"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"},"6c488901-484b-4b59-8b7c-0b3bfabd3435":{"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":"Criar assinaturas em lote - Zentek Developer Hub","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-05T17:25:58.155Z","originalFileLocation":"api-reference/subscriptions/create-bulk.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=\"Recebe um array de 1 a 100 itens. Cada item é validado e processado de forma independente: os que falham aparecem em not_created_items e não interrompem o lote. Reenviar um par (plan_id, beneficiary.cpf) que já tem assinatura ativa é um reenvio: conta em total_updated_items e altera somente expiry_date.\">\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=\"Criar assinaturas em lote - Zentek Developer Hub\">\u003cmeta data-mint-head property=\"og:description\" content=\"Recebe um array de 1 a 100 itens. Cada item é validado e processado de forma independente: os que falham aparecem em not_created_items e não interrompem o lote. Reenviar um par (plan_id, beneficiary.cpf) que já tem assinatura ativa é um reenvio: conta em total_updated_items e altera somente expiry_date.\">\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/create-bulk\">\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=Criar+assinaturas+em+lote\u0026amp;description=Recebe+um+**array**+de+1+a+100+itens.+Cada+item+%C3%A9+validado+e+processado+de+forma+independente%3A+os+que+falham+aparecem+em+%60not_created_items%60+e+n%C3%A3o+interrompem+o\u0026amp;theme=7767881eb2ea5b1b80bca79c\u0026amp;signature=4be10f34b64f0cb81c710e857035544138be9a1aca673f31d71c8ce7763b3b04\">\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=\"Criar assinaturas em lote - Zentek Developer Hub\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Recebe um array de 1 a 100 itens. Cada item é validado e processado de forma independente: os que falham aparecem em not_created_items e não interrompem o lote. Reenviar um par (plan_id, beneficiary.cpf) que já tem assinatura ativa é um reenvio: conta em total_updated_items e altera somente expiry_date.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://zentek.mintlify.site/_mintlify/api/og/v2?division=Assinaturas\u0026amp;title=Criar+assinaturas+em+lote\u0026amp;description=Recebe+um+**array**+de+1+a+100+itens.+Cada+item+%C3%A9+validado+e+processado+de+forma+independente%3A+os+que+falham+aparecem+em+%60not_created_items%60+e+n%C3%A3o+interrompem+o\u0026amp;theme=7767881eb2ea5b1b80bca79c\u0026amp;signature=4be10f34b64f0cb81c710e857035544138be9a1aca673f31d71c8ce7763b3b04\">\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/create-bulk\">\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/create-bulk.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/create-bulk#webpage\",\"url\":\"https://docs.zentek.com.br/api-reference/subscriptions/create-bulk\",\"name\":\"Criar assinaturas em lote\",\"description\":\"Recebe um array de 1 a 100 itens. Cada item é validado e processado de forma independente: os que falham aparecem em not_created_items e não interrompem o lote. Reenviar um par (plan_id, beneficiary.cpf) que já tem assinatura ativa é um reenvio: conta em total_updated_items e altera somente expiry_date.\",\"dateModified\":\"2026-11-05T17:25:58.155Z\",\"isPartOf\":{\"@id\":\"https://docs.zentek.com.br#website\"},\"breadcrumb\":{\"@id\":\"https://docs.zentek.com.br/api-reference/subscriptions/create-bulk#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.zentek.com.br/api-reference/subscriptions/create-bulk#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API Reference\",\"item\":\"https://docs.zentek.com.br/api-reference/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Criar assinaturas em lote\",\"item\":\"https://docs.zentek.com.br/api-reference/subscriptions/create-bulk\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.zentek.com.br/api-reference/subscriptions/create-bulk#apireference\",\"headline\":\"Criar assinaturas em lote\",\"name\":\"Criar assinaturas em lote\",\"description\":\"Recebe um array de 1 a 100 itens. Cada item é validado e processado de forma independente: os que falham aparecem em not_created_items e não interrompem o lote. Reenviar um par (plan_id, beneficiary.cpf) que já tem assinatura ativa é um reenvio: conta em total_updated_items e altera somente expiry_date.\",\"url\":\"https://docs.zentek.com.br/api-reference/subscriptions/create-bulk\",\"mainEntityOfPage\":{\"@id\":\"https://docs.zentek.com.br/api-reference/subscriptions/create-bulk#webpage\"},\"dateModified\":\"2026-11-05T17:25:58.155Z\",\"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/create-bulk.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}","description":"Retorna os dados cadastrais do **próprio** parceiro autenticado. Qualquer outro ID (existente ou não) responde `404 PARTNER_NOT_FOUND`.","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","description":"Lista as assinaturas do parceiro no ambiente da chave (produção ou sandbox), em **todos os status**, da mais recente para a mais antiga. Dados pessoais são mascarados.","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}","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}","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":"Criar assinaturas em lote - 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"]}