Queries
sellers
The marketplace's active sellers, with their rating.
sellers returns every active seller in the marketplace. Use it for seller directories and filters.
sellers: [StorefrontSellerDto!]!It takes no arguments. In a store that isn't a marketplace (store.type other than MARKETPLACE), it returns [].
StorefrontSellerDto
| Field | Type | Description |
|---|---|---|
id | String! | Seller ID. |
name | String! | Name. |
slug | String! | Slug for seller and products(input: { sellerSlugs }). |
logo | String | Logo URL. |
banner | String | Banner URL. |
tagline | String | The seller's short tagline. |
verified | Boolean! | true when the seller is verified. |
rating.average | Decimal! | Average rating. |
rating.totalReviews | Int! | Reviews counted in the average. |
Example
query Sellers {
sellers {
id
name
slug
logo
verified
rating { average totalReviews }
}
}curl --request POST "https://storefront.ecomiq.pe/graphql" \
--header "Content-Type: application/json" \
--header "x-Store-Domain: my-store" \
--data-binary '{
"query": "query Sellers { sellers { id name slug logo verified rating { average totalReviews } } }"
}'{
"data": {
"sellers": [
{
"id": "7204558912004325310",
"name": "Acme",
"slug": "acme",
"logo": null,
"verified": true,
"rating": { "average": 4.5, "totalReviews": 10 }
}
]
}
}Errors
| Code | Cause |
|---|---|
STORE_CONTEXT_REQUIRED | x-Store-Domain is missing or doesn't match a store. |
REST equivalent
GET / returns the same list. In a store that isn't a marketplace it responds 404.
Last updated: