Documentation
Show / Hide Table of Contents

Connect by Service API

This API exposes methods specific for handling service orders in a WinServ database.

Uri Method Description
AddCodes POST Add a batch of system codes to the WinServ database. If an error occurs the service will respond with http status code 422. Error details will be found in the 'X-Status' response header.
AddCustomers POST Add a batch of customers to the WinServ database. If an error occurs the service will respond with http status code 422. Error details will be found in the 'X-Status' response header.
AddInvoiceInfo POST Add invoice information to a finished WinServ order. Returns a list of operation statues. If an error occurs the service will respond with http status code 422. Error details will be found in the 'X-Status' response header.
AddMap GET Map a foreign id to a winserv id. If an error occurs the service will respond with http status code 422. Error details will be found in the 'X-Status' response header.
AddOrUpdateProjects POST Adds new and updates existing projects with the passed information. Returns a list of operation statues. If an error occurs the service will respond with http status code 422. Error details will be found in the 'X-Status' response header.
AddProducts POST Add a batch of products to the WinServ database. If an error occurs the service will respond with http status code 422. Error details will be found in the 'X-Status' response header.
AddTimesheet POST Add a timesheet row to a service order in WinServ. Returns True if successful. If an error occurs the service will respond with http status code 422. Error details will be found in the 'X-Status' response header.
CreateServiceOrder POST Create a new service order in WinServ. Returns the WinServ service order id. If an error occurs the service will respond with http status code 422. Error details will be found in the 'X-Status' response header.
GetPendingInvoices GET Get a list of pending invoices. If an error occurs the service will respond with http status code 422. Error details will be found in the 'X-Status' response header.
GetSysInfo GET Get system information. If an error occurs the service will respond with http status code 422. Error details will be found in the 'X-Status' response header.
GetVersion GET Get the current service version
TestSettings GET Test the app settings
Verify GET Very the access token

AddCodes

Add a batch of system codes to the WinServ database. If an error occurs the service will respond with http status code 422. Error details will be found in the 'X-Status' response header.

Url: Common/AddCodes?token={TOKEN}

HTTP Method: POST

Message direction Format Body
Request Xml Example,Schema
Request Json Example
Response N/A The Response body is empty.

The following is an example request Xml body:

<ArrayOfCode xmlns="http://schemas.datacontract.org/2004/07/WinServ___System_Integration_Web_Service.Common.Codes.Containers">
  <Code>
    <Description>String content</Description>
    <ExternalId>String content</ExternalId>
    <Id>String content</Id>
    <Table>String content</Table>
  </Code>
  <Code>
    <Description>String content</Description>
    <ExternalId>String content</ExternalId>
    <Id>String content</Id>
    <Table>String content</Table>
  </Code>
</ArrayOfCode>

The following is an example request Json body:

[{
    "Description":"String content",
    "ExternalId":"String content",
    "Id":"String content",
    "Table":"String content"
}]

The following is the request Xml Schema:

<xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/WinServ___System_Integration_Web_Service.Common.Codes.Containers" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/WinServ___System_Integration_Web_Service.Common.Codes.Containers" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:complexType name="ArrayOfCode">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="Code" nillable="true" type="tns:Code" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfCode" nillable="true" type="tns:ArrayOfCode" />
  <xs:complexType name="Code">
    <xs:sequence>
      <xs:element minOccurs="0" name="Description" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ExternalId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Id" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Table" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Code" nillable="true" type="tns:Code" />
</xs:schema>

Additional request Xml Schemas:

<xs:schema xmlns:tns="http://schemas.microsoft.com/2003/10/Serialization/" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="anyType" nillable="true" type="xs:anyType" />
  <xs:element name="anyURI" nillable="true" type="xs:anyURI" />
  <xs:element name="base64Binary" nillable="true" type="xs:base64Binary" />
  <xs:element name="boolean" nillable="true" type="xs:boolean" />
  <xs:element name="byte" nillable="true" type="xs:byte" />
  <xs:element name="dateTime" nillable="true" type="xs:dateTime" />
  <xs:element name="decimal" nillable="true" type="xs:decimal" />
  <xs:element name="double" nillable="true" type="xs:double" />
  <xs:element name="float" nillable="true" type="xs:float" />
  <xs:element name="int" nillable="true" type="xs:int" />
  <xs:element name="long" nillable="true" type="xs:long" />
  <xs:element name="QName" nillable="true" type="xs:QName" />
  <xs:element name="short" nillable="true" type="xs:short" />
  <xs:element name="string" nillable="true" type="xs:string" />
  <xs:element name="unsignedByte" nillable="true" type="xs:unsignedByte" />
  <xs:element name="unsignedInt" nillable="true" type="xs:unsignedInt" />
  <xs:element name="unsignedLong" nillable="true" type="xs:unsignedLong" />
  <xs:element name="unsignedShort" nillable="true" type="xs:unsignedShort" />
  <xs:element name="char" nillable="true" type="tns:char" />
  <xs:simpleType name="char">
    <xs:restriction base="xs:int" />
  </xs:simpleType>
  <xs:element name="duration" nillable="true" type="tns:duration" />
  <xs:simpleType name="duration">
    <xs:restriction base="xs:duration">
      <xs:pattern value="\-?P(\d*D)?(T(\d*H)?(\d*M)?(\d*(\.\d*)?S)?)?" />
      <xs:minInclusive value="-P10675199DT2H48M5.4775808S" />
      <xs:maxInclusive value="P10675199DT2H48M5.4775807S" />
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="guid" nillable="true" type="tns:guid" />
  <xs:simpleType name="guid">
    <xs:restriction base="xs:string">
      <xs:pattern value="[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}" />
    </xs:restriction>
  </xs:simpleType>
  <xs:attribute name="FactoryType" type="xs:QName" />
  <xs:attribute name="Id" type="xs:ID" />
  <xs:attribute name="Ref" type="xs:IDREF" />
</xs:schema>
<xs:schema targetNamespace="http://www.w3.org/2001/XMLSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="schema">
    <xs:complexType />
  </xs:element>
</xs:schema>

AddCustomers

Add a batch of customers to the WinServ database. If an error occurs the service will respond with http status code 422. Error details will be found in the 'X-Status' response header.

Url: Common/AddCustomers?token={TOKEN}

HTTP Method: POST

Message direction Format Body
Request Xml Example,Schema
Request Json Example
Response N/A The Response body is empty.

The following is an example request Xml body:

<ArrayOfCustomer xmlns="http://schemas.datacontract.org/2004/07/WinServ___System_Integration_Web_Service.Common.Customers.Containers">
  <Customer>
    <BillingAddresses>
      <Customer.Address>
        <AddressLine1>String content</AddressLine1>
        <AddressLine2>String content</AddressLine2>
        <City>String content</City>
        <Department>String content</Department>
        <Id>String content</Id>
        <Name>String content</Name>
        <Phone>String content</Phone>
        <State>String content</State>
        <Zip>String content</Zip>
      </Customer.Address>
      <Customer.Address>
        <AddressLine1>String content</AddressLine1>
        <AddressLine2>String content</AddressLine2>
        <City>String content</City>
        <Department>String content</Department>
        <Id>String content</Id>
        <Name>String content</Name>
        <Phone>String content</Phone>
        <State>String content</State>
        <Zip>String content</Zip>
      </Customer.Address>
    </BillingAddresses>
    <Contact>String content</Contact>
    <CountryCode>String content</CountryCode>
    <CurrencyCode>String content</CurrencyCode>
    <Email>String content</Email>
    <ExternalId>String content</ExternalId>
    <ExtraFields>
      <Customer.ExtraField>
        <Key>String content</Key>
        <Value>String content</Value>
      </Customer.ExtraField>
      <Customer.ExtraField>
        <Key>String content</Key>
        <Value>String content</Value>
      </Customer.ExtraField>
    </ExtraFields>
    <Fax>String content</Fax>
    <Id>String content</Id>
    <LegalName>String content</LegalName>
    <Name>String content</Name>
    <Notes>String content</Notes>
    <PaymentTerm>String content</PaymentTerm>
    <Phone>String content</Phone>
    <Region>String content</Region>
    <ShippingAddresses>
      <Customer.Address>
        <AddressLine1>String content</AddressLine1>
        <AddressLine2>String content</AddressLine2>
        <City>String content</City>
        <Department>String content</Department>
        <Id>String content</Id>
        <Name>String content</Name>
        <Phone>String content</Phone>
        <State>String content</State>
        <Zip>String content</Zip>
      </Customer.Address>
      <Customer.Address>
        <AddressLine1>String content</AddressLine1>
        <AddressLine2>String content</AddressLine2>
        <City>String content</City>
        <Department>String content</Department>
        <Id>String content</Id>
        <Name>String content</Name>
        <Phone>String content</Phone>
        <State>String content</State>
        <Zip>String content</Zip>
      </Customer.Address>
    </ShippingAddresses>
    <ShippingMethod>String content</ShippingMethod>
    <ShippingTerm>String content</ShippingTerm>
    <SpecialPrices>
      <Customer.ProductPricing>
        <ForeignItemId>String content</ForeignItemId>
        <ItemName>String content</ItemName>
        <Price>12678967.543233</Price>
      </Customer.ProductPricing>
      <Customer.ProductPricing>
        <ForeignItemId>String content</ForeignItemId>
        <ItemName>String content</ItemName>
        <Price>12678967.543233</Price>
      </Customer.ProductPricing>
    </SpecialPrices>
    <TaxCode>String content</TaxCode>
  </Customer>
  <Customer>
    <BillingAddresses>
      <Customer.Address>
        <AddressLine1>String content</AddressLine1>
        <AddressLine2>String content</AddressLine2>
        <City>String content</City>
        <Department>String content</Department>
        <Id>String content</Id>
        <Name>String content</Name>
        <Phone>String content</Phone>
        <State>String content</State>
        <Zip>String content</Zip>
      </Customer.Address>
      <Customer.Address>
        <AddressLine1>String content</AddressLine1>
        <AddressLine2>String content</AddressLine2>
        <City>String content</City>
        <Department>String content</Department>
        <Id>String content</Id>
        <Name>String content</Name>
        <Phone>String content</Phone>
        <State>String content</State>
        <Zip>String content</Zip>
      </Customer.Address>
    </BillingAddresses>
    <Contact>String content</Contact>
    <CountryCode>String content</CountryCode>
    <CurrencyCode>String content</CurrencyCode>
    <Email>String content</Email>
    <ExternalId>String content</ExternalId>
    <ExtraFields>
      <Customer.ExtraField>
        <Key>String content</Key>
        <Value>String content</Value>
      </Customer.ExtraField>
      <Customer.ExtraField>
        <Key>String content</Key>
        <Value>String content</Value>
      </Customer.ExtraField>
    </ExtraFields>
    <Fax>String content</Fax>
    <Id>String content</Id>
    <LegalName>String content</LegalName>
    <Name>String content</Name>
    <Notes>String content</Notes>
    <PaymentTerm>String content</PaymentTerm>
    <Phone>String content</Phone>
    <Region>String content</Region>
    <ShippingAddresses>
      <Customer.Address>
        <AddressLine1>String content</AddressLine1>
        <AddressLine2>String content</AddressLine2>
        <City>String content</City>
        <Department>String content</Department>
        <Id>String content</Id>
        <Name>String content</Name>
        <Phone>String content</Phone>
        <State>String content</State>
        <Zip>String content</Zip>
      </Customer.Address>
      <Customer.Address>
        <AddressLine1>String content</AddressLine1>
        <AddressLine2>String content</AddressLine2>
        <City>String content</City>
        <Department>String content</Department>
        <Id>String content</Id>
        <Name>String content</Name>
        <Phone>String content</Phone>
        <State>String content</State>
        <Zip>String content</Zip>
      </Customer.Address>
    </ShippingAddresses>
    <ShippingMethod>String content</ShippingMethod>
    <ShippingTerm>String content</ShippingTerm>
    <SpecialPrices>
      <Customer.ProductPricing>
        <ForeignItemId>String content</ForeignItemId>
        <ItemName>String content</ItemName>
        <Price>12678967.543233</Price>
      </Customer.ProductPricing>
      <Customer.ProductPricing>
        <ForeignItemId>String content</ForeignItemId>
        <ItemName>String content</ItemName>
        <Price>12678967.543233</Price>
      </Customer.ProductPricing>
    </SpecialPrices>
    <TaxCode>String content</TaxCode>
  </Customer>
