Product Master

Update Product Master

put/product-masters/{id}

Request

Path parameters

idstring required

Headers

Authorizationstring required

เลข Id Product

Request body

OR
OR
OR

Example request

{
  "name": "Product",
  "code": "P001"
}

Response

200 response

statusboolean

action success

messagestring

error message

codeinteger

error code

Example response

{
  "data": [
    {
      "type": 1,
      "name": "Product",
      "code": "P001",
      "categoryId": 123,
      "categoryName": "Category A",
      "inventorySettings": [
        {
          "inventoryPublishedOn": "2021-01-01"
        }
      ],
      "mainProductId": 12345,
      "mainUnitId": 56789,
      "mainUnitName": "หน่วย",
      "productLists": [
        {
          "id": 456,
          "unitId": 789,
          "unitName": "ครั้ง",
          "isMainProduct": true,
          "sellPrice": 9345.794393,
          "sellPriceWithVat": 10000,
          "barcode": "SERVICE",
          "convertRatio": 1
        }
      ]
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.