Update Product
Update product information to meet the requirements from the following details
API Endpoint
| URL |
{base url}/api/Product/UpdateProduct |
| Method |
POST |
| Authorization |
Bearer Token |
| Content-Type |
application/json |
Request Headers
| Parameter |
Type |
Required |
Description |
| APIKEY |
string |
true |
System key code |
Request Parameters
| Parameter |
Type |
Required |
Description |
| PdsaleId |
string |
true |
Product sale id |
| PdsCode |
string |
true |
Product sale code |
| PdsName |
string |
true |
Product sale name |
| CfCode |
string |
false |
Code for sale |
| PdgroupId |
string |
false |
Product Group Id (References) |
| IsPdset |
boolean |
false |
Is this a group sale |
| Brand |
string |
false |
Product owner brand name |
| Manufacturer |
string |
false |
Name of manufacturer or place of manufacture |
| Remark |
string |
false |
Necessary product details |
| Tag |
string |
false |
Signage indicating necessary information |
| ProductSkus |
object |
true |
product detail |
ProductSkus
| Parameter |
Type |
Required |
Description |
| Seq |
integer |
false |
Sequence number |
| Kind |
string |
true |
Packaging type, where PRD is the product itself without a box and BOX is the product with a box |
| Sku |
string |
true |
SKU code |
| CategoryA |
string |
false |
Main product category options, such as size/color/number, etc. (Not required if not applicable) |
| SubCategoryA |
string |
false |
Subcategory for the main product, such as XXL/red/10W50, etc. (Required if there's a main category) |
| CategoryB |
string |
false |
Secondary product category options, such as size/color/number, etc. (Not required if not applicable) |
| SubCategoryB |
string |
false |
Subcategory for the secondary product, such as XXL/red/10W50, etc. (Required if there's a secondary category) |
| Barcode |
string |
true |
Barcode |
| SellingPrice |
decimal |
false |
Selling price |
| SkuWidth |
string |
false |
Width of the product |
| SkuLong |
string |
false |
Length of the product |
| SkuHigh |
string |
false |
Height/Depth of the product |
| SkuWeight |
string |
false |
Weight of the product |
| AmtStock |
integer |
false |
Desired stock quantity |
| AmtOos |
integer |
false |
Minimum stock level to trigger replenishment |
| AmtBuffer |
integer |
false |
Buffer stock for shipping |
| Tag |
string |
false |
Reference tag for identification |
| PackSize |
integer |
false |
Number of items per box |
| UnitId |
string |
false |
Unit ID (from Reference data) |
Request JSON Example
{
"ProductSkus": [
{
"Seq": 0,
"Kind": "PRD",
"Sku": "5689859",
"CategoryA": null,
"SubCategoryA": null,
"CategoryB": null,
"SubCategoryB": null,
"Barcode": "5689859",
"SellingPrice": 0,
"SkuWidth": "80",
"SkuLong": "8",
"SkuHigh": "5",
"SkuWeight": "10",
"AmtStock": 0,
"AmtOos": 0,
"AmtBuffer": 0,
"Tag": "#paper",
"PackSize": 2000,
"UnitId": "8A0B35BFF233434294DD7213BE0C6630"
}
],
"PdsaleId": "EA9B1143-1057-4FC6-ADE3-2979A7B9698E",
"PdsCode": "5689859",
"PdsName": "แผ่นพับ pynotica",
"CfCode": null,
"PdgroupId": null,
"IsPdset": false,
"Brand": null,
"Manufacturer": null,
"Remark": null,
"Tag": "#brochure #free"
}
Response Parameters
| Parameter |
Type |
Description |
| Id |
integer |
Error status (0 = no error) |
| Success |
boolean |
Status of the request |
| Message |
string |
Response message |
| RequestId |
string |
Reference ID for the request |
| Size |
integer |
Number of records update |
| Data |
object |
Product created |
Data
| Parameter |
Type |
Description |
| ProductId |
string |
Product id created |
| ProductSKUs |
string |
All SKU Id created |
Response JSON Example
{
"Id": 0,
"Success": true,
"Message": "SUCCESS",
"RequestId": "D934CC4C-A468-41BE-BE21-F51502BC2171",
"Size": 1,
"Data": {
"ProductId": "3B9F8206-B23E-418E-A998-10BF5DB32440",
"ProductSKUs": "B987D55A-09A4-427C-AF2B-9494012FF291"
}
}