{"id":8820,"date":"2026-10-20T09:28:00","date_gmt":"2026-10-20T07:28:00","guid":{"rendered":"https:\/\/www.1pay.ch\/docs\/url-parameters-placeholders\/"},"modified":"2026-11-06T09:08:43","modified_gmt":"2026-11-06T08:08:43","password":"","slug":"url-parameters-placeholders","status":"publish","type":"docs","link":"https:\/\/www.1pay.ch\/en\/docs\/url-parameters-placeholders\/","title":{"rendered":"URL parameters and placeholders: pre-filled links and personal e-mails"},"content":{"rendered":"<p>Two tricks that save time: <strong>URL parameters<\/strong> fill in the fields of the payment page for the customer, and <strong>placeholders<\/strong> personalise the e-mails you send.<\/p>\n<h2>URL parameters<\/h2>\n<p>At the end of your page link, add a <code>?<\/code> followed by <code>name=value<\/code>. Add further parameters with <code>&amp;<\/code>. Spaces are written as <code>%20<\/code>, and decimals with a point.<\/p>\n<h3>Valid in all tools<\/h3>\n<figure class=\"wp-block-table\">\n<table>\n<thead>\n<tr>\n<th>Field<\/th>\n<th>Parameter<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Amount (Pages, Donation)<\/td>\n<td><code>invoice_amount<\/code><\/td>\n<\/tr>\n<tr>\n<td>Currency (Pages, Donation)<\/td>\n<td><code>invoice_currency<\/code><\/td>\n<\/tr>\n<tr>\n<td>Purpose (Pages, Donation)<\/td>\n<td><code>invoice_number<\/code><\/td>\n<\/tr>\n<tr>\n<td>Amount, currency, purpose in the Terminal<\/td>\n<td><code>amount<\/code>, <code>currency<\/code>, <code>purpose<\/code><\/td>\n<\/tr>\n<tr>\n<td>Title<\/td>\n<td><code>contact_title<\/code><\/td>\n<\/tr>\n<tr>\n<td>First name and surname<\/td>\n<td><code>contact_forename<\/code>, <code>contact_surname<\/code><\/td>\n<\/tr>\n<tr>\n<td>Company<\/td>\n<td><code>contact_company<\/code><\/td>\n<\/tr>\n<tr>\n<td>Street, postcode, town, country<\/td>\n<td><code>contact_street<\/code>, <code>contact_postcode<\/code>, <code>contact_place<\/code>, <code>contact_country<\/code><\/td>\n<\/tr>\n<tr>\n<td>Telephone, e-mail<\/td>\n<td><code>contact_phone<\/code>, <code>contact_email<\/code><\/td>\n<\/tr>\n<tr>\n<td>Text field<\/td>\n<td><code>contact_textbox<\/code><\/td>\n<\/tr>\n<tr>\n<td>Discount code<\/td>\n<td><code>code<\/code><\/td>\n<\/tr>\n<tr>\n<td>Your internal reference<\/td>\n<td><code>referenceId<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<h3>Donation only<\/h3>\n<figure class=\"wp-block-table\">\n<table>\n<thead>\n<tr>\n<th>What it does<\/th>\n<th>Parameter<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Suggests an amount that can be changed<\/td>\n<td><code>donation[preselect_amount]=50<\/code><\/td>\n<\/tr>\n<tr>\n<td>Fixes the interval<\/td>\n<td><code>donation[interval]=monthly<\/code><\/td>\n<\/tr>\n<tr>\n<td>Suggests an interval that can be changed<\/td>\n<td><code>donation[preselect_interval]=annually<\/code><\/td>\n<\/tr>\n<tr>\n<td>Preselects a purpose (1, 2, 3&#8230;)<\/td>\n<td><code>donation[preselect_purpose]=2<\/code><\/td>\n<\/tr>\n<tr>\n<td>Hides the campaign description<\/td>\n<td><code>hide_description=1<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p>Values for the interval: <code>one_time<\/code>, <code>weekly<\/code>, <code>monthly<\/code>, <code>quarterly<\/code>, <code>annually<\/code>.<\/p>\n<p><strong>Example.<\/strong> A link to the fees campaign suggesting CHF 80.- a year: add <code>?donation[preselect_amount]=80&amp;donation[preselect_interval]=annually<\/code>. For the Terminal you will find a full example in <a href=\"https:\/\/www.1pay.ch\/en\/docs\/terminal-payment-page\/\">Terminal<\/a>.<\/p>\n<p>Parameters are there for convenience: the customer can still see the link. Before delivering goods or services, always check the amount paid under <strong>Payments<\/strong>.<\/p>\n<h2>Placeholders in e-mails<\/h2>\n<p>In <a href=\"https:\/\/www.1pay.ch\/en\/docs\/paylink-request-payment\/\">Paylink<\/a> and <a href=\"https:\/\/www.1pay.ch\/en\/docs\/donation\/\">Donation<\/a> e-mails you can insert words in square brackets that become the real details when sent. You change the text of Paylink e-mails in <a href=\"https:\/\/www.1pay.ch\/en\/docs\/notifications\/\">Notifications<\/a>, under Paylink.<\/p>\n<figure class=\"wp-block-table\">\n<table>\n<thead>\n<tr>\n<th>Placeholder<\/th>\n<th>Becomes<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>[RECIPIENT_FIRST_NAME]<\/code>, <code>[RECIPIENT_NAME]<\/code><\/td>\n<td>the customer&#8217;s first name, or first name and surname<\/td>\n<\/tr>\n<tr>\n<td><code>[RECIPIENT_COMPANY]<\/code><\/td>\n<td>the customer&#8217;s company<\/td>\n<\/tr>\n<tr>\n<td><code>[AMOUNT]<\/code>, <code>[CURRENCY]<\/code><\/td>\n<td>amount and currency<\/td>\n<\/tr>\n<tr>\n<td><code>[PURPOSE]<\/code>, <code>[DESCRIPTION]<\/code><\/td>\n<td>purpose and description<\/td>\n<\/tr>\n<tr>\n<td><code>[MESSAGE_OPTIONAL]<\/code><\/td>\n<td>the message you wrote<\/td>\n<\/tr>\n<tr>\n<td><code>[PAYMENT_LINK_URL]<\/code><\/td>\n<td>the payment link (compulsory in Paylink e-mails)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p>In donation thank-you e-mails, do not remove <code>[DONATION_DETAILS]<\/code>: it contains the donation summary. The option to show placeholders displays the full list directly in the admin area.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Two tricks that save time: URL parameters fill in the fields of the payment page for the customer, and placeholders personalise the e-mails you send. URL parameters At the end of your page link, add a ? followed by name=value. Add further parameters with &amp;. Spaces are written as %20, and decimals with a point. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"doc_category":[203],"doc_tag":[],"class_list":["post-8820","docs","type-docs","status-publish","hentry","doc_category-tools"],"acf":[],"year_month":"2026-11","word_count":330,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"1pay.ch","author_nicename":"1pay_admin","author_url":"https:\/\/www.1pay.ch\/en\/author\/1pay_admin\/"},"doc_category_info":[{"term_name":"Tools","term_url":"https:\/\/www.1pay.ch\/en\/docs-category\/tools\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/www.1pay.ch\/en\/wp-json\/wp\/v2\/docs\/8820","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.1pay.ch\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.1pay.ch\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.1pay.ch\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.1pay.ch\/en\/wp-json\/wp\/v2\/comments?post=8820"}],"version-history":[{"count":5,"href":"https:\/\/www.1pay.ch\/en\/wp-json\/wp\/v2\/docs\/8820\/revisions"}],"predecessor-version":[{"id":9664,"href":"https:\/\/www.1pay.ch\/en\/wp-json\/wp\/v2\/docs\/8820\/revisions\/9664"}],"wp:attachment":[{"href":"https:\/\/www.1pay.ch\/en\/wp-json\/wp\/v2\/media?parent=8820"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.1pay.ch\/en\/wp-json\/wp\/v2\/doc_category?post=8820"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.1pay.ch\/en\/wp-json\/wp\/v2\/doc_tag?post=8820"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}