View existing Service Package
1 min
GET
https://developer.digitail.io/api/v1/service-packages/{id}
Query Parameters
- includestringDescription
Responses
200
- object
- dataobjectDescription
- idintegerExample
- namestringExample
- client_namestringExample
- staff_descriptionstringExample
- descriptionstringExample
- pricestringExampleDescription
- price_includes_taxbooleanExampleDescription
- taxnumberExampleDescription
- tax_rates0[]Description
- unit_pricestringExampleDescription
- price_with_vatnumber<float>ExampleDescriptionFormatfloat
- price_without_vatnumber<float>ExampleDescriptionFormatfloat
- clinic_idintegerExample
- visit_type_idinteger
- categorystringExample
- aaha_codestringExample
- barcodestringExample
- task_templatesobject[]
- idintegerExample
- namestringExample
- is_plan_benefitboolean
- is_deletedboolean
curl
curl --request GET \
--url https://developer.digitail.io/api/v1/service-packages/{id} \
--header 'accept: application/json'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://developer.digitail.io/api/v1/service-packages/{id}", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "json"
require "net/http"
url = URI("https://developer.digitail.io/api/v1/service-packages/{id}")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
response = https.request(request)
puts response.read_body
python
import requests
import json
url = "https://developer.digitail.io/api/v1/service-packages/{id}"
payload = {}
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
200
// successful operation
{
"data": {
"id": 1,
"name": "lorem",
"client_name": "ipsum",
"staff_description": "dolor",
"description": "ipsum sin dolor",
"price": "20.00",
"price_includes_tax": true,
"tax": 10,
"tax_rates": [
""
],
"unit_price": "20.00",
"price_with_vat": 24.2,
"price_without_vat": 20,
"clinic_id": 1,
"visit_type_id": 0,
"category": "Ophthalmology",
"aaha_code": 5000,
"barcode": "123-sku",
"task_templates": [
{
"id": 1,
"name": "lorem"
}
],
"is_plan_benefit": false,
"is_deleted": false
}
}