Sleek’s SDK can extract order details from pages your users are visiting. This feature allows you to capture successful transactions and order details. This documentation will guide you through the integration process.Documentation Index
Fetch the complete documentation index at: https://docs.onsleek.ai/llms.txt
Use this file to discover all available pages before exploring further.
Enable order extraction
There are two ways to get order information from Sleek:- Manual Extraction: Extract order information from a specific tab using the
extractOrdermethod - Event-Based: Subscribe to the
ORDER_EXTRACTEDevent to receive order information automatically
Order extraction is only supported on
cart, checkout, and checkoutComplete.Manual Extraction
To extract order information from an cart, checkout or order confirmation page, you can use theextractOrder method:
cart, checkout or checkoutComplete. To determine the page classification,
you can use the classifyPage method. See the page classification
guide for more information.
Event-Based Extraction
Alternatively, you can receive order information automatically by subscribing to theORDER_EXTRACTED event.
This requires to set emitPageClassification to true in the SDK’s options during initialization.
Order data structure
TheOrder object returned by the SDK contains comprehensive information about the order details:
View TypeDoc
Browse the reference TypeDoc for the SDK.

