Skip to main content

config Query

Description

Retrieves configuration information for a shop or store.

query config($origin: String, $configRef: ID) {
config(origin: $origin, configRef: $configRef) {
_id
id
created
uri
shopName
notes
domain
plan {
_id
id
expires
active
title
currency
recurrence
description
nextPaymentDate
yearlyDiscount
seats
}
lastPlanChange
admins {
_id
role
}
currency
currencySymbol
currencySymbolPosition
archived
archivedDate
sites {
_id
isPrimary
isDefault
domain
created
}
metadata {
id
supplierCodes
locations
styles
genres
years
mediums
formats
formatDescriptions
countries
manufacturers
types
categories
bookAuthors
bookCategories
bookPublishers
optionNames
optionValues
categoriesProduct
categoriesBook
}
stack {
id
name
status
}
communication {
language
}
modules
status {
active
reason
date
}
eshop {
uri
}
statistics {
total
itemCount
stockCount
listingsCount
}
recordfy {
enabled
}
bandcamp {
clientSecret
clientId
accessToken
refreshToken
}
discogs {
enabled
username
token
listingExtraRate
syncInventory
generateDiscrepancyReports
excludeTaxesFromPrice
}
stripe {
customerId
}
invoicing {
name
}
storage {
type
}
socials {
title
id
value
}
tags
}
}

Variables

{
"origin": "origin",
"configRef": "7895a20900369ed2e74a14d0"
}

Response

{
"config": {
"_id": "3d247434f8e28b9b35151892",
"id": 1539192942326,
"created": 1739405053480,
"uri": "https://www.my-common-ground-store.com/release/1763553751/release-artist-release-name",
"shopName": "example",
"notes": "example",
"domain": "example",
"plan": {
"_id": "5113c83b628891bb10485738",
"id": "example",
"expires": 1724452255821,
"active": true,
"title": "example",
"currency": "example",
"recurrence": "example",
"description": "example",
"nextPaymentDate": 1752459413247,
"yearlyDiscount": 1.23,
"seats": 42
},
"lastPlanChange": 1703855918112,
"admins": [
{
"_id": "261ee5e545588fc8bbd1990a",
"role": "example"
}
],
"currency": "example",
"currencySymbol": "example",
"currencySymbolPosition": "example",
"archived": true,
"archivedDate": 1717982022144,
"sites": [
{
"_id": "cde400618762941ae308a102",
"isPrimary": true,
"isDefault": true,
"domain": "example",
"created": 1746679491757
}
],
"metadata": {
"id": "example",
"supplierCodes": [
"example"
],
"locations": [
"example"
],
"styles": [
"example"
],
"genres": [
"example"
],
"years": [
42
],
"mediums": [
"example"
],
"formats": [
"example"
],
"formatDescriptions": [
"example"
],
"countries": [
"example"
],
"manufacturers": [
"example"
],
"types": [
"example"
],
"categories": [
"example"
],
"bookAuthors": [
"example"
],
"bookCategories": [
"example"
],
"bookPublishers": [
"example"
],
"optionNames": [
"example"
],
"optionValues": [
"example"
],
"categoriesProduct": [
"example"
],
"categoriesBook": [
"example"
]
},
"stack": {
"id": "9d689d759528e17072cb964c",
"name": "example",
"status": "example"
},
"communication": {
"language": "example"
},
"modules": {},
"status": {
"active": true,
"reason": "example",
"date": 1759857026443
},
"eshop": {
"uri": "https://www.my-common-ground-store.com/release/1763553751/release-artist-release-name"
},
"statistics": {
"total": 29.99,
"itemCount": 1.23,
"stockCount": 1.23,
"listingsCount": 1.23
},
"recordfy": {
"enabled": true
},
"bandcamp": {
"clientSecret": "example",
"clientId": "example",
"accessToken": "example",
"refreshToken": "example"
},
"discogs": {
"enabled": true,
"username": "example",
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ",
"listingExtraRate": 1.23,
"syncInventory": true,
"generateDiscrepancyReports": true,
"excludeTaxesFromPrice": true
},
"stripe": {
"customerId": "example"
},
"invoicing": {
"name": "example"
},
"storage": {
"type": "example"
},
"socials": [
{
"title": "example",
"id": "example",
"value": "example"
}
],
"tags": [
"example"
]
}
}

Arguments

NameTypeDescription
originStringOrigin identifier for the configuration.
configRefIDReference ID of the configuration to retrieve.

Returns

Config