GET POST | /PricingRule/ProductPriceGet | Gets pricing details for a product |
Uses your API Key, a ProductId, a DocumentTypeId, Quantity and some other optional parameters to return pricing details for the requested product.
If the SupplierClientId parameter is provided, then specific pricing details for that Supplier/Client are returned.
The IssueDate parameter will only take effect if the pricing rule affecting the product is valid within a date range.
A. Get pricing details for a product that is unaffected by pricing rules.
Value: {
"APIKEY": "YOUR_API_KEY_HERE",
"ProductId": 61598,
"DocumentTypeId": 3,
"Quantity": 1
}
Response: {
"PricingDetails": [
{
"PricingRuleName": "Default Sales Price",
"PricingRuleID": 0,
"CalculatedBasePrice": 100,
"DiscountID": 0,
"TaxID": 0,
"MinimumQuantity": -1,
"MaximumQuantity": 100000000,
"AllowEdit": true,
"TotalDiscountAmount": 0,
"TotalTaxAmount": 0,
"TotalAmount": 100
}
],
"ResponseStatus": {
"ErrorCode": "0"
}
}
B. Get pricing details for a product that is affected by a pricing rule.
Value: {
"APIKEY": "YOUR_API_KEY_HERE",
"ProductId": 61599,
"DocumentTypeId": 3,
"Quantity": 1
}
Response: {
"PricingDetails": [
{
"PricingRuleName": "Targeted Product Discount",
"PricingRuleID": 104,
"CalculatedBasePrice": 120,
"DiscountID": 0,
"TaxID": 0,
"MinimumQuantity": -1,
"MaximumQuantity": 100000000,
"AllowEdit": true,
"TotalDiscountAmount": 0,
"TotalTaxAmount": 0,
"TotalAmount": 120
},
{
"PricingRuleName": "Default Sales Price",
"PricingRuleID": 0,
"CalculatedBasePrice": 150,
"DiscountID": 0,
"TaxID": 0,
"MinimumQuantity": -1,
"MaximumQuantity": 100000000,
"AllowEdit": true,
"TotalDiscountAmount": 0,
"TotalTaxAmount": 0,
"TotalAmount": 150
}
],
"ResponseStatus": {
"ErrorCode": "0"
}
}
C. Get pricing details for a product that is affected by a pricing rule for a specific Supplier/Client.
Value: {
"APIKEY": "YOUR_API_KEY_HERE",
"ProductId": 61599,
"DocumentTypeId": 3,
"Quantity": 1,
"SupplierClientId": 5486
}
Response: {
"PricingDetails": [
{
"PricingRuleName": "Returning Customer",
"PricingRuleID": 100,
"CalculatedBasePrice": 85,
"DiscountID": 0,
"TaxID": 0,
"MinimumQuantity": -1,
"MaximumQuantity": 100000000,
"AllowEdit": true,
"TotalDiscountAmount": 0,
"TotalTaxAmount": 0,
"TotalAmount": 85
},
{
"PricingRuleName": "Default Sales Price",
"PricingRuleID": 0,
"CalculatedBasePrice": 100,
"DiscountID": 0,
"TaxID": 0,
"MinimumQuantity": -1,
"MaximumQuantity": 100000000,
"AllowEdit": true,
"TotalDiscountAmount": 0,
"TotalTaxAmount": 0,
"TotalAmount": 100
}
],
"ResponseStatus": {
"ErrorCode": "0"
}
}
|
---|