Skip to content
Pawbulo.usAPI reference · v1

Pawbulous API

Read your salon's locations, services, customers, dogs and appointments, book and cancel visits from your own systems, and receive signed webhooks when things happen. The API is included in the Enterprise plan; the salon owner creates keys and webhooks under Settings → API & webhooks.

Authentication

Send your key in the Authorization header. Keys start with pk_live_ and are shown once when created; keep them secret (server-side only). A key belongs to one salon and can never see another salon's data. Read only keys can call every GET endpoint; read & write keys can also book and cancel.

curl https://pawbulo.us/api/v1 \
  -H "Authorization: Bearer pk_live_..."

Each key may make up to 120 requests per minute; beyond that you get 429 with a Retry-After header.

Conventions

  • JSON in and out. Field names are snake_case; query parameters accept camelCase or snake_case.
  • Money is in integer cents (price_cents: 8500 = $85.00). Instants are ISO 8601 in UTC; calendar days are YYYY-MM-DD.
  • Lists return { data, has_more, next_cursor }. Pass ?limit= (default 50, max 100) and ?cursor= (the previous next_cursor) to page through.
  • Every response has an X-Request-Id header; quote it when asking for help.
  • Staff notes, behavior flags, medical notes, report cards, payment details and login data are never returned.

Errors

Errors use HTTP status codes and one shape:

{ "error": { "code": "unprocessable", "message": "Daycare at Mueller is fully booked on Fri, Dec 5. Please pick another day." }, "request_id": "req_..." }
  • 400 invalid_request / invalid_json: malformed input (see error.fields).
  • 401 missing_api_key / invalid_api_key: no key, unknown or revoked key.
  • 403 insufficient_scope (read-only key), plan_required (not on Enterprise), account_inactive.
  • 404 not_found, 409 conflict / idempotency_in_progress, 429 rate_limited.
  • 422 unprocessable: the request is valid but a salon rule refused it (capacity, hours, vaccines, waivers, staff availability…). The message is the same one staff see.

Endpoints

GET/api/v1read scope

The salon and key you're using. Handy to test a key.

GET/api/v1/locationsread scope

Every location: id, slug, name, address, city, phone, timezone, hours { open, close }, active. Book with a location's id; dates and times you send are in that location's time zone.

GET/api/v1/services?active=trueread scope

id, name, category (GROOMING, DAYCARE, BOARDING, PACKAGE, RETAIL), price_cents, duration_min, daycare_passes, active, location_ids (empty = every location), bookable_online (false = the salon takes it by phone or message, so booking it here is refused). Actual prices can vary by the dog's size and coat; the appointment shows the price charged. Kinds of visit the salon has switched off (for example a grooming-only salon without daycare and boarding) aren't listed; their pass packs neither.

GET/api/v1/customers?email=&phone=&limit=&cursor=read scope

Pet parents: id, name, email, phone, daycare_passes, created_at. Filter by exact email or by phone (any format; compared as a normalised number).

curl "https://pawbulo.us/api/v1/customers?email=tom@example.com" -H "Authorization: Bearer pk_live_..."

GET/api/v1/customers/:idread scope

One customer plus dogs.

GET/api/v1/dogs?customerId=&limit=&cursor=read scope

id, customer_id, name, breed, weight_lbs, coat, vaccines_expire_on, birth_date, created_at.

GET/api/v1/appointments?from=&to=&locationId=&status=&limit=&cursor=read scope

Appointments starting in [from, to), earliest first. Defaults to the next 30 days; the range can be at most 92 days. status takes one or more of SCHEDULED, CHECKED_IN, IN_PROGRESS, READY, CHECKED_OUT, CANCELLED, NO_SHOW (comma separated).

{
  "id": "cm...", "status": "SCHEDULED",
  "starts_at": "2026-12-05T16:00:00.000Z", "ends_at": "2026-12-05T18:00:00.000Z", "nights": 1,
  "price_cents": 8500, "group_id": null, "drop_off": false, "deposit": { "cents": 0, "status": "NONE" },
  "paid": false, "paid_at": null, "cancelled_at": null,
  "location": { "id": "...", "name": "South Congress" },
  "service": { "id": "...", "name": "Full groom (bath, cut & nails)", "category": "GROOMING" },
  "dog": { "id": "...", "name": "Barnaby" }, "customer": { "id": "...", "name": "Sarah Jenkins" },
  "staff": { "id": "...", "name": "Maya Lin" },
  "created_at": "...", "updated_at": "..."
}

GET/api/v1/appointments/:idread scope

One appointment.

POST/api/v1/appointmentswrite scope

