Promotions let a bakery offer discounts to customers. The API supports three promotion types: a percentage off the order total, a fixed monetary amount deducted, and a happy-hour window during which a percentage discount applies automatically. Each promotion can be enabled or disabled independently without deleting it.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/AndrewwCO/Pana-Baker/llms.txt
Use this file to discover all available pages before exploring further.
Promotion types
| Type | Description | Required fields |
|---|---|---|
PERCENTAGE | Applies a percentage discount to the order total | discountPct |
FIXED_AMOUNT | Deducts a fixed amount in COP from the order total | discountAmount |
HAPPY_HOUR | Applies a percentage discount during a specified time window | discountPct, happyHourStart, happyHourEnd |
GET /promotions/me
Returns all promotions for the authenticated bakery, both active and inactive.Response
Returns an array of promotion objects.Unique promotion identifier.
Short display name for the promotion.
Optional longer description of the promotion.
Promotion type. One of
PERCENTAGE, FIXED_AMOUNT, or HAPPY_HOUR.Percentage discount value. Used for
PERCENTAGE and HAPPY_HOUR types.Fixed discount amount in COP. Used for
FIXED_AMOUNT type.Start time of the happy-hour window in
HH:mm format. Used for HAPPY_HOUR type.End time of the happy-hour window in
HH:mm format. Used for HAPPY_HOUR type.Whether the promotion is currently active and applied to orders.
POST /promotions
Creates a new promotion for the authenticated bakery.Request body
Short display name for the promotion. The app requires this field before saving.
Optional longer description of the promotion.
Promotion type. One of
PERCENTAGE, FIXED_AMOUNT, or HAPPY_HOUR.Percentage to discount (0–100). Required when
type is PERCENTAGE or HAPPY_HOUR.Fixed amount to deduct in COP. Required when
type is FIXED_AMOUNT.Start of the discount window in
HH:mm format. Required when type is HAPPY_HOUR.End of the discount window in
HH:mm format. Required when type is HAPPY_HOUR.Response
Returns the created promotion object, including the server-assignedid and an active field reflecting the server’s default state.
PATCH /promotions/:id/toggle
Toggles theactive state of a promotion. An active promotion becomes inactive, and vice versa. No request body is required.
Path parameters
The unique promotion ID.
Response
Returns the updated promotion object with the newactive value.
DELETE /promotions/:id
Permanently deletes a promotion. This action cannot be undone.Path parameters
The unique promotion ID.