/v1/payment_linksCreate a payment link
Creates a payment link that provides customers with a hosted payment page for the configured items. Supply line_items and configure checkout behaviour such as after_completion, automatic_tax, payment methods, customer creation, and shipping collection as needed. The response contains the created payment link and its hosted URL.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Payment link configuration, including the items sold and the checkout behaviour presented to customers.
line_items is required and each line item must include quantity; provide no more than 20 line items. after_completion.type must be hosted_confirmation or redirect, billing_address_collection must be auto or required, and customer_creation must be always or if_required. currency must be a supported lowercase three-letter ISO currency code, and inactive_message must not exceed 500 characters.