PharmacyServices

<back to all web services

Profiles

The following routes are available for this service:
GET/profile
POST/profile
Profiles Parameters:
NameParameterData TypeRequiredDescription
NamebodystringNo
EmailbodystringNo
PhonebodystringNo
CitybodystringNo
AddressbodystringNo
Profile Parameters:
NameParameterData TypeRequiredDescription
ContactformContactNo
PreferedPharmacyIdformlong?No
OrderCountformlongNo
ReservedBonusPointsformdoubleNo
BonusPointsformdoubleNo
HelloIdformlong?No
ContactIdformlong?No
PharmacyBaseEntity Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
Contact Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
EmailformstringNo
PhoneformstringNo
CityformstringNo
AddressformstringNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /profile HTTP/1.1 
Host: mosapteka.inmar-tech.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"name":"String","email":"String","phone":"String","city":"String","address":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"contact":{"name":"String","email":"String","phone":"String","city":"String","address":"String","id":0},"preferedPharmacyId":0,"orderCount":0,"reservedBonusPoints":0,"bonusPoints":0,"helloId":0,"contactId":0,"id":0}