</ArrayOfCustomer>

The following is an example request Json body:

[{
    "BillingAddresses":[{
        "AddressLine1":"String content",
        "AddressLine2":"String content",
        "City":"String content",
        "Department":"String content",
        "Id":"String content",
        "Name":"String content",
        "Phone":"String content",
        "State":"String content",
        "Zip":"String content"
    }],
    "Contact":"String content",
    "CountryCode":"String content",
    "CurrencyCode":"String content",
    "Email":"String content",
    "ExternalId":"String content",
    "ExtraFields":[{
        "Key":"String content",
        "Value":"String content"
    }],
    "Fax":"String content",
    "Id":"String content",
    "LegalName":"String content",
    "Name":"String content",
    "Notes":"String content",
    "PaymentTerm":"String content",
    "Phone":"String content",
    "Region":"String content",
    "ShippingAddresses":[{
        "AddressLine1":"String content",
        "AddressLine2":"String content",
        "City":"String content",
        "Department":"String content",
        "Id":"String content",
        "Name":"String content",
        "Phone":"String content",
        "State":"String content",
        "Zip":"String content"
    }],
    "ShippingMethod":"String content",
    "ShippingTerm":"String content",
    "SpecialPrices":[{
        "ForeignItemId":"String content",
        "ItemName":"String content",
        "Price":12678967.543233
    }],
    "TaxCode":"String content"
}]

The following is the request Xml Schema:

<xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/WinServ___System_Integration_Web_Service.Common.Customers.Containers" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/WinServ___System_Integration_Web_Service.Common.Customers.Containers" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:complexType name="ArrayOfCustomer">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="Customer" nillable="true" type="tns:Customer" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfCustomer" nillable="true" type="tns:ArrayOfCustomer" />
  <xs:complexType name="Customer">
    <xs:sequence>
      <xs:element minOccurs="0" name="BillingAddresses" nillable="true" type="tns:ArrayOfCustomer.Address" />
      <xs:element minOccurs="0" name="Contact" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CountryCode" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CurrencyCode" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Email" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ExternalId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ExtraFields" nillable="true" type="tns:ArrayOfCustomer.ExtraField" />
      <xs:element minOccurs="0" name="Fax" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Id" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="LegalName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Notes" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="PaymentTerm" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Phone" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Region" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ShippingAddresses" nillable="true" type="tns:ArrayOfCustomer.Address" />
      <xs:element minOccurs="0" name="ShippingMethod" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ShippingTerm" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="SpecialPrices" nillable="true" type="tns:ArrayOfCustomer.ProductPricing" />
      <xs:element minOccurs="0" name="TaxCode" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Customer" nillable="true" type="tns:Customer" />
  <xs:complexType name="ArrayOfCustomer.Address">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="Customer.Address" nillable="true" type="tns:Customer.Address" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfCustomer.Address" nillable="true" type="tns:ArrayOfCustomer.Address" />
  <xs:complexType name="Customer.Address">
    <xs:sequence>
      <xs:element minOccurs="0" name="AddressLine1" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="AddressLine2" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="City" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Department" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Id" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Phone" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="State" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Zip" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Customer.Address" nillable="true" type="tns:Customer.Address" />
  <xs:complexType name="ArrayOfCustomer.ExtraField">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="Customer.ExtraField" nillable="true" type="tns:Customer.ExtraField" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfCustomer.ExtraField" nillable="true" type="tns:ArrayOfCustomer.ExtraField" />
  <xs:complexType name="Customer.ExtraField">
    <xs:sequence>
      <xs:element minOccurs="0" name="Key" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Value" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Customer.ExtraField" nillable="true" type="tns:Customer.ExtraField" />
  <xs:complexType name="ArrayOfCustomer.ProductPricing">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="Customer.ProductPricing" nillable="true" type="tns:Customer.ProductPricing" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfCustomer.ProductPricing" nillable="true" type="tns:ArrayOfCustomer.ProductPricing" />
  <xs:complexType name="Customer.ProductPricing">
    <xs:sequence>
      <xs:element minOccurs="0" name="ForeignItemId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ItemName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Price" type="xs:decimal" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Customer.ProductPricing" nillable="true" type="tns:Customer.ProductPricing" />
</xs:schema>

Additional request Xml Schemas:

<xs:schema xmlns:tns="http://schemas.microsoft.com/2003/10/Serialization/" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="anyType" nillable="true" type="xs:anyType" />
  <xs:element name="anyURI" nillable="true" type="xs:anyURI" />
  <xs:element name="base64Binary" nillable="true" type="xs:base64Binary" />
  <xs:element name="boolean" nillable="true" type="xs:boolean" />
  <xs:element name="byte" nillable="true" type="xs:byte" />
  <xs:element name="dateTime" nillable="true" type="xs:dateTime" />
  <xs:element name="decimal" nillable="true" type="xs:decimal" />
  <xs:element name="double" nillable="true" type="xs:double" />
  <xs:element name="float" nillable="true" type="xs:float" />
  <xs:element name="int" nillable="true" type="xs:int" />
  <xs:element name="long" nillable="true" type="xs:long" />
  <xs:element name="QName" nillable="true" type="xs:QName" />
  <xs:element name="short" nillable="true" type="xs:short" />
  <xs:element name="string" nillable="true" type="xs:string" />
  <xs:element name="unsignedByte" nillable="true" type="xs:unsignedByte" />
  <xs:element name="unsignedInt" nillable="true" type="xs:unsignedInt" />
  <xs:element name="unsignedLong" nillable="true" type="xs:unsignedLong" />
  <xs:element name="unsignedShort" nillable="true" type="xs:unsignedShort" />
  <xs:element name="char" nillable="true" type="tns:char" />
  <xs:simpleType name="char">
    <xs:restriction base="xs:int" />
  </xs:simpleType>
  <xs:element name="duration" nillable="true" type="tns:duration" />
  <xs:simpleType name="duration">
    <xs:restriction base="xs:duration">
      <xs:pattern value="\-?P(\d*D)?(T(\d*H)?(\d*M)?(\d*(\.\d*)?S)?)?" />
      <xs:minInclusive value="-P10675199DT2H48M5.4775808S" />
      <xs:maxInclusive value="P10675199DT2H48M5.4775807S" />
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="guid" nillable="true" type="tns:guid" />
  <xs:simpleType name="guid">
    <xs:restriction base="xs:string">
      <xs:pattern value="[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}" />
    </xs:restriction>
  </xs:simpleType>
  <xs:attribute name="FactoryType" type="xs:QName" />
  <xs:attribute name="Id" type="xs:ID" />
  <xs:attribute name="Ref" type="xs:IDREF" />
</xs:schema>
<xs:schema targetNamespace="http://www.w3.org/2001/XMLSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="schema">
    <xs:complexType />
  </xs:element>
</xs:schema>

AddInvoiceInfo

Add invoice information to a finished WinServ order. Returns a list of operation statues. If an error occurs the service will respond with http status code 422. Error details will be found in the 'X-Status' response header.

Url: Common/AddInvoiceInfo?token={TOKEN}

HTTP Method: POST

Message direction Format Body
Request Xml Example,Schema
Request Json Example
Response Xml Example,Schema
Response Json Example

The following is an example request Xml body:

<ArrayOfInvoiceInfo xmlns="http://schemas.datacontract.org/2004/07/WinServ___System_Integration_Web_Service.Common.InvoiceInfo.Containers">
  <InvoiceInfo>
    <InvoiceDate>1999-05-31T11:20:00</InvoiceDate>
    <InvoiceNumber>String content</InvoiceNumber>
    <InvoiceTotal>12678967.543233</InvoiceTotal>
    <OrderId>String content</OrderId>
  </InvoiceInfo>
  <InvoiceInfo>
    <InvoiceDate>1999-05-31T11:20:00</InvoiceDate>
    <InvoiceNumber>String content</InvoiceNumber>
    <InvoiceTotal>12678967.543233</InvoiceTotal>
    <OrderId>String content</OrderId>
  </InvoiceInfo>
</ArrayOfInvoiceInfo>

The following is an example request Json body:

[{
    "InvoiceDate":"\/Date(928142400000+0200)\/",
    "InvoiceNumber":"String content",
    "InvoiceTotal":12678967.543233,
    "OrderId":"String content"
}]

The following is an example response Xml body:

<ArrayOfInvoiceInfoResponse xmlns="http://schemas.datacontract.org/2004/07/WinServ___System_Integration_Web_Service.Common.InvoiceInfo.Containers">
  <InvoiceInfoResponse>
    <OrderId>String content</OrderId>
    <Status>ErrorOccurred</Status>
    <StatusText>String content</StatusText>
  </InvoiceInfoResponse>
  <InvoiceInfoResponse>
    <OrderId>String content</OrderId>
    <Status>ErrorOccurred</Status>
    <StatusText>String content</StatusText>
  </InvoiceInfoResponse>
</ArrayOfInvoiceInfoResponse>

The following is an example response Json body:

[{
    "OrderId":"String content",
    "Status":0,
    "StatusText":"String content"
}]

The following is the request Xml Schema:

<xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/WinServ___System_Integration_Web_Service.Common.InvoiceInfo.Containers" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/WinServ___System_Integration_Web_Service.Common.InvoiceInfo.Containers" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:complexType name="ArrayOfInvoiceInfo">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="InvoiceInfo" nillable="true" type="tns:InvoiceInfo" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfInvoiceInfo" nillable="true" type="tns:ArrayOfInvoiceInfo" />
  <xs:complexType name="InvoiceInfo">
    <xs:sequence>
      <xs:element minOccurs="0" name="InvoiceDate" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="InvoiceNumber" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="InvoiceTotal" type="xs:decimal" />
      <xs:element minOccurs="0" name="OrderId" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="InvoiceInfo" nillable="true" type="tns:InvoiceInfo" />
</xs:schema>

Additional request Xml Schemas:

