PocketPills-TeleMedicine APIs

Number of APIs: 18

Here is a collection of APIs that would be required by a TeleMedicine Service Provider (TMSP) to interact with PocketPills(PP) systems and help patients get prescriptions delivered to their door for free.

Authentication

  • All API requests should contain an Authorization HTTP Header.
  • Other modes of authentication that can be chosen:
    • AES-256 encyrption of API requests. Secret Keys exchanged separately.
    • Oauth

Security

  • Whitelisting of IPs of both PP & TSMP.
  • All API requests will be over HTTPS to prevent MITM attacks.

Pocketpills Sandbox/Production

  • Please request Sandbox access by mailing to sandbox@pocketpills.com
  • Production Url for apis is api.pocketpills.com & for users is app.pocketpills.com
  1. Direct Order Creation - Direct Order Creation POST {{URL}}/direct-order

  2. Patient - Create Patient PUT {{URL}}/patient

  3. Patient - Get Patient GET {{URL}}/patient/{{PATIENT_ID}}

  4. Patient - Update Patient PUT {{URL}}/patient/{{PATIENT_ID}}

  5. Patient - Add Patient Address POST {{URL}}/patient/{{PATIENT_ID}}/address

  6. Patient - Update Address PUT {{URL}}/patient/{{PATIENT_ID}}/address/{{ADDRESS_ID}}

  7. Patient - Search Patient GET {{URL}}/patient/search?phone=9958893881&email=test@pocketpills.com

  8. Insurances - Add Insurance POST {{URL}}/patient/{{PATIENT_ID}}/insurance

  9. Insurances - Get Insurances GET {{URL}}/patient/{{PATIENT_ID}}/insurances

  10. Insurances - Get Insurance GET {{URL}}/patient/{{PATIENT_ID}}/insurance/{{INSURANCE_ID}}