CMSWebService


Click here for a complete list of operations.

CreatePurchaseOrderByCartId

Creates order from existent customer's cart for given company and for given cart, and also discount

Test

To test the operation using the HTTP POST protocol, click the 'Invoke' button.
Parameter Value
companyId:
tokenId:
userTokenId:
supplierId:
payKey:
paidAmount:
orderStatus:
discount:
cartid:
DecimalNumber:
OrderDate:

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /CMSWebService.asmx HTTP/1.1
Host: posservicev214d2.imarketvend.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://microsoft.com/webservices/CreatePurchaseOrderByCartId"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Header>
    <AuthSoapHd xmlns="http://microsoft.com/webservices/">
      <strUserName>string</strUserName>
      <strPassword>string</strPassword>
    </AuthSoapHd>
  </soap:Header>
  <soap:Body>
    <CreatePurchaseOrderByCartId xmlns="http://microsoft.com/webservices/">
      <companyId>string</companyId>
      <tokenId>string</tokenId>
      <userTokenId>string</userTokenId>
      <supplierId>string</supplierId>
      <payKey>string</payKey>
      <paidAmount>string</paidAmount>
      <orderStatus>string</orderStatus>
      <discount>double</discount>
      <cartid>string</cartid>
      <DecimalNumber>int</DecimalNumber>
      <OrderDate>string</OrderDate>
    </CreatePurchaseOrderByCartId>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <CreatePurchaseOrderByCartIdResponse xmlns="http://microsoft.com/webservices/">
      <CreatePurchaseOrderByCartIdResult>
        <OrderDetails>
          <OrderDetail>
            <Shipment xsi:nil="true" />
            <ProductId>string</ProductId>
            <ProductName>string</ProductName>
            <ProductPrice>string</ProductPrice>
            <ProductImage>string</ProductImage>
            <ProductSubTotal>string</ProductSubTotal>
            <Quantity>string</Quantity>
            <MapUrlRewrite>string</MapUrlRewrite>
            <SellerId>string</SellerId>
            <SellerName>string</SellerName>
            <Price>string</Price>
            <ProductQuantity>string</ProductQuantity>
            <ProductCode>string</ProductCode>
            <VatAmount>string</VatAmount>
          </OrderDetail>
          <OrderDetail>
            <Shipment xsi:nil="true" />
            <ProductId>string</ProductId>
            <ProductName>string</ProductName>
            <ProductPrice>string</ProductPrice>
            <ProductImage>string</ProductImage>
            <ProductSubTotal>string</ProductSubTotal>
            <Quantity>string</Quantity>
            <MapUrlRewrite>string</MapUrlRewrite>
            <SellerId>string</SellerId>
            <SellerName>string</SellerName>
            <Price>string</Price>
            <ProductQuantity>string</ProductQuantity>
            <ProductCode>string</ProductCode>
            <VatAmount>string</VatAmount>
          </OrderDetail>
        </OrderDetails>
        <InvoiceNumber>string</InvoiceNumber>
        <SelCartID>string</SelCartID>
        <TotalAmount>string</TotalAmount>
        <SelInvoiceNumber>string</SelInvoiceNumber>
        <CustomerId>string</CustomerId>
        <OrderNumber>string</OrderNumber>
        <OrderPlaced>string</OrderPlaced>
        <PaidAmount>string</PaidAmount>
        <BalanceDue>string</BalanceDue>
        <RecipientName>string</RecipientName>
        <EmailAddress>string</EmailAddress>
        <Status>string</Status>
        <TotalPrice>string</TotalPrice>
        <TimeStamp>string</TimeStamp>
        <Refund>string</Refund>
        <refOrderUPC>string</refOrderUPC>
        <OrderDate>string</OrderDate>
        <CreatedUserId>string</CreatedUserId>
        <CreatedUserName>string</CreatedUserName>
        <Phone>string</Phone>
        <Discount>string</Discount>
        <Email2>string</Email2>
        <Email3>string</Email3>
        <AdvanceAmount>string</AdvanceAmount>
        <VatAmount>string</VatAmount>
        <LPONumber>string</LPONumber>
        <CompanyName>string</CompanyName>
        <CustomDONumber>string</CustomDONumber>
        <AdjustmentAmount>string</AdjustmentAmount>
      </CreatePurchaseOrderByCartIdResult>
    </CreatePurchaseOrderByCartIdResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /CMSWebService.asmx HTTP/1.1
