版本:202201
查询供应商详情
GET/openapi/2022-01/suppliers/:id
通过供应商 ID 获取指定供应商的详细信息。
请求
Path参数
id string必填
待查询的供应商 ID。
响应
- 200
- 400
- 404
200
- application/json
- 数据结构
- 示例
- Result
数据结构
supplier object
idstring
示例:
382453603865993516titlestring
示例:
example supplierurlstring
示例:
https://shoplazza.comcreated_atstring
示例:
2024-05-21T08:54:05Zupdated_atstring
示例:
2024-05-21T08:54:05Z{
"supplier": {
"id": "382453603865993516",
"title": "example supplier",
"url": "https://shoplazza.com",
"created_at": "2024-05-21T08:54:05Z",
"updated_at": "2024-05-21T08:54:05Z"
}
}
{
"supplier": {
"id": "382453603865993516",
"title": "example supplier",
"url": "https://shoplazza.com",
"created_at": "2024-05-21T08:54:05Z",
"updated_at": "2024-05-21T08:54:05Z"
}
}
400
- application/json
- 数据结构
- 示例
- Result
数据结构
errorsstring[]
{
"errors": [
"invalid id"
]
}
{"errors":["invalid id"]}
404
- application/json
- 数据结构
- 示例
- Result
数据结构
errorsstring[]
{
"errors": [
"Supplier not found"
]
}
{
"errors": [
"Supplier not found"
]
}