Webstore Routes
A convenient list of all webstore HTTP routes.
Endpoints
Index
Renders the index.html
template file.
Request
Products
Renders the category.html
template file.
Query Parameters
- Name
tags
- Type
- string[]?
- Tags
- OPTIONAL
- Description
A comma separated array of tag slugs to filter by
Request
View Product
Renders the product.html
template file.
Request
Checkout Product
Checks out the supplied product and redirects to checkout/cart.
Query Parameters
- Name
cart
- Type
- boolean?
- Tags
- OPTIONAL
- Description
Should the product be added to a cart instead of redirecting to checkout?
Only available for non-subscription products.
- Name
subscription
- Type
- boolean?
- Tags
- OPTIONAL
- Description
Should the product be added as a subscription? Use
true
orfalse
.
- Name
quantity
- Type
- int?
- Tags
- OPTIONAL
- Description
The quantity of the product selected by the customer. Defaults to
1
.
- Name
gift_to
- Type
- string?
- Tags
- OPTIONAL
- Description
If gifting, then the external platform ID of the recipient.
If using the
steam
gift_platform
, use the 64-bit Steam ID.
- Name
gift_platform
- Type
- string?
- Tags
- OPTIONAL
- Description
The external platform to use with
gift_to
. Currently onlysteam
is supported.Defaults to
steam
.
- Name
gameserver_id
- Type
- string?
- Tags
- OPTIONAL
- Description
If the product requires a game server selection, the ID of the selected gameserver.
Cart
Add to Cart
Adds an item to the customer's cart.
Query Parameters
- Name
quantity
- Type
- integer?
- Tags
- OPTIONAL
- Description
The quantity of the product to add to cart. Defaults to
1
.
- Name
gameserver_id
- Type
- string?
- Tags
- OPTIONAL
- Description
If the product requires a game server selection, the ID of the selected gameserver.
Request
Set Cart Line
Updates a cart line.
Query Parameters
- Name
quantity
- Type
- integer?
- Tags
- OPTIONAL
- Description
The quantity of the product to set. Defaults to
1
.
- Name
gameserver_id
- Type
- string?
- Tags
- OPTIONAL
- Description
If the product requires a game server selection, the ID of the selected gameserver.
Request
Remove from Cart
Updates a cart line.
Query Parameters
- Name
quantity
- Type
- integer?
- Tags
- OPTIONAL
- Description
The quantity of the product to set. Defaults to
1
.
- Name
gameserver_id
- Type
- string?
- Tags
- OPTIONAL
- Description
If the product requires a game server selection, the ID of the selected gameserver.
Request
Empty Cart
Empties the entire cart.
Request
Checkout Cart
Creates a checkout session from the cart.
Query Parameters
- Name
return_url
- Type
- string?
- Tags
- OPTIONAL
- Description
The URL to return to after a successful checkout. Leave empty to redirect to
/complete
.
Request
Sign In
Signs into the webstore with the preferred authentication platform.
Query Parameters
- Name
return_url
- Type
- string?
- Tags
- OPTIONAL
- Description
The URL to return to after a successful checkout.
Request
Sign Out
Signs out from the webstore.
Request
Subscriptions
Renders the subscriptions.html
template file.
Request
Cancel Subscription
Cancels an active subscription by its ID.
We strongly recommend to implement this in your template to increase the trust of your customers, and assure them that there is an easy way to cancel their subscription.
Complete
Renders the complete.html
template file.
Request
Terms of Service
Redirects to the terms of service of PayNow.
You are required to include a link to this in your template.
Request
User Agreement
Redirects to the user agreement of PayNow.
You are required to include a link to this in your template.
Request
Privacy Policy
Redirects to the privacy policy of PayNow.
You are required to include a link to this in your template.