---
title: "Giveaway event"
method: POST
path: "giveawayEvent"
---

# Giveaway event

`POST giveawayEvent` (webhook)

Giveaway lifecycle events, POSTed to your tenant webhook endpoint (never a
per-order `callback_url`). Every `data` carries `giveaway_id` and the
`external_ref` you set at create. `giveaway.awaiting_funding` carries the
payment instruction (one-time deposit address, `memo: null`).
`giveaway.entries` is sent only for a giveaway created with
`entries_events: true`, in batches of up to 100 entries.

Same verification, retry and ordering rules as **Campaign event**.
Giveaway events carry no `sequence`; order by `created_at`.

## Headers

- `X-Faas-Signature-V2` string, required
- `X-Faas-Signature` string, required
- `X-Faas-Event-Id` string, uuid, required
- `X-Faas-Event-Type` string, required

## Payload

- union: A `giveaway.*` event; `type` selects the `data` shape.
  - GiveawayAwaitingFundingEvent: A funding order was opened (including each recurring occurrence's).
    - `id` string, uuid, required: The event id, identical on every attempt — dedupe on it.
    - `type` 'giveaway.awaiting_funding', required: The event type, for example `campaign.paid`.
    - `created_at` string, date-time, required: When the event happened. Order events by it.
    - `api_version` string, required: The contract version the payload follows.
    - `sequence` integer: `campaign.progress` only: increases with every progress event of a campaign.
    - `data` object, required
      - `giveaway_id` string, uuid, required
      - `external_ref` string, nullable, required
      - `payment` FundingPaymentInstruction: How to fund a giveaway. A new funding order is paid to its own one-time deposit address: `memo` is `null` and `address_kind` is `one_time_deposit` — send exactly `amount_smallest_unit` of `asset` to `pay_to_address`, no comment needed. (`shared_wallet` with a string `memo` is the older form: attach the memo as the comment.)
        - `payment_id` string, required
        - `currency` 'ton' | 'usdt_ton', required: The asset the order is paid in. `ton` = the native coin GRAM (ex TON), sent as a plain transfer — it is not USDT on TON. `usdt_ton` = USDT (TON), sent as a jetton transfer. Required on every create and pricing request: a request without it is rejected with `400 bad_request`.
        - `chain` string, required
        - `pay_to_address` string, required
        - `memo` string, nullable, required
        - `address_kind` 'one_time_deposit' | 'shared_wallet', required
        - `amount` string, required
        - `amount_smallest_unit` string, required
        - `asset` 'GRAM' | 'USDT', required
        - `decimals` 9 | 6, required
        - `transfer` 'native' | 'jetton', required
        - `jetton_master` string, nullable, required
        - `amount_usd` string, required
        - `expires_at` string, date-time, required: Pay before this.
  - GiveawayOpenedEvent: The funding arrived; the giveaway is public.
    - `id` string, uuid, required: The event id, identical on every attempt — dedupe on it.
    - `type` 'giveaway.opened', required: The event type, for example `campaign.paid`.
    - `created_at` string, date-time, required: When the event happened. Order events by it.
    - `api_version` string, required: The contract version the payload follows.
    - `sequence` integer: `campaign.progress` only: increases with every progress event of a campaign.
    - `data` object, required
      - `giveaway_id` string, uuid, required
      - `external_ref` string, nullable, required
      - `currency` string, nullable
      - `slots` integer, nullable
      - `commit_hash` string, nullable
  - GiveawayEntriesEvent: A batch of up to 100 new entries (only with `entries_events`).
    - `id` string, uuid, required: The event id, identical on every attempt — dedupe on it.
    - `type` 'giveaway.entries', required: The event type, for example `campaign.paid`.
    - `created_at` string, date-time, required: When the event happened. Order events by it.
    - `api_version` string, required: The contract version the payload follows.
    - `sequence` integer: `campaign.progress` only: increases with every progress event of a campaign.
    - `data` object, required
      - `giveaway_id` string, uuid, required
      - `external_ref` string, nullable, required
      - `cursor` string: The `seq` (entry ID) of the last entry in the batch.
      - `entries` object[]
        - `seq` string: The entry's ID: one sequence shared by every giveaway on the platform, so it orders entries but is neither a count nor a position in this giveaway. The same value as on the proof page and in webhooks.
        - `telegram_user_id` string
        - `username` string, nullable
        - `status` 'eligible' | 'filtered' | 'withdrawn'
        - `filter_reason` string, nullable
        - `entered_at` string, date-time
  - GiveawayClosedEvent: The entrant list is frozen and published.
    - `id` string, uuid, required: The event id, identical on every attempt — dedupe on it.
    - `type` 'giveaway.closed', required: The event type, for example `campaign.paid`.
    - `created_at` string, date-time, required: When the event happened. Order events by it.
    - `api_version` string, required: The contract version the payload follows.
    - `sequence` integer: `campaign.progress` only: increases with every progress event of a campaign.
    - `data` object, required
      - `giveaway_id` string, uuid, required
      - `external_ref` string, nullable, required
      - `entrants_root` string, nullable
      - `eligible` integer, nullable
      - `filtered` integer, nullable
  - GiveawayDrawnEvent: The winners were drawn.
    - `id` string, uuid, required: The event id, identical on every attempt — dedupe on it.
    - `type` 'giveaway.drawn', required: The event type, for example `campaign.paid`.
    - `created_at` string, date-time, required: When the event happened. Order events by it.
    - `api_version` string, required: The contract version the payload follows.
    - `sequence` integer: `campaign.progress` only: increases with every progress event of a campaign.
    - `data` object, required
      - `giveaway_id` string, uuid, required
      - `external_ref` string, nullable, required
      - `winners` integer, nullable
  - GiveawayDeliveryUpdatedEvent: A winner's prize reached a state you can act on.
    - `id` string, uuid, required: The event id, identical on every attempt — dedupe on it.
    - `type` 'giveaway.delivery_updated', required: The event type, for example `campaign.paid`.
    - `created_at` string, date-time, required: When the event happened. Order events by it.
    - `api_version` string, required: The contract version the payload follows.
    - `sequence` integer: `campaign.progress` only: increases with every progress event of a campaign.
    - `data` object, required
      - `giveaway_id` string, uuid, required
      - `external_ref` string, nullable, required
      - `delivery_id` string
      - `winner_telegram_user_id` string
      - `status` 'delivered' | 'failed' | 'manual_review'
      - `delivered_at` string, date-time, nullable
      - `purchase_tx` string, nullable: The Fragment purchase transaction: the same value, in the same form, as `winners[].delivery.purchase_tx` in the results. It can be `null` on a `delivered` event when the hash is not known yet; once it is, one more `giveaway.delivery_updated` for the same `delivery_id` and `status` is sent, with `purchase_tx` set and everything else unchanged. A `null` `purchase_tx` never replaces one already received for the same `delivery_id`: the two events share `created_at` and can arrive in either order.
      - `failure_reason` 'resolved_by_operator' | 'no_username' | 'gift_sold_out' | 'recipient_ineligible' | 'order_failed' | 'other' | 'null', nullable: Set only when `status` is `failed`; a stable code, not free text (the same codes as `winners[].delivery.failure_reason` in the results). New codes may be added.
  - GiveawaySettledEvent: Every prize is delivered or failed; unused slots are known.
    - `id` string, uuid, required: The event id, identical on every attempt — dedupe on it.
    - `type` 'giveaway.settled', required: The event type, for example `campaign.paid`.
    - `created_at` string, date-time, required: When the event happened. Order events by it.
    - `api_version` string, required: The contract version the payload follows.
    - `sequence` integer: `campaign.progress` only: increases with every progress event of a campaign.
    - `data` object, required
      - `giveaway_id` string, uuid, required
      - `external_ref` string, nullable, required
      - `delivered` integer, nullable
      - `unused_slots` integer, nullable
  - GiveawayCancelledEvent: The giveaway was cancelled — by you (`cancelled`), as an unfunded draft (`draft_expired`) or because its funding order expired (`funding_expired`).
    - `id` string, uuid, required: The event id, identical on every attempt — dedupe on it.
    - `type` 'giveaway.cancelled', required: The event type, for example `campaign.paid`.
    - `created_at` string, date-time, required: When the event happened. Order events by it.
    - `api_version` string, required: The contract version the payload follows.
    - `sequence` integer: `campaign.progress` only: increases with every progress event of a campaign.
    - `data` object, required
      - `giveaway_id` string, uuid, required
      - `external_ref` string, nullable, required
      - `reason` 'cancelled' | 'draft_expired' | 'funding_expired'
      - `from` 'draft' | 'awaiting_funding' | 'null', nullable
  - GiveawayReversalResolvedEvent: A reversal reached a final status (see `reversals` in the results): sent, skipped (nothing is sent, for example an amount below the network's minimum), or cancelled. One event per reversal and final status; a reversal still awaiting review or payment sends none.
    - `id` string, uuid, required: The event id, identical on every attempt — dedupe on it.
    - `type` 'giveaway.reversal_resolved', required: The event type, for example `campaign.paid`.
    - `created_at` string, date-time, required: When the event happened. Order events by it.
    - `api_version` string, required: The contract version the payload follows.
    - `sequence` integer: `campaign.progress` only: increases with every progress event of a campaign.
    - `data` object, required
      - `giveaway_id` string, uuid, required
      - `external_ref` string, nullable, required
      - `reversal_id` string, nullable: The reversal's `id` in the results.
      - `outcome` 'sent' | 'skipped' | 'cancelled' | 'null', nullable: The reversal's final status.
      - `tx_hash` string, nullable: Set when `outcome` is `sent` and the payment's transaction hash is known: the same value as the reversal's `tx_hash` in the results.

## Acknowledgement `200`

Acknowledged. Any 2xx stops retries.

---

[API](https://skmtc.dev/mystars/apis/mystars-faas-fulfilment-api.md) - [All operations](https://skmtc.dev/mystars/apis/mystars-faas-fulfilment-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mystars/apis/mystars-faas-fulfilment-api/revisions/b6cdc8aff8c2?raw)
