POST api/Acounting/SaveInvoice

No documentation available.

Request Information

Parameters

NameDescriptionAdditional information
invoice
No documentation available.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "EmpId": 1,
  "Direction": "sample string 2",
  "InCT": "sample string 3",
  "Docs": {
    "FileName": "sample string 1",
    "Bytes": "QEBA"
  },
  "Invoice": {
    "Id": 1,
    "PreCodeId": 1,
    "FundUnitId": 1,
    "Code": "sample string 2",
    "InvoiceType": 3,
    "SupCustId": 4,
    "ProjectId": 1,
    "InvoiceDate": "2021-10-27T00:00:00+02:00",
    "SendDate": "2021-10-27T00:00:00+02:00",
    "BankUpDate": "2021-10-27T00:00:00+02:00",
    "Brand": "sample string 8",
    "PONumber": "sample string 9",
    "Attention": "sample string 10",
    "TaxType": 11,
    "TaxRate": 12.0,
    "TaxValue": 13.0,
    "TaxValueInLC": 1.0,
    "InvoiceTotal": 14.0,
    "TotalInLC": 15.0,
    "CurrencyId": 16,
    "CurrencyRate": 17.0,
    "Status": 18,
    "AttachmentURL": "sample string 19",
    "Notes": "sample string 20",
    "DiscountRate": 21.0,
    "DiscountValue": 22.0,
    "DiscountValueInLC": 23.0,
    "NOOfPrint": 1,
    "TaxWzHoldingRate": 24.0,
    "TaxWzHoldingValue": 25.0,
    "IsCash": true,
    "DiscountGL": true,
    "IsBulk": true,
    "BulkId": 1,
    "CashPaymentType": 1,
    "SafeBankCheckId": 1,
    "TaxWzHoldingValueInLC": 1.0,
    "TaxWzHoldingType": 28,
    "JournalId": 1,
    "StockJournalId": 1,
    "SubmitToStock": true,
    "ClassificationId": 1,
    "InvoiceNumber": "sample string 30",
    "TaxFileNumber": "sample string 31",
    "TaxRegistrationNumber": "sample string 32",
    "SupCustName": "sample string 33",
    "Classification": "sample string 34",
    "ProjectName": "sample string 35",
    "Currency": "sample string 36",
    "Remaining": 37.0,
    "InvoiceStatus": "sample string 38",
    "Employee": "sample string 39",
    "ProjectCode": "sample string 40",
    "ContractValue": 1.0,
    "InvoiceTypeName": "sample string 41",
    "TotalInLCAP": 42.0,
    "TotalInLCAR": 43.0,
    "TotalNet": 44.0,
    "DepartmentName": "sample string 45",
    "DepartmentCode": "sample string 46",
    "PreCode": "sample string 47",
    "SupCustCode": "sample string 48",
    "ReasonId": 1,
    "EditDetails": "sample string 49",
    "Address": "sample string 50",
    "Phone": "sample string 51",
    "DueExpenseName": "sample string 52",
    "FaweryRefNo": "sample string 53",
    "ManagementAddress": "sample string 54",
    "FundUnit": "sample string 55",
    "CreatedEmpId": 1,
    "CreatedDate": "2021-10-27T21:32:05.1738693+02:00",
    "UpdatedEmpId": 1,
    "UpdatedDate": "2021-10-27T21:32:05.1738693+02:00",
    "DeletedEmpId": 1,
    "DeletedDate": "2021-10-27T21:32:05.1738693+02:00",
    "IsDeleted": true
  },
  "invoiceDetails": [
    {
      "MasterId": 1,
      "ItemId": 2,
      "ProjectId": 1,
      "DepartmentId": 1,
      "StockTransactionId": 1,
      "PODetailsId": 1,
      "AdditionalExp": true,
      "ItemDate": "2021-10-27T00:00:00+02:00",
      "UnitPrice": 1.0,
      "Quantity": 5.0,
      "Total": 6.0,
      "Cost": 1.0,
      "Notes": "sample string 7",
      "ExpirationDate": "2021-10-27T21:32:05.1738693+02:00",
      "LotNumber": "sample string 8",
      "ItemName": "sample string 9",
      "ProjectName": "sample string 10",
      "DepartmentName": "sample string 11",
      "StockItem": "sample string 12",
      "ItemCode": "sample string 13",
      "GroupName": "sample string 14",
      "ItemDescription": "sample string 15",
      "TaxRate": 16.0,
      "TaxValue": 17.0,
      "WithRate": 18.0,
      "WithValue": 19.0,
      "DisRate": 20.0,
      "DisValue": 21.0,
      "TaxTypeId": 1,
      "InvTaxTypeName": "sample string 22",
      "SubAccountId": 1,
      "InvSubAccountName": "sample string 23",
      "Id": 24
    },
    {
      "MasterId": 1,
      "ItemId": 2,
      "ProjectId": 1,
      "DepartmentId": 1,
      "StockTransactionId": 1,
      "PODetailsId": 1,
      "AdditionalExp": true,
      "ItemDate": "2021-10-27T00:00:00+02:00",
      "UnitPrice": 1.0,
      "Quantity": 5.0,
      "Total": 6.0,
      "Cost": 1.0,
      "Notes": "sample string 7",
      "ExpirationDate": "2021-10-27T21:32:05.1738693+02:00",
      "LotNumber": "sample string 8",
      "ItemName": "sample string 9",
      "ProjectName": "sample string 10",
      "DepartmentName": "sample string 11",
      "StockItem": "sample string 12",
      "ItemCode": "sample string 13",
      "GroupName": "sample string 14",
      "ItemDescription": "sample string 15",
      "TaxRate": 16.0,
      "TaxValue": 17.0,
      "WithRate": 18.0,
      "WithValue": 19.0,
      "DisRate": 20.0,
      "DisValue": 21.0,
      "TaxTypeId": 1,
      "InvTaxTypeName": "sample string 22",
      "SubAccountId": 1,
      "InvSubAccountName": "sample string 23",
      "Id": 24
    },
    {
      "MasterId": 1,
      "ItemId": 2,
      "ProjectId": 1,
      "DepartmentId": 1,
      "StockTransactionId": 1,
      "PODetailsId": 1,
      "AdditionalExp": true,
      "ItemDate": "2021-10-27T00:00:00+02:00",
      "UnitPrice": 1.0,
      "Quantity": 5.0,
      "Total": 6.0,
      "Cost": 1.0,
      "Notes": "sample string 7",
      "ExpirationDate": "2021-10-27T21:32:05.1738693+02:00",
      "LotNumber": "sample string 8",
      "ItemName": "sample string 9",
      "ProjectName": "sample string 10",
      "DepartmentName": "sample string 11",
      "StockItem": "sample string 12",
      "ItemCode": "sample string 13",
      "GroupName": "sample string 14",
      "ItemDescription": "sample string 15",
      "TaxRate": 16.0,
      "TaxValue": 17.0,
      "WithRate": 18.0,
      "WithValue": 19.0,
      "DisRate": 20.0,
      "DisValue": 21.0,
      "TaxTypeId": 1,
      "InvTaxTypeName": "sample string 22",
      "SubAccountId": 1,
      "InvSubAccountName": "sample string 23",
      "Id": 24
    }
  ],
  "additionalExpenses": [
    {
      "InvoiceId": 1,
      "SubAccountId": 1,
      "Value": 1.0,
      "ValueInInvoiceCurrency": 1.0,
      "AECurrencyId": 1,
      "CurrencyRate": 1.0,
      "Notes": "sample string 2",
      "SubAccountName": "sample string 3",
      "AECurrencyName": "sample string 4",
      "Id": 5
    },
    {
      "InvoiceId": 1,
      "SubAccountId": 1,
      "Value": 1.0,
      "ValueInInvoiceCurrency": 1.0,
      "AECurrencyId": 1,
      "CurrencyRate": 1.0,
      "Notes": "sample string 2",
      "SubAccountName": "sample string 3",
      "AECurrencyName": "sample string 4",
      "Id": 5
    },
    {
      "InvoiceId": 1,
      "SubAccountId": 1,
      "Value": 1.0,
      "ValueInInvoiceCurrency": 1.0,
      "AECurrencyId": 1,
      "CurrencyRate": 1.0,
      "Notes": "sample string 2",
      "SubAccountName": "sample string 3",
      "AECurrencyName": "sample string 4",
      "Id": 5
    }
  ]
}

