POST Tariff/ProductCosts
ProductCosts where a Product is bound as a principal or child
Request Information
URI Parameters
None.
Body Parameters
GetProductPrices| Name | Description | Type | Additional information |
|---|---|---|---|
| ID | integer |
None. |
|
| ProductID | integer |
None. |
|
| SKU | string |
None. |
|
| IncludeHistoricalRecords | boolean |
None. |
|
| Lang | string |
None. |
|
| StoreID | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"ID": 1,
"ProductID": 1,
"SKU": "sample string 1",
"IncludeHistoricalRecords": true,
"Lang": "sample string 2",
"StoreID": 3
}
application/xml, text/xml
Sample:
<GetProductPrices xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Admin.Models.View.Tariff"> <Lang xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Admin.Models.Common.Base">sample string 2</Lang> <StoreID xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Admin.Models.Common.Base">3</StoreID> <ID>1</ID> <IncludeHistoricalRecords>true</IncludeHistoricalRecords> <ProductID>1</ProductID> <SKU>sample string 1</SKU> </GetProductPrices>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of ProductCost| Name | Description | Type | Additional information |
|---|---|---|---|
| ID | integer |
None. |
|
| Created | date |
None. |
|
| Modified | date |
None. |
|
| Disabled | date |
None. |
|
| Amount |
the amount of money needed for the business to produce this product |
decimal number |
None. |
| ProductID | integer |
None. |
|
| ExternalID | string |
None. |
|
| SKU | string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"ID": 1,
"Created": "2025-12-06T05:42:09.3705025+01:00",
"Modified": "2025-12-06T05:42:09.3705025+01:00",
"Disabled": "2025-12-06T05:42:09.3705025+01:00",
"Amount": 4.0,
"ProductID": 5,
"ExternalID": "sample string 6",
"SKU": "sample string 7"
},
{
"ID": 1,
"Created": "2025-12-06T05:42:09.3705025+01:00",
"Modified": "2025-12-06T05:42:09.3705025+01:00",
"Disabled": "2025-12-06T05:42:09.3705025+01:00",
"Amount": 4.0,
"ProductID": 5,
"ExternalID": "sample string 6",
"SKU": "sample string 7"
}
]
application/xml, text/xml
Sample:
<ArrayOfProductCost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Admin.Models.View.Tariff">
<ProductCost>
<Amount>4</Amount>
<Created>2025-12-06T05:42:09.3705025+01:00</Created>
<Disabled>2025-12-06T05:42:09.3705025+01:00</Disabled>
<ExternalID>sample string 6</ExternalID>
<ID>1</ID>
<Modified>2025-12-06T05:42:09.3705025+01:00</Modified>
<ProductID>5</ProductID>
<SKU>sample string 7</SKU>
</ProductCost>
<ProductCost>
<Amount>4</Amount>
<Created>2025-12-06T05:42:09.3705025+01:00</Created>
<Disabled>2025-12-06T05:42:09.3705025+01:00</Disabled>
<ExternalID>sample string 6</ExternalID>
<ID>1</ID>
<Modified>2025-12-06T05:42:09.3705025+01:00</Modified>
<ProductID>5</ProductID>
<SKU>sample string 7</SKU>
</ProductCost>
</ArrayOfProductCost>