Market methods: enter
The Market Verbs enter as typed SDK methods, with inputs, result, refusals and an example.
Reference for Market, one group of Market methods.
Market.enter
Enter opens a Market to a Startup: Prices in its currency, the Site in its locales, and its floor rows woken. Verb page.
interface MarketVerbs {
enter(input: MarketEnterInput, options?: SB.CallOptions): SB.Call<Market>
}Emits Market.entered.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
startup | Startup | required | The Startup that enters. |
market | Market | required | The Market to open. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
market | Market | required | The Market, now open to the Startup. |
Refuses when
| Check | Error | Fix | Then call |
|---|---|---|---|
| The key is valid, but its scopes do not allow this operation. | forbidden | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |
Example
import { $ } from 'startup-builder'
const market = await $.Market.enter({ startup: 'startup_l3hr1EnUGY', market: 'market_4uFEzN14G4' })