---
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:66](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/2feab01f654eec77c6d702777ec2818472f131f1/packages/b2c-tooling-sdk/src/compat/dispatcher.ts#L66)

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:68](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/2feab01f654eec77c6d702777ec2818472f131f1/packages/b2c-tooling-sdk/src/compat/dispatcher.ts#L68)

#### Returns

`Promise`\<`T`\>

***

### scapi()

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

Defined in: [packages/b2c-tooling-sdk/src/compat/dispatcher.ts:67](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/2feab01f654eec77c6d702777ec2818472f131f1/packages/b2c-tooling-sdk/src/compat/dispatcher.ts#L67)

#### Parameters

##### ops

`S`

#### Returns

`Promise`\<`T`\>
