InvoiceService


Click here for a complete list of operations.

GetInvoices

Gets a list of invoices and orders based on search parameters. You have to specify which properties you want returned.

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/InvoiceOrder/V001/InvoiceService.asmx HTTP/1.1
Host: api.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:Body>
    <GetInvoices xmlns="http://24sevenOffice.com/webservices">
      <searchParams>
        <CustomerIds>
          <int>int</int>
          <int>int</int>
        </CustomerIds>
        <ChangedAfter>dateTime</ChangedAfter>
        <OrderStates>
          <OrderSlipStateType>None or Offer or Pack or Invoiced or Web or Repeating or CollectingOrder or Return or Distribution or Rest or ForInvoicing or OvertimeRent or Confirmed or OrderState_Sent or Production or PaymentReminder or OnAccount or Lending or InvoicedCashAccount or InvoicedPack or Inactive or Hours or OrderState_SuperStore or Draft</OrderSlipStateType>
          <OrderSlipStateType>None or Offer or Pack or Invoiced or Web or Repeating or CollectingOrder or Return or Distribution or Rest or ForInvoicing or OvertimeRent or Confirmed or OrderState_Sent or Production or PaymentReminder or OnAccount or Lending or InvoicedCashAccount or InvoicedPack or Inactive or Hours or OrderState_SuperStore or Draft</OrderSlipStateType>
        </OrderStates>
        <InvoiceIds>
          <int>int</int>
          <int>int</int>
        </InvoiceIds>
        <OrderIds>
          <int>int</int>
          <int>int</int>
        </OrderIds>
        <ExternalStatus>
          <int>int</int>
          <int>int</int>
        </ExternalStatus>
      </searchParams>
      <invoiceReturnProperties>
        <string>string</string>
        <string>string</string>
      </invoiceReturnProperties>
      <rowReturnProperties>
        <string>string</string>
        <string>string</string>
      </rowReturnProperties>
    </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>
        <InvoiceOrder>
          <OrderId>int</OrderId>
          <CustomerId>int</CustomerId>
          <CustomerName>string</CustomerName>
          <CustomerDeliveryName>string</CustomerDeliveryName>
          <CustomerDeliveryPhone>string</CustomerDeliveryPhone>
          <Addresses>
            <Post xsi:nil="true" />
            <Delivery xsi:nil="true" />
            <Visit xsi:nil="true" />
            <Invoice xsi:nil="true" />
          </Addresses>
          <OrderStatus>None or Offer or Pack or Invoiced or Web or Repeating or CollectingOrder or Return or Distribution or Rest or ForInvoicing or OvertimeRent or Confirmed or OrderState_Sent or Production or PaymentReminder or OnAccount or Lending or InvoicedCashAccount or InvoicedPack or Inactive or Hours or OrderState_SuperStore or Draft</OrderStatus>
          <InvoiceId>int</InvoiceId>
          <DateOrdered>dateTime</DateOrdered>
          <DateInvoiced>dateTime</DateInvoiced>
          <DateChanged>dateTime</DateChanged>
          <PaymentTime>int</PaymentTime>
          <CustomerReferenceNo>string</CustomerReferenceNo>
          <ProjectId>int</ProjectId>
          <OurReference>int</OurReference>
          <IncludeVAT>boolean</IncludeVAT>
          <YourReference>string</YourReference>
          <OrderTotalIncVat>decimal</OrderTotalIncVat>
          <OrderTotalVat>decimal</OrderTotalVat>
          <InvoiceTitle>string</InvoiceTitle>
          <InvoiceText>string</InvoiceText>
          <Paid>dateTime</Paid>
          <OCR>string</OCR>
          <CustomerOrgNo>string</CustomerOrgNo>
          <Currency>
            <Rate>decimal</Rate>
            <Unit>short</Unit>
            <Symbol>string</Symbol>
          </Currency>
          <PaymentMethodId>int</PaymentMethodId>
          <PaymentAmount>decimal</PaymentAmount>
          <ProductionManagerId>int</ProductionManagerId>
          <SalesOpportunityId>int</SalesOpportunityId>
          <TypeOfSaleId>int</TypeOfSaleId>
          <Distributor>Default or Manual or Auto</Distributor>
          <DistributionMethod>Unchanged or Print or EMail or ElectronicInvoice</DistributionMethod>
          <DepartmentId>int</DepartmentId>
          <ExternalStatus>int</ExternalStatus>
          <InvoiceEmailAddress>string</InvoiceEmailAddress>
          <InvoiceRows>
            <InvoiceRow xsi:nil="true" />
            <InvoiceRow xsi:nil="true" />
          </InvoiceRows>
          <APIException>
            <Type>string</Type>
            <Message>string</Message>
            <StackTrace>string</StackTrace>
          </APIException>
          <ProductionNumber>string</ProductionNumber>
          <DeliveryDate>dateTime</DeliveryDate>
          <ReferenceInvoiceId>int</ReferenceInvoiceId>
          <ReferenceOrderId>int</ReferenceOrderId>
          <ReferenceNumber>string</ReferenceNumber>
          <SkipStock>boolean</SkipStock>
          <AccrualDate>dateTime</AccrualDate>
          <AccrualLength>int</AccrualLength>
          <RoundFactor>decimal</RoundFactor>
          <InvoiceTemplateId>guid</InvoiceTemplateId>
          <VippsNumber>string</VippsNumber>
          <DeliveryMethod>
            <Id>int</Id>
            <Description>string</Description>
          </DeliveryMethod>
          <DeliveryAlternative>string</DeliveryAlternative>
          <SendToFactoring>boolean</SendToFactoring>
          <Commission>decimal</Commission>
        </InvoiceOrder>
        <InvoiceOrder>
          <OrderId>int</OrderId>
          <CustomerId>int</CustomerId>
          <CustomerName>string</CustomerName>
          <CustomerDeliveryName>string</CustomerDeliveryName>
          <CustomerDeliveryPhone>string</CustomerDeliveryPhone>
          <Addresses>
            <Post xsi:nil="true" />
            <Delivery xsi:nil="true" />
            <Visit xsi:nil="true" />
            <Invoice xsi:nil="true" />
          </Addresses>
          <OrderStatus>None or Offer or Pack or Invoiced or Web or Repeating or CollectingOrder or Return or Distribution or Rest or ForInvoicing or OvertimeRent or Confirmed or OrderState_Sent or Production or PaymentReminder or OnAccount or Lending or InvoicedCashAccount or InvoicedPack or Inactive or Hours or OrderState_SuperStore or Draft</OrderStatus>
          <InvoiceId>int</InvoiceId>
          <DateOrdered>dateTime</DateOrdered>
          <DateInvoiced>dateTime</DateInvoiced>
          <DateChanged>dateTime</DateChanged>
          <PaymentTime>int</PaymentTime>
          <CustomerReferenceNo>string</CustomerReferenceNo>
          <ProjectId>int</ProjectId>
          <OurReference>int</OurReference>
          <IncludeVAT>boolean</IncludeVAT>
          <YourReference>string</YourReference>
          <OrderTotalIncVat>decimal</OrderTotalIncVat>
          <OrderTotalVat>decimal</OrderTotalVat>
          <InvoiceTitle>string</InvoiceTitle>
          <InvoiceText>string</InvoiceText>
          <Paid>dateTime</Paid>
          <OCR>string</OCR>
          <CustomerOrgNo>string</CustomerOrgNo>
          <Currency>
            <Rate>decimal</Rate>
            <Unit>short</Unit>
            <Symbol>string</Symbol>
          </Currency>
          <PaymentMethodId>int</PaymentMethodId>
          <PaymentAmount>decimal</PaymentAmount>
          <ProductionManagerId>int</ProductionManagerId>
          <SalesOpportunityId>int</SalesOpportunityId>
          <TypeOfSaleId>int</TypeOfSaleId>
          <Distributor>Default or Manual or Auto</Distributor>
          <DistributionMethod>Unchanged or Print or EMail or ElectronicInvoice</DistributionMethod>
          <DepartmentId>int</DepartmentId>
          <ExternalStatus>int</ExternalStatus>
          <InvoiceEmailAddress>string</InvoiceEmailAddress>
          <InvoiceRows>
            <InvoiceRow xsi:nil="true" />
            <InvoiceRow xsi:nil="true" />
          </InvoiceRows>
          <APIException>
            <Type>string</Type>
            <Message>string</Message>
            <StackTrace>string</StackTrace>
          </APIException>
          <ProductionNumber>string</ProductionNumber>
          <DeliveryDate>dateTime</DeliveryDate>
          <ReferenceInvoiceId>int</ReferenceInvoiceId>
          <ReferenceOrderId>int</ReferenceOrderId>
          <ReferenceNumber>string</ReferenceNumber>
          <SkipStock>boolean</SkipStock>
          <AccrualDate>dateTime</AccrualDate>
          <AccrualLength>int</AccrualLength>
          <RoundFactor>decimal</RoundFactor>
          <InvoiceTemplateId>guid</InvoiceTemplateId>
          <VippsNumber>string</VippsNumber>
          <DeliveryMethod>
            <Id>int</Id>
            <Description>string</Description>
          </DeliveryMethod>
          <DeliveryAlternative>string</DeliveryAlternative>
          <SendToFactoring>boolean</SendToFactoring>
          <Commission>decimal</Commission>
        </InvoiceOrder>
      </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/InvoiceOrder/V001/InvoiceService.asmx HTTP/1.1
