Meditroc/Farmadeals API - Stock Response
- Home
- StockResponse
Meditroc and Farmadeals are compatible with the StockResponse protocol. You can consult our inventories like any other supplier; you just need to contact us to get an access.
You will receive an API key and a test account. Then you will be able to use the following URL:
https://api.meditroc.be/v2/service/stockresponse/YOURKEY
Meditroc and Farmadeals are using the same API endpoint.
Fields for protocol version and WSID are not meaningful, but if you must define them you can use these values: version = 10000 and WSID = 01.
The <Remark> field will contain links to view the announces. The structure is as follows:
- Remark
- Link : link to perform the same search in Meditroc/Farmadeals' web UI
- Results : search results
- Result : a result for each found announce
- Id : unique identifier of the announce
- Link : link to view the announce
- Quantity : the available quantity in the announce
For example, if a pharmacy (APB 000001) is looking for a box of CNK 1234567, one will use this URL:
https://api.meditroc.be/v2/service/stockresponse/YOURKEY?apb=0000010&products=1234567001
<Remark>
<Link>http://www.meditroc.be?Announce/search/id_product/75084/type/offer&token=TOKENDECONNEXION</Link>
<Results>
<Result>
<Id>14993</Id>
<Link>http://www.meditroc.be?Announce/view/14993&token=TOKENDECONNEXION</Link>
<Quantity>1</Quantity>
</Result>
<Result>
<Id>18787</Id>
<Link>http://www.meditroc.be?Announce/view/18787&token=TOKENDECONNEXION</Link>
<Quantity>5</Quantity>
</Result>
</Results>
</Remark>
Useful Resources
- Test interface: enter your API key, an APB number and one/multiple products to perform a request.
- Request generator: enter your API key to generate random requests with existing announces.
Changelog
- 2019-08-14: now in english!
- 2019-02-19: Webservice version 2: it is not mandatory anymore to send the pharmacy's Meditroc/Farmadeals account credentials.