PaybytokenDocs
Payment Links
API reference · Payment Links

Public checkout and analytics

Resolve a Payment Link, create isolated Checkout Sessions and inspect attribution.

The Paybytoken-hosted page uses the public token in the Payment Link URL. These endpoints do not accept a merchant secret key:

MethodEndpointPurpose
GET/public/v1/payment_links/:publicTokenResolve customer-safe link content.
POST/public/v1/payment_links/:publicToken/visitsRecord an anonymous attributed visit.
POST/public/v1/payment_links/:publicToken/checkout_sessionsCreate one isolated Checkout Session.

A customer-entered link requires amount when creating its Checkout Session. You can also provide customer_email, client_reference_id, and the payment_link_visit_id returned by visit tracking. Do not use public endpoints to fulfill an order.

Merchant analytics

MethodEndpointPurpose
GET/api/v1/payment_links/:id/analyticsRead totals, conversion, time series, sources and recent activity.
GET/api/v1/payment_links/:id/analytics/exportExport the selected period.

Analytics are directional product metrics, not a financial ledger. Reconcile money using Payment Intents, balance transactions and signed webhooks. Visit identifiers must be anonymous; do not put email addresses, wallet addresses or secret values in attribution fields.

On this page

API Workbench

Full Explorer

Open in new tab