Black Friday

40% off every plan for a year with code BF2026. Until December 2.

See the prices
2.0 Beta

Smootify 2.0 is in public beta. Your 1.x store keeps working. Move when you want.

What changed

Smootify.getCartAsDraftOrderData()

the cart as a draft order input (Draft Orders)

v2.0 beta
Open .md
On this page
  1. Types
  2. DraftOrderData

the cart as a draft order input (Draft Orders) Since 1.x.

getCartAsDraftOrderData( email?: string, note?: string, customAttributes?: { key: string; value: string }[], ): Promise<DraftOrderData>

Types

DraftOrderData

/** A draft order as Smootify creates it (Draft Orders): what `getCartAsDraftOrderData` answers, what `draft_order_data` filters. */
export interface DraftOrderData {
  input: {
    lineItems: Record<string, unknown>[];
    customAttributes?: { key: string; value: string }[];
    note?: string;
    presentmentCurrencyCode?: string;
  };
  customerId?: string;
  email?: string;
}

    ↑ ↓ to moveEnter to openEsc to close