Product Access
Returns all product and reference ID pairs the user currently has access to.
Path parameters
userIdstringRequired
Header parameters
X-TIUN-API-KEYstringRequired
Responses
200
The user's active product access entries. An empty list if the user has none.
application/json
400
The request is invalid.
application/json
401
The API key is missing or invalid.
application/json
404
The user does not exist for this provider.
application/json
get/live_api/s2s/v1/users/{userId}/product_access
GET /live_api/s2s/v1/users/{userId}/product_access HTTP/1.1
Host: api.tiun.live
X-TIUN-API-KEY: text
Accept: */*
{
"data": [
{
"productId": "text",
"referenceId": "text",
"type": "Subscription",
"activatedAt": "2026-01-01T00:00:00.000Z",
"expiresAt": "2026-01-01T00:00:00.000Z"
}
]
}Check whether a user has access to a product
get/live_api/s2s/v1/users/{userId}/product_access/{productId}
Returns whether the user has access and, if so, the access details.
Path parameters
userIdstringRequired
The tiun user ID of the user to check.
productIdstringRequired
The ID of the product to check access for.
Query parameters
referenceIdstringOptional
Purchase reference for repeatable access. Omit for ordinary product access.
Header parameters
X-TIUN-API-KEYstringRequired
Responses
200
The access check result. If no matching access exists, hasAccess is false.
application/json
hasAccessbooleanRequired
400
The request is invalid.
application/json
401
The API key is missing or invalid.
application/json
404
The user does not exist for this provider.
application/json
get/live_api/s2s/v1/users/{userId}/product_access/{productId}
GET /live_api/s2s/v1/users/{userId}/product_access/{productId} HTTP/1.1
Host: api.tiun.live
X-TIUN-API-KEY: text
Accept: */*
{
"hasAccess": true,
"access": {
"productId": "text",
"referenceId": "text",
"type": "Subscription",
"activatedAt": "2026-01-01T00:00:00.000Z",
"expiresAt": "2026-01-01T00:00:00.000Z"
}
}Last updated
Was this helpful?

