Skip to content

CommerceClientOptions

Describes@ebitex/commerce-sdk 0.2.xSee the changelog:@ebitex/commerce-sdk

apiKey: string

A delivery key bound to one store. A server key may be told stock counts and must never reach a browser; a browser-safe key is restricted to origins or addresses.


optional baseUrl?: string

Defaults to https://api.ebitex.io.


optional fetch?: {(input, init?): Promise<Response>; (input, init?): Promise<Response>; }

Defaults to the global fetch. Wrap it to add retries, a cache or tracing: the client adds none of its own.

(input, init?): Promise<Response>

MDN Reference

RequestInfo | URL

RequestInit

Promise<Response>

(input, init?): Promise<Response>

MDN Reference

string | Request | URL

RequestInit

Promise<Response>