<xs:schema xmlns:tns="http://schemas.microsoft.com/2003/10/Serialization/" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="anyType" nillable="true" type="xs:anyType" />
  <xs:element name="anyURI" nillable="true" type="xs:anyURI" />
  <xs:element name="base64Binary" nillable="true" type="xs:base64Binary" />
  <xs:element name="boolean" nillable="true" type="xs:boolean" />
  <xs:element name="byte" nillable="true" type="xs:byte" />
  <xs:element name="dateTime" nillable="true" type="xs:dateTime" />
  <xs:element name="decimal" nillable="true" type="xs:decimal" />
  <xs:element name="double" nillable="true" type="xs:double" />
  <xs:element name="float" nillable="true" type="xs:float" />
  <xs:element name="int" nillable="true" type="xs:int" />
  <xs:element name="long" nillable="true" type="xs:long" />
  <xs:element name="QName" nillable="true" type="xs:QName" />
  <xs:element name="short" nillable="true" type="xs:short" />
  <xs:element name="string" nillable="true" type="xs:string" />
  <xs:element name="unsignedByte" nillable="true" type="xs:unsignedByte" />
  <xs:element name="unsignedInt" nillable="true" type="xs:unsignedInt" />
  <xs:element name="unsignedLong" nillable="true" type="xs:unsignedLong" />
  <xs:element name="unsignedShort" nillable="true" type="xs:unsignedShort" />
  <xs:element name="char" nillable="true" type="tns:char" />
  <xs:simpleType name="char">
    <xs:restriction base="xs:int" />
  </xs:simpleType>
  <xs:element name="duration" nillable="true" type="tns:duration" />
  <xs:simpleType name="duration">
    <xs:restriction base="xs:duration">
      <xs:pattern value="\-?P(\d*D)?(T(\d*H)?(\d*M)?(\d*(\.\d*)?S)?)?" />
      <xs:minInclusive value="-P10675199DT2H48M5.4775808S" />
      <xs:maxInclusive value="P10675199DT2H48M5.4775807S" />
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="guid" nillable="true" type="tns:guid" />
  <xs:simpleType name="guid">
    <xs:restriction base="xs:string">
      <xs:pattern value="[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}" />
    </xs:restriction>
  </xs:simpleType>
  <xs:attribute name="FactoryType" type="xs:QName" />
  <xs:attribute name="Id" type="xs:ID" />
  <xs:attribute name="Ref" type="xs:IDREF" />
</xs:schema>
<xs:schema targetNamespace="http://www.w3.org/2001/XMLSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="schema">
    <xs:complexType />
  </xs:element>
</xs:schema>

The following is the response Xml Schema:

<xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/WinServ___System_Integration_Web_Service.Common.InvoiceInfo.Containers" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/WinServ___System_Integration_Web_Service.Common.InvoiceInfo.Containers" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:complexType name="ArrayOfInvoiceInfoResponse">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="InvoiceInfoResponse" nillable="true" type="tns:InvoiceInfoResponse" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfInvoiceInfoResponse" nillable="true" type="tns:ArrayOfInvoiceInfoResponse" />
  <xs:complexType name="InvoiceInfoResponse">
    <xs:sequence>
      <xs:element minOccurs="0" name="OrderId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Status" type="tns:InvoiceInfoResponse.InvoiceResponseStatus" />
      <xs:element minOccurs="0" name="StatusText" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="InvoiceInfoResponse" nillable="true" type="tns:InvoiceInfoResponse" />
  <xs:simpleType name="InvoiceInfoResponse.InvoiceResponseStatus">
    <xs:restriction base="xs:string">
      <xs:enumeration value="ErrorOccurred" />
      <xs:enumeration value="OrderUpdatedWithInvoiceInfo" />
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="InvoiceInfoResponse.InvoiceResponseStatus" nillable="true" type="tns:InvoiceInfoResponse.InvoiceResponseStatus" />
</xs:schema>

Additional response Xml Schemas:

<xs:schema xmlns:tns="http://schemas.microsoft.com/2003/10/Serialization/" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="anyType" nillable="true" type="xs:anyType" />
  <xs:element name="anyURI" nillable="true" type="xs:anyURI" />
  <xs:element name="base64Binary" nillable="true" type="xs:base64Binary" />
  <xs:element name="boolean" nillable="true" type="xs:boolean" />
  <xs:element name="byte" nillable="true" type="xs:byte" />
  <xs:element name="dateTime" nillable="true" type="xs:dateTime" />
  <xs:element name="decimal" nillable="true" type="xs:decimal" />
  <xs:element name="double" nillable="true" type="xs:double" />
  <xs:element name="float" nillable="true" type="xs:float" />
  <xs:element name="int" nillable="true" type="xs:int" />
  <xs:element name="long" nillable="true" type="xs:long" />
  <xs:element name="QName" nillable="true" type="xs:QName" />
  <xs:element name="short" nillable="true" type="xs:short" />
  <xs:element name="string" nillable="true" type="xs:string" />
  <xs:element name="unsignedByte" nillable="true" type="xs:unsignedByte" />
  <xs:element name="unsignedInt" nillable="true" type="xs:unsignedInt" />
  <xs:element name="unsignedLong" nillable="true" type="xs:unsignedLong" />
  <xs:element name="unsignedShort" nillable="true" type="xs:unsignedShort" />
  <xs:element name="char" nillable="true" type="tns:char" />
  <xs:simpleType name="char">
    <xs:restriction base="xs:int" />
  </xs:simpleType>
  <xs:element name="duration" nillable="true" type="tns:duration" />
  <xs:simpleType name="duration">
    <xs:restriction base="xs:duration">
      <xs:pattern value="\-?P(\d*D)?(T(\d*H)?(\d*M)?(\d*(\.\d*)?S)?)?" />
      <xs:minInclusive value="-P10675199DT2H48M5.4775808S" />
      <xs:maxInclusive value="P10675199DT2H48M5.4775807S" />
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="guid" nillable="true" type="tns:guid" />
  <xs:simpleType name="guid">
    <xs:restriction base="xs:string">
      <xs:pattern value="[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}" />
    </xs:restriction>
  </xs:simpleType>
  <xs:attribute name="FactoryType" type="xs:QName" />
  <xs:attribute name="Id" type="xs:ID" />
  <xs:attribute name="Ref" type="xs:IDREF" />
</xs:schema>
<xs:schema targetNamespace="http://www.w3.org/2001/XMLSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="schema">
    <xs:complexType />
  </xs:element>
</xs:schema>

AddMap

Map a foreign id to a winserv id. If an error occurs the service will respond with http status code 422. Error details will be found in the 'X-Status' response header.

Url: Common/AddMap?token={TOKEN}&type={TYPE}&foreignId={FOREIGNID}&winservId={WINSERVID}

HTTP Method: GET

Message direction Format Body
Request N/A The Request body is empty.
Response Xml Example
Response Json Example

The following is an example response Xml body:

<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>

The following is an example response Json body:

true

AddOrUpdateProjects

Adds new and updates existing projects with the passed information. Returns a list of operation statues. If an error occurs the service will respond with http status code 422. Error details will be found in the 'X-Status' response header.

Url: Common/AddOrUpdateProjects?token={TOKEN}

HTTP Method: POST

Message direction Format Body
Request Xml Example,Schema
Request Json Example
Response Xml Example,Schema
Response Json Example

The following is an example request Xml body:

<ArrayOfProject xmlns="http://schemas.datacontract.org/2004/07/WinServ___System_Integration_Web_Service.Common.Projects.Containers">
  <Project>
    <Details>
      <CalculatedSalary>12678967.543233</CalculatedSalary>
      <CalculatedTotalCost>12678967.543233</CalculatedTotalCost>
      <CalculatedWorkHours>12678967.543233</CalculatedWorkHours>
      <ContractedTotalSum>12678967.543233</ContractedTotalSum>
      <CurrencyCode>String content</CurrencyCode>
      <ProjectDescription>String content</ProjectDescription>
    </Details>
    <Head>
      <Customer>
        <CustomerContactName>String content</CustomerContactName>
        <CustomerId>String content</CustomerId>
        <CustomerName>String content</CustomerName>
      </Customer>
      <EndDate>1999-05-31T11:20:00</EndDate>
      <ProjectName>String content</ProjectName>
      <ProjectNumber>String content</ProjectNumber>
      <StartDate>1999-05-31T11:20:00</StartDate>
      <Status>Active</Status>
      <Type>
        <ProjectTypeId>String content</ProjectTypeId>
        <ProjectTypeName>String content</ProjectTypeName>
      </Type>
    </Head>
  </Project>
  <Project>
    <Details>
      <CalculatedSalary>12678967.543233</CalculatedSalary>
      <CalculatedTotalCost>12678967.543233</CalculatedTotalCost>
      <CalculatedWorkHours>12678967.543233</CalculatedWorkHours>
      <ContractedTotalSum>12678967.543233</ContractedTotalSum>
      <CurrencyCode>String content</CurrencyCode>
      <ProjectDescription>String content</ProjectDescription>
    </Details>
    <Head>
      <Customer>
        <CustomerContactName>String content</CustomerContactName>
        <CustomerId>String content</CustomerId>
        <CustomerName>String content</CustomerName>
      </Customer>
      <EndDate>1999-05-31T11:20:00</EndDate>
      <ProjectName>String content</ProjectName>
      <ProjectNumber>String content</ProjectNumber>
      <StartDate>1999-05-31T11:20:00</StartDate>
      <Status>Active</Status>
      <Type>
        <ProjectTypeId>String content</ProjectTypeId>
        <ProjectTypeName>String content</ProjectTypeName>
      </Type>
    </Head>
  </Project>
</ArrayOfProject>

The following is an example request Json body:

[{
    "Details":{
        "CalculatedSalary":12678967.543233,
        "CalculatedTotalCost":12678967.543233,
        "CalculatedWorkHours":12678967.543233,
        "ContractedTotalSum":12678967.543233,
        "CurrencyCode":"String content",
        "ProjectDescription":"String content"
    },
    "Head":{
        "Customer":{
            "CustomerContactName":"String content",
            "CustomerId":"String content",
            "CustomerName":"String content"
        },
        "EndDate":"\/Date(928142400000+0200)\/",
        "ProjectName":"String content",
        "ProjectNumber":"String content",
        "StartDate":"\/Date(928142400000+0200)\/",
        "Status":0,
        "Type":{
            "ProjectTypeId":"String content",
            "ProjectTypeName":"String content"
        }
    }
}]

The following is an example response Xml body:

<ArrayOfProjectResponse xmlns="http://schemas.datacontract.org/2004/07/WinServ___System_Integration_Web_Service.Common.Projects.Containers">
  <ProjectResponse>
    <ProjectNumber>String content</ProjectNumber>
    <Status>ErrorOccurred</Status>
    <StatusText>String content</StatusText>
  </ProjectResponse>
  <ProjectResponse>
    <ProjectNumber>String content</ProjectNumber>
    <Status>ErrorOccurred</Status>
    <StatusText>String content</StatusText>
  </ProjectResponse>
</ArrayOfProjectResponse>

The following is an example response Json body:

[{
    "ProjectNumber":"String content",
    "Status":0,
    "StatusText":"String content"
}]

The following is the request Xml Schema:

<xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/WinServ___System_Integration_Web_Service.Common.Projects.Containers" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/WinServ___System_Integration_Web_Service.Common.Projects.Containers" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:complexType name="ArrayOfProject">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="Project" nillable="true" type="tns:Project" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfProject" nillable="true" type="tns:ArrayOfProject" />
  <xs:complexType name="Project">
    <xs:sequence>
      <xs:element minOccurs="0" name="Details" nillable="true" type="tns:Project.ProjectDetails" />
      <xs:element minOccurs="0" name="Head" nillable="true" type="tns:Project.ProjectHead" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Project" nillable="true" type="tns:Project" />
  <xs:complexType name="Project.ProjectDetails">
    <xs:sequence>
      <xs:element minOccurs="0" name="CalculatedSalary" type="xs:decimal" />
      <xs:element minOccurs="0" name="CalculatedTotalCost" type="xs:decimal" />
      <xs:element minOccurs="0" name="CalculatedWorkHours" type="xs:decimal" />
      <xs:element minOccurs="0" name="ContractedTotalSum" type="xs:decimal" />
      <xs:element minOccurs="0" name="CurrencyCode" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ProjectDescription" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Project.ProjectDetails" nillable="true" type="tns:Project.ProjectDetails" />
  <xs:complexType name="Project.ProjectHead">
    <xs:sequence>
      <xs:element minOccurs="0" name="Customer" nillable="true" type="tns:Project.ProjectHead.ProjectCustomer" />
      <xs:element minOccurs="0" name="EndDate" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="ProjectName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ProjectNumber" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="StartDate" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="Status" type="tns:Project.ProjectHead.ProjectStatus" />
      <xs:element minOccurs="0" name="Type" nillable="true" type="tns:Project.ProjectHead.ProjectType" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Project.ProjectHead" nillable="true" type="tns:Project.ProjectHead" />
  <xs:complexType name="Project.ProjectHead.ProjectCustomer">
    <xs:sequence>
      <xs:element minOccurs="0" name="CustomerContactName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CustomerId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CustomerName" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Project.ProjectHead.ProjectCustomer" nillable="true" type="tns:Project.ProjectHead.ProjectCustomer" />
  <xs:simpleType name="Project.ProjectHead.ProjectStatus">
    <xs:restriction base="xs:string">
      <xs:enumeration value="Active" />
      <xs:enumeration value="Passive" />
      <xs:enumeration value="Finished" />
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="Project.ProjectHead.ProjectStatus" nillable="true" type="tns:Project.ProjectHead.ProjectStatus" />
  <xs:complexType name="Project.ProjectHead.ProjectType">
    <xs:sequence>
      <xs:element minOccurs="0" name="ProjectTypeId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ProjectTypeName" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Project.ProjectHead.ProjectType" nillable="true" type="tns:Project.ProjectHead.ProjectType" />
</xs:schema>

Additional request Xml Schemas:

<xs:schema xmlns:tns="http://schemas.microsoft.com/2003/10/Serialization/" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="anyType" nillable="true" type="xs:anyType" />
  <xs:element name="anyURI" nillable="true" type="xs:anyURI" />
  <xs:element name="base64Binary" nillable="true" type="xs:base64Binary" />
  <xs:element name="boolean" nillable="true" type="xs:boolean" />
  <xs:element name="byte" nillable="true" type="xs:byte" />
  <xs:element name="dateTime" nillable="true" type="xs:dateTime" />
  <xs:element name="decimal" nillable="true" type="xs:decimal" />
  <xs:element name="double" nillable="true" type="xs:double" />
  <xs:element name="float" nillable="true" type="xs:float" />
  <xs:element name="int" nillable="true" type="xs:int" />
  <xs:element name="long" nillable="true" type="xs:long" />
  <xs:element name="QName" nillable="true" type="xs:QName" />
  <xs:element name="short" nillable="true" type="xs:short" />
  <xs:element name="string" nillable="true" type="xs:string" />
  <xs:element name="unsignedByte" nillable="true" type="xs:unsignedByte" />
  <xs:element name="unsignedInt" nillable="true" type="xs:unsignedInt" />
  <xs:element name="unsignedLong" nillable="true" type="xs:unsignedLong" />
  <xs:element name="unsignedShort" nillable="true" type="xs:unsignedShort" />
  <xs:element name="char" nillable="true" type="tns:char" />
  <xs:simpleType name="char">
    <xs:restriction base="xs:int" />
  </xs:simpleType>
  <xs:element name="duration" nillable="true" type="tns:duration" />
  <xs:simpleType name="duration">
    <xs:restriction base="xs:duration">
      <xs:pattern value="\-?P(\d*D)?(T(\d*H)?(\d*M)?(\d*(\.\d*)?S)?)?" />
      <xs:minInclusive value="-P10675199DT2H48M5.4775808S" />
      <xs:maxInclusive value="P10675199DT2H48M5.4775807S" />
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="guid" nillable="true" type="tns:guid" />
  <xs:simpleType name="guid">
    <xs:restriction base="xs:string">
      <xs:pattern value="[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}" />
    </xs:restriction>
  </xs:simpleType>
  <xs:attribute name="FactoryType" type="xs:QName" />
  <xs:attribute name="Id" type="xs:ID" />
  <xs:attribute name="Ref" type="xs:IDREF" />
</xs:schema>
<xs:schema targetNamespace="http://www.w3.org/2001/XMLSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="schema">
    <xs:complexType />
  </xs:element>
</xs:schema>

The following is the response Xml Schema:

<xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/WinServ___System_Integration_Web_Service.Common.Projects.Containers" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/WinServ___System_Integration_Web_Service.Common.Projects.Containers" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:complexType name="ArrayOfProjectResponse">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="ProjectResponse" nillable="true" type="tns:ProjectResponse" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfProjectResponse" nillable="true" type="tns:ArrayOfProjectResponse" />
  <xs:complexType name="ProjectResponse">
    <xs:sequence>
      <xs:element minOccurs="0" name="ProjectNumber" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Status" type="tns:ProjectResponse.ProjectResponseStatus" />
      <xs:element minOccurs="0" name="StatusText" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ProjectResponse" nillable="true" type="tns:ProjectResponse" />
  <xs:simpleType name="ProjectResponse.ProjectResponseStatus">
    <xs:restriction base="xs:string">
      <xs:enumeration value="ErrorOccurred" />
      <xs:enumeration value="ProjectCreated" />
      <xs:enumeration value="ProjectUpdated" />
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="ProjectResponse.ProjectResponseStatus" nillable="true" type="tns:ProjectResponse.ProjectResponseStatus" />
</xs:schema>

Additional response Xml Schemas:

<xs:schema xmlns:tns="http://schemas.microsoft.com/2003/10/Serialization/" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="anyType" nillable="true" type="xs:anyType" />
  <xs:element name="anyURI" nillable="true" type="xs:anyURI" />
  <xs:element name="base64Binary" nillable="true" type="xs:base64Binary" />
  <xs:element name="boolean" nillable="true" type="xs:boolean" />
  <xs:element name="byte" nillable="true" type="xs:byte" />
  <xs:element name="dateTime" nillable="true" type="xs:dateTime" />
  <xs:element name="decimal" nillable="true" type="xs:decimal" />
  <xs:element name="double" nillable="true" type="xs:double" />
  <xs:element name="float" nillable="true" type="xs:float" />
  <xs:element name="int" nillable="true" type="xs:int" />
  <xs:element name="long" nillable="true" type="xs:long" />
  <xs:element name="QName" nillable="true" type="xs:QName" />
  <xs:element name="short" nillable="true" type="xs:short" />
  <xs:element name="string" nillable="true" type="xs:string" />
  <xs:element name="unsignedByte" nillable="true" type="xs:unsignedByte" />
  <xs:element name="unsignedInt" nillable="true" type="xs:unsignedInt" />
  <xs:element name="unsignedLong" nillable="true" type="xs:unsignedLong" />
  <xs:element name="unsignedShort" nillable="true" type="xs:unsignedShort" />
  <xs:element name="char" nillable="true" type="tns:char" />
  <xs:simpleType name="char">
    <xs:restriction base="xs:int" />
  </xs:simpleType>
  <xs:element name="duration" nillable="true" type="tns:duration" />
  <xs:simpleType name="duration">
    <xs:restriction base="xs:duration">
      <xs:pattern value="\-?P(\d*D)?(T(\d*H)?(\d*M)?(\d*(\.\d*)?S)?)?" />
      <xs:minInclusive value="-P10675199DT2H48M5.4775808S" />
      <xs:maxInclusive value="P10675199DT2H48M5.4775807S" />
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="guid" nillable="true" type="tns:guid" />
  <xs:simpleType name="guid">
    <xs:restriction base="xs:string">
      <xs:pattern value="[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}" />
    </xs:restriction>
  </xs:simpleType>
  <xs:attribute name="FactoryType" type="xs:QName" />
  <xs:attribute name="Id" type="xs:ID" />
  <xs:attribute name="Ref" type="xs:IDREF" />
</xs:schema>
<xs:schema targetNamespace="http://www.w3.org/2001/XMLSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="schema">
    <xs:complexType />
  </xs:element>
</xs:schema>

AddProducts

Add a batch of products to the WinServ database. If an error occurs the service will respond with http status code 422. Error details will be found in the 'X-Status' response header.

Url: Common/AddProducts?token={TOKEN}

HTTP Method: POST

Message direction Format Body
Request Xml Example,Schema
Request Json Example
Response N/A The Response body is empty.

The following is an example request Xml body:

<ArrayOfProduct xmlns="http://schemas.datacontract.org/2004/07/WinServ___System_Integration_Web_Service.Common.Products.Containers">
  <Product>
    <AssetAccount>String content</AssetAccount>
    <CogsAccount>String content</CogsAccount>
    <Cost>12678967.543233</Cost>
    <Description>String content</Description>
    <ExternalId>String content</ExternalId>
    <ExtraFields>
      <Product.ExtraField>
        <Key>String content</Key>
        <Value>String content</Value>
      </Product.ExtraField>
      <Product.ExtraField>
        <Key>String content</Key>
        <Value>String content</Value>
      </Product.ExtraField>
    </ExtraFields>
    <Id>String content</Id>
    <IncomeAccount>String content</IncomeAccount>
    <ManufacturerId>String content</ManufacturerId>
    <Name>String content</Name>
    <ParentName>String content</ParentName>
    <Price>12678967.543233</Price>
    <SalesUnit>String content</SalesUnit>
    <SubLevel>2147483647</SubLevel>
    <Type>String content</Type>
  </Product>
  <Product>
    <AssetAccount>String content</AssetAccount>
    <CogsAccount>String content</CogsAccount>
    <Cost>12678967.543233</Cost>
    <Description>String content</Description>
    <ExternalId>String content</ExternalId>
    <ExtraFields>
      <Product.ExtraField>
        <Key>String content</Key>
        <Value>String content</Value>
      </Product.ExtraField>
      <Product.ExtraField>
        <Key>String content</Key>
        <Value>String content</Value>
      </Product.ExtraField>
    </ExtraFields>
    <Id>String content</Id>
    <IncomeAccount>String content</IncomeAccount>
    <ManufacturerId>String content</ManufacturerId>
    <Name>String content</Name>
    <ParentName>String content</ParentName>
    <Price>12678967.543233</Price>
    <SalesUnit>String content</SalesUnit>
    <SubLevel>2147483647</SubLevel>
    <Type>String content</Type>
  </Product>
</ArrayOfProduct>

The following is an example request Json body:

[{
    "AssetAccount":"String content",
    "CogsAccount":"String content",
    "Cost":12678967.543233,
    "Description":"String content",
    "ExternalId":"String content",
    "ExtraFields":[{
        "Key":"String content",
        "Value":"String content"
    }],
    "Id":"String content",
    "IncomeAccount":"String content",
    "ManufacturerId":"String content",
    "Name":"String content",
    "ParentName":"String content",
    "Price":12678967.543233,
    "SalesUnit":"String content",
    "SubLevel":2147483647,
    "Type":"String content"
}]

The following is the request Xml Schema:

<xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/WinServ___System_Integration_Web_Service.Common.Products.Containers" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/WinServ___System_Integration_Web_Service.Common.Products.Containers" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:complexType name="ArrayOfProduct">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="Product" nillable="true" type="tns:Product" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfProduct" nillable="true" type="tns:ArrayOfProduct" />
  <xs:complexType name="Product">
    <xs:sequence>
      <xs:element minOccurs="0" name="AssetAccount" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CogsAccount" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Cost" type="xs:decimal" />
      <xs:element minOccurs="0" name="Description" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ExternalId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ExtraFields" nillable="true" type="tns:ArrayOfProduct.ExtraField" />
      <xs:element minOccurs="0" name="Id" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="IncomeAccount" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ManufacturerId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ParentName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Price" type="xs:decimal" />
      <xs:element minOccurs="0" name="SalesUnit" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="SubLevel" type="xs:int" />
      <xs:element minOccurs="0" name="Type" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Product" nillable="true" type="tns:Product" />
  <xs:complexType name="ArrayOfProduct.ExtraField">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="Product.ExtraField" nillable="true" type="tns:Product.ExtraField" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfProduct.ExtraField" nillable="true" type="tns:ArrayOfProduct.ExtraField" />
  <xs:complexType name="Product.ExtraField">
    <xs:sequence>
      <xs:element minOccurs="0" name="Key" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Value" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Product.ExtraField" nillable="true" type="tns:Product.ExtraField" />
