Navlinks
Get navlinks
GEThttps://api.paynow.gg/v1/store/navlinks
Retrieves the store's navlink structure used for navigation.
Headers
AuthorizationCustomer tokenAPI KeyRequired
Authentication token for this request, sent as
Authorization: Customer TOKEN or Authorization: APIKey TOKEN.x-paynow-store-idstringRequired
PayNow Store Identifier (Store ID) available in Store Settings
Response
200OKStorefrontNavLinkDto[]
Represents a navigation link in the storefront's hierarchical navigation structure.
Show fieldsHide fields
childrenStorefrontNavLinkDto[]Required
The collection of child navigation links that appear beneath this link in the hierarchy.
→ StorefrontNavLinkDtonamestringRequired
The display name of the associated tag shown to users in the UI.
node_idstringRequired
The unique identifier for this navigation node in the navigation tree.
orderintegerRequired
The display order of this navigation link relative to its siblings.
tag_idFlakeIdRequired
tag_querystring[]Required
A list containing all parent tags and this node's tag, representing the complete path in the tag hierarchy.
tag_slugstringRequired
The URL-friendly slug for the tag associated with this navigation link.
parent_node_idstringOptional
The identifier of the parent navigation node, if this is a child node.
Failed requests return a PayNowError body. See the error response guide.
curl -X GET "https://api.paynow.gg/v1/store/navlinks" \
-H "Authorization: Customer TOKEN"import { createStorefrontClient } from "@paynow-gg/typescript-sdk";
const paynow = createStorefrontClient({
storeId: "STORE_ID",
customerToken: "CUSTOMER_TOKEN",
});
const result = await paynow.navlinks.getStorefrontNavLinks();import requests
headers = {"Authorization": "Customer TOKEN"}
response = requests.get("https://api.paynow.gg/v1/store/navlinks", headers=headers)Response200
[
{
"children": [
{}
],
"name": "Perks",
"node_id": "string",
"order": 0,
"tag_id": "411486491630370816",
"tag_query": [
"perks",
"vip"
],
"tag_slug": "perks",
"parent_node_id": "string"
}
]