Consultar assinatura
curl --request GET \
--url https://api.partner.zentek.com.br/v1/subscriptions/{plan_id}/{cpf} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.partner.zentek.com.br/v1/subscriptions/{plan_id}/{cpf}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.partner.zentek.com.br/v1/subscriptions/{plan_id}/{cpf}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.partner.zentek.com.br/v1/subscriptions/{plan_id}/{cpf}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.partner.zentek.com.br/v1/subscriptions/{plan_id}/{cpf}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.partner.zentek.com.br/v1/subscriptions/{plan_id}/{cpf}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.partner.zentek.com.br/v1/subscriptions/{plan_id}/{cpf}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "7f1c2a9e-3b4d-4e5f-8a6b-1c2d3e4f5a6b",
"partner_id": "pa_10001",
"plan_id": "plan_010051",
"status": "active",
"start_date": "2026-11-05T00:00:00+00:00",
"expiry_date": null,
"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"
}Assinaturas
Consultar assinatura
Retorna a assinatura mais recente do par (plano, CPF) no seu parceiro e ambiente, com dados pessoais mascarados.
GET
/
subscriptions
/
{plan_id}
/
{cpf}
Consultar assinatura
curl --request GET \
--url https://api.partner.zentek.com.br/v1/subscriptions/{plan_id}/{cpf} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.partner.zentek.com.br/v1/subscriptions/{plan_id}/{cpf}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.partner.zentek.com.br/v1/subscriptions/{plan_id}/{cpf}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.partner.zentek.com.br/v1/subscriptions/{plan_id}/{cpf}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.partner.zentek.com.br/v1/subscriptions/{plan_id}/{cpf}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.partner.zentek.com.br/v1/subscriptions/{plan_id}/{cpf}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.partner.zentek.com.br/v1/subscriptions/{plan_id}/{cpf}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "7f1c2a9e-3b4d-4e5f-8a6b-1c2d3e4f5a6b",
"partner_id": "pa_10001",
"plan_id": "plan_010051",
"status": "active",
"start_date": "2026-11-05T00:00:00+00:00",
"expiry_date": null,
"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"
}Retorna a assinatura de um beneficiário em um plano, identificada pelo par plano + CPF. Se houver histórico (por exemplo, uma assinatura cancelada e outra criada depois), é retornada a mais recente.
plan_idaceita o formato canônico (plan_010051) e o legado de 5 dígitos (plan_10051); formato inválido responde400 FIELD_INVALID.cpfcom 11 dígitos, sem pontuação.- Não encontrada (ou de outro ambiente) responde
404 SUBSCRIPTION_NOT_FOUND. - Dados pessoais vêm mascarados.
curl "https://api.partner.zentek.com.br/v1/subscriptions/plan_010051/52998224725" \
-H "x-api-key: SUA_CHAVE_AQUI"
Authorizations
Headers
Path Parameters
Response
Assinatura encontrada.
Assinatura com dados pessoais mascarados.
Was this page helpful?
