Patient Create
curl --request POST \
--url https://api.holavivi.app/api/v1/patients \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"phone": "<string>",
"billing_agreement": {
"anchor_on": "2023-12-25",
"price_minor": 123,
"currency": "ARS",
"due_day": 1,
"expected_version": 0,
"local_time": "09:00",
"notice_days": 7,
"reminder_after_days": 3,
"reminder_before_days": 1
},
"email": "<string>",
"notes": "<string>",
"session_currency": "<string>"
}
'import requests
url = "https://api.holavivi.app/api/v1/patients"
payload = {
"name": "<string>",
"phone": "<string>",
"billing_agreement": {
"anchor_on": "2023-12-25",
"price_minor": 123,
"currency": "ARS",
"due_day": 1,
"expected_version": 0,
"local_time": "09:00",
"notice_days": 7,
"reminder_after_days": 3,
"reminder_before_days": 1
},
"email": "<string>",
"notes": "<string>",
"session_currency": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
phone: '<string>',
billing_agreement: {
anchor_on: '2023-12-25',
price_minor: 123,
currency: 'ARS',
due_day: 1,
expected_version: 0,
local_time: '09:00',
notice_days: 7,
reminder_after_days: 3,
reminder_before_days: 1
},
email: '<string>',
notes: '<string>',
session_currency: '<string>'
})
};
fetch('https://api.holavivi.app/api/v1/patients', 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.holavivi.app/api/v1/patients",
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([
'name' => '<string>',
'phone' => '<string>',
'billing_agreement' => [
'anchor_on' => '2023-12-25',
'price_minor' => 123,
'currency' => 'ARS',
'due_day' => 1,
'expected_version' => 0,
'local_time' => '09:00',
'notice_days' => 7,
'reminder_after_days' => 3,
'reminder_before_days' => 1
],
'email' => '<string>',
'notes' => '<string>',
'session_currency' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.holavivi.app/api/v1/patients"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"phone\": \"<string>\",\n \"billing_agreement\": {\n \"anchor_on\": \"2023-12-25\",\n \"price_minor\": 123,\n \"currency\": \"ARS\",\n \"due_day\": 1,\n \"expected_version\": 0,\n \"local_time\": \"09:00\",\n \"notice_days\": 7,\n \"reminder_after_days\": 3,\n \"reminder_before_days\": 1\n },\n \"email\": \"<string>\",\n \"notes\": \"<string>\",\n \"session_currency\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.holavivi.app/api/v1/patients")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"phone\": \"<string>\",\n \"billing_agreement\": {\n \"anchor_on\": \"2023-12-25\",\n \"price_minor\": 123,\n \"currency\": \"ARS\",\n \"due_day\": 1,\n \"expected_version\": 0,\n \"local_time\": \"09:00\",\n \"notice_days\": 7,\n \"reminder_after_days\": 3,\n \"reminder_before_days\": 1\n },\n \"email\": \"<string>\",\n \"notes\": \"<string>\",\n \"session_currency\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.holavivi.app/api/v1/patients")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"phone\": \"<string>\",\n \"billing_agreement\": {\n \"anchor_on\": \"2023-12-25\",\n \"price_minor\": 123,\n \"currency\": \"ARS\",\n \"due_day\": 1,\n \"expected_version\": 0,\n \"local_time\": \"09:00\",\n \"notice_days\": 7,\n \"reminder_after_days\": 3,\n \"reminder_before_days\": 1\n },\n \"email\": \"<string>\",\n \"notes\": \"<string>\",\n \"session_currency\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}Pacientes
Patient Create
Manually add a patient (the “invite” action).
The patient identity is global (looked up by phone, then email); the professional gets a vinculo in estado activo with origin “manual”. The new vinculo’s ficha starts empty.
POST
/
api
/
v1
/
patients
Patient Create
curl --request POST \
--url https://api.holavivi.app/api/v1/patients \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"phone": "<string>",
"billing_agreement": {
"anchor_on": "2023-12-25",
"price_minor": 123,
"currency": "ARS",
"due_day": 1,
"expected_version": 0,
"local_time": "09:00",
"notice_days": 7,
"reminder_after_days": 3,
"reminder_before_days": 1
},
"email": "<string>",
"notes": "<string>",
"session_currency": "<string>"
}
'import requests
url = "https://api.holavivi.app/api/v1/patients"
payload = {
"name": "<string>",
"phone": "<string>",
"billing_agreement": {
"anchor_on": "2023-12-25",
"price_minor": 123,
"currency": "ARS",
"due_day": 1,
"expected_version": 0,
"local_time": "09:00",
"notice_days": 7,
"reminder_after_days": 3,
"reminder_before_days": 1
},
"email": "<string>",
"notes": "<string>",
"session_currency": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
phone: '<string>',
billing_agreement: {
anchor_on: '2023-12-25',
price_minor: 123,
currency: 'ARS',
due_day: 1,
expected_version: 0,
local_time: '09:00',
notice_days: 7,
reminder_after_days: 3,
reminder_before_days: 1
},
email: '<string>',
notes: '<string>',
session_currency: '<string>'
})
};
fetch('https://api.holavivi.app/api/v1/patients', 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.holavivi.app/api/v1/patients",
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([
'name' => '<string>',
'phone' => '<string>',
'billing_agreement' => [
'anchor_on' => '2023-12-25',
'price_minor' => 123,
'currency' => 'ARS',
'due_day' => 1,
'expected_version' => 0,
'local_time' => '09:00',
'notice_days' => 7,
'reminder_after_days' => 3,
'reminder_before_days' => 1
],
'email' => '<string>',
'notes' => '<string>',
'session_currency' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.holavivi.app/api/v1/patients"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"phone\": \"<string>\",\n \"billing_agreement\": {\n \"anchor_on\": \"2023-12-25\",\n \"price_minor\": 123,\n \"currency\": \"ARS\",\n \"due_day\": 1,\n \"expected_version\": 0,\n \"local_time\": \"09:00\",\n \"notice_days\": 7,\n \"reminder_after_days\": 3,\n \"reminder_before_days\": 1\n },\n \"email\": \"<string>\",\n \"notes\": \"<string>\",\n \"session_currency\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.holavivi.app/api/v1/patients")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"phone\": \"<string>\",\n \"billing_agreement\": {\n \"anchor_on\": \"2023-12-25\",\n \"price_minor\": 123,\n \"currency\": \"ARS\",\n \"due_day\": 1,\n \"expected_version\": 0,\n \"local_time\": \"09:00\",\n \"notice_days\": 7,\n \"reminder_after_days\": 3,\n \"reminder_before_days\": 1\n },\n \"email\": \"<string>\",\n \"notes\": \"<string>\",\n \"session_currency\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.holavivi.app/api/v1/patients")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"phone\": \"<string>\",\n \"billing_agreement\": {\n \"anchor_on\": \"2023-12-25\",\n \"price_minor\": 123,\n \"currency\": \"ARS\",\n \"due_day\": 1,\n \"expected_version\": 0,\n \"local_time\": \"09:00\",\n \"notice_days\": 7,\n \"reminder_after_days\": 3,\n \"reminder_before_days\": 1\n },\n \"email\": \"<string>\",\n \"notes\": \"<string>\",\n \"session_currency\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}Authorizations
Body
application/json
Response
Successful Response