Gets line details for an invoice
Endpoint:
GET v1/InvoiceLineItem?invoiceId={invoiceId}
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
invoiceId |
Invoice Id |
integer |
Required |
Body Parameters
None.
Response Information
Collection of InvoiceLineItemName | Description | Type | Additional information |
---|---|---|---|
InvoiceId | integer |
None. |
|
InvoiceLine | integer |
None. |
|
PartId | string |
None. |
|
PartName | string |
None. |
|
EachPrice | decimal number |
None. |
|
QuantityOrdered | integer |
None. |
|
LinePrice | decimal number |
None. |
|
QuantityShipped | integer |
None. |
|
OrderId | integer |
None. |
|
OrderLine | integer |
None. |
Response Examples
application/json, text/json :
[ { "InvoiceId": 1, "InvoiceLine": 2, "PartId": "sample string 3", "PartName": "sample string 4", "EachPrice": 6.0, "QuantityOrdered": 7, "LinePrice": 9.0, "QuantityShipped": 10, "OrderId": 11, "OrderLine": 12 }, { "InvoiceId": 1, "InvoiceLine": 2, "PartId": "sample string 3", "PartName": "sample string 4", "EachPrice": 6.0, "QuantityOrdered": 7, "LinePrice": 9.0, "QuantityShipped": 10, "OrderId": 11, "OrderLine": 12 } ]
text/javascript :
[{"InvoiceId":1,"InvoiceLine":2,"PartId":"sample string 3","PartName":"sample string 4","EachPrice":6.0,"QuantityOrdered":7,"LinePrice":9.0,"QuantityShipped":10,"OrderId":11,"OrderLine":12},{"InvoiceId":1,"InvoiceLine":2,"PartId":"sample string 3","PartName":"sample string 4","EachPrice":6.0,"QuantityOrdered":7,"LinePrice":9.0,"QuantityShipped":10,"OrderId":11,"OrderLine":12}]
application/xml, text/xml :
<ArrayOfInvoiceLineItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Sunlight.Library.Models"> <InvoiceLineItem> <EachPrice>6</EachPrice> <InvoiceId>1</InvoiceId> <InvoiceLine>2</InvoiceLine> <LinePrice>9</LinePrice> <OrderId>11</OrderId> <OrderLine>12</OrderLine> <PartId>sample string 3</PartId> <PartName>sample string 4</PartName> <QuantityOrdered>7</QuantityOrdered> <QuantityShipped>10</QuantityShipped> </InvoiceLineItem> <InvoiceLineItem> <EachPrice>6</EachPrice> <InvoiceId>1</InvoiceId> <InvoiceLine>2</InvoiceLine> <LinePrice>9</LinePrice> <OrderId>11</OrderId> <OrderLine>12</OrderLine> <PartId>sample string 3</PartId> <PartName>sample string 4</PartName> <QuantityOrdered>7</QuantityOrdered> <QuantityShipped>10</QuantityShipped> </InvoiceLineItem> </ArrayOfInvoiceLineItem>
text/csv :
InvoiceId,InvoiceLine,PartId,PartName,EachPrice,QuantityOrdered,LinePrice,QuantityShipped,OrderId,OrderLine 1,2,sample string 3,sample string 4,6,7,9,10,11,12 1,2,sample string 3,sample string 4,6,7,9,10,11,12
text/tsv :
InvoiceId InvoiceLine PartId PartName EachPrice QuantityOrdered LinePrice QuantityShipped OrderId OrderLine 1 2 sample string 3 sample string 4 6 7 9 10 11 12 1 2 sample string 3 sample string 4 6 7 9 10 11 12