Admin API / Types
Marketplace
ObjectA District marketplace.
type Marketplace implements NodeFields
| Field | Type | Description |
|---|---|---|
activeAnnouncement | Announcement | The announcement that the storefront shows: the newest ACTIVE announcement. Null when no announcement is active.Requires a client key with one of these scopes: admin:announcements:read |
avatar | Image | Square store logo. Null when the store has no logo of its own: the storefront then shows the District icon.Requires a client key with one of these scopes: admin:marketplace:read |
banner | Image | Wide header image in a 3:1 ratio, or null when none is set.Requires a client key with one of these scopes: admin:marketplace:read |
chatChannelsEnabled | Boolean! | Whether chat channels are on: false only when the store's plan gates features and the store hides chat channels.Requires a client key with one of these scopes: admin:marketplace:read |
commerceEnabled | Boolean! | Whether members can sell. When false, no member can create a listing.Requires a client key with one of these scopes: admin:marketplace:read |
createdAt | DateTime! | When the storefront was created.Requires a client key with one of these scopes: admin:marketplace:read |
customDomainSetups | [CustomDomainSetup!]! | The DNS setup of each enabled custom domain, oldest first. Requires the OWNER role or higher.Requires a client key with one of these scopes: admin:storefront:manage |
customDomainStorefrontHostAdvice | CustomDomainStorefrontHostAdvice | Always null. Requires the OWNER role or higher.Deprecated. Always null.Requires a client key with one of these scopes: admin:storefront:manageArguments:domain: String! — The domain, read as in AddCustomDomainInput.domain. |
dashboardUrl | URL! | URL for managing the store. Open it directly. Unauthenticated users are redirected to sign in, and the dashboard checks their permissions. The URL changes when the store's dashboard host changes, for example when the store moves its dashboard to a custom domain.Requires a client key with one of these scopes: admin:marketplace:read |
description | String | The store description, or null when it is empty.Requires a client key with one of these scopes: admin:marketplace:read |
handle | Slug! | The store's label in its District URLs.Requires a client key with one of these scopes: admin:marketplace:read |
hasLivestreamUsage | Boolean! | Whether any metered livestream usage has been recorded, on any day. False for marketplaces whose usage is not metered separately, and for a metered marketplace before its first recorded day. Requires the OWNER role or higher.Requires a client key with one of these scopes: admin:billing:read |
hasMultipleSellers | Boolean! | Whether the store hosts more than one seller. When false, storefronts show no seller names, and on a store whose plan gates features, only the OWNER can create listings.Requires a client key with one of these scopes: admin:marketplace:read |
id | ID! | A globally unique ID. Treat this value as an opaque string.Requires a client key with one of these scopes: admin:marketplace:read |
listingRules | MarketplaceListingRules! | Rules that every listing create and edit applies.Requires a client key with one of these scopes: admin:marketplace:read |
livestreamUsage | [LivestreamUsageDay!]! | Daily livestream infrastructure usage, one entry per UTC day in the requested range, oldest first. Quantities only: rates and charges are applied at invoicing and are not exposed here. Empty for marketplaces whose usage is not metered separately. Requires the OWNER role or higher.Requires a client key with one of these scopes: admin:billing:readArguments:fromDate: Date! — First day, inclusive. Must not be after toDate.toDate: Date! — Last day, inclusive. The range from fromDate to toDate covers at most 366 days. |
livestreamsEnabled | Boolean! | Whether members can go live. When false, no member can start or resume a livestream.Requires a client key with one of these scopes: admin:marketplace:read |
name | String! | The storefront's display name.Requires a client key with one of these scopes: admin:marketplace:read |
paymentProcessing | MarketplacePaymentProcessing! | Who processes checkout payments, and whether the store's own Stripe and PayPal accounts are connected.Requires a client key with one of these scopes: admin:marketplace:read |
salesByPeriod | [PeriodSales!]! | Totals of the sold orders of every seller, one entry per period, oldest first: from the period that contains fromDate to the period that contains toDate. A period with no sale has zero totals. Counts the orders that salesSummary counts for the same where, created from the start of fromDate to the end of toDate. Requires the ADMIN role or higher.Requires a client key with one of these scopes: admin:orders:readArguments:fromDate: Date! — First day, inclusive, in timeZone. Must not be after toDate.period: SalesPeriod! — The length of each period.timeZone: String — IANA time zone name, such as America/Los_Angeles, of the days and periods. Defaults to UTC. An unknown zone gives a thrown VALIDATION_ERROR.toDate: Date — Last day, inclusive, in timeZone. Defaults to today in timeZone. The range from fromDate to toDate covers at most 366 days.where: OrderWhereInput — Order filters. A createdAt range applies together with fromDate and toDate. productIds selects orders; the totals count every item of a selected order. Use salesByProduct for the units of one listing. |
salesByProduct | [ProductSales!]! | Sales of each listing in the sold orders of every seller: the orders that salesSummary counts for the same where. At most 100 listings, by itemSales descending; ties sort by listing ID. A deleted listing still has an entry. Requires the ADMIN role or higher.Requires a client key with one of these scopes: admin:orders:readArguments:where: OrderWhereInput — Order filters. productIds also limits the entries to those listings. |
salesBySeller | [SellerSales!]! | Totals of the sold orders of each seller: the orders that salesSummary counts for the same where. At most 100 sellers, by totalSales descending; ties sort by seller ID. Requires the ADMIN role or higher.Requires a client key with one of these scopes: admin:orders:readArguments:where: OrderWhereInput — Order filters. Omit to count every sold order in the current payment mode of the marketplace. productIds selects orders; the totals count every item of a selected order. Use salesByProduct for the units of one listing. |
salesSummary | SalesSummary! | Totals of the sold orders of every seller in the marketplace. Requires the ADMIN role or higher. Omit where for lifetime totals. A paymentStatus filter without PAID gives zero totals. A refundStatus filter without NONE or PARTIAL gives zero totals. Aliases with different createdAt ranges compare periods in one request.Requires a client key with one of these scopes: admin:orders:readArguments:where: OrderWhereInput — Order filters. Omit to count every sold order in the current payment mode of the marketplace. |
shipheroAccount | ShipheroAccount | The connected ShipHero account, or null when none is connected.Requires a client key with one of these scopes: admin:marketplace:read |
storefrontOrigin | StorefrontOrigin | The claimed storefront origin, or null when no origin is claimed.Requires a client key with one of these scopes: admin:marketplace:read |
taxonomyCategories | [TaxonomyCategory!]! | The taxonomy category tree sellers may list products under: the root categories, each with its descendants in children. The tree can have more than two levels: select children again for each level to read. Every category when no allow-list is set; otherwise only the allow-listed leaves, with only the ancestor categories needed to contain them.Requires a client key with one of these scopes: admin:products:read |
themeColor | String | Storefront button colour as #RRGGBB or #RRGGBBAA. Null uses the District default.Requires a client key with one of these scopes: admin:marketplace:read |
url | URL! | The storefront home page: the verified storefront origin, else a verified custom domain, else the District host.Requires a client key with one of these scopes: admin:marketplace:read |
visibility | StorefrontVisibilityMode! | Who can visit the storefront. PUBLIC when no mode is set. A storefront made with the District site builder enforces the mode of its last publish, so a change reaches that storefront after the next publish.Requires a client key with one of these scopes: admin:marketplace:read |