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.
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
| Parameter | Type | Required | Notes |
|---|---|---|---|
customerName | string | ✓ | Customer's full name |
contactNumber | string | ✓ | Numeric only, 6–15 digits |
paymentAmount | decimal | ✓ | In dollars (e.g. 2.00). Minimum 1.00. |
customerReference | string | ✓ | Your reference, used for reconciliation |
Fields that depend on your configuration
If a field is hidden in your program, its URL parameter is ignored.
| Parameter | Type | Notes |
|---|---|---|
customerEmail | string | Email format validation when present |
companyName | string | Max 250 chars |
australianBusinessNumber | string | ABN format |
additionalReference | string | Optional secondary reference |
reference1 | string | Max 40 chars, hidden by default |
reference2 | string | Max 40 chars, hidden by default |
SlicePay-only fields
Available when SlicePay is enabled on your account (TravelPay merchants).
| Parameter | Type | Notes |
|---|---|---|
departureDate | date | Only 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.
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=disabledis 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 removesstate=disabledfrom 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