POST api/Invoice/InvoicingData/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
Collection of InvoicingDataViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Type | ReportItemType |
None. |
|
| ReportItemID | integer |
None. |
|
| DisplayName | string |
None. |
|
| SellingPrice | decimal number |
None. |
|
| Received | decimal number |
None. |
|
| AmountDue | decimal number |
None. |
|
| DealerNet | decimal number |
None. |
|
| Payment | decimal number |
None. |
|
| AmountOwed | decimal number |
None. |
|
| Commission | decimal number |
None. |
|
| ProfitMargin | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"type": {
"reportItemTypeID": 1,
"name": "sample string 2"
},
"reportItemID": 1,
"displayName": "sample string 2",
"sellingPrice": 3.0,
"received": 4.0,
"amountDue": 5.0,
"dealerNet": 6.0,
"payment": 7.0,
"amountOwed": 8.0,
"commission": 9.0,
"profitMargin": 10.0
},
{
"type": {
"reportItemTypeID": 1,
"name": "sample string 2"
},
"reportItemID": 1,
"displayName": "sample string 2",
"sellingPrice": 3.0,
"received": 4.0,
"amountDue": 5.0,
"dealerNet": 6.0,
"payment": 7.0,
"amountOwed": 8.0,
"commission": 9.0,
"profitMargin": 10.0
}
]
application/xml, text/xml
Sample:
<ArrayOfInvoicingDataViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GameTimeBAL.ViewModels">
<InvoicingDataViewModel>
<AmountDue>5</AmountDue>
<AmountOwed>8</AmountOwed>
<Commission>9</Commission>
<DealerNet>6</DealerNet>
<DisplayName>sample string 2</DisplayName>
<Payment>7</Payment>
<ProfitMargin>10</ProfitMargin>
<Received>4</Received>
<ReportItemID>1</ReportItemID>
<SellingPrice>3</SellingPrice>
<Type xmlns:d3p1="http://schemas.datacontract.org/2004/07/GameTimeDAL.Model">
<d3p1:Name>sample string 2</d3p1:Name>
<d3p1:ReportItemTypeID>1</d3p1:ReportItemTypeID>
</Type>
</InvoicingDataViewModel>
<InvoicingDataViewModel>
<AmountDue>5</AmountDue>
<AmountOwed>8</AmountOwed>
<Commission>9</Commission>
<DealerNet>6</DealerNet>
<DisplayName>sample string 2</DisplayName>
<Payment>7</Payment>
<ProfitMargin>10</ProfitMargin>
<Received>4</Received>
<ReportItemID>1</ReportItemID>
<SellingPrice>3</SellingPrice>
<Type xmlns:d3p1="http://schemas.datacontract.org/2004/07/GameTimeDAL.Model">
<d3p1:Name>sample string 2</d3p1:Name>
<d3p1:ReportItemTypeID>1</d3p1:ReportItemTypeID>
</Type>
</InvoicingDataViewModel>
</ArrayOfInvoicingDataViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.