Nexus Integrations / API / Orders and Customers
Retrieve Owned Product
Find a matching download for a product owned by a Discord user.
1. Endpoint
GET
https://api.gpirblx.com/api/v1/stores/{Store-Id}/discord/users/{Discord-User-Id}/retrieve-productSearches the user's active entitlements and returns a temporary download link. This route is limited to 10 requests per minute.
2. Parameters
| Name | Location | Required | Description |
|---|---|---|---|
storeId | Path | Yes | The store ID the API key belongs to. |
discordUserId | Path | Yes | The Discord user ID. |
query | Query | Yes | A product name or search term. |
3. Request
Example request:
curl "https://api.gpirblx.com/api/v1/stores/STORE_ID/discord/users/DISCORD_USER_ID/retrieve-product?query=vehicle" \
-H "Authorization: Bearer YOUR_API_KEY"4. Response
Successful response:
{
"success": true,
"data": {
"product": { "id": "PRODUCT_ID", "name": "Premium Vehicle Pack" },
"downloadUrl": "https://api.gpirblx.com/api/v1/downloads/TEMPORARY_TOKEN",
"filename": "vehicle-pack.zip",
"expiresInSeconds": 600,
"suggestions": []
}
}