Options that are available to all requests.

interface CommonRequestOptions {
    abortController?: AbortController;
    aggregateTimeoutMs?: number;
    correlationId?: string;
    params?: Record<
        string,
        undefined
        | string
        | number
        | boolean
        | (string | number | boolean)[],
    >;
    retry?: CommercetoolsRetryConfig;
    timeoutMs?: number;
}

Hierarchy (View Summary)

Properties

abortController?: AbortController

An optional AbortController that can be used to abort the request

aggregateTimeoutMs?: number

The aggregate timeout in milliseconds (aggregate time spent across the original request and retries)

correlationId?: string

A unique id used to track the source of a request.

params?: Record<
    string,
    undefined
    | string
    | number
    | boolean
    | (string | number | boolean)[],
>

Query string parameters. For repeated param=value in the query string, define an array with values

Retry configuration

timeoutMs?: number

The request timeout in milliseconds