# abandonment - admin-graphql - QUERY Version: 2024-10 ## Description Returns an abandonment by ID. ### Access Scopes ## Arguments * [id](/docs/api/admin-graphql/2024-10/scalars/ID): ID! - The ID of the `Abandonment` to return. ## Returns * [abandonedCheckoutPayload](/docs/api/admin-graphql/2024-10/objects/AbandonedCheckout): AbandonedCheckout The abandonment payload for the abandoned checkout. * [abandonmentType](/docs/api/admin-graphql/2024-10/enums/AbandonmentAbandonmentType): AbandonmentAbandonmentType! The abandonment type. * [app](/docs/api/admin-graphql/2024-10/objects/App): App! The app associated with an abandoned checkout. * [cartUrl](/docs/api/admin-graphql/2024-10/scalars/URL): URL Permalink to the cart page. * [createdAt](/docs/api/admin-graphql/2024-10/scalars/DateTime): DateTime! The date and time when the abandonment was created. * [customer](/docs/api/admin-graphql/2024-10/objects/Customer): Customer! The customer who abandoned this event. * [customerHasNoDraftOrderSinceAbandonment](/docs/api/admin-graphql/2024-10/scalars/Boolean): Boolean! Whether the customer has a draft order since this abandonment has been abandoned. * [customerHasNoOrderSinceAbandonment](/docs/api/admin-graphql/2024-10/scalars/Boolean): Boolean! Whether the customer has completed an order since this checkout has been abandoned. * [daysSinceLastAbandonmentEmail](/docs/api/admin-graphql/2024-10/scalars/Int): Int! The number of days since the last abandonment email was sent to the customer. * [emailSentAt](/docs/api/admin-graphql/2024-10/scalars/DateTime): DateTime When the email was sent, if that's the case. * [emailState](/docs/api/admin-graphql/2024-10/enums/AbandonmentEmailState): AbandonmentEmailState The email state (e.g., sent or not sent). * [hoursSinceLastAbandonedCheckout](/docs/api/admin-graphql/2024-10/scalars/Float): Float The number of hours since the customer has last abandoned a checkout. * [id](/docs/api/admin-graphql/2024-10/scalars/ID): ID! A globally-unique ID. * [inventoryAvailable](/docs/api/admin-graphql/2024-10/scalars/Boolean): Boolean! Whether the products in abandonment are available. * [isFromCustomStorefront](/docs/api/admin-graphql/2024-10/scalars/Boolean): Boolean! Whether the abandonment event comes from a custom storefront channel. * [isFromOnlineStore](/docs/api/admin-graphql/2024-10/scalars/Boolean): Boolean! Whether the abandonment event comes from the Online Store sales channel. * [isFromShopApp](/docs/api/admin-graphql/2024-10/scalars/Boolean): Boolean! Whether the abandonment event comes from the Shop app sales channel. * [isFromShopPay](/docs/api/admin-graphql/2024-10/scalars/Boolean): Boolean! Whether the abandonment event comes from Shop Pay. * [isMostSignificantAbandonment](/docs/api/admin-graphql/2024-10/scalars/Boolean): Boolean! Whether the customer didn't complete another most significant step since this abandonment. * [lastBrowseAbandonmentDate](/docs/api/admin-graphql/2024-10/scalars/DateTime): DateTime! The date for the latest browse abandonment. * [lastCartAbandonmentDate](/docs/api/admin-graphql/2024-10/scalars/DateTime): DateTime! The date for the latest cart abandonment. * [lastCheckoutAbandonmentDate](/docs/api/admin-graphql/2024-10/scalars/DateTime): DateTime! The date for the latest checkout abandonment. * [mostRecentStep](/docs/api/admin-graphql/2024-10/enums/AbandonmentAbandonmentType): AbandonmentAbandonmentType! The most recent step type. * [visitStartedAt](/docs/api/admin-graphql/2024-10/scalars/DateTime): DateTime The date and time when the visit started. ## Examples