Skip to content
Fluxer API

Gift inventory

The gift inventory lists the premium gift codes the current account created, with the redemption state of each. The Gifts resource has public gift lookup and redemption, and the Billing resource has gift purchase.

A self-hosted deployment answers this route with 404 NOT_FOUND, as deployment availability describes.

A code enters this inventory only through a completed gift checkout with the payment provider. The Admin API records a code it issues against the system account, so that code never appears in any account’s inventory.

One gift code created by the current account, with its redemption state. A completed checkout yields at most one code even when the payment provider retries its notification.

FieldTypeDescription
code1stringThe code a recipient presents to Redeem gift
duration_type2stringThe gift duration unit that duration_quantity is measured in
duration_quantity3integerThe number of duration_type units the code grants
created_at4ISO8601 timestampThe time the code was created
created_by5partial user objectThe account that created the code
redeemed_at?6?ISO8601 timestampThe time the code was redeemed, or null while it is unredeemed
redeemed_by?6 7?partial user objectThe account that redeemed the code, or null while it is unredeemed

1 Exactly 32 characters drawn from the uppercase letters, the lowercase letters, and the digits, and unique across every code ever issued

2 One of days, weeks, months, or years. A purchased code has only months or years, because a term dividing evenly into years is normalised to years

3 A purchased code always has 1, because the only gift products are one month and one year. The value 0 denotes a lifetime grant, and no current operation issues one

4 A code issued while repairing a lost checkout notification has the checkout time, so the value can predate the moment the code appeared

5 Always the current account

6 Declared optional by the response schema and always emitted, so an unredeemed code has an explicit null in each

7 Fluxer substitutes a placeholder partial named DeletedUser for a redeemer whose account no longer resolves, so null here always means the code is unredeemed

The object adds the creation time and the redemption identity to what the public gift object reports, and has no redeemed boolean.

Redeeming a lifetime-quantity code converts the account to lifetime premium and cancels any active recurring subscription.

{
"code": "aB3xQ7kR2mW9tL5vN8pY1cD4fH6jS0zE",
"duration_type": "months",
"duration_quantity": 1,
"created_at": "2026-02-11T12:04:33.000Z",
"created_by": {"id": "1501314428688998182", "username": "aria", "discriminator": "0042"},
"redeemed_at": null,
"redeemed_by": null
}
GET/v1/users/@me/gifts

Lists the gift codes the current account created, newest first. Returns an array of gift inventory objects on success.

The listing is not paginated, so it accepts no query parameter and returns no cursor.

An unredeemed code is listed indefinitely. A redeemed code is listed only while its redemption is less than seven days old, so an account whose codes were all redeemed longer ago receives an empty array.

A revoked code is omitted at every age. Fluxer revokes a code when a dispute or refund reaches the purchase while the code is still unredeemed, and no route reports the reversal to the buyer. A code already redeemed when the reversal arrived is not revoked, so it stays listed under the seven-day rule while Fluxer recomputes the redeemer’s entitlement from their remaining redeemed gifts.

A redeemed code that has dropped out of the listing still exists, still resolves through the Gifts resource, and is still permanently spent. A revoked code stops resolving through that resource with 404 UNKNOWN_GIFT_CODE.

StatusBodyCondition
200array[gift inventory object]The inventory was returned
404error responseThe deployment is self-hosted and the request returns NOT_FOUND

40 requests per 10 seconds for each authenticated user, on the gifts:list bucket.