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

更新商品

POST
/openapi/goods/update

请求参数

Header 参数

Body 参数application/json必填

示例
{
  "sku": "SKU001",
  "productName": "测试商品001-更新",
  "barcode": "4901234567899",
  "productAlias": "Alias-001-NEW",
  "price": 1200,
  "merchantCategoryId": 10001,
  "referenceLength": 31.0,
  "referenceWidth": 10.5,
  "referenceHeight": 1.6,
  "referenceWeight": 0.11,
  "imageUrl": "https://img.example.com/1-new.jpg",
  "remark": "updated by openapi",
  "isBattery": 1
}

请求示例代码

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/update' \
--header 'App-Key;' \
--header 'Nonce;' \
--header 'Sign;' \
--header 'Timestamp;' \
--header 'Content-Type: application/json' \
--data '{
  "sku": "SKU001",
  "productName": "测试商品001-更新",
  "barcode": "4901234567899",
  "productAlias": "Alias-001-NEW",
  "price": 1200,
  "merchantCategoryId": 10001,
  "referenceLength": 31.0,
  "referenceWidth": 10.5,
  "referenceHeight": 1.6,
  "referenceWeight": 0.11,
  "imageUrl": "https://img.example.com/1-new.jpg",
  "remark": "updated by openapi",
  "isBattery": 1
}'

返回响应

🟢200成功
application/json
Bodyapplication/json

示例
{
  "code": 0,
  "message": "success",
  "data": null
}
修改于 2026-08-07 08:54:23
上一页
创建商品
下一页
查询商品sku
Built with