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

[@salesforce/b2c-tooling-sdk](../../modules.md) / [cli](../index.md) / DispatchBranches

# Interface: DispatchBranches\<S, T\>

Defined in: [packages/b2c-tooling-sdk/src/compat/dispatcher.ts:71](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/36eea0d308f1312d1a446ec8813ed30b0bdba62c/packages/b2c-tooling-sdk/src/compat/dispatcher.ts#L71)

Branches passed to [BackendDispatcher.run](../classes/BackendDispatcher.md#run): one async function per
backend. The SCAPI branch receives a non-null ops bundle (`S`) so callers
don't need non-null assertions. The OCAPI branch receives no argument —
it should call the OCAPI free functions directly with whatever instance
handle the caller has.

## Type Parameters

### S

`S`

### T

`T`

## Properties

### ocapi()

> **ocapi**: () => `Promise`\<`T`\>

Defined in: [packages/b2c-tooling-sdk/src/compat/dispatcher.ts:73](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/36eea0d308f1312d1a446ec8813ed30b0bdba62c/packages/b2c-tooling-sdk/src/compat/dispatcher.ts#L73)

#### Returns

`Promise`\<`T`\>

***

### scapi()

> **scapi**: (`ops`) => `Promise`\<`T`\>

Defined in: [packages/b2c-tooling-sdk/src/compat/dispatcher.ts:72](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/36eea0d308f1312d1a446ec8813ed30b0bdba62c/packages/b2c-tooling-sdk/src/compat/dispatcher.ts#L72)

#### Parameters

##### ops

`S`

#### Returns

`Promise`\<`T`\>
