1. OpenAPI
OSL海外仓
  • OpenAPI
    • 开发者在线测试工具
      POST
    • 查询仓库列表
      POST
    • 查询运输公司列表
      POST
    • 查询库存
      POST
    • 查询库存(分页)
      POST
    • 创建批量订单出库
      POST
    • 查询订单状态
      POST
    • 查询订单物流信息
      POST
    • 查询产品分类树
      POST
    • 创建商品
      POST
    • 更新商品
      POST
    • 查询商品sku
      POST
    • 查询商品sku 分页
      POST
  1. OpenAPI

查询产品分类树

POST
/openapi/goods/category/list

请求参数

Header 参数

Body 参数application/json必填

示例
{
  "sku": "SKU001",
  "productName": "测试商品001",
  "barcode": "4901234567890",
  "productAlias": "Alias-001",
  "price": 1000,
  "merchantCategoryId": 10001,
  "referenceLength": 30.5,
  "referenceWidth": 10.2,
  "referenceHeight": 1.5,
  "referenceWeight": 0.1,
  "imageUrl": "https://img.example.com/1.jpg",
  "remark": "created by openapi",
  "isBattery": 0
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location 'https://oms.osl.sohomall.jp/api/openapi/goods/category/list' \
--header 'App-Key;' \
--header 'Nonce;' \
--header 'Sign;' \
--header 'Timestamp;' \
--header 'Content-Type: application/json' \
--data '{
  "sku": "SKU001",
  "productName": "测试商品001",
  "barcode": "4901234567890",
  "productAlias": "Alias-001",
  "price": 1000,
  "merchantCategoryId": 10001,
  "referenceLength": 30.5,
  "referenceWidth": 10.2,
  "referenceHeight": 1.5,
  "referenceWeight": 0.1,
  "imageUrl": "https://img.example.com/1.jpg",
  "remark": "created by openapi",
  "isBattery": 0
}'

返回响应

🟢200成功
application/json
Bodyapplication/json

示例
{
  "code": 0,
  "message": "success",
  "data": [
    {
      "merchantCategoryId": 1,
      "parentId": 0,
      "name": "服装",
      "zhName": "服装",
      "jpName": "衣類",
      "enName": "Clothing",
      "sort": 1,
      "level": 1,
      "children": [
        {
          "merchantCategoryId": 2,
          "parentId": 1,
          "name": "上衣",
          "zhName": "上衣",
          "jpName": "トップス",
          "enName": "Tops",
          "sort": 1,
          "level": 2,
          "children": []
        }
      ]
    }
  ]
}
修改于 2026-08-10 08:18:33
上一页
查询订单物流信息
下一页
创建商品
Built with