Get a single event by its id.


Anchor to id
id
required

The ID of the event.


Was this section helpful?

Events chronicle resource activities such as the creation of an article, the fulfillment of an order, or the addition of a product.


Was this section helpful?
Retrieve the first basic-event
Hide code
DescriptionCopy
query {
  event(id: "gid://shopify/BasicEvent/422690323") {
    id
    message
    ... on BasicEvent {
      action
      subjectType
      subject {
        __typename
      }
    }
  }
}
Hide code
Response
JSON
{
  "event": {
    "id": "gid://shopify/BasicEvent/422690323",
    "message": "bob bobsen included a product on Online Store: <a href=\"https://admin.myshopify.io/store/snowdevil/admin/products/440089423\">IPod Nano - 8GB</a>.",
    "action": "published",
    "subjectType": "PRODUCT",
    "subject": {
      "__typename": "Product"
    }
  }
}