Host: api.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:Body>
    <GetInvoices xmlns="http://24sevenOffice.com/webservices">
      <searchParams>
        <CustomerIds>
          <int>int</int>
          <int>int</int>
        </CustomerIds>
        <ChangedAfter>dateTime</ChangedAfter>
        <OrderStates>
          <OrderSlipStateType>None or Offer or Pack or Invoiced or Web or Repeating or CollectingOrder or Return or Distribution or Rest or ForInvoicing or OvertimeRent or Confirmed or OrderState_Sent or Production or PaymentReminder or OnAccount or Lending or InvoicedCashAccount or InvoicedPack or Inactive or Hours or OrderState_SuperStore or Draft</OrderSlipStateType>
          <OrderSlipStateType>None or Offer or Pack or Invoiced or Web or Repeating or CollectingOrder or Return or Distribution or Rest or ForInvoicing or OvertimeRent or Confirmed or OrderState_Sent or Production or PaymentReminder or OnAccount or Lending or InvoicedCashAccount or InvoicedPack or Inactive or Hours or OrderState_SuperStore or Draft</OrderSlipStateType>
        </OrderStates>
        <InvoiceIds>
          <int>int</int>
          <int>int</int>
        </InvoiceIds>
        <OrderIds>
          <int>int</int>
          <int>int</int>
        </OrderIds>
        <ExternalStatus>
          <int>int</int>
          <int>int</int>
        </ExternalStatus>
      </searchParams>
      <invoiceReturnProperties>
        <string>string</string>
        <string>string</string>
      </invoiceReturnProperties>
      <rowReturnProperties>
        <string>string</string>
        <string>string</string>
      </rowReturnProperties>
    </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>
        <InvoiceOrder>
          <OrderId>int</OrderId>
          <CustomerId>int</CustomerId>
          <CustomerName>string</CustomerName>
          <CustomerDeliveryName>string</CustomerDeliveryName>
          <CustomerDeliveryPhone>string</CustomerDeliveryPhone>
          <Addresses>
            <Post xsi:nil="true" />
            <Delivery xsi:nil="true" />
            <Visit xsi:nil="true" />
            <Invoice xsi:nil="true" />
          </Addresses>
          <OrderStatus>None or Offer or Pack or Invoiced or Web or Repeating or CollectingOrder or Return or Distribution or Rest or ForInvoicing or OvertimeRent or Confirmed or OrderState_Sent or Production or PaymentReminder or OnAccount or Lending or InvoicedCashAccount or InvoicedPack or Inactive or Hours or OrderState_SuperStore or Draft</OrderStatus>
          <InvoiceId>int</InvoiceId>
          <DateOrdered>dateTime</DateOrdered>
          <DateInvoiced>dateTime</DateInvoiced>
          <DateChanged>dateTime</DateChanged>
          <PaymentTime>int</PaymentTime>
          <CustomerReferenceNo>string</CustomerReferenceNo>
          <ProjectId>int</ProjectId>
          <OurReference>int</OurReference>
          <IncludeVAT>boolean</IncludeVAT>
          <YourReference>string</YourReference>
          <OrderTotalIncVat>decimal</OrderTotalIncVat>
          <OrderTotalVat>decimal</OrderTotalVat>
          <InvoiceTitle>string</InvoiceTitle>
          <InvoiceText>string</InvoiceText>
          <Paid>dateTime</Paid>
          <OCR>string</OCR>
          <CustomerOrgNo>string</CustomerOrgNo>
          <Currency>
            <Rate>decimal</Rate>
            <Unit>short</Unit>
            <Symbol>string</Symbol>
          </Currency>
          <PaymentMethodId>int</PaymentMethodId>
          <PaymentAmount>decimal</PaymentAmount>
          <ProductionManagerId>int</ProductionManagerId>
          <SalesOpportunityId>int</SalesOpportunityId>
          <TypeOfSaleId>int</TypeOfSaleId>
          <Distributor>Default or Manual or Auto</Distributor>
          <DistributionMethod>Unchanged or Print or EMail or ElectronicInvoice</DistributionMethod>
          <DepartmentId>int</DepartmentId>
          <ExternalStatus>int</ExternalStatus>
          <InvoiceEmailAddress>string</InvoiceEmailAddress>
          <InvoiceRows>
            <InvoiceRow xsi:nil="true" />
            <InvoiceRow xsi:nil="true" />
          </InvoiceRows>
          <APIException>
            <Type>string</Type>
            <Message>string</Message>
            <StackTrace>string</StackTrace>
          </APIException>
          <ProductionNumber>string</ProductionNumber>
          <DeliveryDate>dateTime</DeliveryDate>
          <ReferenceInvoiceId>int</ReferenceInvoiceId>
          <ReferenceOrderId>int</ReferenceOrderId>
          <ReferenceNumber>string</ReferenceNumber>
          <SkipStock>boolean</SkipStock>
          <AccrualDate>dateTime</AccrualDate>
          <AccrualLength>int</AccrualLength>
          <RoundFactor>decimal</RoundFactor>
          <InvoiceTemplateId>guid</InvoiceTemplateId>
          <VippsNumber>string</VippsNumber>
          <DeliveryMethod>
            <Id>int</Id>
            <Description>string</Description>
          </DeliveryMethod>
          <DeliveryAlternative>string</DeliveryAlternative>
          <SendToFactoring>boolean</SendToFactoring>
          <Commission>decimal</Commission>
        </InvoiceOrder>
        <InvoiceOrder>
          <OrderId>int</OrderId>
          <CustomerId>int</CustomerId>
          <CustomerName>string</CustomerName>
          <CustomerDeliveryName>string</CustomerDeliveryName>
          <CustomerDeliveryPhone>string</CustomerDeliveryPhone>
          <Addresses>
            <Post xsi:nil="true" />
            <Delivery xsi:nil="true" />
            <Visit xsi:nil="true" />
            <Invoice xsi:nil="true" />
          </Addresses>
          <OrderStatus>None or Offer or Pack or Invoiced or Web or Repeating or CollectingOrder or Return or Distribution or Rest or ForInvoicing or OvertimeRent or Confirmed or OrderState_Sent or Production or PaymentReminder or OnAccount or Lending or InvoicedCashAccount or InvoicedPack or Inactive or Hours or OrderState_SuperStore or Draft</OrderStatus>
          <InvoiceId>int</InvoiceId>
          <DateOrdered>dateTime</DateOrdered>
          <DateInvoiced>dateTime</DateInvoiced>
          <DateChanged>dateTime</DateChanged>
          <PaymentTime>int</PaymentTime>
          <CustomerReferenceNo>string</CustomerReferenceNo>
          <ProjectId>int</ProjectId>
          <OurReference>int</OurReference>
          <IncludeVAT>boolean</IncludeVAT>
          <YourReference>string</YourReference>
          <OrderTotalIncVat>decimal</OrderTotalIncVat>
          <OrderTotalVat>decimal</OrderTotalVat>
          <InvoiceTitle>string</InvoiceTitle>
          <InvoiceText>string</InvoiceText>
          <Paid>dateTime</Paid>
          <OCR>string</OCR>
          <CustomerOrgNo>string</CustomerOrgNo>
          <Currency>
            <Rate>decimal</Rate>
            <Unit>short</Unit>
            <Symbol>string</Symbol>
          </Currency>
          <PaymentMethodId>int</PaymentMethodId>
          <PaymentAmount>decimal</PaymentAmount>
          <ProductionManagerId>int</ProductionManagerId>
          <SalesOpportunityId>int</SalesOpportunityId>
          <TypeOfSaleId>int</TypeOfSaleId>
          <Distributor>Default or Manual or Auto</Distributor>
          <DistributionMethod>Unchanged or Print or EMail or ElectronicInvoice</DistributionMethod>
          <DepartmentId>int</DepartmentId>
          <ExternalStatus>int</ExternalStatus>
          <InvoiceEmailAddress>string</InvoiceEmailAddress>
          <InvoiceRows>
            <InvoiceRow xsi:nil="true" />
            <InvoiceRow xsi:nil="true" />
          </InvoiceRows>
          <APIException>
            <Type>string</Type>
            <Message>string</Message>
            <StackTrace>string</StackTrace>
          </APIException>
          <ProductionNumber>string</ProductionNumber>
          <DeliveryDate>dateTime</DeliveryDate>
          <ReferenceInvoiceId>int</ReferenceInvoiceId>
          <ReferenceOrderId>int</ReferenceOrderId>
          <ReferenceNumber>string</ReferenceNumber>
          <SkipStock>boolean</SkipStock>
          <AccrualDate>dateTime</AccrualDate>
          <AccrualLength>int</AccrualLength>
          <RoundFactor>decimal</RoundFactor>
          <InvoiceTemplateId>guid</InvoiceTemplateId>
          <VippsNumber>string</VippsNumber>
          <DeliveryMethod>
            <Id>int</Id>
            <Description>string</Description>
          </DeliveryMethod>
          <DeliveryAlternative>string</DeliveryAlternative>
          <SendToFactoring>boolean</SendToFactoring>
          <Commission>decimal</Commission>
        </InvoiceOrder>
      </GetInvoicesResult>
    </GetInvoicesResponse>
  </soap12:Body>
</soap12:Envelope>