Host: posservicev214d2.imarketvend.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Header>
    <AuthSoapHd xmlns="http://microsoft.com/webservices/">
      <strUserName>string</strUserName>
      <strPassword>string</strPassword>
    </AuthSoapHd>
  </soap12:Header>
  <soap12:Body>
    <CreatePurchaseOrderByCartId xmlns="http://microsoft.com/webservices/">
      <companyId>string</companyId>
      <tokenId>string</tokenId>
      <userTokenId>string</userTokenId>
      <supplierId>string</supplierId>
      <payKey>string</payKey>
      <paidAmount>string</paidAmount>
      <orderStatus>string</orderStatus>
      <discount>double</discount>
      <cartid>string</cartid>
      <DecimalNumber>int</DecimalNumber>
      <OrderDate>string</OrderDate>
    </CreatePurchaseOrderByCartId>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <CreatePurchaseOrderByCartIdResponse xmlns="http://microsoft.com/webservices/">
      <CreatePurchaseOrderByCartIdResult>
        <OrderDetails>
          <OrderDetail>
            <Shipment xsi:nil="true" />
            <ProductId>string</ProductId>
            <ProductName>string</ProductName>
            <ProductPrice>string</ProductPrice>
            <ProductImage>string</ProductImage>
            <ProductSubTotal>string</ProductSubTotal>
            <Quantity>string</Quantity>
            <MapUrlRewrite>string</MapUrlRewrite>
            <SellerId>string</SellerId>
            <SellerName>string</SellerName>
            <Price>string</Price>
            <ProductQuantity>string</ProductQuantity>
            <ProductCode>string</ProductCode>
            <VatAmount>string</VatAmount>
          </OrderDetail>
          <OrderDetail>
            <Shipment xsi:nil="true" />
            <ProductId>string</ProductId>
            <ProductName>string</ProductName>
            <ProductPrice>string</ProductPrice>
            <ProductImage>string</ProductImage>
            <ProductSubTotal>string</ProductSubTotal>
            <Quantity>string</Quantity>
            <MapUrlRewrite>string</MapUrlRewrite>
            <SellerId>string</SellerId>
            <SellerName>string</SellerName>
            <Price>string</Price>
            <ProductQuantity>string</ProductQuantity>
            <ProductCode>string</ProductCode>
            <VatAmount>string</VatAmount>
          </OrderDetail>
        </OrderDetails>
        <InvoiceNumber>string</InvoiceNumber>
        <SelCartID>string</SelCartID>
        <TotalAmount>string</TotalAmount>
        <SelInvoiceNumber>string</SelInvoiceNumber>
        <CustomerId>string</CustomerId>
        <OrderNumber>string</OrderNumber>
        <OrderPlaced>string</OrderPlaced>
        <PaidAmount>string</PaidAmount>
        <BalanceDue>string</BalanceDue>
        <RecipientName>string</RecipientName>
        <EmailAddress>string</EmailAddress>
        <Status>string</Status>
        <TotalPrice>string</TotalPrice>
        <TimeStamp>string</TimeStamp>
        <Refund>string</Refund>
        <refOrderUPC>string</refOrderUPC>
        <OrderDate>string</OrderDate>
        <CreatedUserId>string</CreatedUserId>
        <CreatedUserName>string</CreatedUserName>
        <Phone>string</Phone>
        <Discount>string</Discount>
        <Email2>string</Email2>
        <Email3>string</Email3>
        <AdvanceAmount>string</AdvanceAmount>
        <VatAmount>string</VatAmount>
        <LPONumber>string</LPONumber>
        <CompanyName>string</CompanyName>
        <CustomDONumber>string</CustomDONumber>
        <AdjustmentAmount>string</AdjustmentAmount>
      </CreatePurchaseOrderByCartIdResult>
    </CreatePurchaseOrderByCartIdResponse>
  </soap12:Body>
</soap12:Envelope>

HTTP GET

The following is a sample HTTP GET request and response. The placeholders shown need to be replaced with actual values.

