Skip to main content
Sealed Class A single asset to purchase in a checkout order.
Use the named factory constructors to create line items:
  • CrossmintCheckoutLineItem.collection — primary sale from a managed or imported collection. Supports optional callData for contract mint args.
  • CrossmintCheckoutLineItem.token — secondary sale of a specific token, with optional callData for contract arguments.
  • CrossmintCheckoutLineItem.tokenWithExecutionParameters — secondary sale (e.g. memecoin swap) with execution parameters controlling amount, mode, and slippage. Mutually exclusive with callData.
  • CrossmintCheckoutLineItem.product — product-based purchase using a Crossmint product locator.
  • CrossmintCheckoutLineItem.raw — forward-compatible escape hatch for line-item shapes not yet modeled by the SDK.

Constructors

CrossmintCheckoutLineItem

CrossmintCheckoutLineItem.collection

Creates a collection line item for primary sales.

CrossmintCheckoutLineItem.token

Creates a token line item for secondary sales with optional callData.

CrossmintCheckoutLineItem.tokenWithExecutionParameters

Creates a token line item with execution parameters for secondary sales (e.g. memecoins with slippage and amount control).

CrossmintCheckoutLineItem.product

Creates a product line item identified by a Crossmint productLocator. Use this for catalog-managed product purchases where the price and SKU are resolved server-side from the locator.

CrossmintCheckoutLineItem.raw

Forward-compatible escape hatch — passes value verbatim to the Crossmint orders API as the line item shape. Use when a new line-item field is not yet modeled by the typed factories above.