Books a visit with the same rules as a pet parent booking online, never overridden: at least 30 minutes ahead and within the salon's booking window, during that day's opening hours (closed weekdays and closed dates are refused, and a boarding pick-up day has to be open too), room in daycare or boarding, a free team member (scheduled to work, when the salon books grooms by its shift schedule), signed waivers and required forms, no unpaid fees, vaccines not expired (and on file for daycare and boarding), passed evaluations, the salon offering that kind of visit (a service whose kind it switched off is refused, e.g. "Daycare isn't offered at … right now.", as are new visits at a mobile van while it doesn't use vans), and the salon taking bookings online (when it switched that off, the message is the salon's own), for that service (bookable_online) and for that pet parent (a pet parent the salon set to book through the salon only is refused with "Please call or message …"). Refused bookings return 422 with the reason. No deposit is taken. Body: dog_id, service_id, date (YYYY-MM-DD), time (HH:MM, 24 h), optional location_id (default: the first location), nights (boarding), staff_id (default: least busy available), address (required at a mobile van location: the client's address, inside the van's service area), notes, notify_customer (default true: the pet parent gets the usual confirmation).

At a location that takes grooms as drop-offs (a drop-off window, e.g. 8:00–9:00 AM), a groom is booked as a drop-off: time is only a starting point, and the visit goes into a groomer's queue at the first free time from the window's start (with staff_id, that groomer's). It comes back with drop_off: true; its starts_at is its place in the queue, and the pet parent is told the window instead.

Send an Idempotency-Key header (8–100 characters, unique per booking) so a retry after a timeout can't book twice: a repeat within 24 hours returns the original appointment with Idempotent-Replayed: true. If the first attempt failed, the key is released and can be reused.

curl -X POST https://pawbulo.us/api/v1/appointments \
  -H "Authorization: Bearer pk_live_..." \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: order-1042" \
  -d '{"dog_id":"...","service_id":"...","location_id":"...","date":"2026-12-05","time":"10:00"}'

POST/api/v1/appointments/:id/cancelwrite scope

Cancels like staff do from the schedule: the salon's deposit and late-cancellation policy applies unless waive_fees is true. Optional notify_customer (default true). Paid or finished visits can't be cancelled (422). Cancelling twice is harmless.

Webhooks

We send an HTTPS POST with a JSON event to each of your endpoints subscribed to the event type. Respond with any 2xx within 5 seconds. Failed deliveries are retried with backoff (1 min, 5 min, 30 min, 2 h, 6 h, 12 h, 24 h; 8 attempts in all). After 20 or more failed attempts in a row over more than 24 hours the webhook is switched off and the salon owner gets an email; waiting events are kept for 7 days and sent if it is switched back on. Deliveries can arrive more than once or out of order: use the event id to ignore repeats.

Events

  • appointment.created
  • appointment.updated
  • appointment.cancelled
  • appointment.checked_in
  • appointment.checked_out
  • sale.paid
  • sale.refunded
  • customer.created
  • test.ping (the "Send test" button)

Appointment events carry data.appointment (the shape above), sale events data.sale(id, number, status, method, subtotal_cents, discount_cents, tax_cents, tip_cents, surcharge_cents, total_cents, paid_at, refunded_at, refunded_cents, gift_card_cents, deposit_credit_cents, cash_cents, location_id, customer_id, items; refunded_cents is money given back by partial refunds, while the sale stays paid; a ticket paid several ways says how much came from gift cards, deposits already paid and cash next to a card in gift_card_cents, deposit_credit_cents and cash_cents, and the rest went by method), and customer.created carries data.customer.

POST /your/endpoint
Content-Type: application/json
Pawbulous-Event: appointment.created
Pawbulous-Delivery: cm...
Pawbulous-Signature: t=1764950400,v1=5f2c...

{ "id": "evt_...", "type": "appointment.created", "created": "2026-12-05T16:00:00.000Z",
  "data": { "appointment": { ... } } }

Verifying the signature

v1 is the hex HMAC-SHA256 of `${t}.${rawBody}` keyed with the webhook's signing secret (whsec_…, shown once when you add the webhook). Use the raw request body (before JSON parsing), compare in constant time, and reject timestamps older than 5 minutes.

import { createHmac, timingSafeEqual } from "node:crypto";

export function verifyPawbulous(rawBody, header, secret, toleranceSec = 300) {
  const parts = Object.fromEntries((header ?? "").split(",").map((p) => p.trim().split("=", 2)));
  const t = Number(parts.t);
  if (!Number.isInteger(t) || !parts.v1) return false;
  if (Math.abs(Date.now() / 1000 - t) > toleranceSec) return false;
  const expected = Buffer.from(createHmac("sha256", secret).update(`${t}.${rawBody}`).digest("hex"), "hex");
  const given = Buffer.from(parts.v1, "hex");
  return expected.length === given.length && timingSafeEqual(expected, given);
}

// Express example: keep the raw body for verification.
app.post("/webhooks/pawbulous", express.raw({ type: "application/json" }), (req, res) => {
  const raw = req.body.toString("utf8");
  if (!verifyPawbulous(raw, req.get("Pawbulous-Signature"), process.env.PAWBULOUS_WEBHOOK_SECRET)) return res.sendStatus(400);
  const event = JSON.parse(raw);
  // ...handle event.type, ignore event.id values you've already seen...
  res.sendStatus(200);
});