Packages
Create a price rule for a package
Adds a new PriceRule to a Package. Combine date ranges, time windows and weekday filters to express most pricing scenarios — peak vs off-peak, weekday vs weekend, seasonal overrides. The first rule whose conditions match a given booking wins. Sending no filters creates a fallback "always applies" rule.
date_from defaults to today in the site's timezone when omitted. When offering_standard_price is enabled for the site, the package's standard_price must be set before a price rule can be created. A zero amount counts as set. Requires the SETTINGS_MANAGE permission on the package's site.
post/shop/packages/{packageId}/price-rules
Request body
Example request
{
"price": 20000,
"date_from": "2026-06-01",
"date_to": "2026-08-31",
"time_from": "10:00",
"time_to": "14:00",
"weekdays": [
"saturday",
"sunday"
]
}Response
A single PriceRule belonging to a Package.
Example response
{
"data": {
"price": 4800
}
}Changes
No recorded changes to this endpoint across all 1 revision of this API.