Add To Cart URL Format
Standard Ticket
[your-url.com]/cart/buy?lottery=[your_lottery_key]&offer=[value]_book_[tickets]
Recurring Purchases
[your-url.com]/cart/buy?lottery=[your_lottery_key]&offer=[value_book_tickets]&[recurring_purchase_type]=true
Key | Description |
your-url | The URL of your lottery’s website |
your_lottery_key | The key used to identify the lottery product you want to add |
value | The ticket book’s dollar value, in numerals only |
tickets | The number of tickets included in the ticket book |
recurring_purchase_type | subscription, autoplay or multi_offer |
Add To Cart URL Example
Standard Ticket
https://ozlotteries.com/cart/buy?lottery=mater_prize_home&offer=25_book_20
Subscriptionhttps://www.materlotteries.com.au/cart/
buylottery=mater_prize_home&offer=25_book_20&subscribe=true
AutoPlay
https://www.deaflottery.com.au/cart/buy?lottery=deaf_lottery&offer=100_book_50&autoplay=true
Multi Offer
https://www.endeavourlotteries.com.au/cart/buy?lottery=endeavour_foundation&offer=30_book_4&multi_offer=true
Multiple Cart Items
One or more Lottery, Raffle or Syndicate products in the same URL.
You will need to add an item[] and a & to connect another item[] all other & symbols will need to be replaced with a ;
https://materlotteries.com.au/cart/buy?item[]=lottery=mater_prize_home;offer=2_book_1;subscribe=true&item[]=lottery=mater_cars_for_cancer;offer=30_book_1
If you are unsure of what your lottery key is, contact our client success team by submitting a ticket.