OMS开放接口文档
  1. 产品模块
OMS开放接口文档
  • 用户认证说明
  • 返回代码说明
  • 公共模块
    • 欢迎入口
      GET
    • 返回代码
      GET
    • 沙盒ApiToken生成
      GET
  • 通用数据模块
    • 仓库列表
      POST
    • 物流渠道列表
      POST
    • 查询产品分类
      POST
    • 国家列表
      POST
  • 产品模块
    • 产品列表
      POST
    • 创建产品
      POST
    • 修改产品
      POST
  • 入库单模块
    • 入库单列表
      POST
    • 创建入库单
      POST
    • 修改入库单
      POST
    • 取消入库单
      POST
    • 下载箱唛
      POST
    • 下载关联SKU条码
      POST
  • 出库单模块
    • B2C订单模块
      • B2C订单列表
      • 创建B2C订单
      • 修改B2C订单
    • B2B订单模块
      • B2B订单列表
      • 创建B2B订单
      • 修改B2B订单
    • 上传附件
      POST
    • 下载附件
      POST
    • 取消出库单
      POST
  • 退件模块
    • 退件单列表
      POST
    • 创建退件单
      POST
    • 修改退件单
      POST
    • 取消退件单
      POST
  • 库存模块
    • 库存列表
    • 库存流水列表
    • 库龄列表
  • 快递面单模块
    • 对接说明
    • 面单物流渠道列表
    • 面单列表
    • 面单信息
    • 创建面单
    • 创建并审核面单
    • 修改面单
    • 提交审核面单
    • 取消面单
    • 审核面单
    • 面单退款
    • 驳回面单
    • 激活面单
    • 重试制单
  1. 产品模块

创建产品

POST
/open/product-data/create
用于创建产品

请求参数

Header 参数

Body 参数application/json

示例
{
    "productSku": "string",
    "name": "string",
    "nameEn": "string",
    "referenceNo": "string",
    "manufacturer": "string",
    "productDesc": "string",
    "productImage": "string",
    "price": 0,
    "productLengthType": 1,
    "productLength": 0,
    "productWidth": 0,
    "productHeight": 0,
    "productWeightType": 1,
    "productWeight": 0,
    "productBrand": "string",
    "productOrigin": "string",
    "productMaterial": "string",
    "productModel": "string",
    "productInfoUrl": "string",
    "warningQty": 0,
    "warningNotify": 0,
    "isBattery": "-1",
    "isFragile": "-1",
    "isOwnPackage": "-1",
    "isUnpacking": "-1",
    "productType": 1,
    "productUnit": 1,
    "attributeType": "1",
    "outboundPackageType": "1",
    "productLucid": "string",
    "productCategoryCode": "string",
    "batteryDTO": {
        "batteryType": 0,
        "batteryCapacity": "string",
        "batteryModel": "string",
        "batteryVoltage": "string",
        "batteryPackVoltage": "string",
        "batteryPower": "string",
        "batteryEnergy": "string",
        "batteryMaterial": "string",
        "batterySupplier": "string",
        "packSupplier": "string",
        "isMsds": "-1",
        "isTransportReport": "-1",
        "batteryDataValidity": "2019-08-24T14:15:22Z",
        "ulCertification": 1,
        "ulAuthority": "string",
        "ulNumber": "string"
    },
    "declareDTO": {
        "declareName": "string",
        "declareNameEn": "string",
        "declareUnit": "string",
        "importHsCode": "string",
        "importCountry": "string",
        "importCurrencyCode": "string",
        "importDeclareValue": "0",
        "exportHsCode": "string",
        "exportCountry": "string",
        "exportCurrencyCode": "string",
        "exportDeclareValue": "0",
        "isBonded": "-1"
    },
    "platformSkuDTOs": [
        {
            "platformType": "1",
            "barcodeType": "1",
            "platformSku": "string"
        }
    ],
    "attachmentOpenDTOs": [
        {
            "attachmentType": "string",
            "base64": "string",
            "fileName": "string"
        }
    ]
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/open/product-data/create' \
--header 'Authorization: {{api_token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "productSku": "string",
    "name": "string",
    "nameEn": "string",
    "referenceNo": "string",
    "manufacturer": "string",
    "productDesc": "string",
    "productImage": "string",
    "price": 0,
    "productLengthType": 1,
    "productLength": 0,
    "productWidth": 0,
    "productHeight": 0,
    "productWeightType": 1,
    "productWeight": 0,
    "productBrand": "string",
    "productOrigin": "string",
    "productMaterial": "string",
    "productModel": "string",
    "productInfoUrl": "string",
    "warningQty": 0,
    "warningNotify": 0,
    "isBattery": "-1",
    "isFragile": "-1",
    "isOwnPackage": "-1",
    "isUnpacking": "-1",
    "productType": 1,
    "productUnit": 1,
    "attributeType": "1",
    "outboundPackageType": "1",
    "productLucid": "string",
    "productCategoryCode": "string",
    "batteryDTO": {
        "batteryType": 0,
        "batteryCapacity": "string",
        "batteryModel": "string",
        "batteryVoltage": "string",
        "batteryPackVoltage": "string",
        "batteryPower": "string",
        "batteryEnergy": "string",
        "batteryMaterial": "string",
        "batterySupplier": "string",
        "packSupplier": "string",
        "isMsds": "-1",
        "isTransportReport": "-1",
        "batteryDataValidity": "2019-08-24T14:15:22Z",
        "ulCertification": 1,
        "ulAuthority": "string",
        "ulNumber": "string"
    },
    "declareDTO": {
        "declareName": "string",
        "declareNameEn": "string",
        "declareUnit": "string",
        "importHsCode": "string",
        "importCountry": "string",
        "importCurrencyCode": "string",
        "importDeclareValue": "0",
        "exportHsCode": "string",
        "exportCountry": "string",
        "exportCurrencyCode": "string",
        "exportDeclareValue": "0",
        "isBonded": "-1"
    },
    "platformSkuDTOs": [
        {
            "platformType": "1",
            "barcodeType": "1",
            "platformSku": "string"
        }
    ],
    "attachmentOpenDTOs": [
        {
            "attachmentType": "string",
            "base64": "string",
            "fileName": "string"
        }
    ]
}'

返回响应

🟢200成功
application/json
Body

示例
{
    "code": "20000",
    "success": true,
    "data": {
        "productSku": "SKU112",
        "name": "测试产品112",
        "nameEn": "test",
        "referenceNo": "112",
        "manufacturer": "1",
        "productDesc": "1",
        "price": 630.05,
        "productLengthType": 1,
        "productLength": 1.00,
        "productWidth": 1.00,
        "productHeight": 1.00,
        "productWeightType": 1,
        "productWeight": 1.000,
        "productVolume": 1.000,
        "productBrand": "1",
        "productOrigin": "1",
        "productMaterial": "1",
        "productModel": "1",
        "isBattery": 1,
        "isFragile": 1,
        "isOwnPackage": 1,
        "isUnpacking": 1,
        "productLucid": "1",
        "status": 1,
        "reviewStatus": -1,
        "reviewDiff": -1
    },
    "message": "请求成功",
    "errors": [],
    "timestamp": "1759117376545",
    "duration": 0.326,
    "requestId": "5a34ba028dbb4a85ae1d1fcc11919a3e"
}
修改于 2025-10-23 10:12:33
上一页
产品列表
下一页
修改产品
Built with