A small typed fetch-based HTTP client for the Clover Ecommerce and Platform APIs. No SDK dependency; runs anywhere fetch and WebCrypto exist.
fetch
Non-2xx responses are thrown as typed errors (see cloverErrorFromResponse).
The configured merchant id, if any.
Perform a request and return the parsed JSON body.
On a non-2xx response or a network failure.
A small typed
fetch-based HTTP client for the Clover Ecommerce and Platform APIs. No SDK dependency; runs anywherefetchand WebCrypto exist.Non-2xx responses are thrown as typed errors (see cloverErrorFromResponse).