- Customers
- Customer Address
- Retrieves a list of addresses for a customer
- Creates a new address for a customer
- Retrieves details for a single customer address
- Updates an existing customer address
- Removes an address from a customer’s address list
- Performs bulk operations for multiple customer addresses
- Sets the default address for a customer
- CustomerSavedSearch
- Customer
- Retrieves a list of customers
- Creates a customer
- Searches for customers that match a supplied query
- Retrieves a single customer
- Updates a customer
- Deletes a customer
- Creates an account activation URL for a customer
- Sends an account invite to a customer
- Retrieves a count of customers
- Retrieves all orders that belong to a customer
- Sales channels
- Checkout
- CollectionListing
- Retrieve collection listings that are published to your app
- Retrieve product_ids that are published to a collection_id
- Retrieve a specific collection listing that is published to your app
- Create a collection listing to publish a collection to your app
- Delete a collection listing to unpublish a collection from your app
- Product ResourceFeedback
- MobilePlatformApplication
- ProductListing
- Retrieve product listings that are published to your app
- Retrieve product_ids that are published to your app
- Retrieve a count of products that are published to your app
- Retrieve a specific product listing that is published to your app
- Create a product listing to publish a product to your app
- Delete a product listing to unpublish a product from your app
- ResourceFeedback
- Payment
- Products
- Collect
- Collection
- CustomCollection
- Product
- Product Image
- Product Variant
- SmartCollection
- Orders
- Abandoned checkouts
- DraftOrder
- Order Risk
- Transaction
- Order
- Refund
- Access
- Billing
- Online store
- Asset
- Blog
- Article
- Retrieves a list of all articles from a blog
- Creates an article for a blog
- Retrieves a count of all articles from a blog
- Receive a single Article
- Updates an article
- Deletes an article
- Retrieves a list of all article authors
- Retrieves a list of all article tags
- Retrieves a list of all article tags from a specific blog
- Redirect
- Comment
- ScriptTag
- Page
- Theme
- Shipping and fulfillment
- CancellationRequest
- CarrierService
- AssignedFulfillmentOrder
- FulfillmentEvent
- Fulfillment
- Retrieves fulfillments associated with an order
- Retrieves fulfillments associated with a fulfillment order
- Retrieves a count of fulfillments associated with a specific order
- Receive a single Fulfillment
- Creates a fulfillment for one or many fulfillment orders
- Updates the tracking information for a fulfillment
- Cancels a fulfillment
- FulfillmentOrder
- Retrieves a list of fulfillment orders for a specific order
- Retrieves a specific fulfillment order
- Cancel a fulfillment order
- Marks a fulfillment order as incomplete
- Moves a fulfillment order to a new location
- Marks the fulfillment order as open
- Reschedules the fulfill_at time of a scheduled fulfillment order
- Applies a fulfillment hold on an open fulfillment order
- Sets deadline for fulfillment orders
- Releases the fulfillment hold on a fulfillment order
- LocationsForMove
- FulfillmentRequest
- FulfillmentService
- Shopify Payments
- Analytics
- Deprecated API calls
- Discounts
- DiscountCode
- Creates a discount code
- Retrieves a list of discount codes
- Updates an existing discount code
- Retrieves a single discount code
- Deletes a discount code
- Retrieves the location of a discount code
- Retrieves a count of discount codes for a shop
- Creates a discount code creation job
- Retrieves a discount code creation job
- Retrieves a list of discount codes for a discount code creation job
- PriceRule
- DiscountCode
- Inventory
- Events
- MarketingEvent
- Metafield
- Plus
- Store properties
- TenderTransaction
Retrieves a list of smart collections
请求参数
示例代码
curl --location --request GET 'https://demo.myshopify.com//admin/api//smart_collections.json'
返回响应
title
.Used in shop themes by the Liquid templating language to refer to the smart collection. (maximum: 255 characters)
that the smart collection was published. Returns
null
when the collection is hidden.web
: The smart collection is published to the Online Store channel but not published to the Point of Sale channel.global
: The smart collection is published to both the Online Store channel and the Point of Sale channel.
The list of rules that define what products go into the smart collection. Each rule has the following properties:
column: The property of a product being used to populate the smart collection.
Valid values for text relations:
title
: The product title.type
: The product type.vendor
: The name of the product vendor.variant_title
: The title of a product variant.
Valid values for number relations:
variant_compare_at_price
: The compare price.variant_weight
: The weight of the product.variant_inventory
: The inventory stock. Note:not_equals
does not work with this property.variant_price
: product price.
Valid values for an
equals
relation:tag
: A tag associated with the product.
relation: The relationship between the column choice, and the condition.
Valid values for number relations:
greater_than
The column value is greater than the condition.less_than
The column value is less than the condition.equals
The column value is equal to the condition.not_equals
The column value is not equal to the condition.
Valid values for text relations:
equals
: Checks if the column value is equal to the condition value.not_equals
: Checks if the column value is not equal to the condition value.starts_with
: Checks if the column value starts with the condition value.ends_with
: Checks if the column value ends with the condition value.contains
: Checks if the column value contains the condition value.not_contains
: Checks if the column value does not contain the condition value.
condition: Select products for a smart collection using a condition. Values are either strings or numbers, depending on the relation value.
condition_object_id: The object id that points to additional attributes for the collection rule. This is only required when using metafield definition rules. Currently it is only available for beta early access.
true
: Products only need to match one or more of the rules to be included in the smart collection.false
: Products must match all of the rules to be included in the smart collection.
is called product.liquid, and additional templates are called product.
suffix
.liquid.{
"smart_collections": [
{
"id": 1063001318,
"handle": "ipods-1",
"title": "IPods",
"updated_at": "2023-01-03T12:43:30-05:00",
"body_html": null,
"published_at": "2023-01-03T12:43:29-05:00",
"sort_order": "best-selling",
"template_suffix": null,
"disjunctive": false,
"rules": [
{
"column": "title",
"relation": "starts_with",
"condition": "iPod"
}
],
"published_scope": "web",
"admin_graphql_api_id": "gid://shopify/Collection/1063001318"
}
]
}