List your orders
curl --request GET \
--url https://api.hi-doctor.ai/v1/users/orders/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.hi-doctor.ai/v1/users/orders/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.hi-doctor.ai/v1/users/orders/', 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.hi-doctor.ai/v1/users/orders/",
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.hi-doctor.ai/v1/users/orders/"
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.hi-doctor.ai/v1/users/orders/")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hi-doctor.ai/v1/users/orders/")
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[
{
"id": "0a1b2c3d-4e5f-4a6b-8c9d-000000000002",
"user": {
"id": "0a1b2c3d-4e5f-4a6b-8c9d-000000000001",
"first_name": "Alex",
"last_name": "Moreno",
"email": "patient@example.com",
"locale": "en",
"date_of_birth": "1985-04-12",
"country_of_residence": "ESP",
"timezone": "Europe/Madrid",
"city": null,
"postal_code": null,
"issuing_state": "ESP",
"document_number": "X0000000X",
"document_type": "ID_CARD",
"consultation_count": 2,
"total_spent_cents": 5000,
"total_refunded_cents": 0,
"net_spent_cents": 5000,
"subscription_status": "active",
"last_prescription_at": "2026-07-27T09:12:01.004311Z",
"last_subscription_at": "2026-07-27T08:00:00Z"
},
"doctor": {
"id": "0a1b2c3d-4e5f-4a6b-8c9d-00000000000d",
"first_name": "Reviewing",
"last_name": "Doctor",
"email": "doctor@example.com",
"doctor_license_number": "000000000"
},
"shopify_order_id": null,
"status": "pending",
"origin": "checkout",
"plan": "one_off",
"supply_days": 30,
"decision_reason": null,
"treatment_id": "oral_finasteride",
"dosage": "1 mg",
"images": [],
"form_snapshot": [],
"questionnaire_submission": null,
"prescriptions": [],
"payments": [],
"created_at": "2026-08-02T11:43:49.813651Z",
"updated_at": "2026-08-02T11:43:49.813653Z",
"decided_at": null
}
]{
"detail": "Given token not valid for any token type",
"code": "token_not_valid",
"messages": [
{
"token_class": "AccessToken",
"token_type": "access",
"message": "Token is invalid"
}
]
}Records
List your orders
Self-scoped.
GET
/
v1
/
users
/
orders
/
List your orders
curl --request GET \
--url https://api.hi-doctor.ai/v1/users/orders/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.hi-doctor.ai/v1/users/orders/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.hi-doctor.ai/v1/users/orders/', 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.hi-doctor.ai/v1/users/orders/",
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.hi-doctor.ai/v1/users/orders/"
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.hi-doctor.ai/v1/users/orders/")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hi-doctor.ai/v1/users/orders/")
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[
{
"id": "0a1b2c3d-4e5f-4a6b-8c9d-000000000002",
"user": {
"id": "0a1b2c3d-4e5f-4a6b-8c9d-000000000001",
"first_name": "Alex",
"last_name": "Moreno",
"email": "patient@example.com",
"locale": "en",
"date_of_birth": "1985-04-12",
"country_of_residence": "ESP",
"timezone": "Europe/Madrid",
"city": null,
"postal_code": null,
"issuing_state": "ESP",
"document_number": "X0000000X",
"document_type": "ID_CARD",
"consultation_count": 2,
"total_spent_cents": 5000,
"total_refunded_cents": 0,
"net_spent_cents": 5000,
"subscription_status": "active",
"last_prescription_at": "2026-07-27T09:12:01.004311Z",
"last_subscription_at": "2026-07-27T08:00:00Z"
},
"doctor": {
"id": "0a1b2c3d-4e5f-4a6b-8c9d-00000000000d",
"first_name": "Reviewing",
"last_name": "Doctor",
"email": "doctor@example.com",
"doctor_license_number": "000000000"
},
"shopify_order_id": null,
"status": "pending",
"origin": "checkout",
"plan": "one_off",
"supply_days": 30,
"decision_reason": null,
"treatment_id": "oral_finasteride",
"dosage": "1 mg",
"images": [],
"form_snapshot": [],
"questionnaire_submission": null,
"prescriptions": [],
"payments": [],
"created_at": "2026-08-02T11:43:49.813651Z",
"updated_at": "2026-08-02T11:43:49.813653Z",
"decided_at": null
}
]{
"detail": "Given token not valid for any token type",
"code": "token_not_valid",
"messages": [
{
"token_class": "AccessToken",
"token_type": "access",
"message": "Token is invalid"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Which field to use when ordering the results.
Number of results to return per page.
The initial index from which to return the results.
Response
Show child attributes
Show child attributes
Show child attributes
Show child attributes
one_off is a single paid consultation with no renewal; subscription is an ongoing plan billed every cycle. Weight loss and hair loss accept either at checkout; every other category is one_off only.
Available options:
one_off, subscription Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Available options:
pending, approved, rejected Available options:
checkout, subscription_initial, subscription_included, subscription_renewal Available options:
awaiting, confirmed, waived Maximum string length:
255Maximum string length:
255Show child attributes
Show child attributes