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

    Class CloverHttp

    A small typed fetch-based HTTP client for the Clover Ecommerce and Platform APIs. No SDK dependency; runs anywhere fetch and WebCrypto exist.

    Non-2xx responses are thrown as typed errors (see cloverErrorFromResponse).

    Index
    • get merchantId(): string | undefined

      The configured merchant id, if any.

      Returns string | undefined

    • Perform a request and return the parsed JSON body.

      Type Parameters

      • T

      Parameters

      Returns Promise<T>

      On a non-2xx response or a network failure.