An access token is required to call this API. Refer to Authorization for more information about how to obtain the token.
Retrieve the specified Publication object by ID.
Arguments
id ● ID!non-null
The ID of the Publication to retrieve.
Return
catalog ● Catalog
The catalog associated with the publication.
More
id ● ID!non-null
A globally-unique ID.
supportsFuturePublishing ● Boolean!non-null
Whether the publication supports future publishing.
Status and error codes
For detailed information about common codes, see Status and error codes.
Example
Query Publication by ID
query Publication {
publication(id: "gid://shopline/Publication/21230257") {
supportsFuturePublishing
id
catalog {
id
title
status
... on AppCatalog {
id
title
status
apps(first: 10) {
nodes {
appKey
id
title
embedded
}
}
}
}
}
}
Response
{
"data": {
"publication": {
"supportsFuturePublishing": false,
"catalog": {
"id": "gid://shopline/Catalog/21230258",
"status": "ACTIVE",
"title": "Channel Catalog 21230257",
"apps": {
"nodes": [
{
"embedded": false,
"id": "gid://shopline/App/65095",
"title": "Facebook",
"appKey": "111afe2f9baceb93004af92b1276582619f1db26"
}
]
}
},
"id": "gid://shopline/Publication/21230257"
}
}
}
Was this article helpful to you?