Buscar assinaturas por CPF
curl --request POST \
--url https://api.partner.zentek.com.br/v1/subscriptions/beneficiary \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"cpf": "52998224725",
"page": 1,
"page_size": 10
}
'import requests
url = "https://api.partner.zentek.com.br/v1/subscriptions/beneficiary"
payload = {
"cpf": "52998224725",
"page": 1,
"page_size": 10
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({cpf: '52998224725', page: 1, page_size: 10})
};
fetch('https://api.partner.zentek.com.br/v1/subscriptions/beneficiary', 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/beneficiary",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'cpf' => '52998224725',
'page' => 1,
'page_size' => 10
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.partner.zentek.com.br/v1/subscriptions/beneficiary"
payload := strings.NewReader("{\n \"cpf\": \"52998224725\",\n \"page\": 1,\n \"page_size\": 10\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.partner.zentek.com.br/v1/subscriptions/beneficiary")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"cpf\": \"52998224725\",\n \"page\": 1,\n \"page_size\": 10\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.partner.zentek.com.br/v1/subscriptions/beneficiary")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"cpf\": \"52998224725\",\n \"page\": 1,\n \"page_size\": 10\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"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"
}
],
"pagination": {
"page": 1,
"page_size": 10,
"total_items": 1,
"total_pages": 1,
"has_next": false,
"has_previous": false
}
}Assinaturas
Buscar assinaturas por CPF
Retorna, paginadas, todas as assinaturas (todos os planos e status) de um CPF no seu parceiro e ambiente. O CPF vai no corpo — e não na URL — para não aparecer em logs de proxies. CPF sem assinaturas retorna 200 com data vazio.
POST
/
subscriptions
/
beneficiary
Buscar assinaturas por CPF
curl --request POST \
--url https://api.partner.zentek.com.br/v1/subscriptions/beneficiary \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"cpf": "52998224725",
"page": 1,
"page_size": 10
}
'import requests
url = "https://api.partner.zentek.com.br/v1/subscriptions/beneficiary"
payload = {
"cpf": "52998224725",
"page": 1,
"page_size": 10
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({cpf: '52998224725', page: 1, page_size: 10})
};
fetch('https://api.partner.zentek.com.br/v1/subscriptions/beneficiary', 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/beneficiary",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'cpf' => '52998224725',
'page' => 1,
'page_size' => 10
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.partner.zentek.com.br/v1/subscriptions/beneficiary"
payload := strings.NewReader("{\n \"cpf\": \"52998224725\",\n \"page\": 1,\n \"page_size\": 10\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.partner.zentek.com.br/v1/subscriptions/beneficiary")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"cpf\": \"52998224725\",\n \"page\": 1,\n \"page_size\": 10\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.partner.zentek.com.br/v1/subscriptions/beneficiary")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"cpf\": \"52998224725\",\n \"page\": 1,\n \"page_size\": 10\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"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"
}
],
"pagination": {
"page": 1,
"page_size": 10,
"total_items": 1,
"total_pages": 1,
"has_next": false,
"has_previous": false
}
}Retorna todas as assinaturas de um CPF no seu parceiro e ambiente — em todos os planos e status —, da mais recente para a mais antiga, no mesmo envelope paginado de
GET /subscriptions.
- O CPF vai no corpo (e não na URL) para não ficar registrado em logs de proxies e CDNs.
pageepage_sizetambém vão no corpo (padrões1e10; máximo100).- Um CPF sem assinaturas retorna
200comdata: []etotal_items: 0. cpfausente responde400 FIELD_EMPTY.
curl -X POST "https://api.partner.zentek.com.br/v1/subscriptions/beneficiary" \
-H "Content-Type: application/json" \
-H "x-api-key: SUA_CHAVE_AQUI" \
-d '{ "cpf": "52998224725", "page": 1, "page_size": 10 }'
Authorizations
Headers
Body
application/json
Was this page helpful?
