--- title: abandonment - GraphQL Admin description: Returns a `Abandonment` resource by ID. api_version: unstable api_name: admin source_url: html: https://shopify.dev/docs/api/admin-graphql/unstable/queries/Abandonment md: https://shopify.dev/docs/api/admin-graphql/unstable/queries/Abandonment.md --- # abandonment query Returns a `Abandonment` resource by ID. ## Arguments * id [ID!](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/ID) required The ID of the `Abandonment` to return. *** ## Possible returns * Abandonment [Abandonment](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Abandonment) Tracks a [customer](https://shopify.dev/docs/api/admin-graphql/latest/objects/Customer)'s incomplete shopping journey, whether they abandoned while browsing [products](https://shopify.dev/docs/api/admin-graphql/latest/objects/Product), adding items to cart, or during checkout. Provides data about the customer's behavior and products they interacted with. The abandonment includes fields that indicate whether the customer has completed any [orders](https://shopify.dev/docs/api/admin-graphql/latest/objects/Order) or [draft orders](https://shopify.dev/docs/api/admin-graphql/latest/objects/DraftOrder) after the abandonment occurred. It also tracks when emails were sent and how long since the customer's last activity across different abandonment types. *** ## Examples * ### abandonment reference ## Query Reference ```graphql { abandonment(id) { # abandonment fields } } ```