Marketplace API / Types
Marketplace
ObjectStorefront settings and metadata.
type Marketplace implements NodeFields
| Field | Type | Description |
|---|---|---|
activeAnnouncement | Announcement | The latest active announcement, or null when none exists. |
agoraAppId | NonEmptyString! | The Agora App ID this storefront's livestreams run on. Initialize the RTC engine with this value. Livestream tokens are signed against it, and a token signed for a different App ID cannot join a channel. |
avatar | Image | Storefront avatar, or null when none is set. Avatars are square images intended for display beside the storefront name. |
banner | Image | Wide header image, or null when none is set. Show it in a 3:1 frame: width and height give that frame, not the size of the stored file. |
brand | MarketplaceBrand! | Storefront brand settings. Null values use District defaults. |
chatChannelsEnabled | Boolean! | Whether chat channels are on. |
checkoutUrl | URL! | Home of the store's hosted checkout. Checkout pages, such as a cart's url, are on its origin. The URL changes when the store's checkout host changes, for example when the store moves checkout to a custom domain. |
commerceEnabled | Boolean! | Whether members can sell. When false, no member can create a listing. |
createdAt | DateTime! | When the storefront was created. |
dashboardUrl | URL! | URL for managing the store. Open it directly. Unauthenticated users are redirected to sign in, and the dashboard checks their permissions. |
description | String | The store description, or null when it is empty. |
handle | Slug! | The store's label in its District URLs. |
hasMultipleSellers | Boolean! | Whether the store hosts multiple sellers. When false, the store itself sells every product. |
id | ID! | A globally unique ID. Treat this value as an opaque string. |
livestreamsEnabled | Boolean! | Whether members can go live. When false, no member can start or resume a livestream. |
memberCount | NonNegativeInt! | The number of active members, sellers included. |
memberListEnabled | Boolean! | Whether the storefront shows who its members are. socialLinks are the store's own and do not depend on this value. |
name | String! | The storefront's name. |
paymentsConfig | MarketplacePaymentsConfig! | Payment capabilities. |
sellerCount | NonNegativeInt! | The number of active members who can sell. |
settingsUrl | URL! | URL for the authenticated user's store settings. Open it directly; unauthenticated users are redirected to sign in. |
socialLinks | [MarketplaceSocialLink!]! | The store's social profiles and website, in a fixed platform order. Each url is on a host of its platform, and only a WEBSITE link can use http. Empty when the store lists none. |
themeColor | String | Color of the storefront's primary buttons, as #RRGGBB or #RRGGBBAA. Null uses the District default. It is independent of brand.accentColor. |
url | URL! | Public storefront home page. Uses the store's verified storefront origin when one exists. Otherwise uses the custom domain when configured, and otherwise uses the District-hosted URL. The value changes when a storefront origin becomes verified or stops being verified. |