Retrieve invoice
curl --request GET \
--url https://virtserver.swaggerhub.com/SUBIN23K/Subin_Health/1.0.0/invoice/{invoiceId} \
--header 'api_key: <api-key>'import requests
url = "https://virtserver.swaggerhub.com/SUBIN23K/Subin_Health/1.0.0/invoice/{invoiceId}"
headers = {"api_key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {api_key: '<api-key>'}};
fetch('https://virtserver.swaggerhub.com/SUBIN23K/Subin_Health/1.0.0/invoice/{invoiceId}', 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://virtserver.swaggerhub.com/SUBIN23K/Subin_Health/1.0.0/invoice/{invoiceId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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://virtserver.swaggerhub.com/SUBIN23K/Subin_Health/1.0.0/invoice/{invoiceId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("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://virtserver.swaggerhub.com/SUBIN23K/Subin_Health/1.0.0/invoice/{invoiceId}")
.header("api_key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://virtserver.swaggerhub.com/SUBIN23K/Subin_Health/1.0.0/invoice/{invoiceId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["api_key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"patientId": 234796,
"medicine": "Dolo 650",
"name": "Subin",
"age": 100,
"invoiceDate": "01/03/2024",
"gender": "Male",
"phone": 9876543210,
"email": "abc@example.com",
"companyaddress": "Bangalore, India",
"dosage": "650 mg",
"price": 1000,
"currency": "INR"
}Invoice
Retrieve invoice
Retrieve invoice by ID.
GET
/
invoice
/
{invoiceId}
Retrieve invoice
curl --request GET \
--url https://virtserver.swaggerhub.com/SUBIN23K/Subin_Health/1.0.0/invoice/{invoiceId} \
--header 'api_key: <api-key>'import requests
url = "https://virtserver.swaggerhub.com/SUBIN23K/Subin_Health/1.0.0/invoice/{invoiceId}"
headers = {"api_key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {api_key: '<api-key>'}};
fetch('https://virtserver.swaggerhub.com/SUBIN23K/Subin_Health/1.0.0/invoice/{invoiceId}', 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://virtserver.swaggerhub.com/SUBIN23K/Subin_Health/1.0.0/invoice/{invoiceId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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://virtserver.swaggerhub.com/SUBIN23K/Subin_Health/1.0.0/invoice/{invoiceId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("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://virtserver.swaggerhub.com/SUBIN23K/Subin_Health/1.0.0/invoice/{invoiceId}")
.header("api_key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://virtserver.swaggerhub.com/SUBIN23K/Subin_Health/1.0.0/invoice/{invoiceId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["api_key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"patientId": 234796,
"medicine": "Dolo 650",
"name": "Subin",
"age": 100,
"invoiceDate": "01/03/2024",
"gender": "Male",
"phone": 9876543210,
"email": "abc@example.com",
"companyaddress": "Bangalore, India",
"dosage": "650 mg",
"price": 1000,
"currency": "INR"
}Authorizations
Path Parameters
Invoice ID
Example:
68528723792
Response
Successful operation
Billing statement for a patient's prescription or hospital services.
Unique identifier for the patient being invoiced.
Example:
234796
Name of the billed medicine.
Example:
"Dolo 650"
Full or registered name of the patient.
Example:
"Subin"
Current age of the patient in years.
Example:
100
Date when the invoice was generated (DD/MM/YYYY).
Example:
"01/03/2024"
Gender of the patient.
Example:
"Male"
Primary contact phone number for the patient.
Example:
9876543210
Primary email address for the patient.
Example:
"abc@example.com"
Registered address of the issuing healthcare facility.
Example:
"Bangalore, India"
Billed dosage of the medicine.
Example:
"650 mg"
Total billed amount for the medicine.
Example:
1000
Currency code for the billed amount.
Example:
"INR"
Last modified on May 2, 2024
Was this page helpful?