--- title: abandonment - GraphQL Admin description: Returns a `Abandonment` resource by ID. api_version: 2025-01 api_name: admin type: query api_type: graphql source_url: html: 'https://shopify.dev/docs/api/admin-graphql/2025-01/queries/abandonment' md: 'https://shopify.dev/docs/api/admin-graphql/2025-01/queries/abandonment.md' --- # abandonment query Returns a `Abandonment` resource by ID. ## Arguments * id [ID!](https://shopify.dev/docs/api/admin-graphql/2025-01/scalars/ID) required The ID of the `Abandonment` to return. *** ## Possible returns * Abandonment [Abandonment](https://shopify.dev/docs/api/admin-graphql/2025-01/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 } } ```