POST api/v1/OrderLine
Retrieve the breakdown of a specific order, credit or customer return
You can send either order number or order ID dending on what you have stored
Request Information
URI Parameters
None.
Body Parameters
OrderBreakdownParamsName | Description | Type | Additional information |
---|---|---|---|
apiKey |
Please contact Caliq support to get your key |
string |
Required |
OrderID |
Internal Id of the order you want details for |
integer |
None. |
OrderNo |
Order number of the order you want details for. If using number rather than ID you MUST supply order type |
integer |
None. |
OrderType |
Retrieved in data when calling for order list. Order/Credit/Return |
string |
None. |
Request Formats
application/json, text/json
{ "OrderID": 1, "OrderNo": 2, "OrderType": "sample string 3", "apiKey": "sample string 1" }
application/xml, text/xml
<OrderBreakdownParams xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <OrderID>1</OrderID> <OrderNo>2</OrderNo> <OrderType>sample string 3</OrderType> <apiKey>sample string 1</apiKey> </OrderBreakdownParams>
Response Information
Resource Description
Returns:
200 OK Returns a collection of order lines
400 Bad Request - parameters supplied cannot be properly interpreted
401 Not Authorised if supplied api key is not valid
204 No Content if the requested filters dont match any data
503 Service Unavailable
Name | Description | Type | Additional information |
---|---|---|---|
OrderLineList | Collection of OrderLine |
None. |
Response Formats
application/json, text/json
{ "OrderLineList": [ { "OrderID": 1, "OrderNumber": 2, "LineID": 3, "Editable": true, "ID": 5, "Code": "sample string 6", "Description": "sample string 7", "Qty": 8, "QtyDespatched": 9, "QtyInWarehouse": 10, "QtyInvoiced": 11, "QtyProcessed": 12, "Status": "sample string 13", "Value": 14.0, "ValueIncVAT": 15.0, "UnitPrice": 16.0, "UnitPriceCust": 17.0, "UnitPriceList": 18.0, "RequiredDate": "sample string 19", "EstimatedDate": "sample string 20", "EstimatedDateText": "sample string 21", "LineText": "sample string 22", "IsKitHeader": true, "IsKitItem": true, "KitParentLineID": 25 }, { "OrderID": 1, "OrderNumber": 2, "LineID": 3, "Editable": true, "ID": 5, "Code": "sample string 6", "Description": "sample string 7", "Qty": 8, "QtyDespatched": 9, "QtyInWarehouse": 10, "QtyInvoiced": 11, "QtyProcessed": 12, "Status": "sample string 13", "Value": 14.0, "ValueIncVAT": 15.0, "UnitPrice": 16.0, "UnitPriceCust": 17.0, "UnitPriceList": 18.0, "RequiredDate": "sample string 19", "EstimatedDate": "sample string 20", "EstimatedDateText": "sample string 21", "LineText": "sample string 22", "IsKitHeader": true, "IsKitItem": true, "KitParentLineID": 25 } ] }
application/xml, text/xml
<OrderLines xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <OrderLine> <OrderID>1</OrderID> <OrderNumber>2</OrderNumber> <LineID>3</LineID> <Editable>true</Editable> <ID>5</ID> <Code>sample string 6</Code> <Description>sample string 7</Description> <Qty>8</Qty> <QtyDespatched>9</QtyDespatched> <QtyInWarehouse>10</QtyInWarehouse> <QtyInvoiced>11</QtyInvoiced> <QtyProcessed>12</QtyProcessed> <Status>sample string 13</Status> <Value>14</Value> <ValueIncVAT>15</ValueIncVAT> <UnitPrice>16</UnitPrice> <UnitPriceCust>17</UnitPriceCust> <UnitPriceList>18</UnitPriceList> <RequiredDate>sample string 19</RequiredDate> <EstimatedDate>sample string 20</EstimatedDate> <EstimatedDateText>sample string 21</EstimatedDateText> <LineText>sample string 22</LineText> <IsKitHeader>true</IsKitHeader> <IsKitItem>true</IsKitItem> <KitParentLineID>25</KitParentLineID> </OrderLine> <OrderLine> <OrderID>1</OrderID> <OrderNumber>2</OrderNumber> <LineID>3</LineID> <Editable>true</Editable> <ID>5</ID> <Code>sample string 6</Code> <Description>sample string 7</Description> <Qty>8</Qty> <QtyDespatched>9</QtyDespatched> <QtyInWarehouse>10</QtyInWarehouse> <QtyInvoiced>11</QtyInvoiced> <QtyProcessed>12</QtyProcessed> <Status>sample string 13</Status> <Value>14</Value> <ValueIncVAT>15</ValueIncVAT> <UnitPrice>16</UnitPrice> <UnitPriceCust>17</UnitPriceCust> <UnitPriceList>18</UnitPriceList> <RequiredDate>sample string 19</RequiredDate> <EstimatedDate>sample string 20</EstimatedDate> <EstimatedDateText>sample string 21</EstimatedDateText> <LineText>sample string 22</LineText> <IsKitHeader>true</IsKitHeader> <IsKitItem>true</IsKitItem> <KitParentLineID>25</KitParentLineID> </OrderLine> </OrderLines>