- 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 appGET
- Retrieve product_ids that are published to your appGET
- Retrieve a count of products that are published to your appGET
- Retrieve a specific product listing that is published to your appGET
- Create a product listing to publish a product to your appPUT
- Delete a product listing to unpublish a product from your appDELETE
- 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
Retrieve a specific product listing that is published to your app
GET
/admin/api/{api_version}/product_listings/{product_listing_id}.json
/admin/api/{api_version}/product_listings/{product_listing_id}.json
请求参数
Path 参数
api_version
string
必需
product_listing_id
string
必需
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://demo.myshopify.com//admin/api//product_listings/.json'
返回响应
🟢200Retrieve a specific product listing that is published to your app
application/json
Body
product_listing
object (ProductListing)
可选
product_id
string
只读可选
body_html
string
只读可选
created_at
string
只读可选
handle
string
只读可选
images
string
只读可选
示例值:
{"src":"http://example.com/burton.jpg"}
options
string
只读可选
示例值:
{"name":"Title"}
product_type
string
只读可选
published_at
string
只读可选
tags
string
只读可选
title
string
只读可选
updated_at
string
只读可选
variants
string
只读可选
A list of variant objects, each one representing a slightly different version of the product. For example, if a product comes in different sizes and colors, each size and color permutation (such as "small black", "medium black", "large blue"), would be a variant.
To reorder variants, update the product with the variants in the desired order. The position attribute on the variant will be ignored.
- barcode: The barcode, UPC or ISBN number for the product.
- compare_at_price: The competitor's price for the same item.
- created_at: The date and time when the product variant was created. The API returns this in ISO 8601.
- fulfillment_service: Service which is handling fulfillment. Valid values are:
manual
,gift_card
, or the handle of a FulfillmentService. - grams: The weight of the product variant in grams.
- weight: The weight of the product variant in the unit system specified with weight_unit.
- weight_unit: The unit system that the product variant's weight is measure in. The weight_unit can be either "g", "kg, "oz", or "lb".
- id: The unique numeric identifier for the product variant.
- inventory_management: Specifies whether or not Shopify tracks the number of items in stock for this product variant.
- inventory_policy: Specifies whether or not customers are allowed to place an order for a product variant when it's out of stock.
- inventory_quantity: The number of items in stock for this product variant.
- metafield: Attaches additional information to a shop's resources.
- option: Custom properties that a shop owner can use to define product variants. Multiple options can exist. Options are represented as:
option1
,option2
,option3
, etc. - position: The order of the product variant in the list of product variants. 1 is the first position. To reorder variants, update the product with the variants in the desired order. The position attribute on the variant will be ignored.
- price: The price of the product variant.
- product_id: The unique numeric identifier for the product.
- requires_shipping: Specifies whether or not a customer needs to provide a shipping address when placing an order for this product variant.
- sku: A unique identifier for the product in the shop.
- taxable: Specifies whether or not a tax is charged when the product variant is sold.
- title: The title of the product variant.
- updated_at: The date and time when the product variant was last modified. The API returns this in ISO 8601.
vendor
string
只读可选
示例
{
"product_listing": {
"product_id": 921728736,
"created_at": "2023-01-03T12:05:09-05:00",
"updated_at": "2023-01-03T12:05:09-05:00",
"body_html": "<p>The iPod Touch has the iPhone's multi-touch interface, with a physical home button off the touch screen. The home screen has a list of buttons for the available applications.</p>",
"handle": "ipod-touch",
"product_type": "Cult Products",
"title": "IPod Touch 8GB",
"vendor": "Apple",
"available": true,
"tags": "",
"published_at": "2017-08-31T20:00:00-04:00",
"variants": [
{
"id": 447654529,
"title": "Black",
"option_values": [
{
"option_id": 891236591,
"name": "Title",
"value": "Black"
}
],
"price": "199.00",
"formatted_price": "$199.00",
"compare_at_price": null,
"grams": 567,
"requires_shipping": true,
"sku": "IPOD2009BLACK",
"barcode": "1234_black",
"taxable": true,
"position": 1,
"available": true,
"inventory_policy": "continue",
"inventory_quantity": 13,
"inventory_management": "shipwire-app",
"fulfillment_service": "shipwire-app",
"weight": 1.25,
"weight_unit": "lb",
"image_id": null,
"created_at": "2023-01-03T12:05:09-05:00",
"updated_at": "2023-01-03T12:05:09-05:00"
}
],
"images": [],
"options": [
{
"id": 891236591,
"name": "Title",
"product_id": 921728736,
"position": 1,
"values": [
"Black"
]
}
]
}
}
修改于 2023-01-29 12:00:33