OpheliaDocs
Search docs⌘K
DashboardCreate an account
Payments

Payment link

Send the cardholder an Ophelia-hosted card page, in your branding. The card never reaches you.

Request a link

Set payment_collection to "link" on POST /v1/bookings and send no card. The booking comes back as requires_action with a next_action of type payment. Its url is the link to send the cardholder.

curl
curl -X POST "https://api.opheliaos.com/v1/bookings" \
-H "Authorization: Bearer YOUR_LIVE_KEY" \
-H "Idempotency-Key: dining-link-001" \
-H "Content-Type: application/json" \
-d '{
"vertical": "dining",
"venue_id": "ven_a69a860a",
"availability_id": "avail_3b8f02aa",
"datetime": "2026-11-15T19:00:00-05:00",
"party_size": 2,
"payment_collection": "link",
"customer": {
"name": "Jane Smith",
"phone_number": "+15555550123",
"email": "jane.smith.diner@gmail.com"
}
}'
# → "status": "requires_action"
# next_action.type "payment"
# next_action.url "https://api.opheliaos.com/pay/..." (expires_at: 15 minutes)

Nothing runs until the cardholder submits a card on that page. Then the booking carries on by itself, and the card is never returned in a response.

What the customer sees

A single-use card page at api.opheliaos.com/pay/…. This preview uses your published Checkout design.

api.opheliaos.com/pay/…
Confirm your booking
Jane Smith · Table for 2 · Sun, Nov 15 · 7:00 PM
Card number
0000 0000 0000 0000
Name on card
Full name
Expiration
MM / YY
CVV
123
Postal code
94103
Confirm and pay
Nothing is booked until you confirm here. Secured payment.

Where it works

ProviderPage asks forAfter the card is submitted
OpenTable
Card and postal code
OpenTable texts the diner a code (otp). The card holds the table; Ophelia never charges it.
Mindbody
Card and billing address
Charged up front. Mindbody may send the member a code.
StubHub
Card and billing address
StubHub sends a code; continuing with it completes the purchase.
Hotels
Card and postal code
Charged the full total right after the page. Tell the guest the total and cancellation terms first.
Flights
Card and billing address
The default when no card is sent. Nothing is bought until confirm: true on /continue.

Resy slots that need a card can't be booked by link: send the card inline or use AgentCard. A Resy slot with terms.card_required: false needs no card, so leave payment_collection out.

The flow

  1. Create the booking with "payment_collection": "link". A webhook, booking.requires_action, fires too.
  2. Send the cardholder next_action.url.
  3. Once they submit the card, the booking moves to processing and runs exactly as with an inline card. Read it with GET /v1/bookings/{id} or wait for the webhook.
  4. Answer what comes next, usually an otp on /continue, until status is confirmed.

Expiry

A link works once, for 15 minutes (next_action.expires_at). A booking still waiting on it after that is reported expired with error_code: "action_expired", and nothing was booked. Create a new booking with a new Idempotency-Key.

A submission the page rejects, such as a ticket booking without a billing address, does not use up the link. The cardholder can fix it and submit again.

Branding

The page shows your organization's published design: display name, logo, brand color and font. Set it under Checkoutin the dashboard. Drafts never reach the live page, and without a published design the page uses Ophelia's default styling.

Testing

On a practice venue in Ophelia Test City, the link opens a practice page with no card fields. Pressing its confirm button carries the booking on, the same as a submitted card.

Your end users already keep a card in AgentCard? Use AgentCard. Want to collect the card in your own form? Use Card inline.