InvoiceService


Click here for a complete list of operations.

GetInvoices

Get a list of invoices

Test

The test form is only available for requests from the local machine.

SOAP 1.1

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

POST /Economy/Invoice/InvoiceService.asmx HTTP/1.1
Host: webservices.24sevenoffice.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://24sevenOffice.com/webservices/GetInvoices"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Header>
    <Authentication xmlns="http://24sevenOffice.com/webservices">
      <Username>string</Username>
      <Password>string</Password>
      <UserId>string</UserId>
      <EmployeeId>string</EmployeeId>
    </Authentication>
  </soap:Header>
  <soap:Body>
    <GetInvoices xmlns="http://24sevenOffice.com/webservices">
      <invoiceSearch>
        <DateOrderedFrom>dateTime</DateOrderedFrom>
        <DateOrderedTo>dateTime</DateOrderedTo>
        <DateInvoicedFrom>dateTime</DateInvoicedFrom>
        <DateInvoicedTo>dateTime</DateInvoicedTo>
        <InvoiceIdFrom>long</InvoiceIdFrom>
        <InvoiceIdTo>long</InvoiceIdTo>
        <OrderIdFrom>long</OrderIdFrom>
        <OrderIdTo>long</OrderIdTo>
        <CompanyId>long</CompanyId>
        <ForFactoring>none or True or False</ForFactoring>
        <ChangedAfter>dateTime</ChangedAfter>
        <OrderStatus>
          <StatusTypes>Proposal or Pack or Invoiced or Web or Repeating or Collecting or Return or Rest or ForInvoicing or OvertimeRent or Confirmed or Sent or Production or PaymentReminder or OnAccount or Lended or InvoicedCashAccounted or InvoicedPack or Inactive or Hours or Unknown</StatusTypes>
          <StatusTypes>Proposal or Pack or Invoiced or Web or Repeating or Collecting or Return or Rest or ForInvoicing or OvertimeRent or Confirmed or Sent or Production or PaymentReminder or OnAccount or Lended or InvoicedCashAccounted or InvoicedPack or Inactive or Hours or Unknown</StatusTypes>
        </OrderStatus>
        <ExternalStatus>int</ExternalStatus>
        <Paid>none or True or False</Paid>
        <PaidAfter>dateTime</PaidAfter>
        <PaidBefore>dateTime</PaidBefore>
      </invoiceSearch>
    </GetInvoices>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetInvoicesResponse xmlns="http://24sevenOffice.com/webservices">
      <GetInvoicesResult>
        <InvoiceItem>
          <OrderId>long</OrderId>
          <CompanyId>long</CompanyId>
          <CompanyName>string</CompanyName>
          <DeliveryName>string</DeliveryName>
          <Addresses>
            <Address xsi:nil="true" />
            <Address xsi:nil="true" />
          </Addresses>
          <OrderStatus>Proposal or Pack or Invoiced or Web or Repeating or Collecting or Return or Rest or ForInvoicing or OvertimeRent or Confirmed or Sent or Production or PaymentReminder or OnAccount or Lended or InvoicedCashAccounted or InvoicedPack or Inactive or Hours or Unknown</OrderStatus>
          <InvoiceId>long</InvoiceId>
          <DateOrdered>dateTime</DateOrdered>
          <DateInvoiced>dateTime</DateInvoiced>
          <PaymentTime>int</PaymentTime>
          <PaymentTimeSpecified>boolean</PaymentTimeSpecified>
          <ReferenceNumber>string</ReferenceNumber>
          <ProjectId>long</ProjectId>
          <OurReference>long</OurReference>
          <YourReference>string</YourReference>
          <TotalSum>decimal</TotalSum>
          <TotalTax>decimal</TotalTax>
          <InvoiceTitle>string</InvoiceTitle>
          <InvoiceText>string</InvoiceText>
          <Paid>dateTime</Paid>
          <TypeOfSale>Credit or Cash or Foreign or NonVATable or Auto</TypeOfSale>
          <IncVAT>boolean</IncVAT>
          <ShowIncVat>none or True or False</ShowIncVat>
          <KID>string</KID>
          <RoundFactor>decimal</RoundFactor>
          <RoundType>none or Quarter or Half or Whole</RoundType>
          <Commissions>
            <CommissionItem xsi:nil="true" />
            <CommissionItem xsi:nil="true" />
          </Commissions>
          <InvoiceRows>
            <InvoiceRowItem xsi:nil="true" />
            <InvoiceRowItem xsi:nil="true" />
          </InvoiceRows>
          <SendToFactoring>boolean</SendToFactoring>
          <ToFactoring>Auto or True or False or UseOldProperty</ToFactoring>
          <Currency>string</Currency>
          <CurrencyRate>decimal</CurrencyRate>
          <ExternalStatus>int</ExternalStatus>
          <Active>boolean</Active>
          <PaymentMethodId>int</PaymentMethodId>
          <PaymentAmount>decimal</PaymentAmount>
          <InvoiceReference>long</InvoiceReference>
          <RefOrderId>long</RefOrderId>
          <CreditNote>boolean</CreditNote>
          <sysExpandStructure>boolean</sysExpandStructure>
          <sysUseSystemDiscount>boolean</sysUseSystemDiscount>
        </InvoiceItem>
        <InvoiceItem>
          <OrderId>long</OrderId>
          <CompanyId>long</CompanyId>
          <CompanyName>string</CompanyName>
          <DeliveryName>string</DeliveryName>
          <Addresses>
            <Address xsi:nil="true" />
            <Address xsi:nil="true" />
          </Addresses>
          <OrderStatus>Proposal or Pack or Invoiced or Web or Repeating or Collecting or Return or Rest or ForInvoicing or OvertimeRent or Confirmed or Sent or Production or PaymentReminder or OnAccount or Lended or InvoicedCashAccounted or InvoicedPack or Inactive or Hours or Unknown</OrderStatus>
          <InvoiceId>long</InvoiceId>
          <DateOrdered>dateTime</DateOrdered>
          <DateInvoiced>dateTime</DateInvoiced>
          <PaymentTime>int</PaymentTime>
          <PaymentTimeSpecified>boolean</PaymentTimeSpecified>
          <ReferenceNumber>string</ReferenceNumber>
          <ProjectId>long</ProjectId>
          <OurReference>long</OurReference>
          <YourReference>string</YourReference>
          <TotalSum>decimal</TotalSum>
          <TotalTax>decimal</TotalTax>
          <InvoiceTitle>string</InvoiceTitle>
          <InvoiceText>string</InvoiceText>
          <Paid>dateTime</Paid>
          <TypeOfSale>Credit or Cash or Foreign or NonVATable or Auto</TypeOfSale>
          <IncVAT>boolean</IncVAT>
          <ShowIncVat>none or True or False</ShowIncVat>
          <KID>string</KID>
          <RoundFactor>decimal</RoundFactor>
          <RoundType>none or Quarter or Half or Whole</RoundType>
          <Commissions>
            <CommissionItem xsi:nil="true" />
            <CommissionItem xsi:nil="true" />
          </Commissions>
          <InvoiceRows>
            <InvoiceRowItem xsi:nil="true" />
            <InvoiceRowItem xsi:nil="true" />
          </InvoiceRows>
          <SendToFactoring>boolean</SendToFactoring>
          <ToFactoring>Auto or True or False or UseOldProperty</ToFactoring>
          <Currency>string</Currency>
          <CurrencyRate>decimal</CurrencyRate>
          <ExternalStatus>int</ExternalStatus>
          <Active>boolean</Active>
          <PaymentMethodId>int</PaymentMethodId>
          <PaymentAmount>decimal</PaymentAmount>
          <InvoiceReference>long</InvoiceReference>
          <RefOrderId>long</RefOrderId>
          <CreditNote>boolean</CreditNote>
          <sysExpandStructure>boolean</sysExpandStructure>
          <sysUseSystemDiscount>boolean</sysUseSystemDiscount>
        </InvoiceItem>
      </GetInvoicesResult>
    </GetInvoicesResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

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

