Appearance
Create Product API
Endpoint
PUT /product/{productId}
Headers
| Key | Value |
|---|---|
| Authorization | Bearer change_to_your_access_token |
| X-S2-Organization | 95d73baf-76ba-4bea-86ac-1534c5e5d4aa |
Request Body
json
{
"sku": "test",
"brand": "Sony",
"gtin": "7045557637838",
"name": "Test Product",
"remarks": "test.",
"imageMain": "95d73baf-76ba-4bea-86ac-1534c5e5d4aa/2024-04-23/avatar/听雨__24_x_26.25__PFPWig_4_YXKT59pJLuoIk82VgaF.jpg",
"packageLengthMm": 33.27078,
"packageWidthMm": 64.29312,
"packageHeightMm": 96.57682,
"shippingWeightKg": 76.44365,
"caseUnit": "EACH",
"casePack": 2,
"caseLengthMm": 34.340958,
"caseWidthMm": 20.323586,
"caseHeightMm": 12.659683,
"caseWeightKg": 0.35708416,
"condition": "NEW",
"serialNumberRequired": true,
"expiryDateRequired": true
}Response Example
json
{
"id": "3775cc37-30e7-4579-a58e-c9adda6fac86",
"organization": {
"id": "3f424caf-0eba-4813-b3e7-7ca0393af888",
"name": "test organization",
"createdAt": "2024-03-05T22:17:23.520948Z",
"updatedAt": "2024-04-09T21:15:15.615765Z"
},
"sku": "test",
"brand": {
"id": "e0cbbf33-cbea-4867-9fd9-5d72f22c2321",
"name": "Sony",
"nameNormalized": "sony",
"createdAt": "2024-06-04T03:16:22.617577Z"
},
"gtin": "7045557637838",
"name": "Test Product",
"remarks": "test.",
"imageMain": "95d73baf-76ba-4bea-86ac-1534c5e5d4aa/2024-04-23/avatar/听雨__24_x_26.25__PFPWig_4_YXKT59pJLuoIk82VgaF.jpg",
"packageLengthMm": 33.27078,
"packageWidthMm": 64.29312,
"packageHeightMm": 96.57682,
"shippingWeightKg": 76.44365,
"caseUnit": "EACH",
"casePack": 2,
"caseLengthMm": 34.340958,
"caseWidthMm": 20.323586,
"caseHeightMm": 12.659683,
"caseWeightKg": 0.35708416,
"condition": "NEW",
"serialNumberRequired": true,
"expiryDateRequired": true,
"unknown": false,
"createdAt": "2024-06-04T03:16:22.617577Z",
"updatedAt": "2024-06-04T03:31:28.192345Z",
"otherIds": []
}