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

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

# Type Alias: ApiFetch()

> **ApiFetch** = (`input`, `init?`) => `Promise`\<`Response`\>

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

A `fetch` function for SDK API requests.

## Parameters

### input

`Request` | `string` | `URL`

### init?

`RequestInit`

## Returns

`Promise`\<`Response`\>