</xs:schema>

Additional request Xml Schemas:

<xs:schema xmlns:tns="http://schemas.microsoft.com/2003/10/Serialization/" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="anyType" nillable="true" type="xs:anyType" />
  <xs:element name="anyURI" nillable="true" type="xs:anyURI" />
  <xs:element name="base64Binary" nillable="true" type="xs:base64Binary" />
  <xs:element name="boolean" nillable="true" type="xs:boolean" />
  <xs:element name="byte" nillable="true" type="xs:byte" />
  <xs:element name="dateTime" nillable="true" type="xs:dateTime" />
  <xs:element name="decimal" nillable="true" type="xs:decimal" />
  <xs:element name="double" nillable="true" type="xs:double" />
  <xs:element name="float" nillable="true" type="xs:float" />
  <xs:element name="int" nillable="true" type="xs:int" />
  <xs:element name="long" nillable="true" type="xs:long" />
  <xs:element name="QName" nillable="true" type="xs:QName" />
  <xs:element name="short" nillable="true" type="xs:short" />
  <xs:element name="string" nillable="true" type="xs:string" />
  <xs:element name="unsignedByte" nillable="true" type="xs:unsignedByte" />
  <xs:element name="unsignedInt" nillable="true" type="xs:unsignedInt" />
  <xs:element name="unsignedLong" nillable="true" type="xs:unsignedLong" />
  <xs:element name="unsignedShort" nillable="true" type="xs:unsignedShort" />
  <xs:element name="char" nillable="true" type="tns:char" />
  <xs:simpleType name="char">
    <xs:restriction base="xs:int" />
  </xs:simpleType>
  <xs:element name="duration" nillable="true" type="tns:duration" />
  <xs:simpleType name="duration">
    <xs:restriction base="xs:duration">
      <xs:pattern value="\-?P(\d*D)?(T(\d*H)?(\d*M)?(\d*(\.\d*)?S)?)?" />
      <xs:minInclusive value="-P10675199DT2H48M5.4775808S" />
      <xs:maxInclusive value="P10675199DT2H48M5.4775807S" />
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="guid" nillable="true" type="tns:guid" />
  <xs:simpleType name="guid">
    <xs:restriction base="xs:string">
      <xs:pattern value="[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}" />
    </xs:restriction>
  </xs:simpleType>
  <xs:attribute name="FactoryType" type="xs:QName" />
  <xs:attribute name="Id" type="xs:ID" />
  <xs:attribute name="Ref" type="xs:IDREF" />
</xs:schema>
<xs:schema targetNamespace="http://www.w3.org/2001/XMLSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="schema">
    <xs:complexType />
  </xs:element>
</xs:schema>

AddTimesheet

Add a timesheet row to a service order in WinServ. Returns True if successful. If an error occurs the service will respond with http status code 422. Error details will be found in the 'X-Status' response header.

Url: Common/AddTimesheet?token={TOKEN}

HTTP Method: POST

Message direction Format Body
Request Xml Example,Schema
Request Json Example
Response Xml Example
Response Json Example

The following is an example request Xml body:

<Timesheet xmlns="http://schemas.datacontract.org/2004/07/WinServ___System_Integration_Web_Service.Common.Timesheet.Containers">
  <Note>String content</Note>
  <ServiceOrderId>12678967.543233</ServiceOrderId>
  <TechnicianId>String content</TechnicianId>
  <TravelDistance>12678967.543233</TravelDistance>
  <TravelTime>12678967.543233</TravelTime>
  <WorkFrom>1999-05-31T11:20:00</WorkFrom>
  <WorkTo>1999-05-31T11:20:00</WorkTo>
</Timesheet>

The following is an example request Json body:

{
    "Note":"String content",
    "ServiceOrderId":12678967.543233,
    "TechnicianId":"String content",
    "TravelDistance":12678967.543233,
    "TravelTime":12678967.543233,
    "WorkFrom":"\/Date(928142400000+0200)\/",
    "WorkTo":"\/Date(928142400000+0200)\/"
}

The following is an example response Xml body:

<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>

The following is an example response Json body:

true

The following is the request Xml Schema:

<xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/WinServ___System_Integration_Web_Service.Common.Timesheet.Containers" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/WinServ___System_Integration_Web_Service.Common.Timesheet.Containers" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:complexType name="Timesheet">
    <xs:sequence>
      <xs:element minOccurs="0" name="Note" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ServiceOrderId" type="xs:decimal" />
      <xs:element minOccurs="0" name="TechnicianId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="TravelDistance" nillable="true" type="xs:decimal" />
      <xs:element minOccurs="0" name="TravelTime" nillable="true" type="xs:decimal" />
      <xs:element minOccurs="0" name="WorkFrom" type="xs:dateTime" />
      <xs:element minOccurs="0" name="WorkTo" type="xs:dateTime" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Timesheet" nillable="true" type="tns:Timesheet" />
</xs:schema>

Additional request Xml Schemas:

<xs:schema xmlns:tns="http://schemas.microsoft.com/2003/10/Serialization/" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="anyType" nillable="true" type="xs:anyType" />
  <xs:element name="anyURI" nillable="true" type="xs:anyURI" />
  <xs:element name="base64Binary" nillable="true" type="xs:base64Binary" />
  <xs:element name="boolean" nillable="true" type="xs:boolean" />
  <xs:element name="byte" nillable="true" type="xs:byte" />
  <xs:element name="dateTime" nillable="true" type="xs:dateTime" />
  <xs:element name="decimal" nillable="true" type="xs:decimal" />
  <xs:element name="double" nillable="true" type="xs:double" />
  <xs:element name="float" nillable="true" type="xs:float" />
  <xs:element name="int" nillable="true" type="xs:int" />
  <xs:element name="long" nillable="true" type="xs:long" />
  <xs:element name="QName" nillable="true" type="xs:QName" />
  <xs:element name="short" nillable="true" type="xs:short" />
  <xs:element name="string" nillable="true" type="xs:string" />
  <xs:element name="unsignedByte" nillable="true" type="xs:unsignedByte" />
  <xs:element name="unsignedInt" nillable="true" type="xs:unsignedInt" />
  <xs:element name="unsignedLong" nillable="true" type="xs:unsignedLong" />
  <xs:element name="unsignedShort" nillable="true" type="xs:unsignedShort" />
  <xs:element name="char" nillable="true" type="tns:char" />
  <xs:simpleType name="char">
    <xs:restriction base="xs:int" />
  </xs:simpleType>
  <xs:element name="duration" nillable="true" type="tns:duration" />
  <xs:simpleType name="duration">
    <xs:restriction base="xs:duration">
      <xs:pattern value="\-?P(\d*D)?(T(\d*H)?(\d*M)?(\d*(\.\d*)?S)?)?" />
      <xs:minInclusive value="-P10675199DT2H48M5.4775808S" />
      <xs:maxInclusive value="P10675199DT2H48M5.4775807S" />
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="guid" nillable="true" type="tns:guid" />
  <xs:simpleType name="guid">
    <xs:restriction base="xs:string">
      <xs:pattern value="[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}" />
    </xs:restriction>
  </xs:simpleType>
  <xs:attribute name="FactoryType" type="xs:QName" />
  <xs:attribute name="Id" type="xs:ID" />
  <xs:attribute name="Ref" type="xs:IDREF" />
</xs:schema>
<xs:schema targetNamespace="http://www.w3.org/2001/XMLSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="schema">
    <xs:complexType />
  </xs:element>
</xs:schema>

CreateServiceOrder

Create a new service order in WinServ. Returns the WinServ service order id. If an error occurs the service will respond with http status code

  1. Error details will be found in the 'X-Status' response header.

Url: Common/CreateServiceOrder?token={TOKEN}

HTTP Method: POST

Message direction Format Body
Request Xml Example,Schema
Request Json Example
Response Xml Example
Response Json Example

The following is an example request Xml body:

<ServiceOrder xmlns="http://schemas.datacontract.org/2004/07/WinServ___System_Integration_Web_Service.Common.ServiceOrders.Containers">
  <ContactEmail>String content</ContactEmail>
  <ContactMobilePhone>String content</ContactMobilePhone>
  <ContactName>String content</ContactName>
  <ContactPhone>String content</ContactPhone>
  <MachineId>String content</MachineId>
  <OrdererEmail>String content</OrdererEmail>
  <OrdererFax>String content</OrdererFax>
  <OrdererMobilePhone>String content</OrdererMobilePhone>
  <OrdererName>String content</OrdererName>
  <OrdererPhone>String content</OrdererPhone>
  <OutOfOrder>true</OutOfOrder>
  <OwnOrderId>String content</OwnOrderId>
  <ProblemCode>String content</ProblemCode>
  <ProblemDescription>String content</ProblemDescription>
  <ReferenceLabel>String content</ReferenceLabel>
</ServiceOrder>

The following is an example request Json body:

{
    "ContactEmail":"String content",
    "ContactMobilePhone":"String content",
    "ContactName":"String content",
    "ContactPhone":"String content",
    "MachineId":"String content",
    "OrdererEmail":"String content",
    "OrdererFax":"String content",
    "OrdererMobilePhone":"String content",
    "OrdererName":"String content",
    "OrdererPhone":"String content",
    "OutOfOrder":true,
    "OwnOrderId":"String content",
    "ProblemCode":"String content",
    "ProblemDescription":"String content",
    "ReferenceLabel":"String content"
}

The following is an example response Xml body:

<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">String content</string>

The following is an example response Json body:

"String content"

The following is the request Xml Schema:

<xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/WinServ___System_Integration_Web_Service.Common.ServiceOrders.Containers" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/WinServ___System_Integration_Web_Service.Common.ServiceOrders.Containers" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:complexType name="ServiceOrder">
    <xs:sequence>
      <xs:element minOccurs="0" name="ContactEmail" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ContactMobilePhone" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ContactName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ContactPhone" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="MachineId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="OrdererEmail" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="OrdererFax" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="OrdererMobilePhone" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="OrdererName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="OrdererPhone" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="OutOfOrder" type="xs:boolean" />
      <xs:element minOccurs="0" name="OwnOrderId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ProblemCode" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ProblemDescription" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ReferenceLabel" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ServiceOrder" nillable="true" type="tns:ServiceOrder" />
</xs:schema>

Additional request Xml Schemas:

