Listar assinaturas
curl --request GET \
--url https://api.partner.zentek.com.br/v1/subscriptions \
--header 'x-api-key: <api-key>'import requests
url = "https://api.partner.zentek.com.br/v1/subscriptions"
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', 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",
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"
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")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.partner.zentek.com.br/v1/subscriptions")
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{
"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
Listar assinaturas
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.
GET
/
subscriptions
Listar assinaturas
curl --request GET \
--url https://api.partner.zentek.com.br/v1/subscriptions \
--header 'x-api-key: <api-key>'import requests
url = "https://api.partner.zentek.com.br/v1/subscriptions"
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', 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",
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"
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")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.partner.zentek.com.br/v1/subscriptions")
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{
"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
}
}Lista as assinaturas do seu parceiro no ambiente da chave (produção ou sandbox — nunca os dois), em todos os status (
active, cancelled, expired), da mais recente para a mais antiga.
- Paginação por
page(padrão1) epage_size(padrão10, máximo100). - Dados pessoais vêm mascarados: apenas o primeiro nome (
Maria ***), CPF (52*******25, também embeneficiary_cpf), e-mail, data de nascimento (1990-**-**), CEP e rua. partner_metadatanão é devolvido.- Para buscar as assinaturas de um CPF específico, use
POST /subscriptions/beneficiary.
curl "https://api.partner.zentek.com.br/v1/subscriptions?page=1&page_size=50" \
-H "x-api-key: SUA_CHAVE_AQUI"
Authorizations
Headers
Query Parameters
Was this page helpful?
