InvoiceService
Click here for a complete list of operations.
SaveInvoice
Register your invoice
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/SaveInvoice"
<?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>
<SaveInvoice xmlns="http://24sevenOffice.com/webservices">
<invoiceItem>
<OrderId>long</OrderId>
<CompanyId>long</CompanyId>
<CompanyName>string</CompanyName>
<DeliveryName>string</DeliveryName>
<Addresses>
<Address>
<Type>Invoice or Delivery</Type>
<Name>string</Name>
<Description>string</Description>
<Street>string</Street>
<PostalCode>string</PostalCode>
<PostalArea>string</PostalArea>
<City>string</City>
<State>string</State>
<Country>string</Country>
</Address>
<Address>
<Type>Invoice or Delivery</Type>
<Name>string</Name>
<Description>string</Description>
<Street>string</Street>
<PostalCode>string</PostalCode>
<PostalArea>string</PostalArea>
<City>string</City>
<State>string</State>
<Country>string</Country>
</Address>
</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>
<RecipientId>long</RecipientId>
<RecipientName>string</RecipientName>
<RecipientType>Customer or Contact or Employee</RecipientType>
<Amount>decimal</Amount>
<Percentage>decimal</Percentage>
<DefaultField>Amount or Percent</DefaultField>
</CommissionItem>
<CommissionItem>
<RecipientId>long</RecipientId>
<RecipientName>string</RecipientName>
<RecipientType>Customer or Contact or Employee</RecipientType>
<Amount>decimal</Amount>
<Percentage>decimal</Percentage>
<DefaultField>Amount or Percent</DefaultField>
</CommissionItem>
</Commissions>
<InvoiceRows>
<InvoiceRowItem>
<ProductId>long</ProductId>
<ProductNo>string</ProductNo>
<ProductName>string</ProductName>
<Price>decimal</Price>
<InPrice>decimal</InPrice>
<Discount>decimal</Discount>
<Quantity>decimal</Quantity>
<VatRate>decimal</VatRate>
<Type>Normal or Text or TextStrong</Type>
<IsStructureProduct>boolean</IsStructureProduct>
<PriceCalc>Accumulated or Fixed or FixedWithSub or none</PriceCalc>
<MainProductId>long</MainProductId>
</InvoiceRowItem>
<InvoiceRowItem>
<ProductId>long</ProductId>
<ProductNo>string</ProductNo>
<ProductName>string</ProductName>
<Price>decimal</Price>
<InPrice>decimal</InPrice>
<Discount>decimal</Discount>
<Quantity>decimal</Quantity>
<VatRate>decimal</VatRate>
<Type>Normal or Text or TextStrong</Type>
<IsStructureProduct>boolean</IsStructureProduct>
<PriceCalc>Accumulated or Fixed or FixedWithSub or none</PriceCalc>
<MainProductId>long</MainProductId>
</InvoiceRowItem>
</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>
</SaveInvoice>
</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>
<SaveInvoiceResponse xmlns="http://24sevenOffice.com/webservices">
<SaveInvoiceResult>int</SaveInvoiceResult>
</SaveInvoiceResponse>
</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>
<SaveInvoice xmlns="http://24sevenOffice.com/webservices">
<invoiceItem>
<OrderId>long</OrderId>
<CompanyId>long</CompanyId>
<CompanyName>string</CompanyName>
<DeliveryName>string</DeliveryName>
<Addresses>
<Address>
<Type>Invoice or Delivery</Type>
<Name>string</Name>
<Description>string</Description>
<Street>string</Street>
<PostalCode>string</PostalCode>
<PostalArea>string</PostalArea>
<City>string</City>
<State>string</State>
<Country>string</Country>
</Address>
<Address>
<Type>Invoice or Delivery</Type>
<Name>string</Name>
<Description>string</Description>
<Street>string</Street>
<PostalCode>string</PostalCode>
<PostalArea>string</PostalArea>
<City>string</City>
<State>string</State>
<Country>string</Country>
</Address>
</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>
<RecipientId>long</RecipientId>
<RecipientName>string</RecipientName>
<RecipientType>Customer or Contact or Employee</RecipientType>
<Amount>decimal</Amount>
<Percentage>decimal</Percentage>
<DefaultField>Amount or Percent</DefaultField>
</CommissionItem>
<CommissionItem>
<RecipientId>long</RecipientId>
<RecipientName>string</RecipientName>
<RecipientType>Customer or Contact or Employee</RecipientType>
<Amount>decimal</Amount>
<Percentage>decimal</Percentage>
<DefaultField>Amount or Percent</DefaultField>
</CommissionItem>
</Commissions>
<InvoiceRows>
<InvoiceRowItem>
<ProductId>long</ProductId>
<ProductNo>string</ProductNo>
<ProductName>string</ProductName>
<Price>decimal</Price>
<InPrice>decimal</InPrice>
<Discount>decimal</Discount>
<Quantity>decimal</Quantity>
<VatRate>decimal</VatRate>
<Type>Normal or Text or TextStrong</Type>
<IsStructureProduct>boolean</IsStructureProduct>
<PriceCalc>Accumulated or Fixed or FixedWithSub or none</PriceCalc>
<MainProductId>long</MainProductId>
</InvoiceRowItem>
<InvoiceRowItem>
<ProductId>long</ProductId>
<ProductNo>string</ProductNo>
<ProductName>string</ProductName>
<Price>decimal</Price>
<InPrice>decimal</InPrice>
<Discount>decimal</Discount>
<Quantity>decimal</Quantity>
<VatRate>decimal</VatRate>
<Type>Normal or Text or TextStrong</Type>
<IsStructureProduct>boolean</IsStructureProduct>
<PriceCalc>Accumulated or Fixed or FixedWithSub or none</PriceCalc>
<MainProductId>long</MainProductId>
</InvoiceRowItem>
</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>
</SaveInvoice>
</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>
<SaveInvoiceResponse xmlns="http://24sevenOffice.com/webservices">
<SaveInvoiceResult>int</SaveInvoiceResult>
</SaveInvoiceResponse>
</soap12:Body>
</soap12:Envelope>