Skip to main content

Shops

Shops represent the stores connected to your enterprise. You can create, update, delete, and query shops.

Get All Shops

query {
getAllShops {
id
name
platformId
platformName
url
}
}

Get a Single Shop

query {
getShop(id: "shop_123") {
id
name
platformId
platformName
platformShopId
url
}
}

Create a Shop

mutation {
createShop(input: { name: "My New Store", url: "https://mystore.com" }) {
id
name
url
}
}

Update a Shop

mutation {
updateShop(id: "shop_123", input: { name: "Updated Store Name" }) {
id
name
url
}
}

Delete a Shop

mutation {
deleteShop(id: "shop_123")
}

Returns true if the shop was deleted successfully.