InvoiceService
Click here for a complete list of operations.
CreateDepositCreditingInvoice
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/CreateDepositCreditingInvoice" <?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> <CreateDepositCreditingInvoice xmlns="http://www.cobraconto.net/webservices/wapi/"> <auth> <User>string</User> <Password>string</Password> </auth> <transactionId>string</transactionId> <srcInvoiceId>int</srcInvoiceId> <copyNote>boolean</copyNote> <copyItemNote>boolean</copyItemNote> <Finalize>boolean</Finalize> <clsInvoice> <Id>int</Id> <timestamp>base64Binary</timestamp> <AvatarId>int</AvatarId> <InvoiceFileId>int</InvoiceFileId> <ImageFileStoreId>int</ImageFileStoreId> <BankAccountId>int</BankAccountId> <CurrencyId>string</CurrencyId> <LanguageId>string</LanguageId> <CurrencyRate>decimal</CurrencyRate> <TaxCurrencyRate>decimal</TaxCurrencyRate> <TypeId>int</TypeId> <Deposit>boolean</Deposit> <Electronic>boolean</Electronic> <VoucherNum>string</VoucherNum> <PaymentId>int</PaymentId> <InvoiceDate>dateTime</InvoiceDate> <DueDate>dateTime</DueDate> <FulfilmentDate>dateTime</FulfilmentDate> <CompletionDate>dateTime</CompletionDate> <RoundingValue>decimal</RoundingValue> <ContinousFulfilment>boolean</ContinousFulfilment> <HeadNoteDefault>string</HeadNoteDefault> <HeadNoteForeign>string</HeadNoteForeign> <FootNoteDefault>string</FootNoteDefault> <FootNoteForeign>string</FootNoteForeign> <TemplateName>string</TemplateName> <AccountId>int</AccountId> <ParallelAccountId>int</ParallelAccountId> <TransactionTypeId>int</TransactionTypeId> <OrdinalNumber>int</OrdinalNumber> <BruttoCalcMode>boolean</BruttoCalcMode> <AgentPartnerId>int</AgentPartnerId> <OutputFormat>int</OutputFormat> <InputFormat>int</InputFormat> <PriceTypeId>int</PriceTypeId> <CancellationState>int</CancellationState> <CashAccounting>boolean</CashAccounting> <IsAggregate>boolean</IsAggregate> <RemotePrint>boolean</RemotePrint> <RemotePrintEmail>string</RemotePrintEmail> <RemotePrintDescription>string</RemotePrintDescription> <Period>string</Period> <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> <InvoiceTaxes> <InvoiceId>int</InvoiceId> <TaxId>int</TaxId> <Amount>decimal</Amount> <Tax>decimal</Tax> <Total>decimal</Total> </InvoiceTaxes> <InvoiceTaxes> <InvoiceId>int</InvoiceId> <TaxId>int</TaxId> <Amount>decimal</Amount> <Tax>decimal</Tax> <Total>decimal</Total> </InvoiceTaxes> <InvoiceLinkInvoices> <FromInvoiceId>int</FromInvoiceId> <ToInvoiceId>int</ToInvoiceId> <Mode>int</Mode> </InvoiceLinkInvoices> <InvoiceLinkInvoices> <FromInvoiceId>int</FromInvoiceId> <ToInvoiceId>int</ToInvoiceId> <Mode>int</Mode> </InvoiceLinkInvoices> <AvatarRelations> <FromAvatarId>int</FromAvatarId> <ToAvatarId>int</ToAvatarId> <TypeId>int</TypeId> <Created>dateTime</Created> <Name>string</Name> <IsDefault>boolean</IsDefault> </AvatarRelations> <AvatarRelations> <FromAvatarId>int</FromAvatarId> <ToAvatarId>int</ToAvatarId> <TypeId>int</TypeId> <Created>dateTime</Created> <Name>string</Name> <IsDefault>boolean</IsDefault> </AvatarRelations> <InvoiceAddress> <ClientNos> <InvoiceId>int</InvoiceId> <AddressType>int</AddressType> <ClientNoId>int</ClientNoId> <Value>string</Value> </ClientNos> <ClientNos> <InvoiceId>int</InvoiceId> <AddressType>int</AddressType> <ClientNoId>int</ClientNoId> <Value>string</Value> </ClientNos> </InvoiceAddress> <PostalAddress /> </clsInvoice> </CreateDepositCreditingInvoice> </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> <CreateDepositCreditingInvoiceResponse xmlns="http://www.cobraconto.net/webservices/wapi/"> <CreateDepositCreditingInvoiceResult>int</CreateDepositCreditingInvoiceResult> </CreateDepositCreditingInvoiceResponse> </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> <CreateDepositCreditingInvoice xmlns="http://www.cobraconto.net/webservices/wapi/"> <auth> <User>string</User> <Password>string</Password> </auth> <transactionId>string</transactionId> <srcInvoiceId>int</srcInvoiceId> <copyNote>boolean</copyNote> <copyItemNote>boolean</copyItemNote> <Finalize>boolean</Finalize> <clsInvoice> <Id>int</Id> <timestamp>base64Binary</timestamp> <AvatarId>int</AvatarId> <InvoiceFileId>int</InvoiceFileId> <ImageFileStoreId>int</ImageFileStoreId> <BankAccountId>int</BankAccountId> <CurrencyId>string</CurrencyId> <LanguageId>string</LanguageId> <CurrencyRate>decimal</CurrencyRate> <TaxCurrencyRate>decimal</TaxCurrencyRate> <TypeId>int</TypeId> <Deposit>boolean</Deposit> <Electronic>boolean</Electronic> <VoucherNum>string</VoucherNum> <PaymentId>int</PaymentId> <InvoiceDate>dateTime</InvoiceDate> <DueDate>dateTime</DueDate> <FulfilmentDate>dateTime</FulfilmentDate> <CompletionDate>dateTime</CompletionDate> <RoundingValue>decimal</RoundingValue> <ContinousFulfilment>boolean</ContinousFulfilment> <HeadNoteDefault>string</HeadNoteDefault> <HeadNoteForeign>string</HeadNoteForeign> <FootNoteDefault>string</FootNoteDefault> <FootNoteForeign>string</FootNoteForeign> <TemplateName>string</TemplateName> <AccountId>int</AccountId> <ParallelAccountId>int</ParallelAccountId> <TransactionTypeId>int</TransactionTypeId> <OrdinalNumber>int</OrdinalNumber> <BruttoCalcMode>boolean</BruttoCalcMode> <AgentPartnerId>int</AgentPartnerId> <OutputFormat>int</OutputFormat> <InputFormat>int</InputFormat> <PriceTypeId>int</PriceTypeId> <CancellationState>int</CancellationState> <CashAccounting>boolean</CashAccounting> <IsAggregate>boolean</IsAggregate> <RemotePrint>boolean</RemotePrint> <RemotePrintEmail>string</RemotePrintEmail> <RemotePrintDescription>string</RemotePrintDescription> <Period>string</Period> <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> <InvoiceTaxes> <InvoiceId>int</InvoiceId> <TaxId>int</TaxId> <Amount>decimal</Amount> <Tax>decimal</Tax> <Total>decimal</Total> </InvoiceTaxes> <InvoiceTaxes> <InvoiceId>int</InvoiceId> <TaxId>int</TaxId> <Amount>decimal</Amount> <Tax>decimal</Tax> <Total>decimal</Total> </InvoiceTaxes> <InvoiceLinkInvoices> <FromInvoiceId>int</FromInvoiceId> <ToInvoiceId>int</ToInvoiceId> <Mode>int</Mode> </InvoiceLinkInvoices> <InvoiceLinkInvoices> <FromInvoiceId>int</FromInvoiceId> <ToInvoiceId>int</ToInvoiceId> <Mode>int</Mode> </InvoiceLinkInvoices> <AvatarRelations> <FromAvatarId>int</FromAvatarId> <ToAvatarId>int</ToAvatarId> <TypeId>int</TypeId> <Created>dateTime</Created> <Name>string</Name> <IsDefault>boolean</IsDefault> </AvatarRelations> <AvatarRelations> <FromAvatarId>int</FromAvatarId> <ToAvatarId>int</ToAvatarId> <TypeId>int</TypeId> <Created>dateTime</Created> <Name>string</Name> <IsDefault>boolean</IsDefault> </AvatarRelations> <InvoiceAddress> <ClientNos> <InvoiceId>int</InvoiceId> <AddressType>int</AddressType> <ClientNoId>int</ClientNoId> <Value>string</Value> </ClientNos> <ClientNos> <InvoiceId>int</InvoiceId> <AddressType>int</AddressType> <ClientNoId>int</ClientNoId> <Value>string</Value> </ClientNos> </InvoiceAddress> <PostalAddress /> </clsInvoice> </CreateDepositCreditingInvoice> </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> <CreateDepositCreditingInvoiceResponse xmlns="http://www.cobraconto.net/webservices/wapi/"> <CreateDepositCreditingInvoiceResult>int</CreateDepositCreditingInvoiceResult> </CreateDepositCreditingInvoiceResponse> </soap12:Body> </soap12:Envelope>