Users
Get User's inventory items
Retrieve a complete list of items in the User's inventory with filtering options. This includes: - All purchased products - Subscription items - Limited-time access items Use filters to narrow down results by product type.
Authorization
Public key x-fngs-public-key<token>
In: header
Path Parameters
userId*string
Unique identifier (UUID) of the User.
Format
uuidQuery Parameters
page?integer
Page number, starting at 1.
Format
int64Range
1 < value <= 9007199254740991Default
1limit?integer
Number of items per page. Defaults to 10, maximum 100.
Format
int64Range
1 < value <= 100Default
10productType?string
Return only inventory entries for products of this type.
Value in
- "DigitalDownload"
- "Game"
- "GiftCard"
- "SoftwareKey"
- "VirtualCurrency"
- "VirtualItem"
- "Subscription"
- "OneTimePayment"
Response Body
application/json
application/json
curl -X GET "https://example.com/v0/users/123e4567-e89b-12d3-a456-426614174000/inventory"{ "status": "success", "data": { "inventory": [ { "object": "item", "quantity": 0, "value": 0, "currency": "AFN", "name": "string", "variant": null, "plan": null, "product": { "object": "product", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "type": "DigitalDownload", "internalId": null }, "offer": { "object": "offer", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "internalId": null }, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "customFields": null } ], "count": -1.7976931348623157e+308, "pages": -1.7976931348623157e+308 }}