PharmacyServices

<back to all web services

Orders

The following routes are available for this service:
GET/order
POST/order
GET/order/{Id}
GET/order/status/{Status}
Orders Parameters:
NameParameterData TypeRequiredDescription
Idpathlong?No
StatuspathstringNo
CommentsbodystringNo
UsedBonusPointsbodydoubleNo
ShipmentTypebodystringNo
PaymentTypebodystringNo
CitybodystringNo
AddressbodystringNo
PhonebodystringNo
EmailbodystringNo
PharmacyIdbodylong?No
ItemsbodyList<ItemModel>No
ItemModel Parameters:
NameParameterData TypeRequiredDescription
ProductIdformlongNo
QuantityformdoubleNo
PricePerOneformdoubleNo
NameformstringNo

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 /order HTTP/1.1 
Host: mosapteka.inmar-tech.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"id":0,"status":"String","comments":"String","usedBonusPoints":0,"shipmentType":"String","paymentType":"String","city":"String","address":"String","phone":"String","email":"String","pharmacyId":0,"items":[{"productId":0,"quantity":0,"pricePerOne":0,"name":"String"}]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

[{"profileId":0,"deliveryCost":0,"usedBonusPoints":0,"collectedBonusPoints":0,"name":"String","created":"0001-01-01T00:00:00.0000000","comments":"String","orderStatus":"String","items":[{"orderId":0,"name":"String","pricePerOne":0,"quantity":0,"productId":0,"product":{"name":"String","manufacturer":"String","country":"String","price":0,"oldPrice":0,"inStock":false,"recipe":false,"expiration":"String","packQuantity":0,"mnn":"String","photo":"String","categoryId":0,"id":0},"id":0}],"shipment":{"pharmacyOrderId":0,"shipmentType":"String","paymentType":"String","contactId":0,"contact":{"name":"String","email":"String","phone":"String","city":"String","address":"String","id":0},"pharmacyId":0,"id":0},"sum":0,"id":0}]