erpWebservice

Access to service

(info) WebService URL: https://secure.webmercs.com/erplinkservice/service.asmx

To use webservice methods you should initialize SOAP header (CredentialsHeader) with "Email" and "Password" you get from us.
Do not set anything to "Program" field — it should contain default value "None". Do not use "Version" field too.

WebService interface

GetOrderDetails

Returns order detail XML for one order

  • orderId — Webmercs order number.

GetOrderList

Returns a list of order numbers with statuses Shipped or Ordered which have not been download/imported yet

GetOrderList1

Returns a list of order numbers that have not downloaded/been imported yet

  • checkStatus — when true, orders with statuses Shipped or Ordered are returned, otherwise Pending, InProcess, Paid, Shipped or Ordered

GetOrderListByFilter

Returns a list of order numbers matching the specified date range, options and statuses.

  • fromDate — the beginning date
  • toDate — the end date
  • options — specifies one or a combination of conditions: OnlyNotImported (orders that are not downloaded/impoted yet), OnlyPrinted (orders that are printed), OnlyCorporate (corporate and government orders), SkipVendorOrdersCheck ('Ordered' orders having no vendor responses)
  • statuses — possible order statuses from the whole set of web shop order statuses.

GetOrderListByOptions

Returns a list of order numbers with statuses Shipped or Ordered matching the specified date range and options.

  • fromDate — the beginning date
  • toDate — the end date
  • options — specifies one or a combination of conditions: OnlyNotImported (orders that are not downloaded/impoted yet), OnlyPrinted (orders that are printed), OnlyCorporate (corporate and government orders), SkipVendorOrdersCheck ('Ordered' orders having no vendor responses)

GetOrderListByOptions1

Returns a list of order numbers matching the specified date range and options.

  • fromDate — the beginning date
  • toDate — the end date
  • options — specifies one or a combination of conditions: OnlyNotImported (orders that are not downloaded/impoted yet), OnlyPrinted (orders that are printed), OnlyCorporate (corporate and government orders), SkipVendorOrdersCheck ('Ordered' orders having no vendor responses)
  • checkStatus — when true orders with statuses Shipped and Ordered are returned, otherwise Pending, InProcess, Paid, Shipped or Ordered

GetOrderListByStatus

Returns a list of order numbers matching the specified date range, options and statuses.

  • fromDate — the beginning date
  • toDate — the end date
  • options — specifies one or a combination of conditions: OnlyNotImported (orders that are not downloaded/impoted yet), OnlyPrinted (orders that are printed), OnlyCorporate (corporate and government orders), SkipVendorOrdersCheck ('Ordered' orders having no vendor responses)
  • statuses — possible order statuses from the limited set of frequently used statuses.

OrderImportSuccess

Saves external order number and marks order as downloaded/imported.

  • orderId — Webmercs order number;
  • externalOrderCode — external refererence (typically the order number for this order in your accounting system)
  • updateOrderStatus — specifies whether the status of the Webnmercs order should be changed to Ordered

SaveCustomerNumber1

Saves external customer number to bind Webmercs customer to external customer (typically the matching customer number in an accounting system)

  • billingContactId — Webmercs billing contact identifier (as given in the order detail XML)
  • customerNumber — external customer number.

GetXslt

Internal use only

PostExceptionReport1

Internal use only

PostExceptionReport

Obsolete

SaveCustomerNumber

Obsolete

Example of order detail XML.

