GET
/
v0
/
users
/
{userId}
/
inventory
curl --request GET \
  --url https://api.fungies.io/v0/users/{userId}/inventory \
  --header 'x-fngs-public-key: <api-key>'
{
  "status": "<string>",
  "data": {
    "inventory": [
      {
        "object": "item",
        "quantity": 0,
        "value": 0,
        "currency": "AFN",
        "name": "<string>",
        "variant": null,
        "plan": null,
        "product": {
          "object": "product",
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "type": "DigitalDownload",
          "internalId": null
        },
        "offer": {
          "object": "offer",
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "internalId": null
        },
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "customFields": null
      }
    ],
    "count": 0,
    "pages": 0
  }
}

Authorizations

x-fngs-public-key
string
header
required

Path Parameters

userId
string
required

Unique identifier of the User to archive.

Example:

"123e4567-e89b-12d3-a456-426614174000"

Query Parameters

page
integer
default:1

Page number for pagination (1-based).

Required range: 1 < x <= 9007199254740991
limit
integer
default:10

Number of items per page.

Required range: 1 < x <= 100
productType
enum<string>

Filter inventory by product type.

Available options:
DigitalDownload,
Game,
GiftCard,
SoftwareKey,
VirtualCurrency,
VirtualItem,
Subscription,
OneTimePayment
Example:

"OneTimePayment"

expiresAfter
integer | null

Filter items expiring after this timestamp. Useful for showing only active or future-valid items. Accepts Unix timestamp in seconds or milliseconds.

Required range: 0 <= x <= 9007199254740991
Example:

1735689599

Response

200
application/json
GET /v0/users/:userId/inventory Positive response
status
string
required
Allowed value: "success"
data
object
required