OptionalbaseOptionalbaseMarks a custom basePath as a sandbox stand-in (a mock server in tests), so the sandbox
module accepts it. Needs environment: 'sandbox' too. Default false.
OptionalcredentialsOptionalenvironment'sandbox' or 'production'. Sets the API host and the token host.
OptionalfetchOptionalinit: RequestInitOptionalinit: RequestInitOptionalheadersOptionalmaxRetries after the first attempt, for network errors, timeouts, 408, 429 and 5xx answers to GET, HEAD, OPTIONS, PUT and DELETE requests and to the token request. Default 2; 0 turns retries off.
OptionalmiddlewareOptionalqueryOptionalretryFirst backoff delay in milliseconds, doubled on each retry with jitter. A Retry-After header wins. Default 500.
OptionaltimeoutTime to wait for each response, in milliseconds. Default 30000; 0 turns the timeout off.
A full base URL instead of an environment, such as a local stand-in server. Wins over
environment.