POST api/v1/ProductStdCostChanges
Retrieve changes made to product standard costs
You can send a 'from' and 'to' date and all items changed between them will be returned
If the 'to' date is today then from cost will be compared to live standard cost on the product record
Request Information
URI Parameters
None.
Body Parameters
ProductStdCostChangeParamsName | Description | Type | Additional information |
---|---|---|---|
apiKey |
Please contact Caliq support to get your key |
string |
Required |
DateFrom |
From date to use to find historical standard cost, in YYYYMMDD format. Always compared to current std cost value |
string |
None. |
DateTo |
To date to use to find historical standard cost, in YYYYMMDD format. If today then will be compared to live standard cost |
string |
None. |
Request Formats
application/json, text/json
{ "DateFrom": "sample string 1", "DateTo": "sample string 2", "apiKey": "sample string 1" }
application/xml, text/xml
<ProductStdCostChangeParams xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <DateFrom>sample string 1</DateFrom> <DateTo>sample string 2</DateTo> <apiKey>sample string 1</apiKey> </ProductStdCostChangeParams>
Response Information
Resource Description
Returns:
200 OK Returns a collection of product stock data
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 product code or product id don't exist
503 Service Unavailable
Name | Description | Type | Additional information |
---|---|---|---|
StdCostChangeList | Collection of StdCostChange |
None. |
Response Formats
application/json, text/json
{ "StdCostChangeList": [ { "ID": 1, "Code": "sample string 2", "Description": "sample string 3", "OuterPackSize": 4, "StdCostWas": 5.1, "StdCostNow": 6.1, "MainSupplier": "sample string 7", "BuyGroup": "sample string 8" }, { "ID": 1, "Code": "sample string 2", "Description": "sample string 3", "OuterPackSize": 4, "StdCostWas": 5.1, "StdCostNow": 6.1, "MainSupplier": "sample string 7", "BuyGroup": "sample string 8" } ] }
application/xml, text/xml
<StdCostChanges xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <StdCostChange> <ID>1</ID> <Code>sample string 2</Code> <Description>sample string 3</Description> <OuterPackSize>4</OuterPackSize> <StdCostWas>5.1</StdCostWas> <StdCostNow>6.1</StdCostNow> <MainSupplier>sample string 7</MainSupplier> <BuyGroup>sample string 8</BuyGroup> </StdCostChange> <StdCostChange> <ID>1</ID> <Code>sample string 2</Code> <Description>sample string 3</Description> <OuterPackSize>4</OuterPackSize> <StdCostWas>5.1</StdCostWas> <StdCostNow>6.1</StdCostNow> <MainSupplier>sample string 7</MainSupplier> <BuyGroup>sample string 8</BuyGroup> </StdCostChange> </StdCostChanges>