Skip to main content

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.

The bakery endpoints let a baker read their profile, update contact and schedule information, and flip the open/closed switch that customers see in real time. All three endpoints operate on the authenticated baker’s own bakery — there is no bakery ID in the path; identity comes from the Bearer token.

GET /bakeries/me

Returns the full profile for the authenticated baker’s bakery.
curl https://your-backend.com/api/v1/bakeries/me \
  -H "Authorization: Bearer <token>" \
  -H "X-User-Name: María"

Response

{
  "data": {
    "id": "bky_abc123",
    "name": "La Canasta de María",
    "description": "Pan artesanal horneado cada mañana.",
    "phone": "3001234567",
    "address": "Calle 10 # 5-20, Bogotá",
    "openTime": "07:00",
    "closeTime": "14:00",
    "isOpen": true,
    "status": "ACTIVE",
    "rating": 4.8,
    "totalReviews": 34,
    "logoUrl": "https://cdn.example.com/logos/bky_abc123.jpg",
    "bannerUrl": "https://cdn.example.com/banners/bky_abc123.jpg"
  }
}
id
string
Unique bakery identifier.
name
string
Public display name of the bakery.
description
string
Short description shown to customers.
phone
string
Contact phone number.
address
string
Physical address of the bakery.
openTime
string
Configured opening time in HH:mm format (e.g. "07:00").
closeTime
string
Configured closing time in HH:mm format (e.g. "14:00").
isOpen
boolean
Whether the bakery is currently accepting orders.
status
string
Account status. One of ACTIVE, INACTIVE, or SUSPENDED.
rating
number
Average customer rating (float).
totalReviews
number
Total number of customer reviews.
logoUrl
string
URL of the bakery logo image, or null if not set.
bannerUrl
string
URL of the bakery banner image, or null if not set.

PATCH /bakeries/me

Updates the profile fields for the authenticated baker’s bakery. Send only the fields you want to change.

Request body

{
  "name": "La Canasta de María",
  "description": "Pan artesanal horneado cada mañana.",
  "phone": "3001234567",
  "address": "Calle 10 # 5-20, Bogotá",
  "openTime": "07:00",
  "closeTime": "14:00"
}
name
string
Public display name of the bakery.
description
string
Short description shown to customers.
phone
string
Contact phone number.
address
string
Physical address of the bakery.
openTime
string
Opening time in HH:mm format.
closeTime
string
Closing time in HH:mm format.

Response

Returns the updated bakery object with the same fields as GET /bakeries/me.

PATCH /bakeries/me/open

Toggles the bakery open or closed. The server may reject the request if the current time falls outside the configured openTimecloseTime window.

Request body

{
  "isOpen": true
}
isOpen
boolean
required
Pass true to open the bakery for orders, or false to close it.

Response

Returns the updated bakery object. Check isOpen in the response to confirm the new state.
{
  "data": {
    "id": "bky_abc123",
    "isOpen": true,
    ...
  }
}
The server enforces the configured schedule. If you send isOpen: true outside the openTimecloseTime window, the request may return an error. The app surfaces this as “Fuera del horario configurado”.

Build docs developers (and LLMs) love