Create a payment link as a draft.
Endpoint
Request body
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Required | What customers see. Up to 255 characters. |
description | string | Optional | Up to 2,000 characters. |
pricing | enum | Required | fixed or customer_chooses. |
currency | string | Required | usd. |
line_items | array | Required | Up to 20 one-time prices from your catalog, each with a price and a quantity up to 10,000. For customer_chooses, one price whose pricing model is customer-chooses. |
call_to_action | enum | Optional | The button's words. Default pay. |
collect_address | enum | Optional | none (the default), billing or billing_shipping. |
collect_tax_ids | boolean | Optional | Default false. |
require_tax_id | boolean | Optional | Default false. |
allow_promotion_codes | boolean | Optional | Default false. |
save_payment_details | boolean | Optional | Default false. |
confirmation | enum | Optional | page (the default), message or redirect. |
confirmation_message | string | Optional | For message. Up to 2,000 characters. |
redirect_url | string | Optional | For redirect: an https address. |
max_payments | integer | Optional | Stop after this many payments. |
max_payments_per_customer | integer | Optional | Payments one customer can make. |
expires_at | timestamp | Optional | When it stops taking payments. |