CMSWebService
Click here for a complete list of operations.
CreateSupplierInvoiceByCartId
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.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: proservice4d2.imarketvend.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://microsoft.com/webservices/CreateSupplierInvoiceByCartId"
<?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>
<CreateSupplierInvoiceByCartId xmlns="http://microsoft.com/webservices/">
<companyId>string</companyId>
<tokenId>string</tokenId>
<userTokenId>string</userTokenId>
<supplierId>string</supplierId>
<refSellerId>string</refSellerId>
<refStoreId>string</refStoreId>
<InvoiceDate>string</InvoiceDate>
<InvoiceStatus>string</InvoiceStatus>
<Memo>string</Memo>
<receivedInvoiceNumber>string</receivedInvoiceNumber>
<cartid>string</cartid>
<discount>double</discount>
<IsDiscountPercentage>string</IsDiscountPercentage>
<DecimalNumber>int</DecimalNumber>
<PONumber>string</PONumber>
</CreateSupplierInvoiceByCartId>
</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>
<CreateSupplierInvoiceByCartIdResponse xmlns="http://microsoft.com/webservices/">
<CreateSupplierInvoiceByCartIdResult>
<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>
</CreateSupplierInvoiceByCartIdResult>
</CreateSupplierInvoiceByCartIdResponse>
</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: proservice4d2.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>
<CreateSupplierInvoiceByCartId xmlns="http://microsoft.com/webservices/">
<companyId>string</companyId>
<tokenId>string</tokenId>
<userTokenId>string</userTokenId>
<supplierId>string</supplierId>
<refSellerId>string</refSellerId>
<refStoreId>string</refStoreId>
<InvoiceDate>string</InvoiceDate>
<InvoiceStatus>string</InvoiceStatus>
<Memo>string</Memo>
<receivedInvoiceNumber>string</receivedInvoiceNumber>
<cartid>string</cartid>
<discount>double</discount>
<IsDiscountPercentage>string</IsDiscountPercentage>
<DecimalNumber>int</DecimalNumber>
<PONumber>string</PONumber>
</CreateSupplierInvoiceByCartId>
</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>
<CreateSupplierInvoiceByCartIdResponse xmlns="http://microsoft.com/webservices/">
<CreateSupplierInvoiceByCartIdResult>
<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>
</CreateSupplierInvoiceByCartIdResult>
</CreateSupplierInvoiceByCartIdResponse>
</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/CreateSupplierInvoiceByCartId?companyId=string&tokenId=string&userTokenId=string&supplierId=string&refSellerId=string&refStoreId=string&InvoiceDate=string&InvoiceStatus=string&Memo=string&receivedInvoiceNumber=string&cartid=string&discount=string&IsDiscountPercentage=string&DecimalNumber=string&PONumber=string HTTP/1.1 Host: proservice4d2.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/CreateSupplierInvoiceByCartId HTTP/1.1 Host: proservice4d2.imarketvend.com Content-Type: application/x-www-form-urlencoded Content-Length: length companyId=string&tokenId=string&userTokenId=string&supplierId=string&refSellerId=string&refStoreId=string&InvoiceDate=string&InvoiceStatus=string&Memo=string&receivedInvoiceNumber=string&cartid=string&discount=string&IsDiscountPercentage=string&DecimalNumber=string&PONumber=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>