application/xml, text/xml

Sample:
<Acc_VM_CreateInvoice xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ERPPlus_MOdel.Model">
  <Direction>sample string 2</Direction>
  <Docs>
    <Bytes>QEBA</Bytes>
    <FileName>sample string 1</FileName>
  </Docs>
  <EmpId>1</EmpId>
  <InCT>sample string 3</InCT>
  <Invoice>
    <Id>1</Id>
    <CreatedDate>2021-10-27T21:32:05.1738693+02:00</CreatedDate>
    <CreatedEmpId>1</CreatedEmpId>
    <DeletedDate>2021-10-27T21:32:05.1738693+02:00</DeletedDate>
    <DeletedEmpId>1</DeletedEmpId>
    <IsDeleted>true</IsDeleted>
    <UpdatedDate>2021-10-27T21:32:05.1738693+02:00</UpdatedDate>
    <UpdatedEmpId>1</UpdatedEmpId>
    <Address>sample string 50</Address>
    <AttachmentURL>sample string 19</AttachmentURL>
    <Attention>sample string 10</Attention>
    <BankUpDate>2021-10-27T00:00:00+02:00</BankUpDate>
    <Brand>sample string 8</Brand>
    <BulkId>1</BulkId>
    <CashPaymentType>1</CashPaymentType>
    <Classification>sample string 34</Classification>
    <ClassificationId>1</ClassificationId>
    <Code>sample string 2</Code>
    <ContractValue>1</ContractValue>
    <Currency>sample string 36</Currency>
    <CurrencyId>16</CurrencyId>
    <CurrencyRate>17</CurrencyRate>
    <DepartmentCode>sample string 46</DepartmentCode>
    <DepartmentName>sample string 45</DepartmentName>
    <DiscountGL>true</DiscountGL>
    <DiscountRate>21</DiscountRate>
    <DiscountValue>22</DiscountValue>
    <DiscountValueInLC>23</DiscountValueInLC>
    <DueExpenseName>sample string 52</DueExpenseName>
    <EditDetails>sample string 49</EditDetails>
    <Employee>sample string 39</Employee>
    <FaweryRefNo>sample string 53</FaweryRefNo>
    <FundUnit>sample string 55</FundUnit>
    <FundUnitId>1</FundUnitId>
    <InvoiceDate>2021-10-27T00:00:00+02:00</InvoiceDate>
    <InvoiceNumber>sample string 30</InvoiceNumber>
    <InvoiceStatus>sample string 38</InvoiceStatus>
    <InvoiceTotal>14</InvoiceTotal>
    <InvoiceType>3</InvoiceType>
    <InvoiceTypeName>sample string 41</InvoiceTypeName>
    <IsBulk>true</IsBulk>
    <IsCash>true</IsCash>
    <JournalId>1</JournalId>
    <ManagementAddress>sample string 54</ManagementAddress>
    <NOOfPrint>1</NOOfPrint>
    <Notes>sample string 20</Notes>
    <PONumber>sample string 9</PONumber>
    <Phone>sample string 51</Phone>
    <PreCode>sample string 47</PreCode>
    <PreCodeId>1</PreCodeId>
    <ProjectCode>sample string 40</ProjectCode>
    <ProjectId>1</ProjectId>
    <ProjectName>sample string 35</ProjectName>
    <ReasonId>1</ReasonId>
    <Remaining>37</Remaining>
    <SafeBankCheckId>1</SafeBankCheckId>
    <SendDate>2021-10-27T00:00:00+02:00</SendDate>
    <Status>18</Status>
    <StockJournalId>1</StockJournalId>
    <SubmitToStock>true</SubmitToStock>
    <SupCustCode>sample string 48</SupCustCode>
    <SupCustId>4</SupCustId>
    <SupCustName>sample string 33</SupCustName>
    <TaxFileNumber>sample string 31</TaxFileNumber>
    <TaxRate>12</TaxRate>
    <TaxRegistrationNumber>sample string 32</TaxRegistrationNumber>
    <TaxType>11</TaxType>
    <TaxValue>13</TaxValue>
    <TaxValueInLC>1</TaxValueInLC>
    <TaxWzHoldingRate>24</TaxWzHoldingRate>
    <TaxWzHoldingType>28</TaxWzHoldingType>
    <TaxWzHoldingValue>25</TaxWzHoldingValue>
    <TaxWzHoldingValueInLC>1</TaxWzHoldingValueInLC>
    <TotalInLC>15</TotalInLC>
    <TotalInLCAP>42</TotalInLCAP>
    <TotalInLCAR>43</TotalInLCAR>
    <TotalNet>44</TotalNet>
  </Invoice>
  <additionalExpenses>
    <Acc_AdditionalExpenses>
      <Id>5</Id>
      <AECurrencyId>1</AECurrencyId>
      <AECurrencyName>sample string 4</AECurrencyName>
      <CurrencyRate>1</CurrencyRate>
      <InvoiceId>1</InvoiceId>
      <Notes>sample string 2</Notes>
      <SubAccountId>1</SubAccountId>
      <SubAccountName>sample string 3</SubAccountName>
      <Value>1</Value>
      <ValueInInvoiceCurrency>1</ValueInInvoiceCurrency>
    </Acc_AdditionalExpenses>
    <Acc_AdditionalExpenses>
      <Id>5</Id>
      <AECurrencyId>1</AECurrencyId>
      <AECurrencyName>sample string 4</AECurrencyName>
      <CurrencyRate>1</CurrencyRate>
      <InvoiceId>1</InvoiceId>
      <Notes>sample string 2</Notes>
      <SubAccountId>1</SubAccountId>
      <SubAccountName>sample string 3</SubAccountName>
      <Value>1</Value>
      <ValueInInvoiceCurrency>1</ValueInInvoiceCurrency>
    </Acc_AdditionalExpenses>
    <Acc_AdditionalExpenses>
      <Id>5</Id>
      <AECurrencyId>1</AECurrencyId>
      <AECurrencyName>sample string 4</AECurrencyName>
      <CurrencyRate>1</CurrencyRate>
      <InvoiceId>1</InvoiceId>
      <Notes>sample string 2</Notes>
      <SubAccountId>1</SubAccountId>
      <SubAccountName>sample string 3</SubAccountName>
      <Value>1</Value>
      <ValueInInvoiceCurrency>1</ValueInInvoiceCurrency>
    </Acc_AdditionalExpenses>
  </additionalExpenses>
  <invoiceDetails>
    <Acc_InvoiceDetails>
      <Id>24</Id>
      <AdditionalExp>true</AdditionalExp>
      <Cost>1</Cost>
      <DepartmentId>1</DepartmentId>
      <DepartmentName>sample string 11</DepartmentName>
      <DisRate>20</DisRate>
      <DisValue>21</DisValue>
      <ExpirationDate>2021-10-27T21:32:05.1738693+02:00</ExpirationDate>
      <GroupName>sample string 14</GroupName>
      <InvSubAccountName>sample string 23</InvSubAccountName>
      <InvTaxTypeName>sample string 22</InvTaxTypeName>
      <ItemCode>sample string 13</ItemCode>
      <ItemDate>2021-10-27T00:00:00+02:00</ItemDate>
      <ItemDescription>sample string 15</ItemDescription>
      <ItemId>2</ItemId>
      <ItemName>sample string 9</ItemName>
      <LotNumber>sample string 8</LotNumber>
      <MasterId>1</MasterId>
      <Notes>sample string 7</Notes>
      <PODetailsId>1</PODetailsId>
      <ProjectId>1</ProjectId>
      <ProjectName>sample string 10</ProjectName>
      <Quantity>5</Quantity>
      <StockItem>sample string 12</StockItem>
      <StockTransactionId>1</StockTransactionId>
      <SubAccountId>1</SubAccountId>
      <TaxRate>16</TaxRate>
      <TaxTypeId>1</TaxTypeId>
      <TaxValue>17</TaxValue>
      <Total>6</Total>
      <UnitPrice>1</UnitPrice>
      <WithRate>18</WithRate>
      <WithValue>19</WithValue>
    </Acc_InvoiceDetails>
    <Acc_InvoiceDetails>
      <Id>24</Id>
      <AdditionalExp>true</AdditionalExp>
      <Cost>1</Cost>
      <DepartmentId>1</DepartmentId>
      <DepartmentName>sample string 11</DepartmentName>
      <DisRate>20</DisRate>
      <DisValue>21</DisValue>
      <ExpirationDate>2021-10-27T21:32:05.1738693+02:00</ExpirationDate>
      <GroupName>sample string 14</GroupName>
      <InvSubAccountName>sample string 23</InvSubAccountName>
      <InvTaxTypeName>sample string 22</InvTaxTypeName>
      <ItemCode>sample string 13</ItemCode>
      <ItemDate>2021-10-27T00:00:00+02:00</ItemDate>
      <ItemDescription>sample string 15</ItemDescription>
      <ItemId>2</ItemId>
      <ItemName>sample string 9</ItemName>
      <LotNumber>sample string 8</LotNumber>
      <MasterId>1</MasterId>
      <Notes>sample string 7</Notes>
      <PODetailsId>1</PODetailsId>
      <ProjectId>1</ProjectId>
      <ProjectName>sample string 10</ProjectName>
      <Quantity>5</Quantity>
      <StockItem>sample string 12</StockItem>
      <StockTransactionId>1</StockTransactionId>
      <SubAccountId>1</SubAccountId>
      <TaxRate>16</TaxRate>
      <TaxTypeId>1</TaxTypeId>
      <TaxValue>17</TaxValue>
      <Total>6</Total>
      <UnitPrice>1</UnitPrice>
      <WithRate>18</WithRate>
      <WithValue>19</WithValue>
    </Acc_InvoiceDetails>
    <Acc_InvoiceDetails>
      <Id>24</Id>
      <AdditionalExp>true</AdditionalExp>
      <Cost>1</Cost>
      <DepartmentId>1</DepartmentId>
      <DepartmentName>sample string 11</DepartmentName>
      <DisRate>20</DisRate>
      <DisValue>21</DisValue>
      <ExpirationDate>2021-10-27T21:32:05.1738693+02:00</ExpirationDate>
      <GroupName>sample string 14</GroupName>
      <InvSubAccountName>sample string 23</InvSubAccountName>
      <InvTaxTypeName>sample string 22</InvTaxTypeName>
      <ItemCode>sample string 13</ItemCode>
      <ItemDate>2021-10-27T00:00:00+02:00</ItemDate>
      <ItemDescription>sample string 15</ItemDescription>
      <ItemId>2</ItemId>
      <ItemName>sample string 9</ItemName>
      <LotNumber>sample string 8</LotNumber>
      <MasterId>1</MasterId>
      <Notes>sample string 7</Notes>
      <PODetailsId>1</PODetailsId>
      <ProjectId>1</ProjectId>
      <ProjectName>sample string 10</ProjectName>
      <Quantity>5</Quantity>
      <StockItem>sample string 12</StockItem>
      <StockTransactionId>1</StockTransactionId>
      <SubAccountId>1</SubAccountId>
      <TaxRate>16</TaxRate>
      <TaxTypeId>1</TaxTypeId>
      <TaxValue>17</TaxValue>
      <Total>6</Total>
      <UnitPrice>1</UnitPrice>
      <WithRate>18</WithRate>
      <WithValue>19</WithValue>
    </Acc_InvoiceDetails>
  </invoiceDetails>
</Acc_VM_CreateInvoice>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Acc_VM_CreateInvoice'.

Response Information

No documentation available.

Response body formats

application/json, text/json

Sample:
{
  "Result": true,
  "ErrorMessage": "sample string 2"
}

application/xml, text/xml

Sample:
<GeneralErrors xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ERP_Plus">
  <ErrorMessage>sample string 2</ErrorMessage>
  <Result>true</Result>
</GeneralErrors>