POST /Economy/Invoice/InvoiceService.asmx HTTP/1.1
Host: webservices.24sevenoffice.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Header>
    <Authentication xmlns="http://24sevenOffice.com/webservices">
      <Username>string</Username>
      <Password>string</Password>
      <UserId>string</UserId>
      <EmployeeId>string</EmployeeId>
    </Authentication>
  </soap12:Header>
  <soap12:Body>
    <GetInvoices xmlns="http://24sevenOffice.com/webservices">
      <invoiceSearch>
        <DateOrderedFrom>dateTime</DateOrderedFrom>
        <DateOrderedTo>dateTime</DateOrderedTo>
        <DateInvoicedFrom>dateTime</DateInvoicedFrom>
        <DateInvoicedTo>dateTime</DateInvoicedTo>
        <InvoiceIdFrom>long</InvoiceIdFrom>
        <InvoiceIdTo>long</InvoiceIdTo>
        <OrderIdFrom>long</OrderIdFrom>
        <OrderIdTo>long</OrderIdTo>
        <CompanyId>long</CompanyId>
        <ForFactoring>none or True or False</ForFactoring>
        <ChangedAfter>dateTime</ChangedAfter>
        <OrderStatus>
          <StatusTypes>Proposal or Pack or Invoiced or Web or Repeating or Collecting or Return or Rest or ForInvoicing or OvertimeRent or Confirmed or Sent or Production or PaymentReminder or OnAccount or Lended or InvoicedCashAccounted or InvoicedPack or Inactive or Hours or Unknown</StatusTypes>
          <StatusTypes>Proposal or Pack or Invoiced or Web or Repeating or Collecting or Return or Rest or ForInvoicing or OvertimeRent or Confirmed or Sent or Production or PaymentReminder or OnAccount or Lended or InvoicedCashAccounted or InvoicedPack or Inactive or Hours or Unknown</StatusTypes>
        </OrderStatus>
        <ExternalStatus>int</ExternalStatus>
        <Paid>none or True or False</Paid>
        <PaidAfter>dateTime</PaidAfter>
        <PaidBefore>dateTime</PaidBefore>
      </invoiceSearch>
    </GetInvoices>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <GetInvoicesResponse xmlns="http://24sevenOffice.com/webservices">
      <GetInvoicesResult>
        <InvoiceItem>
          <OrderId>long</OrderId>
          <CompanyId>long</CompanyId>
          <CompanyName>string</CompanyName>
          <DeliveryName>string</DeliveryName>
          <Addresses>
            <Address xsi:nil="true" />
            <Address xsi:nil="true" />
          </Addresses>
          <OrderStatus>Proposal or Pack or Invoiced or Web or Repeating or Collecting or Return or Rest or ForInvoicing or OvertimeRent or Confirmed or Sent or Production or PaymentReminder or OnAccount or Lended or InvoicedCashAccounted or InvoicedPack or Inactive or Hours or Unknown</OrderStatus>
          <InvoiceId>long</InvoiceId>
          <DateOrdered>dateTime</DateOrdered>
          <DateInvoiced>dateTime</DateInvoiced>
          <PaymentTime>int</PaymentTime>
          <PaymentTimeSpecified>boolean</PaymentTimeSpecified>
          <ReferenceNumber>string</ReferenceNumber>
          <ProjectId>long</ProjectId>
          <OurReference>long</OurReference>
          <YourReference>string</YourReference>
          <TotalSum>decimal</TotalSum>
          <TotalTax>decimal</TotalTax>
          <InvoiceTitle>string</InvoiceTitle>
          <InvoiceText>string</InvoiceText>
          <Paid>dateTime</Paid>
          <TypeOfSale>Credit or Cash or Foreign or NonVATable or Auto</TypeOfSale>
          <IncVAT>boolean</IncVAT>
          <ShowIncVat>none or True or False</ShowIncVat>
          <KID>string</KID>
          <RoundFactor>decimal</RoundFactor>
          <RoundType>none or Quarter or Half or Whole</RoundType>
          <Commissions>
            <CommissionItem xsi:nil="true" />
            <CommissionItem xsi:nil="true" />
          </Commissions>
          <InvoiceRows>
            <InvoiceRowItem xsi:nil="true" />
            <InvoiceRowItem xsi:nil="true" />
          </InvoiceRows>
          <SendToFactoring>boolean</SendToFactoring>
          <ToFactoring>Auto or True or False or UseOldProperty</ToFactoring>
          <Currency>string</Currency>
          <CurrencyRate>decimal</CurrencyRate>
          <ExternalStatus>int</ExternalStatus>
          <Active>boolean</Active>
          <PaymentMethodId>int</PaymentMethodId>
          <PaymentAmount>decimal</PaymentAmount>
          <InvoiceReference>long</InvoiceReference>
          <RefOrderId>long</RefOrderId>
          <CreditNote>boolean</CreditNote>
          <sysExpandStructure>boolean</sysExpandStructure>
          <sysUseSystemDiscount>boolean</sysUseSystemDiscount>
        </InvoiceItem>
        <InvoiceItem>
          <OrderId>long</OrderId>
          <CompanyId>long</CompanyId>
          <CompanyName>string</CompanyName>
          <DeliveryName>string</DeliveryName>
          <Addresses>
            <Address xsi:nil="true" />
            <Address xsi:nil="true" />
          </Addresses>
          <OrderStatus>Proposal or Pack or Invoiced or Web or Repeating or Collecting or Return or Rest or ForInvoicing or OvertimeRent or Confirmed or Sent or Production or PaymentReminder or OnAccount or Lended or InvoicedCashAccounted or InvoicedPack or Inactive or Hours or Unknown</OrderStatus>
          <InvoiceId>long</InvoiceId>
          <DateOrdered>dateTime</DateOrdered>
          <DateInvoiced>dateTime</DateInvoiced>
          <PaymentTime>int</PaymentTime>
          <PaymentTimeSpecified>boolean</PaymentTimeSpecified>
          <ReferenceNumber>string</ReferenceNumber>
          <ProjectId>long</ProjectId>
          <OurReference>long</OurReference>
          <YourReference>string</YourReference>
          <TotalSum>decimal</TotalSum>
          <TotalTax>decimal</TotalTax>
          <InvoiceTitle>string</InvoiceTitle>
          <InvoiceText>string</InvoiceText>
          <Paid>dateTime</Paid>
          <TypeOfSale>Credit or Cash or Foreign or NonVATable or Auto</TypeOfSale>
          <IncVAT>boolean</IncVAT>
          <ShowIncVat>none or True or False</ShowIncVat>
          <KID>string</KID>
          <RoundFactor>decimal</RoundFactor>
          <RoundType>none or Quarter or Half or Whole</RoundType>
          <Commissions>
            <CommissionItem xsi:nil="true" />
            <CommissionItem xsi:nil="true" />
          </Commissions>
          <InvoiceRows>
            <InvoiceRowItem xsi:nil="true" />
            <InvoiceRowItem xsi:nil="true" />
          </InvoiceRows>
          <SendToFactoring>boolean</SendToFactoring>
          <ToFactoring>Auto or True or False or UseOldProperty</ToFactoring>
          <Currency>string</Currency>
          <CurrencyRate>decimal</CurrencyRate>
          <ExternalStatus>int</ExternalStatus>
          <Active>boolean</Active>
          <PaymentMethodId>int</PaymentMethodId>
          <PaymentAmount>decimal</PaymentAmount>
          <InvoiceReference>long</InvoiceReference>
          <RefOrderId>long</RefOrderId>
          <CreditNote>boolean</CreditNote>
          <sysExpandStructure>boolean</sysExpandStructure>
          <sysUseSystemDiscount>boolean</sysUseSystemDiscount>
        </InvoiceItem>
      </GetInvoicesResult>
    </GetInvoicesResponse>
  </soap12:Body>
</soap12:Envelope>