Skip to content

Bundle Pricing API Reference

This page documents the API for the bundle pricing module in Pypulate.

calculate_bundle_price(items, item_prices, bundle_discounts, minimum_bundle_size=2)

Calculate price for bundled items with discounts.

Parameters:

Name Type Description Default
items list

List of items in the bundle

required
item_prices dict

Individual prices for each item

required
bundle_discounts dict

Discount rates for different bundle combinations

required
minimum_bundle_size int

Minimum items required for bundle pricing

2

Returns:

Type Description
float

Total price for the bundle