Skip to main content

CartSearchInput

Search criteria for filtering shopping carts.

Provides flexible filtering options for cart searches including customer associations, cart status, creation dates, and pagination. Results are filtered based on user permissions and organizational access.

input CartSearchInput {
ids: [String!]
contactIds: [Int!]
customerIds: [Int!]
companyIds: [Int!]
statuses: [CartStatus!]
page: Int
offset: Int
createdAt: DateSearchInput
lastModifiedAt: DateSearchInput
sortInputs: [CartSortInput!]
}

Fields

CartSearchInput.ids ● [String!] list scalar

Filter by specific cart identifiers.

Returns only carts whose IDs match the provided list. Useful for retrieving specific carts or bulk operations.

CartSearchInput.contactIds ● [Int!] list scalar

Filter by contact identifiers for B2B carts.

Returns carts associated with any of the specified contact IDs. Used for finding carts belonging to specific business contacts.

CartSearchInput.customerIds ● [Int!] list scalar

Filter by customer identifiers for B2C carts.

Returns carts associated with any of the specified customer IDs. Used for finding carts belonging to individual customers.

CartSearchInput.companyIds ● [Int!] list scalar

Filter by company identifiers for B2B carts.

Returns carts associated with any of the specified company IDs. Used for finding all carts within specific companies.

CartSearchInput.statuses ● [CartStatus!] list enum

Filter by cart processing statuses.

Returns carts matching any of the specified status values. Common statuses include 'active', 'abandoned', 'converted', 'expired'.

CartSearchInput.page ● Int scalar

Page number for pagination.

Specifies which page of results to return. Must be 1 or greater.

CartSearchInput.offset ● Int scalar

Number of items per page.

Controls how many carts are returned in each page. Must be 1 or greater.

CartSearchInput.createdAt ● DateSearchInput input

Search by date created

CartSearchInput.lastModifiedAt ● DateSearchInput input

Search by date changed

CartSearchInput.sortInputs ● [CartSortInput!] list input

Inputs to sort by

Member Of

carts query