- Store API
- Admin API
- Auth
- Batch Jobs
- Currencies
- Customers
- Customer Groups
- Discounts
- Draft Orders
- Gift Cards
- Inventory Items
- Invites
- Notes
- Notifications
- Orders
- Create a Reservation
- Cancel Claim's Fulfillment
- Ship a Claim's Fulfillment
- Cancel Swap's Fulfilmment
- Get Order Reservations
- Add a Shipping Method
- Create a Refund
- Get an Order
- Update an Order
- Create a Fulfillment
- Cancel a Swap
- List Orders
- Create a Swap
- Complete an Order
- Create a Swap Fulfillment
- Cancel a Claim
- Process a Swap Payment
- Ship a Fulfillment
- Capture an Order's Payments
- Archive Order
- Update a Claim
- Request a Return
- Create a Claim Fulfillment
- Ship a Swap's Fulfillment
- Cancel a Fulfilmment
- Create a Claim
- Cancel an Order
- Order Edits
- Payments
- Payment Collections
- Product Collections
- Product Tags
- Product Types
- Product Variants
- Price Lists
- Products
- Product Categories
- Publishable Api Keys
- Reservations
- Regions
- Return Reasons
- Returns
- Sales Channels
- Shipping Options
- Shipping Profiles
- Stock Locations
- Store
- Swaps
- Uploads
- Tax Rates
- Users
- 【Demo】Products
检索产品详情
GET
/admin/products/{id}
产品
Request
Path Params
id
string
required
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/admin/products/'
Responses
🟢200成功
application/json
Body
code
string
required
data
object
required
id
string
required
Example:
prod_01G1G5V2MBA328390B5AXJ610F
title
string
required
Example:
Medusa Coffee Mug
subtitle
string | null
required
description
string | null
required
Example:
Every programmer's best friend.
handle
string | null
required
Example:
coffee-mug
is_giftcard
boolean
required
Default:
false
thumbnail
string <uri> | null
required
profile_id
string
required
Example:
sp_01G1G5V239ENSZ5MV4JAR737BM
weight
number | null
required
Example:
null
length
number | null
required
Example:
null
height
number | null
required
Example:
null
width
number | null
required
Example:
null
hs_code
string | null
required
Example:
null
origin_country
string | null
required
Example:
null
mid_code
string | null
required
Example:
null
material
string | null
required
Example:
null
collection_id
string | null
required
Example:
pcol_01F0YESBFAZ0DV6V831JXWH0BG
type_id
string | null
required
Example:
ptyp_01G8X9A7ESKAJXG2H0E6F1MW7A
discountable
boolean
required
false
.Default:
true
external_id
string | null
required
Example:
null
created_at
string <date-time>
required
updated_at
string <date-time>
required
deleted_at
string <date-time> | null
required
status
enum<string>
required
Allowed values:
draftproposedpublishedrejected
Default:
draft
metadata
object | null
required
Example:
{"car":"white"}
categories
array[object (Product Category) {15}]
optional
profile
object (Shipping Profile)
optional
gift_card
groups together the shipping options that can only be used for gift cards.profiles
array[object (Shipping Profile) {9}] | null
optional
profiles
is expanded.collection
object (Product Collection)
optional
type
object (Product Type)
optional
tags
array[object (Product Tag) {6}]
optional
images
array[object (Image) {6}]
optional
options
array[object (Product Option) {9}]
optional
sales_channels
array[object (Sales Channel) {9}]
optional
variants
array[object (Product Variant) {28}]
optional
Example
{
"code": "success",
"data": {
"id": "prod_01HY7Y5YJR18ZD0FYSPHF8YJJD",
"title": "Medusa T-Shirt",
"subtitle": "null",
"description": "Reimagine the feeling of a classic T-shirt. With our cotton T-shirts, everyday essentials no longer have to be ordinary. ",
"handle": null,
"is_giftcard": true,
"thumbnail": null,
"profile_id": "84",
"weight": 12,
"length": 14,
"height": 37,
"width": 15,
"hs_code": "24",
"origin_country": "ut",
"mid_code": "18",
"material": null,
"collection_id": "12",
"type_id": "97",
"discountable": false,
"external_id": "3",
"created_at": "2000-11-07 15:38:20",
"updated_at": "2017-05-03 04:38:26",
"deleted_at": "1988-03-09 09:20:24",
"status": "rejected",
"metadata": null,
"images": [],
"categories": [],
"collection": {},
"tags": [],
"profile": {},
"profiles": null,
"type": {},
"sales_channels": [],
"options": [],
"variants": []
}
}
🟠404记录不存在
🔴500服务器错误
Modified at 2024-05-23 07:10:15