---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../modules.md) / [clients](../index.md) / getApiFetch

# Function: getApiFetch()

> **getApiFetch**(`options`): [`ApiFetch`](../type-aliases/ApiFetch.md)

Defined in: [packages/b2c-tooling-sdk/src/clients/http-transport.ts:104](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/8fc17d8708d025c83fb0c44ca73198a200605153/packages/b2c-tooling-sdk/src/clients/http-transport.ts#L104)

Returns the `fetch` to use for OCAPI, SCAPI, Account Manager and MRT requests.

Pass the auth strategy (or config) the request belongs to. Without options,
or when no option is set, this is the global `fetch` with full TLS checks.

## Parameters

### options

[`HttpTransportOptions`](../interfaces/HttpTransportOptions.md) | `undefined`

## Returns

[`ApiFetch`](../type-aliases/ApiFetch.md)
