Skip to main content

organizationBySubdomain

Requires an authenticated session.

Returns your own organization by its subdomain. Another organization's subdomain reads as not found.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

query OrganizationBySubdomain($subdomain: String!) {
organizationBySubdomain(subdomain: $subdomain) {
id
code
postalCode
registrationNumber
name
status
stats {
activeWarehhouses
lastOrderDate
totalOrders
totalProducts
totalRevenue
totalUsers
}
}
}

Variables:

{
"subdomain": "string"
}

Response:

{
"data": {
"organizationBySubdomain": {
"id": "string",
"code": "string",
"postalCode": "string",
"registrationNumber": "string",
"name": "string",
"status": "string",
"stats": {
"activeWarehhouses": 0,
"lastOrderDate": "2025-01-15T00:00:00Z",
"totalOrders": 0,
"totalProducts": 0,
"totalRevenue": 0,
"totalUsers": 0
}
}
}
}
organizationBySubdomain(
subdomain: String!
): Organization!

Arguments​

organizationBySubdomain.subdomain ● String! non-null scalar​

Your organization's subdomain.

Type​

Organization object​

A seller organization: one tenant of the platform.