POST api/custom/CustomPriceWorkbench/GetPrices
Request Information
URI Parameters
None.
Body Parameters
CustomPriceWorkbenchQueryModel| Name | Description | Type | Additional information |
|---|---|---|---|
| BookIds | Collection of integer |
None. |
|
| ProductIds | Collection of integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"BookIds": [
1,
2
],
"ProductIds": [
1,
2
]
}
text/html
Sample:
{"BookIds":[1,2],"ProductIds":[1,2]}
application/xml, text/xml
Sample:
<CustomPriceWorkbenchQueryModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gravitate.WebAPI.Areas.Custom.Models">
<BookIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</BookIds>
<ProductIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</ProductIds>
</CustomPriceWorkbenchQueryModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Collection of CustomPriceWorkbenchRowModel| Name | Description | Type | Additional information |
|---|---|---|---|
| IsDefault | boolean |
None. |
|
| PriceInstrumentId | integer |
None. |
|
| BookName | string |
None. |
|
| ProductName | string |
None. |
|
| PriceInstrumentName | string |
None. |
|
| UnitOfMeasureName | string |
None. |
|
| Prices | Collection of PriceRowModel |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"IsDefault": true,
"PriceInstrumentId": 2,
"BookName": "sample string 3",
"ProductName": "sample string 4",
"PriceInstrumentName": "sample string 5",
"UnitOfMeasureName": "sample string 6",
"Prices": [
{
"DateTime": "2025-12-10T08:25:53.2454251-06:00",
"Price": 1.0
},
{
"DateTime": "2025-12-10T08:25:53.2454251-06:00",
"Price": 1.0
}
]
},
{
"IsDefault": true,
"PriceInstrumentId": 2,
"BookName": "sample string 3",
"ProductName": "sample string 4",
"PriceInstrumentName": "sample string 5",
"UnitOfMeasureName": "sample string 6",
"Prices": [
{
"DateTime": "2025-12-10T08:25:53.2454251-06:00",
"Price": 1.0
},
{
"DateTime": "2025-12-10T08:25:53.2454251-06:00",
"Price": 1.0
}
]
}
]
text/html
Sample:
[{"IsDefault":true,"PriceInstrumentId":2,"BookName":"sample string 3","ProductName":"sample string 4","PriceInstrumentName":"sample string 5","UnitOfMeasureName":"sample string 6","Prices":[{"DateTime":"2025-12-10T08:25:53.2454251-06:00","Price":1.0},{"DateTime":"2025-12-10T08:25:53.2454251-06:00","Price":1.0}]},{"IsDefault":true,"PriceInstrumentId":2,"BookName":"sample string 3","ProductName":"sample string 4","PriceInstrumentName":"sample string 5","UnitOfMeasureName":"sample string 6","Prices":[{"DateTime":"2025-12-10T08:25:53.2454251-06:00","Price":1.0},{"DateTime":"2025-12-10T08:25:53.2454251-06:00","Price":1.0}]}]
application/xml, text/xml
Sample:
<ArrayOfCustomPriceWorkbenchRowModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gravitate.WebAPI.Areas.Custom.Models">
<CustomPriceWorkbenchRowModel>
<BookName>sample string 3</BookName>
<IsDefault>true</IsDefault>
<PriceInstrumentId>2</PriceInstrumentId>
<PriceInstrumentName>sample string 5</PriceInstrumentName>
<Prices>
<CustomPriceWorkbenchRowModel.PriceRowModel>
<DateTime>2025-12-10T08:25:53.2454251-06:00</DateTime>
<Price>1</Price>
</CustomPriceWorkbenchRowModel.PriceRowModel>
<CustomPriceWorkbenchRowModel.PriceRowModel>
<DateTime>2025-12-10T08:25:53.2454251-06:00</DateTime>
<Price>1</Price>
</CustomPriceWorkbenchRowModel.PriceRowModel>
</Prices>
<ProductName>sample string 4</ProductName>
<UnitOfMeasureName>sample string 6</UnitOfMeasureName>
</CustomPriceWorkbenchRowModel>
<CustomPriceWorkbenchRowModel>
<BookName>sample string 3</BookName>
<IsDefault>true</IsDefault>
<PriceInstrumentId>2</PriceInstrumentId>
<PriceInstrumentName>sample string 5</PriceInstrumentName>
<Prices>
<CustomPriceWorkbenchRowModel.PriceRowModel>
<DateTime>2025-12-10T08:25:53.2454251-06:00</DateTime>
<Price>1</Price>
</CustomPriceWorkbenchRowModel.PriceRowModel>
<CustomPriceWorkbenchRowModel.PriceRowModel>
<DateTime>2025-12-10T08:25:53.2454251-06:00</DateTime>
<Price>1</Price>
</CustomPriceWorkbenchRowModel.PriceRowModel>
</Prices>
<ProductName>sample string 4</ProductName>
<UnitOfMeasureName>sample string 6</UnitOfMeasureName>
</CustomPriceWorkbenchRowModel>
</ArrayOfCustomPriceWorkbenchRowModel>