appInfo
Overview
Retrieve Store information (branding, URLs, general settings). The GraphQL query name is getAppInfo, but this page refers to the resource as Store.
- Type: GraphQL Query
- Endpoint: https://subdomain.com
- Authentication:
Authorization: Bearer <TOKEN>
Query
query GetAppInfo {
getAppInfo {
success
message
data {
_id
name
subdomain
logo { _id fileUrl }
description
url
generalSettings {
font { _id sources title }
palette {
_id
name
mainColor
subColor
footerColor
backgroundColor
backgroundImageUrl
}
country {
_id
name
image { image imageUrl }
code
continent
capital
active
deleted
phonekey
}
currency { _id title currencyCode currencySymbol }
}
}
}
}
Examples
- cURL
- JavaScript (fetch)
curl -X POST \
https://subdomain.com \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <TOKEN>" \
--data-binary @- << 'EOF'
{
"query": "query GetAppInfo { getAppInfo { success message data { _id name subdomain url } } }"
}
EOF
const res = await fetch('https://subdomain.com', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: 'Bearer ' + token,
},
body: JSON.stringify({
query: `
query GetAppInfo {
getAppInfo { success message data { _id name subdomain url } }
}
`,
}),
});
const json = await res.json();
Notes
- The GraphQL field is named
getAppInfo; this page treats it as Store info for documentation clarity. - Reduce or expand selected fields according to your UI needs.