JiwaAPI

<back to all web services

InventorySellingPriceGETRequest

Requires Authentication
The following routes are available for this service:
GET/Inventory/{InventoryID}/SellingPricesRetrieves the selling prices for an inventory item.
InventorySellingPriceGETRequest Parameters:
NameParameterData TypeRequiredDescription
InventoryIDpathstringNo
InventorySellingPrices Parameters:
NameParameterData TypeRequiredDescription
SellPricesformList<InventorySellingPrice>No
CurrentPriceDateformDateTime?No
ForwardPriceDateformDateTime?No
InventorySellingPrice Parameters:
NameParameterData TypeRequiredDescription
Priceformdecimal?No
PriceIsIncTaxformbool?No
ForwardPriceformdecimal?No
SellingPriceIDformstringNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /Inventory/{InventoryID}/SellingPrices HTTP/1.1 
Host: api.jiwa.com.au 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<InventorySellingPrices xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JiwaFinancials.Jiwa.JiwaServiceModel.Inventory">
  <_x003C_CurrentPriceDate_x003E_k__BackingField>0001-01-01T00:00:00</_x003C_CurrentPriceDate_x003E_k__BackingField>
  <_x003C_ForwardPriceDate_x003E_k__BackingField>0001-01-01T00:00:00</_x003C_ForwardPriceDate_x003E_k__BackingField>
  <_x003C_SellPrices_x003E_k__BackingField>
    <InventorySellingPrice>
      <_x003C_ForwardPrice_x003E_k__BackingField>0</_x003C_ForwardPrice_x003E_k__BackingField>
      <_x003C_PriceIsIncTax_x003E_k__BackingField>false</_x003C_PriceIsIncTax_x003E_k__BackingField>
      <_x003C_Price_x003E_k__BackingField>0</_x003C_Price_x003E_k__BackingField>
      <_x003C_SellingPriceID_x003E_k__BackingField>String</_x003C_SellingPriceID_x003E_k__BackingField>
    </InventorySellingPrice>
  </_x003C_SellPrices_x003E_k__BackingField>
</InventorySellingPrices>