Routes
π Webstore Routes
This section outlines all HTTP routes supported by the webstore, including the associated template, method, and query parameters for each.
π Home
Route: GET /
Template: index.html
Displays the main homepage of the webstore.
π Products
π List Products
Route: GET /products
Template: category.html
tags
string[]
Optional. Comma-separated tag slugs to filter products
π View Product
Route: GET /products/{product.slug}
Template: product.html
Displays product detail page based on the provided slug.
π³ Checkout Product
Route: POST /products/{product.slug}/checkout
cart
boolean
Optional. Adds to cart if true
subscription
boolean
Optional. Adds as a subscription
quantity
int
Optional. Product quantity (default: 1)
gift_to
string
Optional. Recipientβs platform ID
gift_platform
string
Optional. Gifting platform (default: "steam"
)
gameserver_id
string
Optional. ID of selected gameserver
π Cart
π§Ύ View Cart
Route: GET /cart
Template: cart.html
β Add to Cart
Route: POST /cart/add/{product.slug}
quantity
integer
Optional. Defaults to 1
gameserver_id
string
Optional. Selected gameserver ID
βοΈ Set Cart Line
Route: POST /cart/set/{product.slug}
quantity
integer
Optional. New quantity (default: 1)
gameserver_id
string
Optional. Selected gameserver ID
Note: This route is also used to remove from cart by setting quantity to
0
.
π Empty Cart
Route: POST /cart/empty
Clears all items from the customer's cart.
β
Checkout Cart
Route: POST /cart/checkout
return_url
string
Optional. Redirect URL after checkout
π€ Authentication
π Sign In
Route: POST /auth/sign-in
return_url
string
Optional. URL to redirect after login
π Sign Out
Route: POST /auth/sign-out
Signs out the currently logged-in user.
π Subscriptions
π View Subscriptions
Route: GET /subscriptions
Template: subscriptions.html
β Cancel Subscription
Route: POST /subscriptions/{subscription.id}/cancel
Cancels the specified subscription.
π Checkout Complete
Route: GET /complete
Template: complete.html
Displays a confirmation message after a successful transaction.
π Legal Pages
Terms of Service
GET /legal/terms-of-service
User Agreement
GET /legal/user-agreement
Privacy Policy
GET /legal/privacy
Last updated
Was this helpful?