Digitail API
Product
List all Products
1min
code examples curl location globoff 'https //developer digitail io/api/v1/products?filter\[clinic id]=integer\&filter\[status]=active\&filter\[only in stock]=false' \\ \ header 'accept application/json' \\ \ header 'content type application/json'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/products?filter\[clinic id]=integer\&filter\[status]=active\&filter\[only in stock]=false", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));import requests import json url = "https //developer digitail io/api/v1/products?filter\[clinic id]=integer\&filter\[status]=active\&filter\[only in stock]=false" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) \<?php $curl = curl init(); curl setopt array($curl, array( curlopt url => 'https //developer digitail io/api/v1/products?filter\[clinic id]=integer\&filter\[status]=active\&filter\[only in stock]=false', curlopt returntransfer => true, curlopt encoding => '', curlopt maxredirs => 10, curlopt timeout => 0, curlopt followlocation => true, curlopt http version => curl http version 1 1, curlopt customrequest => 'get', curlopt httpheader => array( 'accept application/json', 'content type application/json' ), )); $response = curl exec($curl); curl close($curl); echo $response; responses // successful operation { "data" \[ { "id" 670, "name" "product prof peter dach", "unit" "package", "units" \[ "" ], "sub unit" "tablets", "recommended unit price" "11 853", "recommended subunit price" 1 6932857142857143, "price with vat" 11 853, "price without vat" 11 853, "sub price with vat" 1 853, "sub price without vat" 1 853, "formula" 7, "recommended markup" 70, "active substances" "", "administration" "", "recommendations" "", "fixed fee" "0 000", "barcode" "99425161", "producer id" "670", "clinic id" "3876", "vat" 0, "is controlled" false, "is consumable" false, "status" true, "is used" true, "minimum stock" 0 1, "optimum stock" 0 1, "minimum price" "20 3", "price threshold" { "range" \[ { "start" "", "end" "" } ], "price" "", "unit type" 0 }, "task templates" \[ { "id" 0, "name" "" } ], "has subscription discount" false } ], "links" {}, "meta" {} }// the request was invalid or contained data that was not allowed { "message" "requested filter(s) `filter1` are not allowed allowed filter(s) are date, query, " }// the authorization token is missing or invalid // the user is not authorized to perform the requested operation // the user has sent too many requests in a given amount of time ("rate limiting") max 200 requests per minute