Authorization: ********************{
"params": {
"custom_field": "some_value",
"another_field": {
"nested": true
}
},
"spuCode": "SPU-001",
"skuName": "Premium Quality Widget",
"upc": "123456789012",
"amazonFnSku": "FN-SKU-001",
"serialNumber": "SN-001",
"dimensions": {
"lengthCm": 20.5,
"widthCm": 10.5,
"heightCm": 5.5,
"lengthInch": 8.07,
"widthInch": 4.13,
"heightInch": 2.17,
"metricVolume": 1127.5,
"imperialVolume": 68.83
},
"weight": {
"weightKg": 1.25,
"weightLb": 2.76
},
"packaging": {
"packageLengthCm": 25.5,
"packageWidthCm": 15.5,
"packageHeightCm": 10.5,
"packageLengthInch": 10.04,
"packageWidthInch": 6.1,
"packageHeightInch": 4.13,
"packageWeightKg": 1.5,
"packageWeightLb": 3.31,
"packageMetricVolume": 4144.13,
"packageImperialVolume": 252.93
},
"pricing": {
"value": 99.99,
"currency": "USD"
},
"attributes": {
"containingElectric": false,
"dangerousGoods": false,
"needsPackaging": true,
"multiItemIndependentPackaging": false,
"packagingMaterial": false,
"serialNumberManagement": false
},
"imageUrl": "https://example.com/product-image.jpg"
}curl --location --request PUT 'https://gwms.jmalltech.com/api-gateway/api/v1/products/skuCode/' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {
"custom_field": "some_value",
"another_field": {
"nested": true
}
},
"spuCode": "SPU-001",
"skuName": "Premium Quality Widget",
"upc": "123456789012",
"amazonFnSku": "FN-SKU-001",
"serialNumber": "SN-001",
"dimensions": {
"lengthCm": 20.5,
"widthCm": 10.5,
"heightCm": 5.5,
"lengthInch": 8.07,
"widthInch": 4.13,
"heightInch": 2.17,
"metricVolume": 1127.5,
"imperialVolume": 68.83
},
"weight": {
"weightKg": 1.25,
"weightLb": 2.76
},
"packaging": {
"packageLengthCm": 25.5,
"packageWidthCm": 15.5,
"packageHeightCm": 10.5,
"packageLengthInch": 10.04,
"packageWidthInch": 6.1,
"packageHeightInch": 4.13,
"packageWeightKg": 1.5,
"packageWeightLb": 3.31,
"packageMetricVolume": 4144.13,
"packageImperialVolume": 252.93
},
"pricing": {
"value": 99.99,
"currency": "USD"
},
"attributes": {
"containingElectric": false,
"dangerousGoods": false,
"needsPackaging": true,
"multiItemIndependentPackaging": false,
"packagingMaterial": false,
"serialNumberManagement": false
},
"imageUrl": "https://example.com/product-image.jpg"
}'{
"success": true,
"message": "Success",
"code": "200",
"timestamp": "2024-01-01T00:00:00Z",
"data": {
"createBy": 1,
"createTime": "2024-01-01T10:00:00Z",
"updateBy": 1,
"updateTime": "2024-01-01T10:30:00Z",
"params": {
"key1": "value1",
"key2": "value2"
},
"id": 12345,
"userId": 1001,
"spuCode": "SPU-001",
"upc": "123456789012",
"sku": "WIDGET-001",
"skuName": "Premium Quality Widget",
"skuCode": "EXT-WIDGET-001",
"gsku": "GSKU-001",
"amazonFnSku": "FN-SKU-001",
"serialNumber": "SN-001",
"dimensions": {
"lengthCm": 20.5,
"widthCm": 10.5,
"heightCm": 5.5,
"lengthInch": 8.07,
"widthInch": 4.13,
"heightInch": 2.17,
"metricVolume": 1127.5,
"imperialVolume": 68.83
},
"weight": {
"weightKg": 1.25,
"weightLb": 2.76
},
"packaging": {
"packageLengthCm": 25.5,
"packageWidthCm": 15.5,
"packageHeightCm": 10.5,
"packageLengthInch": 10.04,
"packageWidthInch": 6.1,
"packageHeightInch": 4.13,
"packageWeightKg": 1.5,
"packageWeightLb": 3.31,
"packageMetricVolume": 4144.13,
"packageImperialVolume": 252.93
},
"pricing": {
"value": 99.99,
"currency": "USD"
},
"attributes": {
"containingElectric": false,
"dangerousGoods": false,
"needsPackaging": true,
"multiItemIndependentPackaging": false,
"packagingMaterial": false,
"serialNumberManagement": false
},
"imageUrl": "https://example.com/product-image.jpg",
"status": "ACTIVE"
}
}