← SoloPayLink

Developers

Connect a SoloPayLink business to its own website or system. Bookings and payments always happen on SoloPayLink; your website receives a signed message every time something changes. Website connections are being switched on for businesses step by step.

Book now button

The owner copies this from Your website in the SoloPayLink app (with their own booking link name):

<a href="https://solopay.link/your-link" data-solopaylink="your-link">Book now</a>
<script src="https://solopaylink.com/embed/v1.js" async></script>

Booking webhooks

The business owner opens Your website in the SoloPayLink app, enters your receiving address (https:// only) and receives a signing secret that starts with whsec_. From then on SoloPayLink sends an HTTPS POST with a JSON body to that address for each booking change. Reply with any 2xx status within 10 seconds; do slow work after replying.

Webhooks follow the open Standard Webhooks specification, so its ready-made libraries work unchanged.

HeaderMeaning
webhook-idEvent id (evt_…). The same on every retry: store it and ignore repeats.
webhook-timestampUnix seconds when this attempt was signed. Reject anything more than 5 minutes away from your clock.
webhook-signaturev1,<base64> — HMAC-SHA256 of id.timestamp.body. During a secret change two signatures are sent, separated by a space; accept either.
solopaylink-eventThe event type, for logging.

Event types

TypeWhen
booking.confirmedA booking is confirmed (paid, deposit paid, or pay later).
booking.rescheduledThe time changed. data.previous holds the old local date and time.
booking.cancelledThe booking was cancelled.
booking.completedThe appointment took place.
payment.deposit_paid, payment.paidA deposit or the full amount was paid.
payment.refund_pending, payment.partially_refunded, payment.refundedRefund progress.
payment.disputedThe customer opened a card dispute.
test.pingThe owner pressed Send test. The body has "test": true and a fake booking — do not store it.

Events can arrive out of order (for example after retries). Use created_at to keep the newest state, and treat SoloPayLink as the owner of the customer's emails and calendar event: your system should not send its own booking confirmation or create a second calendar entry.

Payload

{
  "id": "evt_3f1c…",
  "type": "booking.confirmed",
  "api_version": "2026-11-01",
  "created_at": "2028-01-01T02:15:00.000Z",
  "livemode": true,
  "business": { "slug": "harbour-learner-driving" },
  "data": {
    "booking": {
      "id": "bk_9a0c51d2e4f6a8b0c1d2e3f4",
      "reference": "E5F6G7H8",
      "status": "CONFIRMED",
      "payment_status": "DEPOSIT_PAID",
      "service": { "id": "svc_60", "name": "Driving lesson 60 min", "location_type": "at_customer" },
      "start": "2028-01-03T23:00:00.000Z",
      "end": "2028-01-04T00:00:00.000Z",
      "timezone": "Australia/Brisbane",
      "local_date": "2028-01-04",
      "local_time": "09:00",
      "duration_minutes": 60,
      "customer": { "name": "Sam Learner", "email": "sam@example.com", "phone": null, "address": null, "note": null },
      "answers": [],
      "amounts": { "currency": "AUD", "total_cents": 7500, "paid_cents": 750, "refunded_cents": 0, "balance_due_cents": 6750 },
      "payment": { "type": "deposit" },
      "created_at": "2028-01-01T02:14:58.000Z"
    }
  }
}

Money is always in the smallest currency unit (cents). status is one of AWAITING_PAYMENT, CONFIRMED, COMPLETED, CANCELLED; payment_status one of UNPAID, DEPOSIT_PAID, PAID, REFUND_PENDING, PARTIALLY_REFUNDED, REFUNDED, DISPUTED. By default only the customer's name and email are included; the owner can choose to add phone, address, note and answers to their booking questions.

Verify the signature

Always verify before trusting a message. Use the raw request body exactly as received (before any JSON parsing).

Node.js

import crypto from "node:crypto";

export function verifySoloPayLink(rawBody, headers, secret, nowSec = Math.floor(Date.now() / 1000)) {
  const id = headers["webhook-id"], ts = Number(headers["webhook-timestamp"]);
  if (!id || !Number.isInteger(ts) || Math.abs(nowSec - ts) > 300) return false;
  const key = Buffer.from(String(secret || "").replace(/^whsec_/, ""), "base64");
  if (key.length < 16) return false;                       // an empty or broken secret must never "verify"
  const expected = crypto.createHmac("sha256", key).update(`${id}.${ts}.${rawBody}`).digest();
  return String(headers["webhook-signature"] || "").split(" ").some((part) => {
    const [version, sig] = part.split(",");
    const given = Buffer.from(sig || "", "base64");
    return version === "v1" && given.length === expected.length && crypto.timingSafeEqual(given, expected);
  });
}

PHP

function verify_solopaylink( $raw, $headers, $secret, $now = null ) {
  $now = null === $now ? time() : $now;
  $id  = isset( $headers['webhook-id'] ) ? $headers['webhook-id'] : '';
  $ts  = isset( $headers['webhook-timestamp'] ) ? $headers['webhook-timestamp'] : '';
  if ( '' === $id || ! ctype_digit( (string) $ts ) || abs( $now - (int) $ts ) > 300 ) return false;
  $key = base64_decode( preg_replace( '/^whsec_/', '', (string) $secret ), true );
  if ( false === $key || strlen( $key ) < 16 ) return false;   // an empty or broken secret must never "verify"
  $expected = base64_encode( hash_hmac( 'sha256', "$id.$ts.$raw", $key, true ) );
  foreach ( explode( ' ', isset( $headers['webhook-signature'] ) ? $headers['webhook-signature'] : '' ) as $part ) {
    $p = explode( ',', $part, 2 );
    if ( 2 === count( $p ) && 'v1' === $p[0] && hash_equals( $expected, $p[1] ) ) return true;
  }
  return false;
}

Python

import base64, hashlib, hmac, time

def verify_solopaylink(raw: bytes, headers: dict, secret: str, now: float = None) -> bool:
    now = time.time() if now is None else now
    msg_id = headers.get("webhook-id", "")
    try:
        ts = int(headers.get("webhook-timestamp", ""))
        key = base64.b64decode(secret[len("whsec_"):] if secret.startswith("whsec_") else secret, validate=True)
    except ValueError:
        return False
    if not msg_id or abs(now - ts) > 300 or len(key) < 16:      # an empty or broken secret must never "verify"
        return False
    expected = base64.b64encode(hmac.new(key, f"{msg_id}.{ts}.".encode() + raw, hashlib.sha256).digest()).decode()
    for part in headers.get("webhook-signature", "").split():
        version, _, sig = part.partition(",")
        if version == "v1" and hmac.compare_digest(sig, expected):
            return True
    return False

WordPress: a free SoloPayLink plugin (a Book now button and, optionally, your bookings inside WordPress) is coming to WordPress.org. Until then, the Book now button code above works in a Custom HTML block on any WordPress page.

Retries and pausing

Bookings API (read-only)

The owner creates a read-only key in Your website → Download bookings & API keys. Keys start with spl_rk_, read only that owner's bookings, can be removed at any time, and are for servers and spreadsheets — never put one in a public web page.

curl -H "Authorization: Bearer spl_rk_…" "https://solopaylink.com/api/v1/bookings?from=2028-01-01&to=2028-01-31&limit=50"
EndpointReturns
GET /api/v1/bookings{ data: [booking…], next_cursor }. Newest first; with from/to (YYYY-MM-DD) ordered by date. limit up to 100; pass cursor=next_cursor for the next page.
GET /api/v1/bookings/{id}One booking by its bk_… id.
GET /api/v1/bookings.csvA spreadsheet (up to 2,000 bookings; same from/to).

Each booking has the same shape as data.booking in the webhooks, with full customer details and the answers to the owner's booking questions. Limits: 120 requests per minute per key.

AI agent booking API

AI assistants can find a SoloPayLink business, read its services and open times, and start a booking for a person through GET https://solopaylink.com/agent/v1 (REST) or POST https://solopaylink.com/agent/mcp (Model Context Protocol). The customer confirms with a code sent to their email and pays on the secure Stripe page. Start at /agent/v1 for the list of endpoints.

Questions? Contact support.

© 2026 SoloPayLink · Solo Digital Ltd · UK company no. 17220868