Category / Section
How to Add a Query Parameter
Published:
2 mins read
Updated:
In this article, you will learn how to add URL query parameters to obtain desirable results during Zuddl registration.
How to add query params
To any URL, query parameters can be added in this format:
https://zuddl.com?parameter1=value1¶meter2=value2
Everything after?
are the query parameter elements. The table below explains the elements:
Elements | Description |
---|---|
? | Indicates the start of the query |
Parameter | The parameter name using which you wish to filter or organize your content. |
Value | The parameter value. Starts with ‘=’ sign. Value shouldn’t be in double quotes and you can append only one value for a given key. |
& | Separator added between two parameter-value entries. |
Zuddl Parameters
The Zuddl-specific parameter is explained in the table below:
Parameter | Value/Description |
---|---|
ticket_id | Used to show a particular ticket. Accepts the alphanumeric ticket id as value. For example, https://app.zuddl.com/p/a/event/341148e3-55cf-44c0-15325?ticket_id=48532a17-cc41-4231-9a92-20d1613fb2ae |
coupon | Accepts the coupon code (for example ’GETOFF200’) as value. For example, https://app.zuddl.com/p/a/event/341148e3-55cf-44c0-15325?ticket_id=48532a17-cc41-4231-9a92-20d1613fb2ae&coupon=GETOFF200 |
skip_ticketing | Accepts true or false. Default to false. |
Scenarios
`ticket_id` Value | `skip_ticketing` Value | `coupon` Value | URL format | Behavior |
---|---|---|---|---|
Hidden/locked | Not present/false | Coupon code is applicable for the ticket | https://app.zuddl.com/p/a/event/341148e3-55cf-44c0-15325?ticket_id=48532a17-cc41-4231-9a92-20d1613fb2ae&coupon=GETOFF200 | Ticket is auto-selected and coupon is applied |
Hidden/locked/Incorrect | Not present/false | Not applicable/Not present | https://app.zuddl.com/p/a/event/341148e3-55cf-44c0-15325?ticket_id=48532a17-cc41-4231-9a92-20d1613fb2ae&skip_ticketing=false | User still will be allowed to select other tickets |
Id is incorrect | true | Not present | https://app.zuddl.com/p/a/event/341148e3-55cf-44c0-15325?ticket_id=48532a17-cc41-4231-9a92-20d1613fb2ae&skip_ticketing=true | User is not allowed to select other tickets and shown the invalid link error |
Not present | Not present | Present | https://app.zuddl.com/p/a/event/341148e3-55cf-44c0-15325?coupon=GETOFF200 | Will show all public tickets and all locked/hidden tickets applicable for the coupon |