Dynamic Links
A dynamic link is a payment link without a fixed amount. The buyer enters the amount they wish to pay before selecting a payment method.When to use dynamic links
- Donations: Let supporters choose their contribution amount.
- Tips or gratuities: Let customers decide how much to tip.
- Flexible invoicing: When the amount varies per transaction.
- Pay-what-you-want: For products or services with flexible pricing.
Creating a dynamic link
Omit theamount field from the request:
The only difference between a regular payment link and a dynamic link is whether you include the
amount field in the request. Everything else — response format, webhooks, redirects — works the same way.Collecting shopper contact data
By default, dynamic links only ask buyers for the information their payment method requires (phone number for Nequi, national ID for Daviplata, etc.). If you need the buyer’s name, email, or phone number to identify the payer in your backoffice, enable thecollect_shopper_data flag:
Behavior
collect_shopper_data | What the buyer sees |
|---|---|
false (default) | Goes straight to payment method selection |
true | Contact form → payment method selection |
Rules
- Only valid on dynamic links (no
amountfield). Settingcollect_shopper_data: trueon a fixed-amount link returns a400error. - Fixed-amount links already collect shopper data by default — the flag is not needed there.
- If the flag is omitted, it defaults to
false.