<Order>
  <OrderId>10000</OrderId>
  <DealerId>1</DealerId>
  <ExternalCode>WMX-10000</ExternalCode>
  <OrderTime>2008-11-02T15:40:46.96+01:00</OrderTime>
  <CurrentTime>2008-11-14T16:13:44.667+01:00</CurrentTime>
  <ShipToID />
  <ShipDate>2008-11-14T15:03:11.267+01:00</ShipDate>
  <Status>Sendt</Status>
  <AuthorPersonalNumber>12</AuthorPersonalNumber>
  <SalesRepName>Mr. PlacedBy</SalesRepName>
  <UserDepartment />
  <Comment>User comment</Comment>
  <AdminComment>11.11.08 - sent email</AdminComment>
  <ExtraSum>0.0000</ExtraSum>
  <AdditionalCharge>10.0000</AdditionalCharge>
  <TaxSum>1260.2000</TaxSum>
  <ShippingSum>215.2000</ShippingSum>
  <ShippingMethodID>2</ShippingMethodID>
  <ShippingMethod>Posten Standard</ShippingMethod>
  <SubTotal>4825.6000</SubTotal>
  <Total>6301.0000</Total>
  <Discount>0.0000</Discount>
  <DiscountCouponCode />
  <OrgNumber>1234-6789</OrgNumber>
  <PaymentTypeId>10</PaymentTypeId>
  <PaymentTerms>Faktura</PaymentTerms>
  <PaymentType>Faktura30</PaymentType>
  <PaymentDays>30</PaymentDays>
  <PaymentTab>1</PaymentTab>
  <PaymentGroup>3</PaymentGroup>
  <UserIP>85.1.1.1</UserIP>
  <DueDate>2008-12-14T16:13:44.667+01:00</DueDate>
  <InvoiceNumber />
  <CustomerPO>#12345</CustomerPO>
  <WarehouseNumber />
  <Author>
    <UserId>1</UserId>
    <PersonalNumber>12</PersonalNumber>
    <Name>Mr. PlacedBy</Name>
    <Department />
    <Email>sales@web.no</Email>
  </Author>
  <SalesRep>
    <UserId>4</UserId>
    <PersonalNumber>141</PersonalNumber>
    <Name>Mr. SalesRep</Name>
    <Department />
    <Email>info@web.no</Email>
  </SalesRep>
  <Customer>
    <UserID>23427</UserID>
    <CustomerId>7</CustomerId>
    <Number>30004</Number>
    <UserEmail>someuser@example.com</UserEmail>
    <CreditLimit>0.0000</CreditLimit>
    <PaymentTermsID>1</PaymentTermsID>
    <DefaultBillingContact>
      <ContactId>4E8514CA-6E8E-45C4-9326-EA54349A1835</ContactId>
      <AddressId>134716</AddressId>
      <FirstName>John</FirstName>
      <LastName>Smith</LastName>
      <ZipCode>6509</ZipCode>
      <Address1>Langveien 1</Address1>
      <Address2 />
      <City>KRISTIANSUND N</City>
      <CountryCode>NO</CountryCode>
      <Phone>99999999</Phone>
      <WorkPhone />
      <Fax />
      <Company />
      <Department />
      <InvoiceNumber />
      <StateName>NO</StateName>
    </DefaultBillingContact>
    <DefaultShippingContact>
      <ContactId>37EEE4FE-8817-4647-89ED-6A1238932A9D</ContactId>
      <AddressId>204504</AddressId>
      <FirstName>John</FirstName>
      <LastName>Smith</LastName>
      <ZipCode>6509</ZipCode>
      <Address1>langveien 1</Address1>
      <Address2 />
      <City>KRISTIANSUND N</City>
      <CountryCode>NO</CountryCode>
      <Phone>99999999</Phone>
      <WorkPhone />
      <Fax />
      <Company />
      <Department />
      <StateName>NO</StateName>
    </DefaultShippingContact>
  </Customer>
  <BillingContact>
    <ContactId>4E8514CA-6E8E-45C4-9326-EA54349A1835</ContactId>
    <AddressId>419369</AddressId>
    <FirstName>John</FirstName>
    <LastName>Smith</LastName>
    <ZipCode>6509</ZipCode>
    <Address1>langveien 1</Address1>
    <Address2 />
    <City>KRISTIANSUND N</City>
    <CountryCode>NO</CountryCode>
    <Phone>99999999</Phone>
    <WorkPhone />
    <Fax />
    <Company />
    <Department />
    <InvoiceNumber />
    <StateName>NO</StateName>
  </BillingContact>
  <ShippingContact>
    <ContactId>37EEE4FE-8817-4647-89ED-6A1238932A9D</ContactId>
    <AddressId>419370</AddressId>
    <FirstName>John</FirstName>
    <LastName>Smith</LastName>
    <ZipCode>6509</ZipCode>
    <Address1>langveien 1</Address1>
    <Address2 />
    <City>KRISTIANSUND N</City>
    <CountryCode>NO</CountryCode>
    <Phone>99999999</Phone>
    <WorkPhone />
    <Fax />
    <Company />
    <Department />
    <StateName>NO</StateName>
  </ShippingContact>
  <OrderContent>
    <OrderLine>
      <OrderLineId>276548</OrderLineId>
      <ProductId>1891359</ProductId>
      <ProductName>PHENOM TRIPLE-CORE 2.3 GHZ L2=512KB CORE L3=2MB SOC AM2+ 95W PIB</ProductName>
      <BrandName>AMD</BrandName>
      <BrandId>270</BrandId>
      <BrandCode />
      <BrandSku>HD8650WCGHBOX</BrandSku>
      <VendorBrandSku>HD8650WCGHBOX</VendorBrandSku>
      <SellingPrice>721.6000</SellingPrice>
      <PriceWithoutDiscount>721.6000</PriceWithoutDiscount>
      <Qty>1</Qty>
      <Stock>3</Stock>
      <SnapStock>91</SnapStock>
      <ClaimNumber />
      <BundleName />
      <Cost>678.0000</Cost>
      <SalesTax>25.00</SalesTax>
      <Weight>1.80</Weight>
      <Comment />
      <Vendor>
        <Id>7</Id>
        <Name>GNT</Name>
        <ShortName>GNT</ShortName>
        <Code />
      </Vendor>
      <Category>
        <Id>36124</Id>
        <Name>Prosessorer</Name>
        <Code />
      </Category>
      <CategoryFolder>
        <Id>103086</Id>
        <Name>Prossessorer</Name>
        <Code />
      </CategoryFolder>
    </OrderLine>
    <OrderLine>
      <OrderLineId>276549</OrderLineId>
      <ProductId>1853623</ProductId>
      <ProductName>GA-MA78GM-S2H AMD AM2+ PHENOM AM2 ATHLON64 DDR2 1066 SATA 3GB S  16</ProductName>
      <BrandName>GIGABYTE</BrandName>
      <BrandId>139</BrandId>
      <BrandCode />
      <BrandSku>GA-MA78GM-S2H</BrandSku>
      <VendorBrandSku>GA-MA78GM-S2H</VendorBrandSku>
      <SellingPrice>467.2000</SellingPrice>
      <PriceWithoutDiscount>467.2000</PriceWithoutDiscount>
      <Qty>1</Qty>
      <Stock>100</Stock>
      <SnapStock>224</SnapStock>
      <ClaimNumber />
      <BundleName />
      <Cost>535.0000</Cost>
      <SalesTax>25.00</SalesTax>
      <Weight>2.70</Weight>
      <Comment />
      <Vendor>
        <Id>21</Id>
        <Name>Norek</Name>
        <ShortName>Norek</ShortName>
        <Code />
      </Vendor>
      <Category>
        <Id>36123</Id>
        <Name>Hovedkort</Name>
        <Code />
      </Category>
      <CategoryFolder>
        <Id>103046</Id>
        <Name>Hovedkort/Skjermkort/Lydkort</Name>
        <Code />
      </CategoryFolder>
    </OrderLine>
    <OrderLine>
      <OrderLineId>276550</OrderLineId>
      <ProductId>1824598</ProductId>
      <ProductName>DDR2 HyperX PC8500 4096MB CL5, Kit 4x matched HyperX 1GB DDR2</ProductName>
      <BrandName>KINGSTON</BrandName>
      <BrandId>5</BrandId>
      <BrandCode />
      <BrandSku>KHX8500D2K4/4G</BrandSku>
      <VendorBrandSku>KHX8500D2K4/4G</VendorBrandSku>
      <SellingPrice>621.6000</SellingPrice>
      <PriceWithoutDiscount>621.6000</PriceWithoutDiscount>
      <Qty>1</Qty>
      <Stock>1</Stock>
      <SnapStock>27</SnapStock>
      <ClaimNumber />
      <BundleName />
      <Cost>539.0000</Cost>
      <SalesTax>25.00</SalesTax>
      <Weight>0.10</Weight>
      <Comment />
      <Vendor>
        <Id>7</Id>
        <Name>GNT</Name>
        <ShortName>GNT</ShortName>
        <Code />
      </Vendor>
      <Category>
        <Id>36213</Id>
        <Name>Systemminne</Name>
        <Code />
      </Category>
      <CategoryFolder>
        <Id>103173</Id>
        <Name>Minne</Name>
        <Code />
      </CategoryFolder>
    </OrderLine>
    <OrderLine>
      <OrderLineId>276556</OrderLineId>
      <ProductId>334242</ProductId>
      <ProductName>Wireless-G PCI 54 Mbps 802.11g , WPA/AES</ProductName>
      <BrandName>LINKSYS</BrandName>
      <BrandId>366</BrandId>
      <BrandCode />
      <BrandSku>WMP54G</BrandSku>
      <VendorBrandSku>WMP54G</VendorBrandSku>
      <SellingPrice>209.6000</SellingPrice>
      <PriceWithoutDiscount>209.6000</PriceWithoutDiscount>
      <Qty>1</Qty>
      <Stock>147</Stock>
      <SnapStock>147</SnapStock>
      <ClaimNumber />
      <BundleName />
      <Cost>173.0000</Cost>
      <SalesTax>25.00</SalesTax>
      <Weight>0.24</Weight>
      <Comment />
      <Vendor>
        <Id>3</Id>
        <Name>Ingram Micro</Name>
        <ShortName>IM</ShortName>
        <Code />
      </Vendor>
      <Category>
        <Id>36180</Id>
        <Name>Trådløst Nettverk</Name>
        <Code />
      </Category>
      <CategoryFolder>
        <Id>102690</Id>
        <Name>Nettverk/Kommunikasjon</Name>
        <Code />
      </CategoryFolder>
    </OrderLine>
  </OrderContent>
  <VendorOrder>
    <Id>1000001</Id>
    <VendorId>3</VendorId>
    <VendorOrderNumber>3000007</VendorOrderNumber>
    <WebShopReference>10000AIX</WebShopReference>
    <TrackingNumber>
      <Number>CS3XXXXXXXXDK</Number>
      <TrackingUrl>http://example.com/Shipment.aspx?Number=CS3XXXXXXXXDK</TrackingUrl>
    </TrackingNumber>
    <TrackingNumber>
      <Number>CS5XXXXXXXXDK</Number>
      <TrackingUrl>http://example.com/Shipment.aspx?Number=CS5XXXXXXXXDK</TrackingUrl>
    </TrackingNumber>
  </VendorOrder>
  <VendorOrder>
    <Id>1000002</Id>
    <VendorId>7</VendorId>
    <VendorOrderNumber>700001</VendorOrderNumber>
    <WebShopReference>10000ZBZ</WebShopReference>
    <TrackingNumber>
      <Number>34000XXXXXXXXXXX09</Number>
      <TrackingUrl>http://example.com/Default.aspx?fraktnr=34000XXXXXXXXXXX09</TrackingUrl>
    </TrackingNumber>
    <TrackingNumber>
      <Number>34000XXXXXXXXXXX19</Number>
      <TrackingUrl>http://example.com/Default.aspx?fraktnr=34000XXXXXXXXXXX19</TrackingUrl>
    </TrackingNumber>
  </VendorOrder>
  <Settings>
    <DealerName>Default</DealerName>
    <CurrencyCode>NOK</CurrencyCode>
    <PaymentProfile>Default</PaymentProfile>
    <VatCode>353</VatCode>
    <FreightLineSku>FRAKT</FreightLineSku>
    <PaymentExternalCode />
    <CountryCode>NO</CountryCode>
    <DocumentVersion>1.02</DocumentVersion>
  </Settings>
</Order>