InvoiceService
Click here for a complete list of operations.
GetInvoiceResponse
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 /WAPI/InvoiceService.asmx HTTP/1.1 Host: support.cobraconto.net Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://www.cobraconto.net/webservices/wapi/GetInvoiceResponse" <?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> <GetInvoiceResponse xmlns="http://www.cobraconto.net/webservices/wapi/"> <auth> <User>string</User> <Password>string</Password> </auth> <transactionId>string</transactionId> <invoiceId>int</invoiceId> <includeInvoiceItems>boolean</includeInvoiceItems> </GetInvoiceResponse> </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> <GetInvoiceResponseResponse xmlns="http://www.cobraconto.net/webservices/wapi/"> <GetInvoiceResponseResult> <Id>int</Id> <Status>int</Status> <AvatarId>int</AvatarId> <CancellationState>int</CancellationState> <VoucherNum>string</VoucherNum> <Total>decimal</Total> <Amount>decimal</Amount> <Tax>decimal</Tax> <Paid>decimal</Paid> <Balance>decimal</Balance> <CurrencyId>string</CurrencyId> <FinalizedAt>dateTime</FinalizedAt> <InvoiceDate>dateTime</InvoiceDate> <CompletionDate>dateTime</CompletionDate> <FulFilmentDate>dateTime</FulFilmentDate> <DueDate>dateTime</DueDate> <PaymentId>int</PaymentId> <PaymentName>string</PaymentName> <PartnerId>int</PartnerId> <DepartmentId>int</DepartmentId> <PartnerCode>string</PartnerCode> <PartnerName>string</PartnerName> <AddressLine>string</AddressLine> <VATRegNo>string</VATRegNo> <EUVATRegNo>string</EUVATRegNo> <GROUPVATRegNo>string</GROUPVATRegNo> <DefaultFileStoreId>int</DefaultFileStoreId> <FinanceReceivableId>int</FinanceReceivableId> <HeadNoteDefault>string</HeadNoteDefault> <FootNoteDefault>string</FootNoteDefault> <IsAggregate>boolean</IsAggregate> <RemotePrint>boolean</RemotePrint> <ChainRootId>int</ChainRootId> <ChainIndex>int</ChainIndex> <OnlineTransactionId>string</OnlineTransactionId> <InvoiceItems> <Id>int</Id> <InvoiceId>int</InvoiceId> <TaxTypeId>int</TaxTypeId> <TaxId>int</TaxId> <ItemNr>int</ItemNr> <ProductId>int</ProductId> <DescriptionDefault>string</DescriptionDefault> <Quantity>decimal</Quantity> <MeasureDefault>string</MeasureDefault> <UnitPrice>decimal</UnitPrice> <Amount>decimal</Amount> <Tax>decimal</Tax> <Total>decimal</Total> <CN>string</CN> <DescriptionForeign>string</DescriptionForeign> <MeasureForeign>string</MeasureForeign> <NoteDefault>string</NoteDefault> <NoteForeign>string</NoteForeign> <StockId>int</StockId> <ReferencePartNo>string</ReferencePartNo> <MoveId>int</MoveId> <AccountId>int</AccountId> <ParallelAccountId>int</ParallelAccountId> <CompletionItemId>int</CompletionItemId> <EcoTaxCode>string</EcoTaxCode> <EcoTaxValue>decimal</EcoTaxValue> <ClientPartNo>string</ClientPartNo> <InvoiceItemId>int</InvoiceItemId> <ItemTypeId>int</ItemTypeId> <BaseUnitPrice>decimal</BaseUnitPrice> <OffUnitPrice>decimal</OffUnitPrice> <BaseAmount>decimal</BaseAmount> <OffAmount>decimal</OffAmount> <BaseTax>decimal</BaseTax> <OffTax>decimal</OffTax> <BaseTotal>decimal</BaseTotal> <OffTotal>decimal</OffTotal> <DiscountPercent>decimal</DiscountPercent> <IsDiscountPercent>boolean</IsDiscountPercent> <MediatedService>boolean</MediatedService> <ItemCompletionDate>dateTime</ItemCompletionDate> <ItemCurrencyRate>decimal</ItemCurrencyRate> <ItemTaxCurrencyRate>decimal</ItemTaxCurrencyRate> <GrossUnitPrice>boolean</GrossUnitPrice> <InvoiceItemCollectors> <InvoiceItemId>int</InvoiceItemId> <CollectorId>int</CollectorId> <Amount>decimal</Amount> <Percent>decimal</Percent> <CategoryId>int</CategoryId> <IsPercent>boolean</IsPercent> <LedgerRelated>boolean</LedgerRelated> <StockRelated>boolean</StockRelated> </InvoiceItemCollectors> <InvoiceItemCollectors> <InvoiceItemId>int</InvoiceItemId> <CollectorId>int</CollectorId> <Amount>decimal</Amount> <Percent>decimal</Percent> <CategoryId>int</CategoryId> <IsPercent>boolean</IsPercent> <LedgerRelated>boolean</LedgerRelated> <StockRelated>boolean</StockRelated> </InvoiceItemCollectors> <InvoiceItemIdentifiers> <InvoiceItemId>int</InvoiceItemId> <StockId>int</StockId> <Quantity>decimal</Quantity> <Identifier>string</Identifier> </InvoiceItemIdentifiers> <InvoiceItemIdentifiers> <InvoiceItemId>int</InvoiceItemId> <StockId>int</StockId> <Quantity>decimal</Quantity> <Identifier>string</Identifier> </InvoiceItemIdentifiers> </InvoiceItems> <InvoiceItems> <Id>int</Id> <InvoiceId>int</InvoiceId> <TaxTypeId>int</TaxTypeId> <TaxId>int</TaxId> <ItemNr>int</ItemNr> <ProductId>int</ProductId> <DescriptionDefault>string</DescriptionDefault> <Quantity>decimal</Quantity> <MeasureDefault>string</MeasureDefault> <UnitPrice>decimal</UnitPrice> <Amount>decimal</Amount> <Tax>decimal</Tax> <Total>decimal</Total> <CN>string</CN> <DescriptionForeign>string</DescriptionForeign> <MeasureForeign>string</MeasureForeign> <NoteDefault>string</NoteDefault> <NoteForeign>string</NoteForeign> <StockId>int</StockId> <ReferencePartNo>string</ReferencePartNo> <MoveId>int</MoveId> <AccountId>int</AccountId> <ParallelAccountId>int</ParallelAccountId> <CompletionItemId>int</CompletionItemId> <EcoTaxCode>string</EcoTaxCode> <EcoTaxValue>decimal</EcoTaxValue> <ClientPartNo>string</ClientPartNo> <InvoiceItemId>int</InvoiceItemId> <ItemTypeId>int</ItemTypeId> <BaseUnitPrice>decimal</BaseUnitPrice> <OffUnitPrice>decimal</OffUnitPrice> <BaseAmount>decimal</BaseAmount> <OffAmount>decimal</OffAmount> <BaseTax>decimal</BaseTax> <OffTax>decimal</OffTax> <BaseTotal>decimal</BaseTotal> <OffTotal>decimal</OffTotal> <DiscountPercent>decimal</DiscountPercent> <IsDiscountPercent>boolean</IsDiscountPercent> <MediatedService>boolean</MediatedService> <ItemCompletionDate>dateTime</ItemCompletionDate> <ItemCurrencyRate>decimal</ItemCurrencyRate> <ItemTaxCurrencyRate>decimal</ItemTaxCurrencyRate> <GrossUnitPrice>boolean</GrossUnitPrice> <InvoiceItemCollectors> <InvoiceItemId>int</InvoiceItemId> <CollectorId>int</CollectorId> <Amount>decimal</Amount> <Percent>decimal</Percent> <CategoryId>int</CategoryId> <IsPercent>boolean</IsPercent> <LedgerRelated>boolean</LedgerRelated> <StockRelated>boolean</StockRelated> </InvoiceItemCollectors> <InvoiceItemCollectors> <InvoiceItemId>int</InvoiceItemId> <CollectorId>int</CollectorId> <Amount>decimal</Amount> <Percent>decimal</Percent> <CategoryId>int</CategoryId> <IsPercent>boolean</IsPercent> <LedgerRelated>boolean</LedgerRelated> <StockRelated>boolean</StockRelated> </InvoiceItemCollectors> <InvoiceItemIdentifiers> <InvoiceItemId>int</InvoiceItemId> <StockId>int</StockId> <Quantity>decimal</Quantity> <Identifier>string</Identifier> </InvoiceItemIdentifiers> <InvoiceItemIdentifiers> <InvoiceItemId>int</InvoiceItemId> <StockId>int</StockId> <Quantity>decimal</Quantity> <Identifier>string</Identifier> </InvoiceItemIdentifiers> </InvoiceItems> </GetInvoiceResponseResult> </GetInvoiceResponseResponse> </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 /WAPI/InvoiceService.asmx HTTP/1.1 Host: support.cobraconto.net 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> <GetInvoiceResponse xmlns="http://www.cobraconto.net/webservices/wapi/"> <auth> <User>string</User> <Password>string</Password> </auth> <transactionId>string</transactionId> <invoiceId>int</invoiceId> <includeInvoiceItems>boolean</includeInvoiceItems> </GetInvoiceResponse> </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> <GetInvoiceResponseResponse xmlns="http://www.cobraconto.net/webservices/wapi/"> <GetInvoiceResponseResult> <Id>int</Id> <Status>int</Status> <AvatarId>int</AvatarId> <CancellationState>int</CancellationState> <VoucherNum>string</VoucherNum> <Total>decimal</Total> <Amount>decimal</Amount> <Tax>decimal</Tax> <Paid>decimal</Paid> <Balance>decimal</Balance> <CurrencyId>string</CurrencyId> <FinalizedAt>dateTime</FinalizedAt> <InvoiceDate>dateTime</InvoiceDate> <CompletionDate>dateTime</CompletionDate> <FulFilmentDate>dateTime</FulFilmentDate> <DueDate>dateTime</DueDate> <PaymentId>int</PaymentId> <PaymentName>string</PaymentName> <PartnerId>int</PartnerId> <DepartmentId>int</DepartmentId> <PartnerCode>string</PartnerCode> <PartnerName>string</PartnerName> <AddressLine>string</AddressLine> <VATRegNo>string</VATRegNo> <EUVATRegNo>string</EUVATRegNo> <GROUPVATRegNo>string</GROUPVATRegNo> <DefaultFileStoreId>int</DefaultFileStoreId> <FinanceReceivableId>int</FinanceReceivableId> <HeadNoteDefault>string</HeadNoteDefault> <FootNoteDefault>string</FootNoteDefault> <IsAggregate>boolean</IsAggregate> <RemotePrint>boolean</RemotePrint> <ChainRootId>int</ChainRootId> <ChainIndex>int</ChainIndex> <OnlineTransactionId>string</OnlineTransactionId> <InvoiceItems> <Id>int</Id> <InvoiceId>int</InvoiceId> <TaxTypeId>int</TaxTypeId> <TaxId>int</TaxId> <ItemNr>int</ItemNr> <ProductId>int</ProductId> <DescriptionDefault>string</DescriptionDefault> <Quantity>decimal</Quantity> <MeasureDefault>string</MeasureDefault> <UnitPrice>decimal</UnitPrice> <Amount>decimal</Amount> <Tax>decimal</Tax> <Total>decimal</Total> <CN>string</CN> <DescriptionForeign>string</DescriptionForeign> <MeasureForeign>string</MeasureForeign> <NoteDefault>string</NoteDefault> <NoteForeign>string</NoteForeign> <StockId>int</StockId> <ReferencePartNo>string</ReferencePartNo> <MoveId>int</MoveId> <AccountId>int</AccountId> <ParallelAccountId>int</ParallelAccountId> <CompletionItemId>int</CompletionItemId> <EcoTaxCode>string</EcoTaxCode> <EcoTaxValue>decimal</EcoTaxValue> <ClientPartNo>string</ClientPartNo> <InvoiceItemId>int</InvoiceItemId> <ItemTypeId>int</ItemTypeId> <BaseUnitPrice>decimal</BaseUnitPrice> <OffUnitPrice>decimal</OffUnitPrice> <BaseAmount>decimal</BaseAmount> <OffAmount>decimal</OffAmount> <BaseTax>decimal</BaseTax> <OffTax>decimal</OffTax> <BaseTotal>decimal</BaseTotal> <OffTotal>decimal</OffTotal> <DiscountPercent>decimal</DiscountPercent> <IsDiscountPercent>boolean</IsDiscountPercent> <MediatedService>boolean</MediatedService> <ItemCompletionDate>dateTime</ItemCompletionDate> <ItemCurrencyRate>decimal</ItemCurrencyRate> <ItemTaxCurrencyRate>decimal</ItemTaxCurrencyRate> <GrossUnitPrice>boolean</GrossUnitPrice> <InvoiceItemCollectors> <InvoiceItemId>int</InvoiceItemId> <CollectorId>int</CollectorId> <Amount>decimal</Amount> <Percent>decimal</Percent> <CategoryId>int</CategoryId> <IsPercent>boolean</IsPercent> <LedgerRelated>boolean</LedgerRelated> <StockRelated>boolean</StockRelated> </InvoiceItemCollectors> <InvoiceItemCollectors> <InvoiceItemId>int</InvoiceItemId> <CollectorId>int</CollectorId> <Amount>decimal</Amount> <Percent>decimal</Percent> <CategoryId>int</CategoryId> <IsPercent>boolean</IsPercent> <LedgerRelated>boolean</LedgerRelated> <StockRelated>boolean</StockRelated> </InvoiceItemCollectors> <InvoiceItemIdentifiers> <InvoiceItemId>int</InvoiceItemId> <StockId>int</StockId> <Quantity>decimal</Quantity> <Identifier>string</Identifier> </InvoiceItemIdentifiers> <InvoiceItemIdentifiers> <InvoiceItemId>int</InvoiceItemId> <StockId>int</StockId> <Quantity>decimal</Quantity> <Identifier>string</Identifier> </InvoiceItemIdentifiers> </InvoiceItems> <InvoiceItems> <Id>int</Id> <InvoiceId>int</InvoiceId> <TaxTypeId>int</TaxTypeId> <TaxId>int</TaxId> <ItemNr>int</ItemNr> <ProductId>int</ProductId> <DescriptionDefault>string</DescriptionDefault> <Quantity>decimal</Quantity> <MeasureDefault>string</MeasureDefault> <UnitPrice>decimal</UnitPrice> <Amount>decimal</Amount> <Tax>decimal</Tax> <Total>decimal</Total> <CN>string</CN> <DescriptionForeign>string</DescriptionForeign> <MeasureForeign>string</MeasureForeign> <NoteDefault>string</NoteDefault> <NoteForeign>string</NoteForeign> <StockId>int</StockId> <ReferencePartNo>string</ReferencePartNo> <MoveId>int</MoveId> <AccountId>int</AccountId> <ParallelAccountId>int</ParallelAccountId> <CompletionItemId>int</CompletionItemId> <EcoTaxCode>string</EcoTaxCode> <EcoTaxValue>decimal</EcoTaxValue> <ClientPartNo>string</ClientPartNo> <InvoiceItemId>int</InvoiceItemId> <ItemTypeId>int</ItemTypeId> <BaseUnitPrice>decimal</BaseUnitPrice> <OffUnitPrice>decimal</OffUnitPrice> <BaseAmount>decimal</BaseAmount> <OffAmount>decimal</OffAmount> <BaseTax>decimal</BaseTax> <OffTax>decimal</OffTax> <BaseTotal>decimal</BaseTotal> <OffTotal>decimal</OffTotal> <DiscountPercent>decimal</DiscountPercent> <IsDiscountPercent>boolean</IsDiscountPercent> <MediatedService>boolean</MediatedService> <ItemCompletionDate>dateTime</ItemCompletionDate> <ItemCurrencyRate>decimal</ItemCurrencyRate> <ItemTaxCurrencyRate>decimal</ItemTaxCurrencyRate> <GrossUnitPrice>boolean</GrossUnitPrice> <InvoiceItemCollectors> <InvoiceItemId>int</InvoiceItemId> <CollectorId>int</CollectorId> <Amount>decimal</Amount> <Percent>decimal</Percent> <CategoryId>int</CategoryId> <IsPercent>boolean</IsPercent> <LedgerRelated>boolean</LedgerRelated> <StockRelated>boolean</StockRelated> </InvoiceItemCollectors> <InvoiceItemCollectors> <InvoiceItemId>int</InvoiceItemId> <CollectorId>int</CollectorId> <Amount>decimal</Amount> <Percent>decimal</Percent> <CategoryId>int</CategoryId> <IsPercent>boolean</IsPercent> <LedgerRelated>boolean</LedgerRelated> <StockRelated>boolean</StockRelated> </InvoiceItemCollectors> <InvoiceItemIdentifiers> <InvoiceItemId>int</InvoiceItemId> <StockId>int</StockId> <Quantity>decimal</Quantity> <Identifier>string</Identifier> </InvoiceItemIdentifiers> <InvoiceItemIdentifiers> <InvoiceItemId>int</InvoiceItemId> <StockId>int</StockId> <Quantity>decimal</Quantity> <Identifier>string</Identifier> </InvoiceItemIdentifiers> </InvoiceItems> </GetInvoiceResponseResult> </GetInvoiceResponseResponse> </soap12:Body> </soap12:Envelope>