POST api/journals/AddJournal
Request Information
URI Parameters
None.
Body Parameters
JournalName | Description | Type | Additional information |
---|---|---|---|
AccountingHeader | JournalHeader |
None. |
|
VAT | JournalVAT |
None. |
|
JournalEntries | JournalEntries |
None. |
Request Formats
application/xml, text/xml
Sample:
<Accounting xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <AccountingHeader> <JournalEntriesHeader> <JournalType>sample string 1</JournalType> <TurnoverType>2</TurnoverType> <DueDate>2024-11-21T14:48:38.7439895+01:00</DueDate> <Currency>sample string 3</Currency> <LinkToBook>sample string 4</LinkToBook> <LinkToNumber>1</LinkToNumber> <LinkToOrigin>sample string 5</LinkToOrigin> <LinkToUser>1</LinkToUser> <LinkToYear>1</LinkToYear> <JournalCurrencyID>sample string 6</JournalCurrencyID> <DocumentID>sample string 7</DocumentID> </JournalEntriesHeader> <VATHeader> <Analytics> <CostCentre>sample string 1</CostCentre> <CostUnit>sample string 2</CostUnit> <Clerk>sample string 3</Clerk> <WorkOrder>sample string 4</WorkOrder> <Analytic1>sample string 5</Analytic1> <Analytic2>sample string 6</Analytic2> <Analytic3>sample string 7</Analytic3> </Analytics> <VATBook>sample string 1</VATBook> <VATBook2>sample string 2</VATBook2> <DeductibleShareCode>sample string 3</DeductibleShareCode> <CustomerName>sample string 4</CustomerName> <CustomerMainAddress>sample string 5</CustomerMainAddress> <VATIdentificationNumber>sample string 6</VATIdentificationNumber> <Correction>1</Correction> <InvoiceValue>1</InvoiceValue> <InvoiceValueForeignCurrency>1</InvoiceValueForeignCurrency> <VATDate>2024-11-21T14:48:38.7449894+01:00</VATDate> <VATDate2>2024-11-21T14:48:38.7449894+01:00</VATDate2> <VATAccountingUponPaidRealization>1</VATAccountingUponPaidRealization> <OSS> <ConsumerCountryID>sample string 1</ConsumerCountryID> <Currency>sample string 2</Currency> </OSS> <VATCurrencyID>sample string 7</VATCurrencyID> </VATHeader> <OrganizationId_DK>1</OrganizationId_DK> <OrganizationId_DDV>1</OrganizationId_DDV> <Document>sample string 1</Document> <DocumentReceivedDate>2024-11-21T14:48:38.7439895+01:00</DocumentReceivedDate> <JournalEntryDate>2024-11-21T14:48:38.7439895+01:00</JournalEntryDate> <TransactionDate>2024-11-21T14:48:38.7439895+01:00</TransactionDate> <TransactionDateTo>2024-11-21T14:48:38.7439895+01:00</TransactionDateTo> <Customer>sample string 2</Customer> <JournalEntryDescription>sample string 3</JournalEntryDescription> </AccountingHeader> <VAT> <VATBooks> <VATBookCode>sample string 1</VATBookCode> <VATDate>2024-11-21T14:48:38.7449894+01:00</VATDate> <Source>sample string 2</Source> <VATEntryRows> <VATEntryRow> <VATBook>sample string 1</VATBook> <VATRate>sample string 2</VATRate> <VATBase>3</VATBase> <VATBaseForeignCurrency>4</VATBaseForeignCurrency> <AdvancePayment>true</AdvancePayment> <VAT>6</VAT> <VATForeignCurrency>7</VATForeignCurrency> <NonDeductibleVAT>8</NonDeductibleVAT> <VATType>sample string 9</VATType> <DeductibleShareCode>sample string 10</DeductibleShareCode> <VATDate>2024-11-21T14:48:38.7449894+01:00</VATDate> <JournalEntryNumber>1</JournalEntryNumber> <Analytics> <CostCentre>sample string 1</CostCentre> <CostUnit>sample string 2</CostUnit> <Clerk>sample string 3</Clerk> <WorkOrder>sample string 4</WorkOrder> <Analytic1>sample string 5</Analytic1> <Analytic2>sample string 6</Analytic2> <Analytic3>sample string 7</Analytic3> </Analytics> </VATEntryRow> <VATEntryRow> <VATBook>sample string 1</VATBook> <VATRate>sample string 2</VATRate> <VATBase>3</VATBase> <VATBaseForeignCurrency>4</VATBaseForeignCurrency> <AdvancePayment>true</AdvancePayment> <VAT>6</VAT> <VATForeignCurrency>7</VATForeignCurrency> <NonDeductibleVAT>8</NonDeductibleVAT> <VATType>sample string 9</VATType> <DeductibleShareCode>sample string 10</DeductibleShareCode> <VATDate>2024-11-21T14:48:38.7449894+01:00</VATDate> <JournalEntryNumber>1</JournalEntryNumber> <Analytics> <CostCentre>sample string 1</CostCentre> <CostUnit>sample string 2</CostUnit> <Clerk>sample string 3</Clerk> <WorkOrder>sample string 4</WorkOrder> <Analytic1>sample string 5</Analytic1> <Analytic2>sample string 6</Analytic2> <Analytic3>sample string 7</Analytic3> </Analytics> </VATEntryRow> </VATEntryRows> </VATBooks> <VATBooks> <VATBookCode>sample string 1</VATBookCode> <VATDate>2024-11-21T14:48:38.7449894+01:00</VATDate> <Source>sample string 2</Source> <VATEntryRows> <VATEntryRow> <VATBook>sample string 1</VATBook> <VATRate>sample string 2</VATRate> <VATBase>3</VATBase> <VATBaseForeignCurrency>4</VATBaseForeignCurrency> <AdvancePayment>true</AdvancePayment> <VAT>6</VAT> <VATForeignCurrency>7</VATForeignCurrency> <NonDeductibleVAT>8</NonDeductibleVAT> <VATType>sample string 9</VATType> <DeductibleShareCode>sample string 10</DeductibleShareCode> <VATDate>2024-11-21T14:48:38.7449894+01:00</VATDate> <JournalEntryNumber>1</JournalEntryNumber> <Analytics> <CostCentre>sample string 1</CostCentre> <CostUnit>sample string 2</CostUnit> <Clerk>sample string 3</Clerk> <WorkOrder>sample string 4</WorkOrder> <Analytic1>sample string 5</Analytic1> <Analytic2>sample string 6</Analytic2> <Analytic3>sample string 7</Analytic3> </Analytics> </VATEntryRow> <VATEntryRow> <VATBook>sample string 1</VATBook> <VATRate>sample string 2</VATRate> <VATBase>3</VATBase> <VATBaseForeignCurrency>4</VATBaseForeignCurrency> <AdvancePayment>true</AdvancePayment> <VAT>6</VAT> <VATForeignCurrency>7</VATForeignCurrency> <NonDeductibleVAT>8</NonDeductibleVAT> <VATType>sample string 9</VATType> <DeductibleShareCode>sample string 10</DeductibleShareCode> <VATDate>2024-11-21T14:48:38.7449894+01:00</VATDate> <JournalEntryNumber>1</JournalEntryNumber> <Analytics> <CostCentre>sample string 1</CostCentre> <CostUnit>sample string 2</CostUnit> <Clerk>sample string 3</Clerk> <WorkOrder>sample string 4</WorkOrder> <Analytic1>sample string 5</Analytic1> <Analytic2>sample string 6</Analytic2> <Analytic3>sample string 7</Analytic3> </Analytics> </VATEntryRow> </VATEntryRows> </VATBooks> </VAT> <JournalEntries> <JournalEntry> <Analytics> <CostCentre>sample string 1</CostCentre> <CostUnit>sample string 2</CostUnit> <Clerk>sample string 3</Clerk> <WorkOrder>sample string 4</WorkOrder> <Analytic1>sample string 5</Analytic1> <Analytic2>sample string 6</Analytic2> <Analytic3>sample string 7</Analytic3> </Analytics> <JournalEntryDate>2024-11-21T14:48:38.7449894+01:00</JournalEntryDate> <JournalEntryDescription>sample string 1</JournalEntryDescription> <Account>sample string 2</Account> <Document>sample string 3</Document> <LinkToBook>sample string 4</LinkToBook> <LinkToNumber>sample string 5</LinkToNumber> <LinkToOrigin>sample string 6</LinkToOrigin> <LinkToUser>sample string 7</LinkToUser> <LinkToYear>1</LinkToYear> <Credit>8</Credit> <CreditAmountInDomesticCurrency>9</CreditAmountInDomesticCurrency> <JournalEntryNumber>1</JournalEntryNumber> <Customer>sample string 10</Customer> <DueDate>2024-11-21T14:48:38.7459895+01:00</DueDate> <TransactionDate>2024-11-21T14:48:38.7459895+01:00</TransactionDate> <TransactionDateTo>2024-11-21T14:48:38.7459895+01:00</TransactionDateTo> <PaymentReference>sample string 11</PaymentReference> <Currency>sample string 12</Currency> <Debit>13</Debit> <DebitAmountInDomesticCurrency>14</DebitAmountInDomesticCurrency> <JournalType>sample string 15</JournalType> <TurnoverType>sample string 16</TurnoverType> <ReferenceDocument>sample string 17</ReferenceDocument> </JournalEntry> <JournalEntry> <Analytics> <CostCentre>sample string 1</CostCentre> <CostUnit>sample string 2</CostUnit> <Clerk>sample string 3</Clerk> <WorkOrder>sample string 4</WorkOrder> <Analytic1>sample string 5</Analytic1> <Analytic2>sample string 6</Analytic2> <Analytic3>sample string 7</Analytic3> </Analytics> <JournalEntryDate>2024-11-21T14:48:38.7449894+01:00</JournalEntryDate> <JournalEntryDescription>sample string 1</JournalEntryDescription> <Account>sample string 2</Account> <Document>sample string 3</Document> <LinkToBook>sample string 4</LinkToBook> <LinkToNumber>sample string 5</LinkToNumber> <LinkToOrigin>sample string 6</LinkToOrigin> <LinkToUser>sample string 7</LinkToUser> <LinkToYear>1</LinkToYear> <Credit>8</Credit> <CreditAmountInDomesticCurrency>9</CreditAmountInDomesticCurrency> <JournalEntryNumber>1</JournalEntryNumber> <Customer>sample string 10</Customer> <DueDate>2024-11-21T14:48:38.7459895+01:00</DueDate> <TransactionDate>2024-11-21T14:48:38.7459895+01:00</TransactionDate> <TransactionDateTo>2024-11-21T14:48:38.7459895+01:00</TransactionDateTo> <PaymentReference>sample string 11</PaymentReference> <Currency>sample string 12</Currency> <Debit>13</Debit> <DebitAmountInDomesticCurrency>14</DebitAmountInDomesticCurrency> <JournalType>sample string 15</JournalType> <TurnoverType>sample string 16</TurnoverType> <ReferenceDocument>sample string 17</ReferenceDocument> </JournalEntry> </JournalEntries> </Accounting>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
CreateResultName | Description | Type | Additional 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>