Marketplace API / Types

Giveaway

Object

A livestream giveaway. Viewers enter while it is active, and a random entrant wins the linked product.

type Giveaway implements Node

Fields

FieldTypeDescription
completesAtDateTime
When the giveaway stops accepting entries. Null until the giveaway is started or scheduled.
durationDuration!
How long the giveaway accepts entries once started.
entryCountNonNegativeInt!
The number of entries. Withdrawn entries are not counted.
idID!
A globally unique ID. Treat this value as an opaque string.
productVariantsGiveawayProductVariantConnection!
The product variants being given away.Arguments:
after: String — Return variants after this cursor.
first: Int! — Maximum number of variants to return.
sellerUser!
The seller running the giveaway.
startsAtDateTime
When the giveaway is scheduled to start. Null when it is started manually.
statusGiveawayStatus!
The giveaway's lifecycle state.
viewerGiveawayViewerState
The authenticated user's relationship to this giveaway, or null when unauthenticated.
winnerUser
The winning entrant. Null until a winner is drawn.

Returned by