GET /CMSWebService.asmx/CreatePurchaseOrderByCartId?companyId=string&tokenId=string&userTokenId=string&supplierId=string&payKey=string&paidAmount=string&orderStatus=string&discount=string&cartid=string&DecimalNumber=string&OrderDate=string HTTP/1.1
Host: posservicev214d2.imarketvend.com
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<Order xmlns="http://microsoft.com/webservices/">
  <OrderDetails>
    <OrderDetail>
      <Shipment>
        <Shipment d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
        <Shipment d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
      </Shipment>
      <ProductId>string</ProductId>
      <ProductName>string</ProductName>
      <ProductPrice>string</ProductPrice>
      <ProductImage>string</ProductImage>
      <ProductSubTotal>string</ProductSubTotal>
      <Quantity>string</Quantity>
      <MapUrlRewrite>string</MapUrlRewrite>
      <SellerId>string</SellerId>
      <SellerName>string</SellerName>
      <Price>string</Price>
      <ProductQuantity>string</ProductQuantity>
      <ProductCode>string</ProductCode>
      <VatAmount>string</VatAmount>
    </OrderDetail>
    <OrderDetail>
      <Shipment>
        <Shipment d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
        <Shipment d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
      </Shipment>
      <ProductId>string</ProductId>
      <ProductName>string</ProductName>
      <ProductPrice>string</ProductPrice>
      <ProductImage>string</ProductImage>
      <ProductSubTotal>string</ProductSubTotal>
      <Quantity>string</Quantity>
      <MapUrlRewrite>string</MapUrlRewrite>
      <SellerId>string</SellerId>
      <SellerName>string</SellerName>
      <Price>string</Price>
      <ProductQuantity>string</ProductQuantity>
      <ProductCode>string</ProductCode>
      <VatAmount>string</VatAmount>
    </OrderDetail>
  </OrderDetails>
  <InvoiceNumber>string</InvoiceNumber>
  <SelCartID>string</SelCartID>
  <TotalAmount>string</TotalAmount>
  <SelInvoiceNumber>string</SelInvoiceNumber>
  <CustomerId>string</CustomerId>
  <OrderNumber>string</OrderNumber>
  <OrderPlaced>string</OrderPlaced>
  <PaidAmount>string</PaidAmount>
  <BalanceDue>string</BalanceDue>
  <RecipientName>string</RecipientName>
  <EmailAddress>string</EmailAddress>
  <Status>string</Status>
  <TotalPrice>string</TotalPrice>
  <TimeStamp>string</TimeStamp>
  <Refund>string</Refund>
  <refOrderUPC>string</refOrderUPC>
  <OrderDate>string</OrderDate>
  <CreatedUserId>string</CreatedUserId>
  <CreatedUserName>string</CreatedUserName>
  <Phone>string</Phone>
  <Discount>string</Discount>
  <Email2>string</Email2>
  <Email3>string</Email3>
  <AdvanceAmount>string</AdvanceAmount>
  <VatAmount>string</VatAmount>
  <LPONumber>string</LPONumber>
  <CompanyName>string</CompanyName>
  <CustomDONumber>string</CustomDONumber>
  <AdjustmentAmount>string</AdjustmentAmount>
</Order>

HTTP POST

The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.

POST /CMSWebService.asmx/CreatePurchaseOrderByCartId HTTP/1.1
Host: posservicev214d2.imarketvend.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length

companyId=string&tokenId=string&userTokenId=string&supplierId=string&payKey=string&paidAmount=string&orderStatus=string&discount=string&cartid=string&DecimalNumber=string&OrderDate=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<Order xmlns="http://microsoft.com/webservices/">
  <OrderDetails>
    <OrderDetail>
      <Shipment>
        <Shipment d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
        <Shipment d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
      </Shipment>
      <ProductId>string</ProductId>
      <ProductName>string</ProductName>
      <ProductPrice>string</ProductPrice>
      <ProductImage>string</ProductImage>
      <ProductSubTotal>string</ProductSubTotal>
      <Quantity>string</Quantity>
      <MapUrlRewrite>string</MapUrlRewrite>
      <SellerId>string</SellerId>
      <SellerName>string</SellerName>
      <Price>string</Price>
      <ProductQuantity>string</ProductQuantity>
      <ProductCode>string</ProductCode>
      <VatAmount>string</VatAmount>
    </OrderDetail>
    <OrderDetail>
      <Shipment>
        <Shipment d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
        <Shipment d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
      </Shipment>
      <ProductId>string</ProductId>
      <ProductName>string</ProductName>
      <ProductPrice>string</ProductPrice>
      <ProductImage>string</ProductImage>
      <ProductSubTotal>string</ProductSubTotal>
      <Quantity>string</Quantity>
      <MapUrlRewrite>string</MapUrlRewrite>
      <SellerId>string</SellerId>
      <SellerName>string</SellerName>
      <Price>string</Price>
      <ProductQuantity>string</ProductQuantity>
      <ProductCode>string</ProductCode>
      <VatAmount>string</VatAmount>
    </OrderDetail>
  </OrderDetails>
  <InvoiceNumber>string</InvoiceNumber>
  <SelCartID>string</SelCartID>
  <TotalAmount>string</TotalAmount>
  <SelInvoiceNumber>string</SelInvoiceNumber>
  <CustomerId>string</CustomerId>
  <OrderNumber>string</OrderNumber>
  <OrderPlaced>string</OrderPlaced>
  <PaidAmount>string</PaidAmount>
  <BalanceDue>string</BalanceDue>
  <RecipientName>string</RecipientName>
  <EmailAddress>string</EmailAddress>
  <Status>string</Status>
  <TotalPrice>string</TotalPrice>
  <TimeStamp>string</TimeStamp>
  <Refund>string</Refund>
  <refOrderUPC>string</refOrderUPC>
  <OrderDate>string</OrderDate>
  <CreatedUserId>string</CreatedUserId>
  <CreatedUserName>string</CreatedUserName>
  <Phone>string</Phone>
  <Discount>string</Discount>
  <Email2>string</Email2>
  <Email3>string</Email3>
  <AdvanceAmount>string</AdvanceAmount>
  <VatAmount>string</VatAmount>
  <LPONumber>string</LPONumber>
  <CompanyName>string</CompanyName>
  <CustomDONumber>string</CustomDONumber>
  <AdjustmentAmount>string</AdjustmentAmount>
</Order>