Skip to main content
Version: 1.0.0

URL parameters

Add URL parameters to a Payment Link to prefill customer and payment fields. You can generate a link for each customer or invoice without building a backend integration.

Example​

Open an example Payment Link. It opens a School EasyPay payment page with customer details, a reference and an amount of $123.45 already filled in.

Full payment URL
https://pay.schooleasypay.com.au/menethil?customerName=Ian%20Menethil&paymentAmount=123.45&customerReference=Test%20Reference&customerEmail=menethil@zenpay.com.au&contactNumber=0400000000&additionalReference=Additional%20Test%20Reference&state=disabled

To avoid sending a long URL like this to customers, see Example: Short links.

Supported parameters​

Query-string parameter names are case-insensitive, but camelCase is the canonical form. The parameters below map directly to fields on the Payment Link form. Values passed in the URL are prefilled when the page loads.

You can't prefill card details (PAN, CVV, expiry), bank account details or any other sensitive credentials. Customers always enter these directly on the hosted page.

Always-available fields​

ParameterTypeRequiredNotes
customerNamestring✓Customer's full name
contactNumberstring✓Numeric only, 6–15 digits
paymentAmountdecimal✓In dollars (e.g. 2.00). Minimum 1.00.
customerReferencestring✓Your reference, used for reconciliation

Fields that depend on your configuration​

If a field is hidden in your program, its URL parameter is ignored.

ParameterTypeNotes
customerEmailstringEmail format validation when present
companyNamestringMax 250 chars
australianBusinessNumberstringABN format
additionalReferencestringOptional secondary reference
reference1stringMax 40 chars, hidden by default
reference2stringMax 40 chars, hidden by default

SlicePay-only fields​

Available when SlicePay is enabled on your account (TravelPay merchants).

ParameterTypeNotes
departureDatedateOnly applicable for SlicePay

Lock fields with state=disabled​

Add &state=disabled to the URL to grey out the form fields, so the customer can't edit the prefilled values. The example above uses it.

Security: prefill values are hints, not server-signed

Query-string parameters are prefill hints only. They are not cryptographically signed and not server-enforced.

  • A customer who edits the URL can change any prefilled value.
  • state=disabled is a cosmetic UI lock: it greys out the fields but does not enforce the values server-side. A user with basic browser dev tools (or who simply removes state=disabled from the URL) can edit the fields freely.
  • Do not rely on URL parameters for trusted amount locking. If a customer must not be able to change the amount (invoice collection, fixed-price products, etc.), use Hosted Payment with a server-generated fingerprint instead. The fingerprint is cryptographically tied to the amount and will reject any client-side tampering.

When to use URL parameters​

Good fits:

  • Prefilling customer details to reduce form friction
  • Per-invoice links where the amount is a convenience default (not trust-critical)
  • CRM or email-merge templates that generate payment URLs

Poor fits:

  • Any scenario where the amount must be trusted: see the warning above
  • Per-customer tokenisation flows: use Hosted Payment Mode 1
  • Refund or backend operations: use the REST API