POST api/SalesOrder/InvoiceLineItemCalculation

Request Information

URI Parameters

None.

Body Parameters

InvoiceLineItemCalCulation
NameDescriptionTypeAdditional information
TaxTypeId

integer

None.

CurrencyId

integer

None.

CurrencyRate

string

None.

LanguageId

integer

None.

LineItemDetails

Collection of LineItemDetails

None.

Request Formats

application/json, text/json

Sample:
{
  "LineItemDetails": [
    {
      "CostCenterId": [
        1,
        2
      ],
      "IndexId": 1,
      "InvoiceDetailId": 2,
      "ItemId": 3,
      "ItemName": "sample string 4",
      "Description": "sample string 5",
      "AccountName": "sample string 6",
      "AccountNameId": 7,
      "VATId": 8,
      "UnitPrice": "sample string 9",
      "Quantity": "sample string 10",
      "Discount": "sample string 11",
      "DiscountPercentage": "sample string 12",
      "NetAmount": "sample string 13",
      "VATAmount": "sample string 14",
      "TotalAmount": "sample string 15",
      "Unit": 16,
      "TimeTrackingId": 17,
      "ProjectExpencesNumber": "sample string 18",
      "IsStandardVatRate": true
    },
    {
      "CostCenterId": [
        1,
        2
      ],
      "IndexId": 1,
      "InvoiceDetailId": 2,
      "ItemId": 3,
      "ItemName": "sample string 4",
      "Description": "sample string 5",
      "AccountName": "sample string 6",
      "AccountNameId": 7,
      "VATId": 8,
      "UnitPrice": "sample string 9",
      "Quantity": "sample string 10",
      "Discount": "sample string 11",
      "DiscountPercentage": "sample string 12",
      "NetAmount": "sample string 13",
      "VATAmount": "sample string 14",
      "TotalAmount": "sample string 15",
      "Unit": 16,
      "TimeTrackingId": 17,
      "ProjectExpencesNumber": "sample string 18",
      "IsStandardVatRate": true
    }
  ],
  "TaxTypeId": 1,
  "CurrencyId": 2,
  "CurrencyRate": "sample string 3",
  "LanguageId": 4
}

text/html

Sample:
{"LineItemDetails":[{"CostCenterId":[1,2],"IndexId":1,"InvoiceDetailId":2,"ItemId":3,"ItemName":"sample string 4","Description":"sample string 5","AccountName":"sample string 6","AccountNameId":7,"VATId":8,"UnitPrice":"sample string 9","Quantity":"sample string 10","Discount":"sample string 11","DiscountPercentage":"sample string 12","NetAmount":"sample string 13","VATAmount":"sample string 14","TotalAmount":"sample string 15","Unit":16,"TimeTrackingId":17,"ProjectExpencesNumber":"sample string 18","IsStandardVatRate":true},{"CostCenterId":[1,2],"IndexId":1,"InvoiceDetailId":2,"ItemId":3,"ItemName":"sample string 4","Description":"sample string 5","AccountName":"sample string 6","AccountNameId":7,"VATId":8,"UnitPrice":"sample string 9","Quantity":"sample string 10","Discount":"sample string 11","DiscountPercentage":"sample string 12","NetAmount":"sample string 13","VATAmount":"sample string 14","TotalAmount":"sample string 15","Unit":16,"TimeTrackingId":17,"ProjectExpencesNumber":"sample string 18","IsStandardVatRate":true}],"TaxTypeId":1,"CurrencyId":2,"CurrencyRate":"sample string 3","LanguageId":4}

application/xml, text/xml

Sample:
<InvoiceLineItemCalCulation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EasyAccounting.ViewModel">
  <CurrencyId>2</CurrencyId>
  <CurrencyRate>sample string 3</CurrencyRate>
  <LanguageId>4</LanguageId>
  <LineItemDetails>
    <LineItemDetails>
      <AccountName>sample string 6</AccountName>
      <AccountNameId>7</AccountNameId>
      <CostCenterId xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:long>1</d4p1:long>
        <d4p1:long>2</d4p1:long>
      </CostCenterId>
      <Description>sample string 5</Description>
      <Discount>sample string 11</Discount>
      <DiscountPercentage>sample string 12</DiscountPercentage>
      <IndexId>1</IndexId>
      <InvoiceDetailId>2</InvoiceDetailId>
      <IsStandardVatRate>true</IsStandardVatRate>
      <ItemId>3</ItemId>
      <ItemName>sample string 4</ItemName>
      <NetAmount>sample string 13</NetAmount>
      <ProjectExpencesNumber>sample string 18</ProjectExpencesNumber>
      <Quantity>sample string 10</Quantity>
      <TimeTrackingId>17</TimeTrackingId>
      <TotalAmount>sample string 15</TotalAmount>
      <Unit>16</Unit>
      <UnitPrice>sample string 9</UnitPrice>
      <VATAmount>sample string 14</VATAmount>
      <VATId>8</VATId>
    </LineItemDetails>
    <LineItemDetails>
      <AccountName>sample string 6</AccountName>
      <AccountNameId>7</AccountNameId>
      <CostCenterId xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:long>1</d4p1:long>
        <d4p1:long>2</d4p1:long>
      </CostCenterId>
      <Description>sample string 5</Description>
      <Discount>sample string 11</Discount>
      <DiscountPercentage>sample string 12</DiscountPercentage>
      <IndexId>1</IndexId>
      <InvoiceDetailId>2</InvoiceDetailId>
      <IsStandardVatRate>true</IsStandardVatRate>
      <ItemId>3</ItemId>
      <ItemName>sample string 4</ItemName>
      <NetAmount>sample string 13</NetAmount>
      <ProjectExpencesNumber>sample string 18</ProjectExpencesNumber>
      <Quantity>sample string 10</Quantity>
      <TimeTrackingId>17</TimeTrackingId>
      <TotalAmount>sample string 15</TotalAmount>
      <Unit>16</Unit>
      <UnitPrice>sample string 9</UnitPrice>
      <VATAmount>sample string 14</VATAmount>
      <VATId>8</VATId>
    </LineItemDetails>
  </LineItemDetails>
  <TaxTypeId>1</TaxTypeId>
</InvoiceLineItemCalCulation>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.