<xs:schema xmlns:tns="http://schemas.microsoft.com/2003/10/Serialization/" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="anyType" nillable="true" type="xs:anyType" />
  <xs:element name="anyURI" nillable="true" type="xs:anyURI" />
  <xs:element name="base64Binary" nillable="true" type="xs:base64Binary" />
  <xs:element name="boolean" nillable="true" type="xs:boolean" />
  <xs:element name="byte" nillable="true" type="xs:byte" />
  <xs:element name="dateTime" nillable="true" type="xs:dateTime" />
  <xs:element name="decimal" nillable="true" type="xs:decimal" />
  <xs:element name="double" nillable="true" type="xs:double" />
  <xs:element name="float" nillable="true" type="xs:float" />
  <xs:element name="int" nillable="true" type="xs:int" />
  <xs:element name="long" nillable="true" type="xs:long" />
  <xs:element name="QName" nillable="true" type="xs:QName" />
  <xs:element name="short" nillable="true" type="xs:short" />
  <xs:element name="string" nillable="true" type="xs:string" />
  <xs:element name="unsignedByte" nillable="true" type="xs:unsignedByte" />
  <xs:element name="unsignedInt" nillable="true" type="xs:unsignedInt" />
  <xs:element name="unsignedLong" nillable="true" type="xs:unsignedLong" />
  <xs:element name="unsignedShort" nillable="true" type="xs:unsignedShort" />
  <xs:element name="char" nillable="true" type="tns:char" />
  <xs:simpleType name="char">
    <xs:restriction base="xs:int" />
  </xs:simpleType>
  <xs:element name="duration" nillable="true" type="tns:duration" />
  <xs:simpleType name="duration">
    <xs:restriction base="xs:duration">
      <xs:pattern value="\-?P(\d*D)?(T(\d*H)?(\d*M)?(\d*(\.\d*)?S)?)?" />
      <xs:minInclusive value="-P10675199DT2H48M5.4775808S" />
      <xs:maxInclusive value="P10675199DT2H48M5.4775807S" />
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="guid" nillable="true" type="tns:guid" />
  <xs:simpleType name="guid">
    <xs:restriction base="xs:string">
      <xs:pattern value="[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}" />
    </xs:restriction>
  </xs:simpleType>
  <xs:attribute name="FactoryType" type="xs:QName" />
  <xs:attribute name="Id" type="xs:ID" />
  <xs:attribute name="Ref" type="xs:IDREF" />
</xs:schema>
<xs:schema targetNamespace="http://www.w3.org/2001/XMLSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="schema">
    <xs:complexType />
  </xs:element>
</xs:schema>

GetPendingInvoices

Get a list of pending invoices. If an error occurs the service will respond with http status code 422. Error details will be found in the 'X-Status' response header.

Url: Common/GetPendingInvoices?token={TOKEN}

HTTP Method: GET

Message direction Format Body
Request N/A The Request body is empty.
Response Xml Example,Schema
Response Json Example

The following is an example response Xml body:

<ArrayOfInvoice xmlns="http://schemas.datacontract.org/2004/07/WinServ___System_Integration_Web_Service.Common.Invoices.Containers">
  <Invoice>
    <FullFilePath>String content</FullFilePath>
    <OrderHead>
      <AddressCity>String content</AddressCity>
      <AddressStreet>String content</AddressStreet>
      <AddressStreet2>String content</AddressStreet2>
      <AddressZip>String content</AddressZip>
      <AgreementId>String content</AgreementId>
      <BaseCustomerId>String content</BaseCustomerId>
      <Blank>String content</Blank>
      <CalledInDate>1999-05-31T11:20:00</CalledInDate>
      <CalledInTime>12678967.543233</CalledInTime>
      <CategoryId>String content</CategoryId>
      <ControlNumber>2147483647</ControlNumber>
      <CostCenterId>String content</CostCenterId>
      <CostUnitId>String content</CostUnitId>
      <CountryId>String content</CountryId>
      <CountryName>String content</CountryName>
      <CurrencyId>String content</CurrencyId>
      <CustomerId>String content</CustomerId>
      <CustomerName>String content</CustomerName>
      <DatePrinted>1999-05-31T11:20:00</DatePrinted>
      <DebitPeriodId>String content</DebitPeriodId>
      <DeliveryAddressId>String content</DeliveryAddressId>
      <DeliveryMethodId>String content</DeliveryMethodId>
      <DeliveryStatus>2147483647</DeliveryStatus>
      <DeliveryTermId>String content</DeliveryTermId>
      <DispatchDate>1999-05-31T11:20:00</DispatchDate>
      <DispatchTime>12678967.543233</DispatchTime>
      <DistrictId>String content</DistrictId>
      <EconomicReference>String content</EconomicReference>
      <EndDate>1999-05-31T11:20:00</EndDate>
      <ExternalOrderId>String content</ExternalOrderId>
      <FinishDate>1999-05-31T11:20:00</FinishDate>
      <ForeignDeliveryMethodId>String content</ForeignDeliveryMethodId>
      <ForeignId>String content</ForeignId>
      <ForeignPaymentTermId>String content</ForeignPaymentTermId>
      <InternalCode>String content</InternalCode>
      <Invoice>true</Invoice>
      <Latitude>String content</Latitude>
      <Longitude>String content</Longitude>
      <MachineId>String content</MachineId>
      <ModelName>String content</ModelName>
      <OrderId>12678967.543233</OrderId>
      <OrderReference>String content</OrderReference>
      <OrderType>String content</OrderType>
      <OriginalCustomerId>String content</OriginalCustomerId>
      <OurReference>String content</OurReference>
      <PaymentTermId>String content</PaymentTermId>
      <Placement>String content</Placement>
      <PlannedDate>1999-05-31T11:20:00</PlannedDate>
      <PlannedTime>12678967.543233</PlannedTime>
      <ProjectId>String content</ProjectId>
      <ProjectTypeId>String content</ProjectTypeId>
      <RowPrefix>String content</RowPrefix>
      <SalesRepId>String content</SalesRepId>
      <SearchWord>String content</SearchWord>
      <ServiceAgreementId>String content</ServiceAgreementId>
      <ServiceAgreementName>String content</ServiceAgreementName>
      <ServiceOrderType>String content</ServiceOrderType>
      <ShouldConsolidate>true</ShouldConsolidate>
      <StartDate>1999-05-31T11:20:00</StartDate>
      <Tag>String content</Tag>
      <Tag2>String content</Tag2>
      <TechnicianId>String content</TechnicianId>
      <TotalPrice>12678967.543233</TotalPrice>
      <VatCode>String content</VatCode>
      <Warranty>2147483647</Warranty>
    </OrderHead>
    <OrderRows>
      <InvoiceProductLine>
        <Cost>12678967.543233</Cost>
        <CostCenterId>String content</CostCenterId>
        <CostUnitId>String content</CostUnitId>
        <CurrentMeterReading>2147483647</CurrentMeterReading>
        <DeliveredQuantity>12678967.543233</DeliveredQuantity>
        <DiscountPercent>12678967.543233</DiscountPercent>
        <ForeignId>String content</ForeignId>
        <Invoice>true</Invoice>
        <ItemId>String content</ItemId>
        <ItemName>String content</ItemName>
        <ItemName2>String content</ItemName2>
        <ItemTypeId>String content</ItemTypeId>
        <MachineCity>String content</MachineCity>
        <MachineId>String content</MachineId>
        <MachinePlacement>String content</MachinePlacement>
        <MeterReadingDifference>2147483647</MeterReadingDifference>
        <ModelId>String content</ModelId>
        <Object>String content</Object>
        <OrderedQuantity>12678967.543233</OrderedQuantity>
        <PreviousMeterReading>2147483647</PreviousMeterReading>
        <Price>12678967.543233</Price>
        <ProjectId>String content</ProjectId>
        <RowNumber>12678967.543233</RowNumber>
        <RowPrefix>String content</RowPrefix>
        <SalesAccount>String content</SalesAccount>
        <StockBalance>12678967.543233</StockBalance>
        <StockId>String content</StockId>
        <TotalCost>12678967.543233</TotalCost>
        <TotalPrice>12678967.543233</TotalPrice>
        <UnitId>String content</UnitId>
        <Vat>12678967.543233</Vat>
      </InvoiceProductLine>
      <InvoiceProductLine>
        <Cost>12678967.543233</Cost>
        <CostCenterId>String content</CostCenterId>
        <CostUnitId>String content</CostUnitId>
        <CurrentMeterReading>2147483647</CurrentMeterReading>
        <DeliveredQuantity>12678967.543233</DeliveredQuantity>
        <DiscountPercent>12678967.543233</DiscountPercent>
        <ForeignId>String content</ForeignId>
        <Invoice>true</Invoice>
        <ItemId>String content</ItemId>
        <ItemName>String content</ItemName>
        <ItemName2>String content</ItemName2>
        <ItemTypeId>String content</ItemTypeId>
        <MachineCity>String content</MachineCity>
        <MachineId>String content</MachineId>
        <MachinePlacement>String content</MachinePlacement>
        <MeterReadingDifference>2147483647</MeterReadingDifference>
        <ModelId>String content</ModelId>
        <Object>String content</Object>
        <OrderedQuantity>12678967.543233</OrderedQuantity>
        <PreviousMeterReading>2147483647</PreviousMeterReading>
        <Price>12678967.543233</Price>
        <ProjectId>String content</ProjectId>
        <RowNumber>12678967.543233</RowNumber>
        <RowPrefix>String content</RowPrefix>
        <SalesAccount>String content</SalesAccount>
        <StockBalance>12678967.543233</StockBalance>
        <StockId>String content</StockId>
        <TotalCost>12678967.543233</TotalCost>
        <TotalPrice>12678967.543233</TotalPrice>
        <UnitId>String content</UnitId>
        <Vat>12678967.543233</Vat>
      </InvoiceProductLine>
    </OrderRows>
    <TextRows>
      <InvoiceTextLine>
        <RowNumber>12678967.543233</RowNumber>
        <RowPrefix>String content</RowPrefix>
        <Text>String content</Text>
      </InvoiceTextLine>
      <InvoiceTextLine>
        <RowNumber>12678967.543233</RowNumber>
        <RowPrefix>String content</RowPrefix>
        <Text>String content</Text>
      </InvoiceTextLine>
    </TextRows>
  </Invoice>
  <Invoice>
    <FullFilePath>String content</FullFilePath>
    <OrderHead>
      <AddressCity>String content</AddressCity>
      <AddressStreet>String content</AddressStreet>
      <AddressStreet2>String content</AddressStreet2>
      <AddressZip>String content</AddressZip>
      <AgreementId>String content</AgreementId>
      <BaseCustomerId>String content</BaseCustomerId>
      <Blank>String content</Blank>
      <CalledInDate>1999-05-31T11:20:00</CalledInDate>
      <CalledInTime>12678967.543233</CalledInTime>
      <CategoryId>String content</CategoryId>
      <ControlNumber>2147483647</ControlNumber>
      <CostCenterId>String content</CostCenterId>
      <CostUnitId>String content</CostUnitId>
      <CountryId>String content</CountryId>
      <CountryName>String content</CountryName>
      <CurrencyId>String content</CurrencyId>
      <CustomerId>String content</CustomerId>
      <CustomerName>String content</CustomerName>
      <DatePrinted>1999-05-31T11:20:00</DatePrinted>
      <DebitPeriodId>String content</DebitPeriodId>
      <DeliveryAddressId>String content</DeliveryAddressId>
      <DeliveryMethodId>String content</DeliveryMethodId>
      <DeliveryStatus>2147483647</DeliveryStatus>
      <DeliveryTermId>String content</DeliveryTermId>
      <DispatchDate>1999-05-31T11:20:00</DispatchDate>
      <DispatchTime>12678967.543233</DispatchTime>
      <DistrictId>String content</DistrictId>
      <EconomicReference>String content</EconomicReference>
      <EndDate>1999-05-31T11:20:00</EndDate>
      <ExternalOrderId>String content</ExternalOrderId>
      <FinishDate>1999-05-31T11:20:00</FinishDate>
      <ForeignDeliveryMethodId>String content</ForeignDeliveryMethodId>
      <ForeignId>String content</ForeignId>
      <ForeignPaymentTermId>String content</ForeignPaymentTermId>
      <InternalCode>String content</InternalCode>
      <Invoice>true</Invoice>
      <Latitude>String content</Latitude>
      <Longitude>String content</Longitude>
      <MachineId>String content</MachineId>
      <ModelName>String content</ModelName>
      <OrderId>12678967.543233</OrderId>
      <OrderReference>String content</OrderReference>
      <OrderType>String content</OrderType>
      <OriginalCustomerId>String content</OriginalCustomerId>
      <OurReference>String content</OurReference>
      <PaymentTermId>String content</PaymentTermId>
      <Placement>String content</Placement>
      <PlannedDate>1999-05-31T11:20:00</PlannedDate>
      <PlannedTime>12678967.543233</PlannedTime>
      <ProjectId>String content</ProjectId>
      <ProjectTypeId>String content</ProjectTypeId>
      <RowPrefix>String content</RowPrefix>
      <SalesRepId>String content</SalesRepId>
      <SearchWord>String content</SearchWord>
      <ServiceAgreementId>String content</ServiceAgreementId>
      <ServiceAgreementName>String content</ServiceAgreementName>
      <ServiceOrderType>String content</ServiceOrderType>
      <ShouldConsolidate>true</ShouldConsolidate>
      <StartDate>1999-05-31T11:20:00</StartDate>
      <Tag>String content</Tag>
      <Tag2>String content</Tag2>
      <TechnicianId>String content</TechnicianId>
      <TotalPrice>12678967.543233</TotalPrice>
      <VatCode>String content</VatCode>
      <Warranty>2147483647</Warranty>
    </OrderHead>
    <OrderRows>
      <InvoiceProductLine>
        <Cost>12678967.543233</Cost>
        <CostCenterId>String content</CostCenterId>
        <CostUnitId>String content</CostUnitId>
        <CurrentMeterReading>2147483647</CurrentMeterReading>
        <DeliveredQuantity>12678967.543233</DeliveredQuantity>
        <DiscountPercent>12678967.543233</DiscountPercent>
        <ForeignId>String content</ForeignId>
        <Invoice>true</Invoice>
        <ItemId>String content</ItemId>
        <ItemName>String content</ItemName>
        <ItemName2>String content</ItemName2>
        <ItemTypeId>String content</ItemTypeId>
        <MachineCity>String content</MachineCity>
        <MachineId>String content</MachineId>
        <MachinePlacement>String content</MachinePlacement>
        <MeterReadingDifference>2147483647</MeterReadingDifference>
        <ModelId>String content</ModelId>
        <Object>String content</Object>
        <OrderedQuantity>12678967.543233</OrderedQuantity>
        <PreviousMeterReading>2147483647</PreviousMeterReading>
        <Price>12678967.543233</Price>
        <ProjectId>String content</ProjectId>
        <RowNumber>12678967.543233</RowNumber>
        <RowPrefix>String content</RowPrefix>
        <SalesAccount>String content</SalesAccount>
        <StockBalance>12678967.543233</StockBalance>
        <StockId>String content</StockId>
        <TotalCost>12678967.543233</TotalCost>
        <TotalPrice>12678967.543233</TotalPrice>
        <UnitId>String content</UnitId>
        <Vat>12678967.543233</Vat>
      </InvoiceProductLine>
      <InvoiceProductLine>
        <Cost>12678967.543233</Cost>
        <CostCenterId>String content</CostCenterId>
        <CostUnitId>String content</CostUnitId>
        <CurrentMeterReading>2147483647</CurrentMeterReading>
        <DeliveredQuantity>12678967.543233</DeliveredQuantity>
        <DiscountPercent>12678967.543233</DiscountPercent>
        <ForeignId>String content</ForeignId>
        <Invoice>true</Invoice>
        <ItemId>String content</ItemId>
        <ItemName>String content</ItemName>
        <ItemName2>String content</ItemName2>
        <ItemTypeId>String content</ItemTypeId>
        <MachineCity>String content</MachineCity>
        <MachineId>String content</MachineId>
        <MachinePlacement>String content</MachinePlacement>
        <MeterReadingDifference>2147483647</MeterReadingDifference>
        <ModelId>String content</ModelId>
        <Object>String content</Object>
        <OrderedQuantity>12678967.543233</OrderedQuantity>
        <PreviousMeterReading>2147483647</PreviousMeterReading>
        <Price>12678967.543233</Price>
        <ProjectId>String content</ProjectId>
        <RowNumber>12678967.543233</RowNumber>
        <RowPrefix>String content</RowPrefix>
        <SalesAccount>String content</SalesAccount>
        <StockBalance>12678967.543233</StockBalance>
        <StockId>String content</StockId>
        <TotalCost>12678967.543233</TotalCost>
        <TotalPrice>12678967.543233</TotalPrice>
        <UnitId>String content</UnitId>
        <Vat>12678967.543233</Vat>
      </InvoiceProductLine>
    </OrderRows>
    <TextRows>
      <InvoiceTextLine>
        <RowNumber>12678967.543233</RowNumber>
        <RowPrefix>String content</RowPrefix>
        <Text>String content</Text>
      </InvoiceTextLine>
      <InvoiceTextLine>
        <RowNumber>12678967.543233</RowNumber>
        <RowPrefix>String content</RowPrefix>
        <Text>String content</Text>
      </InvoiceTextLine>
    </TextRows>
  </Invoice>
