@bates-solutions/clover API Reference - v1.3.0
    Preparing search index...

    Module core

    @bates-solutions/clover — a TypeScript wrapper for the Clover Ecommerce and Platform APIs.

    The package's main entrypoint. Exports createCloverClient / CloverClient (one service per Clover domain — payments, refunds, customers, inventory), the normalized error hierarchy (CloverError + parseCloverError), and money / idempotency utilities, plus the v2 OAuth helpers (buildAuthorizeUrl, createCloverOAuthClient) for connecting a merchant. It ships no vendor SDK — it talks to Clover over a small fetch-based REST client that targets both Clover hosts. Webhook helpers live in the @bates-solutions/clover/server entrypoint.

    import { createCloverClient } from '@bates-solutions/clover';

    const clover = createCloverClient({ apiToken: process.env.CLOVER_API_TOKEN! });
    const charge = await clover.payments.create({ amount: 1000, source: 'clv_tok' });
    CloverApiError
    CloverAuthError
    CloverClient
    CloverError
    CloverHttp
    CloverOAuthClient
    CloverPaymentError
    CloverValidationError
    CustomersService
    InventoryService
    OrdersService
    PaymentsError
    PaymentsService
    RefundsService
    BuildAuthorizeUrlOptions
    CaptureChargeOptions
    Charge
    CloverClientConfig
    CloverHttpConfig
    CloverOAuthClientConfig
    CreateChargeOptions
    CreateCustomerOptions
    CreateItemOptions
    CreateRefundOptions
    Customer
    FindItemsByCodeOptions
    GetItemOptions
    GetOrderOptions
    Item
    ItemFields
    ItemStock
    LineItem
    ListItemsOptions
    ListOrdersOptions
    Money
    OAuthTokens
    Order
    PaginatedResponse
    PaginationOptions
    Refund
    RequestOptions
    UpdateItemOptions
    UpdateItemStockOptions
    CloverEnvironment
    CloverErrorCode
    CloverHost
    CurrencyCode
    ItemExpand
    ItemPriceType
    OrderExpand
    OrderPaymentState
    UpdateCustomerOptions
    buildAuthorizeUrl
    createCloverClient
    createCloverOAuthClient
    createIdempotencyKey
    formatMoney
    fromCents
    parseCloverError
    toCents