The PawPad partnership

PawPad is a dog sitting app we invented for this demo. When a sit wraps up, the app thanks the owner with a Wag & Whisker voucher it mints through our partner API, live, right here.

PawPad

Sit complete!

🐕

Bella

2 hour walk with Sam, Saturday 14:00

Bella was a very good girl. Here is a treat on us.

Behind the curtain

The phone on the left has no database access and no shop code. It holds one thing: a partner API key. Press the button and this happens for real:

  1. 1

    The PawPad backend POSTs to /api/partner_vouchers with its X-Partner-Key header. Wrong key, no voucher.

  2. 2

    The shop mints a genuine single use promotion code under the partner's own promotion, so every partner's codes are tracked separately.

  3. 3

    The code comes back as JSON and the app shows it to the customer. Ours are prefixed PAWPAD so you can spot them.

  4. 4

    At checkout the code takes 10% off once, then dies. The admin promotions screen shows exactly which partner drove which order.

curl -X POST https://wagwhisker.keferboeck.com/api/partner_vouchers \
  -H "X-Partner-Key: ********" \
  -H "Content-Type: application/json" \
  -d '{"partner": "pawpad", "count": 1}'

{"ok":true,"partner":"pawpad","percent":10,"codes":["PAWPAD-XXXXXX"]}

The code you mint above is real. Take it to the checkout and watch it work, then try it twice.