Create Payment Link
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
Request
Payment mode: ‘payment’ for one-time, ‘subscription’ for recurring, ‘setup’ for payment method collection
Pre-assigned customer Identifier
Free trial period in days (subscription mode only)
Hours until checkout session expires (max 30 days)
List of accepted payment method types (e.g. credit_card, ach, apple_pay, google_pay). Null means all methods accepted.
List of line items for the payment link (max 100 items). Required for payment/subscription modes unless package_ids is provided.
Package Identifiers for package-based links. Mutually exclusive with line_items.
Response
Payment mode: ‘payment’, ‘subscription’, or ‘setup’
Pre-assigned customer Identifier
Promotion code string associated with the coupon (e.g., ‘HALOWEEN20’)
Structured discount details when a coupon is applied. Prefer this over the bare coupon_id/promotion_code for display.
Free trial period in days (subscription mode only)
Content type: ‘products’, ‘package’, or null (setup mode)
Package Identifiers (for package-based links)
Package names for display (for package-based links)
Currency of the payment link (from line items)