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 .xml suffix or ?format=xml

HTTP + XML

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/xml
Content-Type: application/xml
Content-Length: length

<Orders xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SBC.Pharm.Services.MobileAppService.Model">
  <Address>String</Address>
  <City>String</City>
  <Comments>String</Comments>
  <Email>String</Email>
  <Id>0</Id>
  <Items>
    <ItemModel>
      <Name>String</Name>
      <PricePerOne>0</PricePerOne>
      <ProductId>0</ProductId>
      <Quantity>0</Quantity>
    </ItemModel>
  </Items>
  <PaymentType>String</PaymentType>
  <PharmacyId>0</PharmacyId>
  <Phone>String</Phone>
  <ShipmentType>String</ShipmentType>
  <Status>String</Status>
  <UsedBonusPoints>0</UsedBonusPoints>
</Orders>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ArrayOfPharmacyOrder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SBC.Pharm.Services.MobileAppService.Model">
  <PharmacyOrder>
    <Id>0</Id>
    <CollectedBonusPoints>0</CollectedBonusPoints>
    <Comments>String</Comments>
    <Created>0001-01-01T00:00:00</Created>
    <DeliveryCost>0</DeliveryCost>
    <Items>
      <PharmacyOrderItem>
        <Id>0</Id>
        <Name>String</Name>
        <OrderId>0</OrderId>
        <PricePerOne>0</PricePerOne>
        <Product>
          <Id>0</Id>
          <CategoryId>0</CategoryId>
          <Country>String</Country>
          <Expiration>String</Expiration>
          <InStock>false</InStock>
          <MNN>String</MNN>
          <Manufacturer>String</Manufacturer>
          <Name>String</Name>
          <OldPrice>0</OldPrice>
          <PackQuantity>0</PackQuantity>
          <Photo>String</Photo>
          <Price>0</Price>
          <Recipe>false</Recipe>
        </Product>
        <ProductId>0</ProductId>
        <Quantity>0</Quantity>
      </PharmacyOrderItem>
    </Items>
    <Name>String</Name>
    <OrderStatus>String</OrderStatus>
    <ProfileId>0</ProfileId>
    <Shipment>
      <Id>0</Id>
      <Contact>
        <Id>0</Id>
        <Address>String</Address>
        <City>String</City>
        <Email>String</Email>
        <Name>String</Name>
        <Phone>String</Phone>
      </Contact>
      <ContactId>0</ContactId>
      <PaymentType>String</PaymentType>
      <PharmacyId>0</PharmacyId>
      <PharmacyOrderId>0</PharmacyOrderId>
      <ShipmentType>String</ShipmentType>
    </Shipment>
    <UsedBonusPoints>0</UsedBonusPoints>
  </PharmacyOrder>
</ArrayOfPharmacyOrder>