POST api/Invoice/AddInvoice
Request Information
URI Parameters
None.
Body Parameters
InvoiceHeaderName | Description | Type | Additional information |
---|---|---|---|
InvoiceYear | integer |
None. |
|
CustomerID | string |
None. |
|
DeliveryTitle1 | string |
None. |
|
DeliveryTitle2 | string |
None. |
|
DeliveryTitle3 | string |
None. |
|
DeliveryAddress | string |
None. |
|
DeliveryHouseNo | string |
None. |
|
DeliveryPostalCode | string |
None. |
|
DeliveryCity | string |
None. |
|
DeliveryCountry | string |
None. |
|
InvoiceDate | date |
None. |
|
DeliveryDateFrom | date |
None. |
|
DeliveryDateTo | date |
None. |
|
DueDate | date |
None. |
|
CurrencyID | string |
None. |
|
ExchangeRateDate | date |
None. |
|
Document | string |
None. |
|
Comment | string |
None. |
|
DocumentHeaderDescription | string |
None. |
|
DocumentFooterDescription | string |
None. |
|
LanguageID | string |
None. |
|
VATCalculated | string |
None. |
|
VATInvoiceType | string |
None. |
|
PriceListID | string |
None. |
|
RebatePercentage | decimal number |
None. |
|
CostCenterID | string |
None. |
|
CostUnitID | string |
None. |
|
WorkOrderID | string |
None. |
|
ClerkID | string |
None. |
|
AnalyticID | string |
None. |
|
PayerCostCenterID | string |
None. |
|
AccountingBookGroupID | string |
None. |
|
ApplicationName | string |
None. |
|
LinkToDocument | string |
None. |
|
AccountingDescription | string |
None. |
|
InvoiceBook | string |
None. |
|
RebatePercentage2 | decimal number |
None. |
|
RebatePercentage3 | decimal number |
None. |
|
RebatePercentage4 | decimal number |
None. |
|
RebatePercentage5 | decimal number |
None. |
|
Operater | string |
None. |
|
DistanceSale | boolean |
None. |
|
AssemblingAndInstallation | boolean |
None. |
|
VAT_NonTaxable_Deduction | boolean |
None. |
|
DeliveryType | string |
None. |
|
ParityCode | string |
None. |
|
CustomerPayerID | string |
None. |
|
PaymentCodeID | string |
None. |
|
ParityPlace | string |
None. |
|
RebateAmountAmount | decimal number |
None. |
|
AuthorizationCode | string |
None. |
|
DocumentSalesType | string |
None. |
|
CashOperation | boolean |
None. |
|
CashierID | string |
None. |
|
PaymentPurposeId | string |
None. |
|
Analytic_AN1_ID | string |
None. |
|
Analytic_AN2_ID | string |
None. |
|
Analytic_AN3_ID | string |
None. |
|
DateVD | string |
None. |
|
CodeVD | string |
None. |
|
CodeVR | string |
None. |
|
DiscountGroupID | string |
None. |
|
AttachmentID | string |
None. |
|
AnnexID | string |
None. |
|
FolderID | string |
None. |
|
eInvoiceAttachmentID | string |
None. |
|
PaymentReferenceExternal | string |
None. |
|
ContactPerson | string |
None. |
|
DeliveryPlace | string |
None. |
|
VATTaxCategory | string |
None. |
|
FiscalizationDate | string |
None. |
|
UniqueInvoiceID | string |
None. |
|
SecurityCodeOfInvoice | string |
None. |
|
InternalInvoiceNumberMP | string |
None. |
|
NrOfInvoiceCopies | integer |
None. |
|
DocumentState | integer |
None. |
|
ElectronicDeviceID | string |
None. |
|
InvoiceID | string |
None. |
|
MpSGUID | globally unique identifier |
None. |
|
LocationID | string |
None. |
|
DeliveryLocationAddress | string |
None. |
|
InvoiceLines | InvoiceLines |
None. |
|
InvoicePayments | InvoicePayments |
None. |
Request Formats
application/xml, text/xml
Sample:
<InvoiceHeader xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <InvoiceYear>1</InvoiceYear> <CustomerID>sample string 2</CustomerID> <DeliveryTitle1>sample string 3</DeliveryTitle1> <DeliveryTitle2>sample string 4</DeliveryTitle2> <DeliveryTitle3>sample string 5</DeliveryTitle3> <DeliveryAddress>sample string 6</DeliveryAddress> <DeliveryHouseNo>sample string 7</DeliveryHouseNo> <DeliveryPostalCode>sample string 8</DeliveryPostalCode> <DeliveryCity>sample string 9</DeliveryCity> <DeliveryCountry>sample string 10</DeliveryCountry> <InvoiceDate>2024-11-21T15:24:45.8543628+01:00</InvoiceDate> <DeliveryDateFrom>2024-11-21T15:24:45.8543628+01:00</DeliveryDateFrom> <DeliveryDateTo>2024-11-21T15:24:45.8543628+01:00</DeliveryDateTo> <DueDate>2024-11-21T15:24:45.8543628+01:00</DueDate> <CurrencyID>sample string 11</CurrencyID> <ExchangeRateDate>2024-11-21T15:24:45.8543628+01:00</ExchangeRateDate> <Document>sample string 12</Document> <Comment>sample string 13</Comment> <DocumentHeaderDescription>sample string 14</DocumentHeaderDescription> <DocumentFooterDescription>sample string 15</DocumentFooterDescription> <LanguageID>sample string 16</LanguageID> <VATCalculated>sample string 17</VATCalculated> <VATInvoiceType>sample string 18</VATInvoiceType> <PriceListID>sample string 19</PriceListID> <RebatePercentage>1</RebatePercentage> <CostCenterID>sample string 20</CostCenterID> <CostUnitID>sample string 21</CostUnitID> <WorkOrderID>sample string 22</WorkOrderID> <ClerkID>sample string 23</ClerkID> <AnalyticID>sample string 24</AnalyticID> <PayerCostCenterID>sample string 25</PayerCostCenterID> <AccountingBookGroupID>sample string 26</AccountingBookGroupID> <ApplicationName>sample string 27</ApplicationName> <LinkToDocument>sample string 28</LinkToDocument> <AccountingDescription>sample string 29</AccountingDescription> <InvoiceBook>sample string 30</InvoiceBook> <RebatePercentage2>1</RebatePercentage2> <RebatePercentage3>1</RebatePercentage3> <RebatePercentage4>1</RebatePercentage4> <RebatePercentage5>1</RebatePercentage5> <Operater>sample string 31</Operater> <DistanceSale>true</DistanceSale> <AssemblingAndInstallation>true</AssemblingAndInstallation> <VAT_NonTaxable_Deduction>true</VAT_NonTaxable_Deduction> <DeliveryType>sample string 32</DeliveryType> <ParityCode>sample string 33</ParityCode> <CustomerPayerID>sample string 34</CustomerPayerID> <PaymentCodeID>sample string 35</PaymentCodeID> <ParityPlace>sample string 36</ParityPlace> <RebateAmountAmount>1</RebateAmountAmount> <AuthorizationCode>sample string 37</AuthorizationCode> <DocumentSalesType>sample string 38</DocumentSalesType> <CashOperation>true</CashOperation> <CashierID>sample string 39</CashierID> <PaymentPurposeId>sample string 40</PaymentPurposeId> <Analytic_AN1_ID>sample string 41</Analytic_AN1_ID> <Analytic_AN2_ID>sample string 42</Analytic_AN2_ID> <Analytic_AN3_ID>sample string 43</Analytic_AN3_ID> <DateVD>sample string 44</DateVD> <CodeVD>sample string 45</CodeVD> <CodeVR>sample string 46</CodeVR> <DiscountGroupID>sample string 47</DiscountGroupID> <AttachmentID>sample string 48</AttachmentID> <AnnexID>sample string 49</AnnexID> <FolderID>sample string 50</FolderID> <eInvoiceAttachmentID>sample string 51</eInvoiceAttachmentID> <PaymentReferenceExternal>sample string 52</PaymentReferenceExternal> <ContactPerson>sample string 53</ContactPerson> <DeliveryPlace>sample string 54</DeliveryPlace> <VATTaxCategory>sample string 55</VATTaxCategory> <FiscalizationDate>sample string 56</FiscalizationDate> <UniqueInvoiceID>sample string 57</UniqueInvoiceID> <SecurityCodeOfInvoice>sample string 58</SecurityCodeOfInvoice> <InternalInvoiceNumberMP>sample string 59</InternalInvoiceNumberMP> <NrOfInvoiceCopies>60</NrOfInvoiceCopies> <DocumentState>61</DocumentState> <ElectronicDeviceID>sample string 62</ElectronicDeviceID> <InvoiceID>sample string 63</InvoiceID> <MpSGUID>d6d8cd60-6450-41f1-a60a-489229a99693</MpSGUID> <LocationID>sample string 64</LocationID> <DeliveryLocationAddress>sample string 65</DeliveryLocationAddress> <InvoiceLines> <InvoiceLine> <LineNumber>1</LineNumber> <ItemID>sample string 2</ItemID> <ItemIDType>sample string 3</ItemIDType> <AlternateUnitOfMeasurment>sample string 4</AlternateUnitOfMeasurment> <AlternateConvertFactor>1</AlternateConvertFactor> <AlternateQuantity>1</AlternateQuantity> <AlternateEAN>sample string 5</AlternateEAN> <Series>sample string 6</Series> <ItemTitle1>sample string 7</ItemTitle1> <ItemTitle2>sample string 8</ItemTitle2> <UnitOfMeasurement>sample string 9</UnitOfMeasurement> <ItemDescription>sample string 10</ItemDescription> <VATRateID>sample string 11</VATRateID> <VATRatePercent>1</VATRatePercent> <Note>sample string 12</Note> <Quantity>1</Quantity> <QuantityAdditionalUOM>1</QuantityAdditionalUOM> <Price>1</Price> <PriceWithVAT>1</PriceWithVAT> <UnitsForprice>13</UnitsForprice> <DiscountPercentage>1</DiscountPercentage> <DiscountPercentage2>1</DiscountPercentage2> <DiscountPercentage3>1</DiscountPercentage3> <DiscountPercentage4>1</DiscountPercentage4> <DiscountPercentage5>1</DiscountPercentage5> <DiscountAmount>1</DiscountAmount> <DiscountAmountAmount>1</DiscountAmountAmount> <RebateAmount>1</RebateAmount> <RebateAmountAmount>1</RebateAmountAmount> <VATAmount>1</VATAmount> <GrossAmout>1</GrossAmout> <IntermediateAmount>1</IntermediateAmount> <NetAmount>1</NetAmount> <CostCenterID>sample string 14</CostCenterID> <CostUnitID>sample string 15</CostUnitID> <WorkOrderID>sample string 16</WorkOrderID> <ClerkID>sample string 17</ClerkID> <AnalyticID>sample string 18</AnalyticID> <Analytic_AN1_ID>sample string 19</Analytic_AN1_ID> <Analytic_AN2_ID>sample string 20</Analytic_AN2_ID> <Analytic_AN3_ID>sample string 21</Analytic_AN3_ID> <PayerCostCenterID>sample string 22</PayerCostCenterID> <VATCalculated>sample string 23</VATCalculated> <VATRateDescription>sample string 24</VATRateDescription> <VATInvoiceType>sample string 25</VATInvoiceType> <Reference>sample string 26</Reference> <TextLine>true</TextLine> <EnvironmentalTaxAmount>1</EnvironmentalTaxAmount> <EnvironmentalTaxAmount2>1</EnvironmentalTaxAmount2> <InsertedBy>sample string 27</InsertedBy> <InsertedTime>2024-11-21T15:24:45.8563661+01:00</InsertedTime> <ModifiedBy>sample string 28</ModifiedBy> <ModifiedTime>2024-11-21T15:24:45.8563661+01:00</ModifiedTime> <PriceIncludeVAT>true</PriceIncludeVAT> <RealizationAccount>sample string 29</RealizationAccount> <RebateAccount>sample string 30</RebateAccount> <VATTaxCategory>sample string 31</VATTaxCategory> </InvoiceLine> <InvoiceLine> <LineNumber>1</LineNumber> <ItemID>sample string 2</ItemID> <ItemIDType>sample string 3</ItemIDType> <AlternateUnitOfMeasurment>sample string 4</AlternateUnitOfMeasurment> <AlternateConvertFactor>1</AlternateConvertFactor> <AlternateQuantity>1</AlternateQuantity> <AlternateEAN>sample string 5</AlternateEAN> <Series>sample string 6</Series> <ItemTitle1>sample string 7</ItemTitle1> <ItemTitle2>sample string 8</ItemTitle2> <UnitOfMeasurement>sample string 9</UnitOfMeasurement> <ItemDescription>sample string 10</ItemDescription> <VATRateID>sample string 11</VATRateID> <VATRatePercent>1</VATRatePercent> <Note>sample string 12</Note> <Quantity>1</Quantity> <QuantityAdditionalUOM>1</QuantityAdditionalUOM> <Price>1</Price> <PriceWithVAT>1</PriceWithVAT> <UnitsForprice>13</UnitsForprice> <DiscountPercentage>1</DiscountPercentage> <DiscountPercentage2>1</DiscountPercentage2> <DiscountPercentage3>1</DiscountPercentage3> <DiscountPercentage4>1</DiscountPercentage4> <DiscountPercentage5>1</DiscountPercentage5> <DiscountAmount>1</DiscountAmount> <DiscountAmountAmount>1</DiscountAmountAmount> <RebateAmount>1</RebateAmount> <RebateAmountAmount>1</RebateAmountAmount> <VATAmount>1</VATAmount> <GrossAmout>1</GrossAmout> <IntermediateAmount>1</IntermediateAmount> <NetAmount>1</NetAmount> <CostCenterID>sample string 14</CostCenterID> <CostUnitID>sample string 15</CostUnitID> <WorkOrderID>sample string 16</WorkOrderID> <ClerkID>sample string 17</ClerkID> <AnalyticID>sample string 18</AnalyticID> <Analytic_AN1_ID>sample string 19</Analytic_AN1_ID> <Analytic_AN2_ID>sample string 20</Analytic_AN2_ID> <Analytic_AN3_ID>sample string 21</Analytic_AN3_ID> <PayerCostCenterID>sample string 22</PayerCostCenterID> <VATCalculated>sample string 23</VATCalculated> <VATRateDescription>sample string 24</VATRateDescription> <VATInvoiceType>sample string 25</VATInvoiceType> <Reference>sample string 26</Reference> <TextLine>true</TextLine> <EnvironmentalTaxAmount>1</EnvironmentalTaxAmount> <EnvironmentalTaxAmount2>1</EnvironmentalTaxAmount2> <InsertedBy>sample string 27</InsertedBy> <InsertedTime>2024-11-21T15:24:45.8563661+01:00</InsertedTime> <ModifiedBy>sample string 28</ModifiedBy> <ModifiedTime>2024-11-21T15:24:45.8563661+01:00</ModifiedTime> <PriceIncludeVAT>true</PriceIncludeVAT> <RealizationAccount>sample string 29</RealizationAccount> <RebateAccount>sample string 30</RebateAccount> <VATTaxCategory>sample string 31</VATTaxCategory> </InvoiceLine> </InvoiceLines> <InvoicePayments> <InvoicePayment> <PaymentLineNo>1</PaymentLineNo> <PaymentPurposeID>sample string 2</PaymentPurposeID> <PaymentAmount>1</PaymentAmount> <PaymentDate>2024-11-21T15:24:45.8563661+01:00</PaymentDate> <PaymentTransactionID>sample string 3</PaymentTransactionID> </InvoicePayment> <InvoicePayment> <PaymentLineNo>1</PaymentLineNo> <PaymentPurposeID>sample string 2</PaymentPurposeID> <PaymentAmount>1</PaymentAmount> <PaymentDate>2024-11-21T15:24:45.8563661+01:00</PaymentDate> <PaymentTransactionID>sample string 3</PaymentTransactionID> </InvoicePayment> </InvoicePayments> </InvoiceHeader>
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>