Obter membro
curl --request GET \
--url https://api.pipo.health/v1/member/{member-id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.pipo.health/v1/member/{member-id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.pipo.health/v1/member/{member-id}', 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.pipo.health/v1/member/{member-id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.pipo.health/v1/member/{member-id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.pipo.health/v1/member/{member-id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pipo.health/v1/member/{member-id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"result": {
"id": "111e2222-e89b-12d3-a456-426614174003",
"profile": {
"name": "João Silva",
"preferred-name": "João",
"mothers-name": "Maria Silva",
"date-of-birth": "1985-05-15",
"gender": "male",
"marital-status": "married",
"tax-id": "12345678900",
"national-id-type": "RG",
"national-id-number": "12.345.678-9",
"national-id-issuer": "SSP"
},
"contact": {
"email": "joao.silva@email.com",
"phone": "11987654321",
"address": {
"postal-code": "01234-567",
"street": "Rua das Flores",
"number": "123",
"neighborhood": "Centro",
"city": "São Paulo",
"state": "SP"
}
},
"benefits": [
{
"benefit-id": "333e4444-e89b-12d3-a456-426614174004",
"status": "active",
"company-tax-id": "12345678000190",
"product-id": "456e7890-e89b-12d3-a456-426614174001",
"product-name": "Plano Saúde Premium",
"product-type": "health-insurance",
"carrier-name": "HealthCorp",
"type": "primary",
"id-card-number": "123456789",
"start-date": "2024-01-01",
"dependents": [
{
"member-id": "555e6666-e89b-12d3-a456-426614174011",
"status": "active",
"profile": {
"name": "Maria Silva",
"mothers-name": "Ana Silva",
"date-of-birth": "1990-03-20",
"gender": "female",
"marital-status": "married"
},
"relationship-type": "spouse",
"relationship-start-date": "2015-06-10"
}
]
}
],
"work-contracts": [
{
"company-tax-id": "12345678000190",
"admission-date": "2023-12-01",
"work-contract-type": "brazil-labor-law",
"job-title": "Desenvolvedor Senior",
"employee-id": "EMP001",
"cost-center": "TI-001",
"income-amount": 800000
}
]
}
}{
"error": "Not entitled to access this member"
}Obter membro
Retorna os detalhes de um membro específico.
GET
/
v1
/
member
/
{member-id}
Obter membro
curl --request GET \
--url https://api.pipo.health/v1/member/{member-id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.pipo.health/v1/member/{member-id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.pipo.health/v1/member/{member-id}', 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.pipo.health/v1/member/{member-id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.pipo.health/v1/member/{member-id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.pipo.health/v1/member/{member-id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pipo.health/v1/member/{member-id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"result": {
"id": "111e2222-e89b-12d3-a456-426614174003",
"profile": {
"name": "João Silva",
"preferred-name": "João",
"mothers-name": "Maria Silva",
"date-of-birth": "1985-05-15",
"gender": "male",
"marital-status": "married",
"tax-id": "12345678900",
"national-id-type": "RG",
"national-id-number": "12.345.678-9",
"national-id-issuer": "SSP"
},
"contact": {
"email": "joao.silva@email.com",
"phone": "11987654321",
"address": {
"postal-code": "01234-567",
"street": "Rua das Flores",
"number": "123",
"neighborhood": "Centro",
"city": "São Paulo",
"state": "SP"
}
},
"benefits": [
{
"benefit-id": "333e4444-e89b-12d3-a456-426614174004",
"status": "active",
"company-tax-id": "12345678000190",
"product-id": "456e7890-e89b-12d3-a456-426614174001",
"product-name": "Plano Saúde Premium",
"product-type": "health-insurance",
"carrier-name": "HealthCorp",
"type": "primary",
"id-card-number": "123456789",
"start-date": "2024-01-01",
"dependents": [
{
"member-id": "555e6666-e89b-12d3-a456-426614174011",
"status": "active",
"profile": {
"name": "Maria Silva",
"mothers-name": "Ana Silva",
"date-of-birth": "1990-03-20",
"gender": "female",
"marital-status": "married"
},
"relationship-type": "spouse",
"relationship-start-date": "2015-06-10"
}
]
}
],
"work-contracts": [
{
"company-tax-id": "12345678000190",
"admission-date": "2023-12-01",
"work-contract-type": "brazil-labor-law",
"job-title": "Desenvolvedor Senior",
"employee-id": "EMP001",
"cost-center": "TI-001",
"income-amount": 800000
}
]
}
}{
"error": "Not entitled to access this member"
}Authorizations
Token Bearer obtido em POST /v1/authenticate.
Path Parameters
ID do membro.
Query Parameters
Quando true, inclui membros/benefícios inativos.
Response
Detalhe do membro.
Show child attributes
Show child attributes