The MedAdvisor APIs Integration facilitates connectivity for third-party widgets to integrate with MedAdvisor. The document lists 4 APIs for this purpose.
The MedAdvisor APIs enable pharmacies to log in using a userName
and password
encoded in Base64-encoded UTF8 string format. MedAdvisor will also provide integrators with a clientId
and a clientSecret
. The request connects to the existing identity management system, where the password-encoded information is sent to MedAdvisor and decoded. Subsequently, MedAdvisor validates the username and password against the registered and existing database entries.
Once all validations are successfully completed, the /3rdpartylogin
endpoint will return an access token to the client (any authorized third party) in the format token
: "string"
. This token is then used for further actions.
APIs Usage:
To retrieve pharmacy information, GET
requests are made to /pharmacy
.
When eScript information is required, a GET
request is sent to /escript/{token}
. The parameter request is the eScript token, and MedAdvisor responds with eScript status details, including medication, quantity, and status.
When an order is created via an eCommerce platform, a POST
request needs to be sent to /pharmacy/notify
. The order information will be sent to the MedAdvisor server to be displayed in a specific pharmacy’s PlusOne inbox.