Admin API / Types

ProductLifecycle

Enum

The stage of a listing's sale. Each listing has one value. A cancelled auction or giveaway does not count. Additional values may be added; clients must handle values they do not recognize.

enum ProductLifecycle

Values

  • ACTIVE: In stock, and the sale is open or has not started: a buy-now listing, an auction that has not ended, or a giveaway that has not completed.
  • DELETED: The listing is deleted, whatever its stock and sale state. Only a list with includeDeleted: true returns a deleted listing: product, productBySlug and node give null. variants lists the variants that were not deleted, and productVariant and node give null for them. activeAuction is null, and viewer.canEdit and viewer.canDelete are false. The storefront no longer shows the listing at url.
  • ENDED: In stock, but the sale is over: the auction ended or its end time passed, or all giveaways of the listing completed.
  • SOLD_OUT: No active variant has remaining or unlimited stock, whatever the auction or giveaway state. The same listings as availability: OUT_OF_STOCK.

Returned by