POST api/SalesOrder/InvoiceLineItemCalculation
Request Information
URI Parameters
None.
Body Parameters
InvoiceLineItemCalCulation| Name | Description | Type | Additional 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
],
"CostCenterIdsList": [
{
"MasterBranchCategoryIds": 1,
"PageDetailId": 2
},
{
"MasterBranchCategoryIds": 1,
"PageDetailId": 2
}
],
"CosteCenterCategoriesList": [
{
"TrackingDetailId": 1,
"TrackingListName": "sample string 2",
"IsProjectBranch": true,
"MasterBranchCategoriesList": [
{
"Disabled": true,
"Group": {
"Disabled": true,
"Name": "sample string 2"
},
"Selected": true,
"Text": "sample string 3",
"Value": "sample string 4"
},
{
"Disabled": true,
"Group": {
"Disabled": true,
"Name": "sample string 2"
},
"Selected": true,
"Text": "sample string 3",
"Value": "sample string 4"
}
],
"Value": 4
},
{
"TrackingDetailId": 1,
"TrackingListName": "sample string 2",
"IsProjectBranch": true,
"MasterBranchCategoriesList": [
{
"Disabled": true,
"Group": {
"Disabled": true,
"Name": "sample string 2"
},
"Selected": true,
"Text": "sample string 3",
"Value": "sample string 4"
},
{
"Disabled": true,
"Group": {
"Disabled": true,
"Name": "sample string 2"
},
"Selected": true,
"Text": "sample string 3",
"Value": "sample string 4"
}
],
"Value": 4
}
],
"CostCenterList": [
{
"master_branch_id": 1,
"master_branch_name": "sample string 2",
"IsProjectBranch": true,
"clientid": 1
},
{
"master_branch_id": 1,
"master_branch_name": "sample string 2",
"IsProjectBranch": true,
"clientid": 1
}
],
"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
],
"CostCenterIdsList": [
{
"MasterBranchCategoryIds": 1,
"PageDetailId": 2
},
{
"MasterBranchCategoryIds": 1,
"PageDetailId": 2
}
],
"CosteCenterCategoriesList": [
{
"TrackingDetailId": 1,
"TrackingListName": "sample string 2",
"IsProjectBranch": true,
"MasterBranchCategoriesList": [
{
"Disabled": true,
"Group": {
"Disabled": true,
"Name": "sample string 2"
},
"Selected": true,
"Text": "sample string 3",
"Value": "sample string 4"
},
{
"Disabled": true,
"Group": {
"Disabled": true,
"Name": "sample string 2"
},
"Selected": true,
"Text": "sample string 3",
"Value": "sample string 4"
}
],
"Value": 4
},
{
"TrackingDetailId": 1,
"TrackingListName": "sample string 2",
"IsProjectBranch": true,
"MasterBranchCategoriesList": [
{
"Disabled": true,
"Group": {
"Disabled": true,
"Name": "sample string 2"
},
"Selected": true,
"Text": "sample string 3",
"Value": "sample string 4"
},
{
"Disabled": true,
"Group": {
"Disabled": true,
"Name": "sample string 2"
},
"Selected": true,
"Text": "sample string 3",
"Value": "sample string 4"
}
],
"Value": 4
}
],
"CostCenterList": [
{
"master_branch_id": 1,
"master_branch_name": "sample string 2",
"IsProjectBranch": true,
"clientid": 1
},
{
"master_branch_id": 1,
"master_branch_name": "sample string 2",
"IsProjectBranch": true,
"clientid": 1
}
],
"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],"CostCenterIdsList":[{"MasterBranchCategoryIds":1,"PageDetailId":2},{"MasterBranchCategoryIds":1,"PageDetailId":2}],"CosteCenterCategoriesList":[{"TrackingDetailId":1,"TrackingListName":"sample string 2","IsProjectBranch":true,"MasterBranchCategoriesList":[{"Disabled":true,"Group":{"Disabled":true,"Name":"sample string 2"},"Selected":true,"Text":"sample string 3","Value":"sample string 4"},{"Disabled":true,"Group":{"Disabled":true,"Name":"sample string 2"},"Selected":true,"Text":"sample string 3","Value":"sample string 4"}],"Value":4},{"TrackingDetailId":1,"TrackingListName":"sample string 2","IsProjectBranch":true,"MasterBranchCategoriesList":[{"Disabled":true,"Group":{"Disabled":true,"Name":"sample string 2"},"Selected":true,"Text":"sample string 3","Value":"sample string 4"},{"Disabled":true,"Group":{"Disabled":true,"Name":"sample string 2"},"Selected":true,"Text":"sample string 3","Value":"sample string 4"}],"Value":4}],"CostCenterList":[{"master_branch_id":1,"master_branch_name":"sample string 2","IsProjectBranch":true,"clientid":1},{"master_branch_id":1,"master_branch_name":"sample string 2","IsProjectBranch":true,"clientid":1}],"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],"CostCenterIdsList":[{"MasterBranchCategoryIds":1,"PageDetailId":2},{"MasterBranchCategoryIds":1,"PageDetailId":2}],"CosteCenterCategoriesList":[{"TrackingDetailId":1,"TrackingListName":"sample string 2","IsProjectBranch":true,"MasterBranchCategoriesList":[{"Disabled":true,"Group":{"Disabled":true,"Name":"sample string 2"},"Selected":true,"Text":"sample string 3","Value":"sample string 4"},{"Disabled":true,"Group":{"Disabled":true,"Name":"sample string 2"},"Selected":true,"Text":"sample string 3","Value":"sample string 4"}],"Value":4},{"TrackingDetailId":1,"TrackingListName":"sample string 2","IsProjectBranch":true,"MasterBranchCategoriesList":[{"Disabled":true,"Group":{"Disabled":true,"Name":"sample string 2"},"Selected":true,"Text":"sample string 3","Value":"sample string 4"},{"Disabled":true,"Group":{"Disabled":true,"Name":"sample string 2"},"Selected":true,"Text":"sample string 3","Value":"sample string 4"}],"Value":4}],"CostCenterList":[{"master_branch_id":1,"master_branch_name":"sample string 2","IsProjectBranch":true,"clientid":1},{"master_branch_id":1,"master_branch_name":"sample string 2","IsProjectBranch":true,"clientid":1}],"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>
<CostCenterIdsList>
<InvoiceMasterBranchCategoryId>
<MasterBranchCategoryIds>1</MasterBranchCategoryIds>
<PageDetailId>2</PageDetailId>
</InvoiceMasterBranchCategoryId>
<InvoiceMasterBranchCategoryId>
<MasterBranchCategoryIds>1</MasterBranchCategoryIds>
<PageDetailId>2</PageDetailId>
</InvoiceMasterBranchCategoryId>
</CostCenterIdsList>
<CostCenterList>
<trackingalldetail>
<IsProjectBranch>true</IsProjectBranch>
<clientid>1</clientid>
<master_branch_id>1</master_branch_id>
<master_branch_name>sample string 2</master_branch_name>
</trackingalldetail>
<trackingalldetail>
<IsProjectBranch>true</IsProjectBranch>
<clientid>1</clientid>
<master_branch_id>1</master_branch_id>
<master_branch_name>sample string 2</master_branch_name>
</trackingalldetail>
</CostCenterList>
<CosteCenterCategoriesList>
<InvoiceMasterBranchCategories>
<IsProjectBranch>true</IsProjectBranch>
<MasterBranchCategoriesList xmlns:d6p1="http://schemas.datacontract.org/2004/07/System.Web.Mvc">
<d6p1:SelectListItem>
<d6p1:Disabled>true</d6p1:Disabled>
<d6p1:Group>
<d6p1:Disabled>true</d6p1:Disabled>
<d6p1:Name>sample string 2</d6p1:Name>
</d6p1:Group>
<d6p1:Selected>true</d6p1:Selected>
<d6p1:Text>sample string 3</d6p1:Text>
<d6p1:Value>sample string 4</d6p1:Value>
</d6p1:SelectListItem>
<d6p1:SelectListItem>
<d6p1:Disabled>true</d6p1:Disabled>
<d6p1:Group>
<d6p1:Disabled>true</d6p1:Disabled>
<d6p1:Name>sample string 2</d6p1:Name>
</d6p1:Group>
<d6p1:Selected>true</d6p1:Selected>
<d6p1:Text>sample string 3</d6p1:Text>
<d6p1:Value>sample string 4</d6p1:Value>
</d6p1:SelectListItem>
</MasterBranchCategoriesList>
<TrackingDetailId>1</TrackingDetailId>
<TrackingListName>sample string 2</TrackingListName>
<Value>4</Value>
</InvoiceMasterBranchCategories>
<InvoiceMasterBranchCategories>
<IsProjectBranch>true</IsProjectBranch>
<MasterBranchCategoriesList xmlns:d6p1="http://schemas.datacontract.org/2004/07/System.Web.Mvc">
<d6p1:SelectListItem>
<d6p1:Disabled>true</d6p1:Disabled>
<d6p1:Group>
<d6p1:Disabled>true</d6p1:Disabled>
<d6p1:Name>sample string 2</d6p1:Name>
</d6p1:Group>
<d6p1:Selected>true</d6p1:Selected>
<d6p1:Text>sample string 3</d6p1:Text>
<d6p1:Value>sample string 4</d6p1:Value>
</d6p1:SelectListItem>
<d6p1:SelectListItem>
<d6p1:Disabled>true</d6p1:Disabled>
<d6p1:Group>
<d6p1:Disabled>true</d6p1:Disabled>
<d6p1:Name>sample string 2</d6p1:Name>
</d6p1:Group>
<d6p1:Selected>true</d6p1:Selected>
<d6p1:Text>sample string 3</d6p1:Text>
<d6p1:Value>sample string 4</d6p1:Value>
</d6p1:SelectListItem>
</MasterBranchCategoriesList>
<TrackingDetailId>1</TrackingDetailId>
<TrackingListName>sample string 2</TrackingListName>
<Value>4</Value>
</InvoiceMasterBranchCategories>
</CosteCenterCategoriesList>
<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>
<CostCenterIdsList>
<InvoiceMasterBranchCategoryId>
<MasterBranchCategoryIds>1</MasterBranchCategoryIds>
<PageDetailId>2</PageDetailId>
</InvoiceMasterBranchCategoryId>
<InvoiceMasterBranchCategoryId>
<MasterBranchCategoryIds>1</MasterBranchCategoryIds>
<PageDetailId>2</PageDetailId>
</InvoiceMasterBranchCategoryId>
</CostCenterIdsList>
<CostCenterList>
<trackingalldetail>
<IsProjectBranch>true</IsProjectBranch>
<clientid>1</clientid>
<master_branch_id>1</master_branch_id>
<master_branch_name>sample string 2</master_branch_name>
</trackingalldetail>
<trackingalldetail>
<IsProjectBranch>true</IsProjectBranch>
<clientid>1</clientid>
<master_branch_id>1</master_branch_id>
<master_branch_name>sample string 2</master_branch_name>
</trackingalldetail>
</CostCenterList>
<CosteCenterCategoriesList>
<InvoiceMasterBranchCategories>
<IsProjectBranch>true</IsProjectBranch>
<MasterBranchCategoriesList xmlns:d6p1="http://schemas.datacontract.org/2004/07/System.Web.Mvc">
<d6p1:SelectListItem>
<d6p1:Disabled>true</d6p1:Disabled>
<d6p1:Group>
<d6p1:Disabled>true</d6p1:Disabled>
<d6p1:Name>sample string 2</d6p1:Name>
</d6p1:Group>
<d6p1:Selected>true</d6p1:Selected>
<d6p1:Text>sample string 3</d6p1:Text>
<d6p1:Value>sample string 4</d6p1:Value>
</d6p1:SelectListItem>
<d6p1:SelectListItem>
<d6p1:Disabled>true</d6p1:Disabled>
<d6p1:Group>
<d6p1:Disabled>true</d6p1:Disabled>
<d6p1:Name>sample string 2</d6p1:Name>
</d6p1:Group>
<d6p1:Selected>true</d6p1:Selected>
<d6p1:Text>sample string 3</d6p1:Text>
<d6p1:Value>sample string 4</d6p1:Value>
</d6p1:SelectListItem>
</MasterBranchCategoriesList>
<TrackingDetailId>1</TrackingDetailId>
<TrackingListName>sample string 2</TrackingListName>
<Value>4</Value>
</InvoiceMasterBranchCategories>
<InvoiceMasterBranchCategories>
<IsProjectBranch>true</IsProjectBranch>
<MasterBranchCategoriesList xmlns:d6p1="http://schemas.datacontract.org/2004/07/System.Web.Mvc">
<d6p1:SelectListItem>
<d6p1:Disabled>true</d6p1:Disabled>
<d6p1:Group>
<d6p1:Disabled>true</d6p1:Disabled>
<d6p1:Name>sample string 2</d6p1:Name>
</d6p1:Group>
<d6p1:Selected>true</d6p1:Selected>
<d6p1:Text>sample string 3</d6p1:Text>
<d6p1:Value>sample string 4</d6p1:Value>
</d6p1:SelectListItem>
<d6p1:SelectListItem>
<d6p1:Disabled>true</d6p1:Disabled>
<d6p1:Group>
<d6p1:Disabled>true</d6p1:Disabled>
<d6p1:Name>sample string 2</d6p1:Name>
</d6p1:Group>
<d6p1:Selected>true</d6p1:Selected>
<d6p1:Text>sample string 3</d6p1:Text>
<d6p1:Value>sample string 4</d6p1:Value>
</d6p1:SelectListItem>
</MasterBranchCategoriesList>
<TrackingDetailId>1</TrackingDetailId>
<TrackingListName>sample string 2</TrackingListName>
<Value>4</Value>
</InvoiceMasterBranchCategories>
</CosteCenterCategoriesList>
<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| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |