API Resources
All API URLs listed in this documentation are relative to https://api.dispensarytree.com/.
Authentication
The API requires Access token HTTP Authentication with your Practice token (live or test). In order to authenticate properly, please put Authorization: Bearer ACCESSTOKEN in your header.
Content-Type: application/json Authorization: Bearer ACCESSTOKENHEREYou can find your Application token under Particular Application generate token page.
Request & Response Data
Request data is passed to the API by POSTing JSON objects with the appropriate key/value-pairs to the respective resource. The documentation for each API resource contains more details on the values accepted by a given resource.
Response data also formatted as JSON object. You can specify how many results per page are to be returned.
For instance, https://api.dispensarytree.com/response/practitioner/?results=25&p=2 will return up to 25 results and &p=2 will return records from second page.
REST & Disposable Objects
The Practice API is built around REST principles. Use POST requests to create objects, GET requests to retrieve objects, and PUT requests to update objects.