Skip to content
Guides
Queries

seller

Retrieve a seller's public profile and policies by slug.

Last updated:

seller returns a seller visible in the resolved store. In addition to identity and reputation, it exposes policies that can be shown on the seller's storefront.

Signature

seller(slug: String!): StorefrontSellerProfileDto!

Arguments

ArgumentTypeRule
slugString!Required. It is trimmed before lookup, cannot be empty, and accepts up to 100 characters.

Fields

FieldTypeDescription
idString!Opaque public seller ID.
nameString!Public name.
slugString!Public slug.
logoStringPublic logo URL or reference.
rating.averageDecimal!Public rating average.
rating.totalReviewsInt!Number of reviews included.
deliveryPolicyStringPublic delivery policy, when configured.
privacyAndSecurityPolicyStringPublic privacy and security policy, when configured.

Query

Seller.graphql
query Seller($slug: String!) {
  seller(slug: $slug) {
    id
    name
    slug
    logo
    rating {
      average
      totalReviews
    }
    deliveryPolicy
    privacyAndSecurityPolicy
  }
}
Variables
{
  "slug": "acme"
}

cURL

Terminal
curl --request POST "https://storefront.ecomiq.pe/graphql" \
  --header "Content-Type: application/json" \
  --header "x-Store-Domain: my-store" \
  --data-binary '{
    "query": "query Seller($slug: String!) { seller(slug: $slug) { id name slug logo rating { average totalReviews } deliveryPolicy privacyAndSecurityPolicy } }",
    "variables": { "slug": "acme" }
  }'

Response

Response
{
  "data": {
    "seller": {
      "id": "456",
      "name": "Acme",
      "slug": "acme",
      "logo": null,
      "rating": {
        "average": 4.5,
        "totalReviews": 10
      },
      "deliveryPolicy": "Delivery in 2 to 4 business days.",
      "privacyAndSecurityPolicy": null
    }
  }
}

Errors

CodeWhen it occurs
BAD_USER_INPUTslug is empty or exceeds 100 characters.
NOT_FOUNDThe seller does not exist or is not visible in the store.
STORE_CONTEXT_REQUIREDx-Store-Domain cannot resolve a store.

On this page