---
title: "private-giftcodes.{userId}"
url: https://lumean.app/es/developers/docs/realtime/giftcodes
locale: es
description: "Gift codes and reseller status of the key owner: a batch issued, a code changing status, the reseller status and the reseller application changing. Events never carry code values, only masks; the full code comes from `GET /reseller/codes` and `GET /reseller/codes/{uuid}`. Key permission: `reseller.read`."
generated: 2026-10-17
scopes: [reseller.read]
spec_version: 0.0.1
---

# private-giftcodes.{userId}

Gift codes and reseller status of the key owner: a batch issued, a code changing status, the reseller status and the reseller application changing. Events never carry code values, only masks; the full code comes from `GET /reseller/codes` and `GET /reseller/codes/{uuid}`. Key permission: `reseller.read`.

- Permiso requerido: `reseller.read`

## Parámetros del canal

| Campo | Tipo | Descripción | Ejemplo |
| --- | --- | --- | --- |
| `userId` | `integer` | is the numeric id of the key owner, returned by `GET /user`. | `7` |

## Eventos

### `.status.changed` — Status changed

A gift code changed status.

**Payload**

| Campo | Tipo | Oblig. | Descripción |
| --- | --- | --- | --- |
| `gift_code` | `object` | obligatorio |  |
| `gift_code.uuid` | `string` | obligatorio |  |
| `gift_code.code_masked` | `string` | obligatorio |  |
| `gift_code.nominal` | `integer` | obligatorio |  |
| `gift_code.nominal_formatted` | `number` | obligatorio |  |
| `gift_code.source` | `string` — `purchase` · `reseller` | obligatorio |  |
| `gift_code.funding` | `string` — `rub` · `crypto` · `mixed` | obligatorio |  |
| `gift_code.status` | `string` — `active` · `refunding` · `redeemed` · `refunded` · `cancelled` · `annulled` | obligatorio |  |
| `gift_code.activatable_at` | `string` | obligatorio |  |
| `gift_code.redeemed_at` | `string (date-time) \| null` | obligatorio |  |
| `gift_code.cancelled_at` | `string (date-time) \| null` | obligatorio |  |
| `gift_code.created_at` | `string` | obligatorio |  |
| `gift_code.currency_asset` | `object` | obligatorio |  |
| `gift_code.currency_asset.code` | `string` | obligatorio |  |
| `gift_code.currency_asset.precision` | `integer` | obligatorio |  |

### `.issued` — Issued

A batch of gift codes was issued: the batch summary, without code values.

**Payload**

| Campo | Tipo | Oblig. | Descripción |
| --- | --- | --- | --- |
| `batch` | `object` | obligatorio |  |
| `batch.uuid` | `string` | obligatorio |  |
| `batch.source` | `string` — `purchase` · `reseller` | obligatorio |  |
| `batch.codes_count` | `integer` | obligatorio |  |
| `batch.nominal_total` | `integer` | obligatorio |  |
| `batch.nominal_total_formatted` | `number` | obligatorio |  |
| `batch.created_at` | `string` | obligatorio |  |
| `batch.currency_asset` | `object` | obligatorio |  |
| `batch.currency_asset.code` | `string` | obligatorio |  |
| `batch.currency_asset.precision` | `integer` | obligatorio |  |

### `.reseller.application.status.changed` — Reseller application status changed

The status of the reseller application changed.

**Payload**

| Campo | Tipo | Oblig. | Descripción |
| --- | --- | --- | --- |
| `application` | `object` | obligatorio |  |
| `application.id` | `integer` | obligatorio |  |
| `application.status` | `string` — `pending` · `approved` · `rejected` · `withdrawn` | obligatorio |  |
| `application.admin_comment` | `string \| null` | obligatorio |  |
| `application.reviewed_at` | `string (date-time) \| null` | obligatorio |  |
| `application.created_at` | `string` | obligatorio |  |

### `.reseller.status.changed` — Reseller status changed

The reseller status changed.

**Payload**

| Campo | Tipo | Oblig. | Descripción |
| --- | --- | --- | --- |
| `reseller` | `object` | obligatorio |  |
| `reseller.id` | `integer` | obligatorio |  |
| `reseller.status` | `string` — `active` · `blocked` · `revoked` | obligatorio |  |
| `reseller.discount_bps` | `integer` | obligatorio |  |
| `reseller.blocked_reason` | `string \| null` | obligatorio |  |
| `reseller.approved_at` | `string` | obligatorio |  |
| `reseller.currency_asset` | `object` | obligatorio |  |
| `reseller.currency_asset.code` | `string` | obligatorio |  |
| `reseller.currency_asset.precision` | `integer` | obligatorio |  |

---

- Esta página en el navegador: https://lumean.app/es/developers/docs/realtime/giftcodes
- Referencia completa legible por máquina: https://api.lumean.app/docs/llm.md
