Marketplace API / Types
Giveaway
ObjectA livestream giveaway. Viewers enter while it is active, and a random entrant wins the linked product.
type Giveaway implements NodeFields
| Field | Type | Description |
|---|---|---|
completesAt | DateTime | When the giveaway stops accepting entries. Null until the giveaway is started or scheduled. |
duration | Duration! | How long the giveaway accepts entries once started. |
entryCount | NonNegativeInt! | The number of entries. Withdrawn entries are not counted. |
id | ID! | A globally unique ID. Treat this value as an opaque string. |
productVariants | GiveawayProductVariantConnection! | The product variants being given away.Arguments: after: String — Return variants after this cursor.first: Int! — Maximum number of variants to return. |
seller | User! | The seller running the giveaway. |
startsAt | DateTime | When the giveaway is scheduled to start. Null when it is started manually. |
status | GiveawayStatus! | The giveaway's lifecycle state. |
viewer | GiveawayViewerState | The authenticated user's relationship to this giveaway, or null when unauthenticated. |
winner | User | The winning entrant. Null until a winner is drawn. |