</ArrayOfInvoice>

The following is an example response Json body:

[{
    "FullFilePath":"String content",
    "OrderHead":{
        "AddressCity":"String content",
        "AddressStreet":"String content",
        "AddressStreet2":"String content",
        "AddressZip":"String content",
        "AgreementId":"String content",
        "BaseCustomerId":"String content",
        "Blank":"String content",
        "CalledInDate":"\/Date(928142400000+0200)\/",
        "CalledInTime":12678967.543233,
        "CategoryId":"String content",
        "ControlNumber":2147483647,
        "CostCenterId":"String content",
        "CostUnitId":"String content",
        "CountryId":"String content",
        "CountryName":"String content",
        "CurrencyId":"String content",
        "CustomerId":"String content",
        "CustomerName":"String content",
        "DatePrinted":"\/Date(928142400000+0200)\/",
        "DebitPeriodId":"String content",
        "DeliveryAddressId":"String content",
        "DeliveryMethodId":"String content",
        "DeliveryStatus":2147483647,
        "DeliveryTermId":"String content",
        "DispatchDate":"\/Date(928142400000+0200)\/",
        "DispatchTime":12678967.543233,
        "DistrictId":"String content",
        "EconomicReference":"String content",
        "EndDate":"\/Date(928142400000+0200)\/",
        "ExternalOrderId":"String content",
        "FinishDate":"\/Date(928142400000+0200)\/",
        "ForeignDeliveryMethodId":"String content",
        "ForeignId":"String content",
        "ForeignPaymentTermId":"String content",
        "InternalCode":"String content",
        "Invoice":true,
        "Latitude":"String content",
        "Longitude":"String content",
        "MachineId":"String content",
        "ModelName":"String content",
        "OrderId":12678967.543233,
        "OrderReference":"String content",
        "OrderType":"String content",
        "OriginalCustomerId":"String content",
        "OurReference":"String content",
        "PaymentTermId":"String content",
        "Placement":"String content",
        "PlannedDate":"\/Date(928142400000+0200)\/",
        "PlannedTime":12678967.543233,
        "ProjectId":"String content",
        "ProjectTypeId":"String content",
        "RowPrefix":"String content",
        "SalesRepId":"String content",
        "SearchWord":"String content",
        "ServiceAgreementId":"String content",
        "ServiceAgreementName":"String content",
        "ServiceOrderType":"String content",
        "ShouldConsolidate":true,
        "StartDate":"\/Date(928142400000+0200)\/",
        "Tag":"String content",
        "Tag2":"String content",
        "TechnicianId":"String content",
        "TotalPrice":12678967.543233,
        "VatCode":"String content",
        "Warranty":2147483647
    },
    "OrderRows":[{
        "Cost":12678967.543233,
        "CostCenterId":"String content",
        "CostUnitId":"String content",
        "CurrentMeterReading":2147483647,
        "DeliveredQuantity":12678967.543233,
        "DiscountPercent":12678967.543233,
        "ForeignId":"String content",
        "Invoice":true,
        "ItemId":"String content",
        "ItemName":"String content",
        "ItemName2":"String content",
        "ItemTypeId":"String content",
        "MachineCity":"String content",
        "MachineId":"String content",
        "MachinePlacement":"String content",
        "MeterReadingDifference":2147483647,
        "ModelId":"String content",
        "Object":"String content",
        "OrderedQuantity":12678967.543233,
        "PreviousMeterReading":2147483647,
        "Price":12678967.543233,
        "ProjectId":"String content",
        "RowNumber":12678967.543233,
        "RowPrefix":"String content",
        "SalesAccount":"String content",
        "StockBalance":12678967.543233,
        "StockId":"String content",
        "TotalCost":12678967.543233,
        "TotalPrice":12678967.543233,
        "UnitId":"String content",
        "Vat":12678967.543233
    }],
    "TextRows":[{
        "RowNumber":12678967.543233,
        "RowPrefix":"String content",
        "Text":"String content"
    }]
}]

The following is the response Xml Schema:

<xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/WinServ___System_Integration_Web_Service.Common.Invoices.Containers" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/WinServ___System_Integration_Web_Service.Common.Invoices.Containers" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:complexType name="ArrayOfInvoice">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="Invoice" nillable="true" type="tns:Invoice" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfInvoice" nillable="true" type="tns:ArrayOfInvoice" />
  <xs:complexType name="Invoice">
    <xs:sequence>
      <xs:element minOccurs="0" name="FullFilePath" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="OrderHead" nillable="true" type="tns:InvoiceHead" />
      <xs:element minOccurs="0" name="OrderRows" nillable="true" type="tns:ArrayOfInvoiceProductLine" />
      <xs:element minOccurs="0" name="TextRows" nillable="true" type="tns:ArrayOfInvoiceTextLine" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Invoice" nillable="true" type="tns:Invoice" />
  <xs:complexType name="InvoiceHead">
    <xs:sequence>
      <xs:element minOccurs="0" name="AddressCity" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="AddressStreet" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="AddressStreet2" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="AddressZip" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="AgreementId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="BaseCustomerId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Blank" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CalledInDate" type="xs:dateTime" />
      <xs:element minOccurs="0" name="CalledInTime" type="xs:decimal" />
      <xs:element minOccurs="0" name="CategoryId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ControlNumber" type="xs:int" />
      <xs:element minOccurs="0" name="CostCenterId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CostUnitId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CountryId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CountryName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CurrencyId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CustomerId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CustomerName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="DatePrinted" type="xs:dateTime" />
      <xs:element minOccurs="0" name="DebitPeriodId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="DeliveryAddressId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="DeliveryMethodId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="DeliveryStatus" type="xs:int" />
      <xs:element minOccurs="0" name="DeliveryTermId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="DispatchDate" type="xs:dateTime" />
      <xs:element minOccurs="0" name="DispatchTime" type="xs:decimal" />
      <xs:element minOccurs="0" name="DistrictId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="EconomicReference" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="EndDate" type="xs:dateTime" />
      <xs:element minOccurs="0" name="ExternalOrderId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="FinishDate" type="xs:dateTime" />
      <xs:element minOccurs="0" name="ForeignDeliveryMethodId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ForeignId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ForeignPaymentTermId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="InternalCode" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Invoice" type="xs:boolean" />
      <xs:element minOccurs="0" name="Latitude" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Longitude" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="MachineId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ModelName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="OrderId" type="xs:decimal" />
      <xs:element minOccurs="0" name="OrderReference" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="OrderType" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="OriginalCustomerId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="OurReference" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="PaymentTermId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Placement" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="PlannedDate" type="xs:dateTime" />
      <xs:element minOccurs="0" name="PlannedTime" type="xs:decimal" />
      <xs:element minOccurs="0" name="ProjectId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ProjectTypeId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RowPrefix" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="SalesRepId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="SearchWord" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ServiceAgreementId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ServiceAgreementName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ServiceOrderType" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ShouldConsolidate" type="xs:boolean" />
      <xs:element minOccurs="0" name="StartDate" type="xs:dateTime" />
      <xs:element minOccurs="0" name="Tag" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Tag2" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="TechnicianId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="TotalPrice" type="xs:decimal" />
      <xs:element minOccurs="0" name="VatCode" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Warranty" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="InvoiceHead" nillable="true" type="tns:InvoiceHead" />
  <xs:complexType name="ArrayOfInvoiceProductLine">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="InvoiceProductLine" nillable="true" type="tns:InvoiceProductLine" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfInvoiceProductLine" nillable="true" type="tns:ArrayOfInvoiceProductLine" />
  <xs:complexType name="InvoiceProductLine">
    <xs:sequence>
      <xs:element minOccurs="0" name="Cost" type="xs:decimal" />
      <xs:element minOccurs="0" name="CostCenterId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CostUnitId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CurrentMeterReading" type="xs:int" />
      <xs:element minOccurs="0" name="DeliveredQuantity" type="xs:decimal" />
      <xs:element minOccurs="0" name="DiscountPercent" type="xs:decimal" />
      <xs:element minOccurs="0" name="ForeignId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Invoice" type="xs:boolean" />
      <xs:element minOccurs="0" name="ItemId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ItemName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ItemName2" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ItemTypeId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="MachineCity" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="MachineId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="MachinePlacement" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="MeterReadingDifference" type="xs:int" />
      <xs:element minOccurs="0" name="ModelId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Object" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="OrderedQuantity" type="xs:decimal" />
      <xs:element minOccurs="0" name="PreviousMeterReading" type="xs:int" />
      <xs:element minOccurs="0" name="Price" type="xs:decimal" />
      <xs:element minOccurs="0" name="ProjectId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RowNumber" type="xs:decimal" />
      <xs:element minOccurs="0" name="RowPrefix" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="SalesAccount" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="StockBalance" type="xs:decimal" />
      <xs:element minOccurs="0" name="StockId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="TotalCost" type="xs:decimal" />
      <xs:element minOccurs="0" name="TotalPrice" type="xs:decimal" />
      <xs:element minOccurs="0" name="UnitId" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Vat" type="xs:decimal" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="InvoiceProductLine" nillable="true" type="tns:InvoiceProductLine" />
  <xs:complexType name="ArrayOfInvoiceTextLine">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="InvoiceTextLine" nillable="true" type="tns:InvoiceTextLine" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfInvoiceTextLine" nillable="true" type="tns:ArrayOfInvoiceTextLine" />
  <xs:complexType name="InvoiceTextLine">
    <xs:sequence>
      <xs:element minOccurs="0" name="RowNumber" type="xs:decimal" />
      <xs:element minOccurs="0" name="RowPrefix" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Text" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="InvoiceTextLine" nillable="true" type="tns:InvoiceTextLine" />
</xs:schema>

Additional response Xml Schemas:

<xs:schema xmlns:tns="http://schemas.microsoft.com/2003/10/Serialization/" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="anyType" nillable="true" type="xs:anyType" />
  <xs:element name="anyURI" nillable="true" type="xs:anyURI" />
  <xs:element name="base64Binary" nillable="true" type="xs:base64Binary" />
  <xs:element name="boolean" nillable="true" type="xs:boolean" />
  <xs:element name="byte" nillable="true" type="xs:byte" />
  <xs:element name="dateTime" nillable="true" type="xs:dateTime" />
  <xs:element name="decimal" nillable="true" type="xs:decimal" />
  <xs:element name="double" nillable="true" type="xs:double" />
  <xs:element name="float" nillable="true" type="xs:float" />
  <xs:element name="int" nillable="true" type="xs:int" />
  <xs:element name="long" nillable="true" type="xs:long" />
  <xs:element name="QName" nillable="true" type="xs:QName" />
  <xs:element name="short" nillable="true" type="xs:short" />
  <xs:element name="string" nillable="true" type="xs:string" />
  <xs:element name="unsignedByte" nillable="true" type="xs:unsignedByte" />
  <xs:element name="unsignedInt" nillable="true" type="xs:unsignedInt" />
  <xs:element name="unsignedLong" nillable="true" type="xs:unsignedLong" />
  <xs:element name="unsignedShort" nillable="true" type="xs:unsignedShort" />
  <xs:element name="char" nillable="true" type="tns:char" />
  <xs:simpleType name="char">
    <xs:restriction base="xs:int" />
  </xs:simpleType>
  <xs:element name="duration" nillable="true" type="tns:duration" />
  <xs:simpleType name="duration">
    <xs:restriction base="xs:duration">
      <xs:pattern value="\-?P(\d*D)?(T(\d*H)?(\d*M)?(\d*(\.\d*)?S)?)?" />
      <xs:minInclusive value="-P10675199DT2H48M5.4775808S" />
      <xs:maxInclusive value="P10675199DT2H48M5.4775807S" />
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="guid" nillable="true" type="tns:guid" />
  <xs:simpleType name="guid">
    <xs:restriction base="xs:string">
      <xs:pattern value="[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}" />
    </xs:restriction>
  </xs:simpleType>
  <xs:attribute name="FactoryType" type="xs:QName" />
  <xs:attribute name="Id" type="xs:ID" />
  <xs:attribute name="Ref" type="xs:IDREF" />
</xs:schema>
<xs:schema targetNamespace="http://www.w3.org/2001/XMLSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="schema">
    <xs:complexType />
  </xs:element>
</xs:schema>

GetSysInfo

Get system information. If an error occurs the service will respond with http status code 422. Error details will be found in the 'X-Status' response header.

Url: Common/GetSysInfo?token={TOKEN}

HTTP Method: GET

Message direction Format Body
Request N/A The Request body is empty.
Response Xml Example,Schema
Response Json Example

The following is an example response Xml body:

<SysInfo xmlns="http://schemas.datacontract.org/2004/07/WinServ___System_Integration_Web_Service.Common.SysInfo.Containers">
  <Applications>
    <SysInfo.Application>
      <Expires>1999-05-31T11:20:00</Expires>
      <Name>String content</Name>
      <Users>2147483647</Users>
    </SysInfo.Application>
    <SysInfo.Application>
      <Expires>1999-05-31T11:20:00</Expires>
      <Name>String content</Name>
      <Users>2147483647</Users>
    </SysInfo.Application>
  </Applications>
  <CompanyName>String content</CompanyName>
  <LicenseNumber>String content</LicenseNumber>
</SysInfo>

The following is an example response Json body:

{
    "Applications":[{
        "Expires":"\/Date(928142400000+0200)\/",
        "Name":"String content",
        "Users":2147483647
    }],
    "CompanyName":"String content",
    "LicenseNumber":"String content"
}

The following is the response Xml Schema:

<xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/WinServ___System_Integration_Web_Service.Common.SysInfo.Containers" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/WinServ___System_Integration_Web_Service.Common.SysInfo.Containers" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:complexType name="SysInfo">
    <xs:sequence>
      <xs:element minOccurs="0" name="Applications" nillable="true" type="tns:ArrayOfSysInfo.Application" />
      <xs:element minOccurs="0" name="CompanyName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="LicenseNumber" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="SysInfo" nillable="true" type="tns:SysInfo" />
  <xs:complexType name="ArrayOfSysInfo.Application">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="SysInfo.Application" nillable="true" type="tns:SysInfo.Application" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfSysInfo.Application" nillable="true" type="tns:ArrayOfSysInfo.Application" />
  <xs:complexType name="SysInfo.Application">
    <xs:sequence>
      <xs:element minOccurs="0" name="Expires" type="xs:dateTime" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Users" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="SysInfo.Application" nillable="true" type="tns:SysInfo.Application" />
</xs:schema>

Additional response Xml Schemas:

<xs:schema xmlns:tns="http://schemas.microsoft.com/2003/10/Serialization/" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="anyType" nillable="true" type="xs:anyType" />
  <xs:element name="anyURI" nillable="true" type="xs:anyURI" />
  <xs:element name="base64Binary" nillable="true" type="xs:base64Binary" />
  <xs:element name="boolean" nillable="true" type="xs:boolean" />
  <xs:element name="byte" nillable="true" type="xs:byte" />
  <xs:element name="dateTime" nillable="true" type="xs:dateTime" />
  <xs:element name="decimal" nillable="true" type="xs:decimal" />
  <xs:element name="double" nillable="true" type="xs:double" />
  <xs:element name="float" nillable="true" type="xs:float" />
  <xs:element name="int" nillable="true" type="xs:int" />
  <xs:element name="long" nillable="true" type="xs:long" />
  <xs:element name="QName" nillable="true" type="xs:QName" />
  <xs:element name="short" nillable="true" type="xs:short" />
  <xs:element name="string" nillable="true" type="xs:string" />
  <xs:element name="unsignedByte" nillable="true" type="xs:unsignedByte" />
  <xs:element name="unsignedInt" nillable="true" type="xs:unsignedInt" />
  <xs:element name="unsignedLong" nillable="true" type="xs:unsignedLong" />
  <xs:element name="unsignedShort" nillable="true" type="xs:unsignedShort" />
  <xs:element name="char" nillable="true" type="tns:char" />
  <xs:simpleType name="char">
    <xs:restriction base="xs:int" />
  </xs:simpleType>
  <xs:element name="duration" nillable="true" type="tns:duration" />
  <xs:simpleType name="duration">
    <xs:restriction base="xs:duration">
      <xs:pattern value="\-?P(\d*D)?(T(\d*H)?(\d*M)?(\d*(\.\d*)?S)?)?" />
      <xs:minInclusive value="-P10675199DT2H48M5.4775808S" />
      <xs:maxInclusive value="P10675199DT2H48M5.4775807S" />
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="guid" nillable="true" type="tns:guid" />
  <xs:simpleType name="guid">
    <xs:restriction base="xs:string">
      <xs:pattern value="[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}" />
    </xs:restriction>
  </xs:simpleType>
  <xs:attribute name="FactoryType" type="xs:QName" />
  <xs:attribute name="Id" type="xs:ID" />
  <xs:attribute name="Ref" type="xs:IDREF" />
</xs:schema>
<xs:schema targetNamespace="http://www.w3.org/2001/XMLSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="schema">
    <xs:complexType />
  </xs:element>
</xs:schema>

GetVersion

Get the current service version

Url: Common/GetVersion

HTTP Method: GET

Message direction Format Body
Request N/A The Request body is empty.
Response Xml Example
Response Json Example

The following is an example response Xml body:

<decimal xmlns="http://schemas.microsoft.com/2003/10/Serialization/">12678967.543233</decimal>

The following is an example response Json body:

12678967.543233

TestSettings

Test the app settings

Url: Common/TestSettings

HTTP Method: GET

Message direction Format Body
Request N/A The Request body is empty.
Response Unknown The Response body is a byte stream.

Verify

Very the access token

Url: Common/Verify?token={TOKEN}

HTTP Method: GET

Message direction Format Body
Request N/A The Request body is empty.
Response Xml Example
Response Json Example

The following is an example response Xml body:

<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>

The following is an example response Json body:

true
CONTACT INFORMATION

Asolvi AS Sluppenveien 25
N-7037 Trondheim
+47 73 80 22 00
Support
FOLLOW US

© Asolvi AS 2018