LedeWire SDK API Reference
    Preparing search index...

    Module node/src

    @ledewire/node

    LedeWire SDK for Node.js environments. Provides the complete API surface for building merchant stores, managing content, authors, and reporting.

    import { createClient } from '@ledewire/node'

    // Full access with API key + secret (write operations)
    const client = createClient({
    apiKey: process.env.LEDEWIRE_API_KEY,
    apiSecret: process.env.LEDEWIRE_API_SECRET,
    })

    // View-only with API key only (read operations)
    const viewClient = createClient({ apiKey: process.env.LEDEWIRE_API_KEY })

    // Merchant email/password auth — logs in and returns stores in one call
    const client = createClient()
    const { stores } = await client.merchant.auth.loginWithEmailAndListStores({ email, password })
    const storeId = stores[0].id

    https://docs.ledewire.org for guides and examples

    Interfaces

    ContentSearchRequest
    MerchantLoginResult
    MerchantPasswordResetBody
    MerchantPasswordResetRequestBody
    MerchantPasswordResetResponse
    MerchantUserUpdateRequest
    NodeClientConfig
    StoreConfig

    Type Aliases

    BuyerStatisticsItem
    Content
    ContentListItem
    ManageableStore
    MerchantAuthenticationResponse
    MerchantLoginStore
    MerchantSaleResponse
    MerchantUser
    PaginatedBuyersList
    PaginatedContentList
    PaginatedSalesList
    PaginatedUsersList
    PaginationMeta
    SalesStatisticsItem
    SalesSummaryResponse

    Functions

    createClient

    References

    AuthenticationResponse → AuthenticationResponse
    AuthError → AuthError
    CheckoutNextAction → CheckoutNextAction
    CheckoutState → CheckoutState
    CheckoutStateResponse → CheckoutStateResponse
    ContentAccessInfo → ContentAccessInfo
    ContentResponse → ContentResponse
    ContentWithAccessResponse → ContentWithAccessResponse
    ForbiddenError → ForbiddenError
    LedewireError → LedewireError
    MemoryTokenStorage → MemoryTokenStorage
    NextRequiredAction → NextRequiredAction
    NotFoundError → NotFoundError
    PaginationParams → PaginationParams
    parseExpiresAt → parseExpiresAt
    PublicConfigResponse → PublicConfigResponse
    PurchaseCreateRequest → PurchaseCreateRequest
    PurchaseError → PurchaseError
    PurchaseResponse → PurchaseResponse
    StoredTokens → StoredTokens
    TokenStorage → TokenStorage
    WalletBalanceResponse → WalletBalanceResponse
    WalletPaymentSessionRequest → WalletPaymentSessionRequest
    WalletPaymentSessionResponse → WalletPaymentSessionResponse
    WalletPaymentStatusResponse → WalletPaymentStatusResponse
    WalletTransactionItem → WalletTransactionItem