---
title: "Retrieve a package price rule"
method: GET
path: "/shop/packages/{packageId}/price-rules/{priceRuleId}"
tags: ["Packages"]
---

# Retrieve a package price rule

`GET /shop/packages/{packageId}/price-rules/{priceRuleId}`

Returns a single `PriceRule` belonging to the given `Package`.
Requires read access to the package's site.

## Response `200`

A single `PriceRule` belonging to a `Package`.

- object
  - `data` SchemasPriceRule, required
    - `id` string, object-id — The ID of the price rule.
    - `price` integer — The price applied by this rule
    - `date_from` string, date, nullable — The first date this rule should be applied.
    - `date_to` string, date, nullable — The last date this rule should be applied.
    - `weekdays` string[] — The weekdays this rule should be applied.
    - `time_from` string, nullable — This rule will be applied to bookings starting on or after this time.
    - `time_to` string, nullable — This rule will be applied to bookings starting before this time.
    - `duration` integer, nullable — This rule will be applied to bookings of this duration.

## Other responses

- `401` — The user is unauthenticated
- `403` — The authenticated user does not have permission.
- `404` — The resource couldn't be found

---

[API](https://skmtc.dev/try/apis/trybe-api.md) · [All operations](https://skmtc.dev/try/apis/trybe-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/try/trybe-api/revisions/f37f92702da5/schema)
