POST api/IncomingInvoice/AddIncomingInvoice

Request Information

URI Parameters

None.

Body Parameters

IncomingInvoice
NameDescriptionTypeAdditional information
IncomingInvoiceHeader

IncomingInvoiceHeader

None.

JournalEntry

IncomingInvoiceJournalEntry

None.

InstalmentLines

IncomingInvoiceInstalmentLines

None.

Request Formats

application/xml, text/xml

Sample:
<IncomingInvoice xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <IncomingInvoiceHeader>
    <BookID>sample string 1</BookID>
    <Year>2</Year>
    <InvoiceID>1</InvoiceID>
    <VendorInvoiceNumber>sample string 3</VendorInvoiceNumber>
    <SupplierID>sample string 4</SupplierID>
    <VATIdentificationNumber>sample string 5</VATIdentificationNumber>
    <BankAccountName>sample string 6</BankAccountName>
    <BankCustomerID>sample string 7</BankCustomerID>
    <DocumentReceivedDate>2024-11-21T15:03:21.0057591+01:00</DocumentReceivedDate>
    <InvoiceDate>2024-11-21T15:03:21.0057591+01:00</InvoiceDate>
    <DeliveryDate>2024-11-21T15:03:21.0057591+01:00</DeliveryDate>
    <DueDate>2024-11-21T15:03:21.0057591+01:00</DueDate>
    <InvoiceAmountOriginalCurrency>1</InvoiceAmountOriginalCurrency>
    <Currency>sample string 8</Currency>
    <InvoiceAmountDomesticCurrency>1</InvoiceAmountDomesticCurrency>
    <TypeOfPaymentReference>sample string 9</TypeOfPaymentReference>
    <ModelOfControl>sample string 10</ModelOfControl>
    <PaymentReference>sample string 11</PaymentReference>
    <PaymentCodeId>sample string 12</PaymentCodeId>
    <Analytics>
      <CostCenterID xmlns="iC_Common.xsd">sample string 1</CostCenterID>
      <CostDriverID xmlns="iC_Common.xsd">sample string 2</CostDriverID>
      <ClerkID xmlns="iC_Common.xsd">sample string 3</ClerkID>
      <WorkOrderID xmlns="iC_Common.xsd">sample string 4</WorkOrderID>
      <Analytic_AN1_ID xmlns="iC_Common.xsd">sample string 5</Analytic_AN1_ID>
      <Analytic_AN2_ID xmlns="iC_Common.xsd">sample string 6</Analytic_AN2_ID>
      <Analytic_AN3_ID xmlns="iC_Common.xsd">sample string 7</Analytic_AN3_ID>
    </Analytics>
    <InvoiceNote>sample string 13</InvoiceNote>
    <UJPEinvoiceID>sample string 14</UJPEinvoiceID>
    <InvoiceAttachment1ID>sample string 15</InvoiceAttachment1ID>
    <InvoiceAttachment2ID>sample string 16</InvoiceAttachment2ID>
    <FolderID>sample string 17</FolderID>
    <NetDueDate>2024-11-21T15:03:21.0057591+01:00</NetDueDate>
    <DiscountPercentage>1</DiscountPercentage>
    <Document>sample string 18</Document>
    <ExchangeRateDate>2024-11-21T15:03:21.0057591+01:00</ExchangeRateDate>
    <JoinedPostings>true</JoinedPostings>
    <ContractID>1</ContractID>
    <ContractType>sample string 19</ContractType>
    <VATAccountingUponPaidRealization>true</VATAccountingUponPaidRealization>
    <Source>sample string 20</Source>
  </IncomingInvoiceHeader>
  <JournalEntry>
    <JournalEntryDescription>sample string 1</JournalEntryDescription>
    <PostingGroupID>sample string 2</PostingGroupID>
    <JournalEntryLines>
      <JournalEntryLine>
        <JournalLineID>1</JournalLineID>
        <AccountID>sample string 1</AccountID>
        <SupplierID>sample string 2</SupplierID>
        <Analytics>
          <CostCenterID xmlns="iC_Common.xsd">sample string 1</CostCenterID>
          <CostDriverID xmlns="iC_Common.xsd">sample string 2</CostDriverID>
          <ClerkID xmlns="iC_Common.xsd">sample string 3</ClerkID>
          <WorkOrderID xmlns="iC_Common.xsd">sample string 4</WorkOrderID>
          <Analytic_AN1_ID xmlns="iC_Common.xsd">sample string 5</Analytic_AN1_ID>
          <Analytic_AN2_ID xmlns="iC_Common.xsd">sample string 6</Analytic_AN2_ID>
          <Analytic_AN3_ID xmlns="iC_Common.xsd">sample string 7</Analytic_AN3_ID>
        </Analytics>
        <DebitAmount>1</DebitAmount>
        <CreditAmount>1</CreditAmount>
        <JournalEntryLineDescription>sample string 3</JournalEntryLineDescription>
        <VATLineID>1</VATLineID>
        <VAT>
          <VATLineID>1</VATLineID>
          <VATBookID>sample string 1</VATBookID>
          <VATTypeID>sample string 2</VATTypeID>
          <VATRateID>sample string 3</VATRateID>
          <DeductibleVATProportionID>sample string 4</DeductibleVATProportionID>
          <VATBase>1</VATBase>
          <VATAmount>1</VATAmount>
          <NonDeductibleVAT>1</NonDeductibleVAT>
          <Prepayment>true</Prepayment>
        </VAT>
      </JournalEntryLine>
      <JournalEntryLine>
        <JournalLineID>1</JournalLineID>
        <AccountID>sample string 1</AccountID>
        <SupplierID>sample string 2</SupplierID>
        <Analytics>
          <CostCenterID xmlns="iC_Common.xsd">sample string 1</CostCenterID>
          <CostDriverID xmlns="iC_Common.xsd">sample string 2</CostDriverID>
          <ClerkID xmlns="iC_Common.xsd">sample string 3</ClerkID>
          <WorkOrderID xmlns="iC_Common.xsd">sample string 4</WorkOrderID>
          <Analytic_AN1_ID xmlns="iC_Common.xsd">sample string 5</Analytic_AN1_ID>
          <Analytic_AN2_ID xmlns="iC_Common.xsd">sample string 6</Analytic_AN2_ID>
          <Analytic_AN3_ID xmlns="iC_Common.xsd">sample string 7</Analytic_AN3_ID>
        </Analytics>
        <DebitAmount>1</DebitAmount>
        <CreditAmount>1</CreditAmount>
        <JournalEntryLineDescription>sample string 3</JournalEntryLineDescription>
        <VATLineID>1</VATLineID>
        <VAT>
          <VATLineID>1</VATLineID>
          <VATBookID>sample string 1</VATBookID>
          <VATTypeID>sample string 2</VATTypeID>
          <VATRateID>sample string 3</VATRateID>
          <DeductibleVATProportionID>sample string 4</DeductibleVATProportionID>
          <VATBase>1</VATBase>
          <VATAmount>1</VATAmount>
          <NonDeductibleVAT>1</NonDeductibleVAT>
          <Prepayment>true</Prepayment>
        </VAT>
      </JournalEntryLine>
    </JournalEntryLines>
  </JournalEntry>
  <InstalmentLines>
    <InstalmentLine>
      <InstalmentLineID>1</InstalmentLineID>
      <DueDate>2024-11-21T15:03:21.0057591+01:00</DueDate>
      <InstalmentAmount>3</InstalmentAmount>
      <Currency>sample string 4</Currency>
      <InstalmentAmountDomesticCurrency>5</InstalmentAmountDomesticCurrency>
      <ModelOfControl>sample string 6</ModelOfControl>
      <PaymentReference>sample string 7</PaymentReference>
      <InstalmentPercentage>8</InstalmentPercentage>
      <InstalmentDescription>sample string 9</InstalmentDescription>
    </InstalmentLine>
    <InstalmentLine>
      <InstalmentLineID>1</InstalmentLineID>
      <DueDate>2024-11-21T15:03:21.0057591+01:00</DueDate>
      <InstalmentAmount>3</InstalmentAmount>
      <Currency>sample string 4</Currency>
      <InstalmentAmountDomesticCurrency>5</InstalmentAmountDomesticCurrency>
      <ModelOfControl>sample string 6</ModelOfControl>
      <PaymentReference>sample string 7</PaymentReference>
      <InstalmentPercentage>8</InstalmentPercentage>
      <InstalmentDescription>sample string 9</InstalmentDescription>
    </InstalmentLine>
  </InstalmentLines>
</IncomingInvoice>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CreateResult
NameDescriptionTypeAdditional information
Keys

Collection of EntityKeyField

None.

ResultCode

ExternalResultCode

None.

Errors

Collection of Error

None.

Response Formats

application/xml, text/xml

Sample:
<CreateResult xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <Keys>
    <Key>
      <Name>sample string 1</Name>
      <Value>sample string 2</Value>
    </Key>
    <Key>
      <Name>sample string 1</Name>
      <Value>sample string 2</Value>
    </Key>
  </Keys>
  <ResultCode>None</ResultCode>
  <Errors>
    <Error>
      <Level>Warning</Level>
      <Message>sample string 1</Message>
    </Error>
    <Error>
      <Level>Warning</Level>
      <Message>sample string 1</Message>
    </Error>
  </Errors>
</CreateResult>