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": "bd43fc06d001898a38bbd537"
}
Response
{
"config": {
"_id": "a8fef0c8f156151baf8718f7",
"id": 2934940794059,
"created": 1728677590099,
"uri": "https://www.my-common-ground-store.com/release/1763553751/release-artist-release-name",
"shopName": "example",
"notes": "example",
"domain": "example",
"plan": {
"_id": "3702d1a83b2ed880acf6d270",
"id": "example",
"expires": 1708746125475,
"active": true,
"title": "example",
"currency": "example",
"recurrence": "example",
"description": "example",
"nextPaymentDate": 1738171097124,
"yearlyDiscount": 1.23,
"seats": 42
},
"lastPlanChange": 1718230106099,
"admins": [
{
"_id": "5b72b463714e47cbd2216b75",
"role": "example"
}
],
"currency": "example",
"currencySymbol": "example",
"currencySymbolPosition": "example",
"archived": true,
"archivedDate": 1748656342729,
"sites": [
{
"_id": "f03bae7065bac8f0fc8a999d",
"isPrimary": true,
"isDefault": true,
"domain": "example",
"created": 1717645979147
}
],
"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": "66596962814e33655293e494",
"name": "example",
"status": "example"
},
"communication": {
"language": "example"
},
"modules": {},
"status": {
"active": true,
"reason": "example",
"date": 1737036152496
},
"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
| Name | Type | Description |
|---|---|---|
origin | String | Origin identifier for the configuration. |
configRef | ID | Reference ID of the configuration to retrieve. |