Update or edit existing products

End Point

'CreateOrUpdate' API end point is used to update/edit existing products.

Update/Edit existing product

POST https://{tenant_name}.p4warehouse.com/api/ProductApi/CreateOrUpdate

Headers

Name
Type
Description

ApiKey*

String

System API key

Request Body

Name
Type
Description

"Id"*

Sting

Product Id number generated by the system

{
    "$id": "1",
    "Sku": "1234",
    "Upc": "12345678",
    "BarcodeValue": null,
    "BarcodeTypeEnum": null,
    "BarcodeType": null,
    "Category": null,
    "Description": "Demo",
    "SubstituteGroup": null,
    "HtsCode": null,
    "CountryOfOrigin": null,
    "ReferenceNumber": null,
    "Reference1": null,
    "Reference2": null,
    "Reference3": null,
    "Components": [],
    "Packsizes": [],
    "ComponentOf": [],
    "InventoryLocations": [],
    "PurchaseOrderLines": [],
    "CustomerReturnLines": [],
    "PickTicketLines": [],
    "ProductionOrderInLines": [],
    "InProductionOrders": [],
    "ProductionOrderOutLines": [],
    "OutProductionOrders": [],
    "MinMax": [],
    "CartonizationResultContents": [],
    "ClientId": null,
    "Client": null,
    "BomWorkflowId": null,
    "BomWorkflow": null,
    "Height": null,
    "Width": null,
    "Length": null,
    "DimsLengthUnitOfMeasureEnum": 10,
    "DimsLengthUnitOfMeasure": "M",
    "Weight": null,
    "FreightClassEnum": null,
    "FreightClass": null,
    "IsHazMat": false,
    "Nmfc": null,
    "CommodityDescription": null,
    "DimsWeightUnitOfMeasureEnum": 1,
    "DimsWeightUnitOfMeasure": "Kg",
    "Cube": null,
    "IsBillOfMaterial": false,
    "IsLotControlled": false,
    "LotPattern": null,
    "IsSerialControlled": false,
    "SerialPattern": null,
    "IsExpiryControlled": false,
    "IsDecimalControlled": false,
    "IsPacksizeControlled": false,
    "IsDiscontinued": false,
    "UnitOfMeasureEnum": null,
    "UnitOfMeasure": null,
    "CartonizationBehaviourEnum": 0,
    "CartonizationBehaviour": "Inherit",
    "IsDetailsControlled": false,
    "IsDetailsAllocatedControlled": false,
    "Info1": null,
    "Info2": null,
    "Info3": null,
    "Info4": null,
    "Info5": null,
    "Info6": null,
    "Info7": null,
    "Info8": null,
    "Info9": null,
    "Info10": null,
    "Id": "adf4902d-f395-409a-b994-10e57478df28",
    "DateCreated": "2023-08-15T14:54:54.2181627+00:00",
    "TypeName": "Pro4Soft.TenantData.Entities.Business.Product",
    "TypeNameShort": "Product"
}

If payload (JSON) contains 'Id' number, system will update corresponding product. If 'Id' is missing or incorrect, system will automatically create new product.

Available Fields

    "Upc": String
    "BarcodeValue": String
    "BarcodeType": String
    "Category": String
    "Description": String
    "SubstituteGroup": String
    "HtsCode": String
    "CountryOfOrigin": String
    "ReferenceNumber": String
    "Reference1": String
    "Reference2": String
    "Reference3": String
    "ClientId": String
    "Client": String
    "Height": Decimal
    "Width": Decimal
    "Length": Decimal
    "DimsLengthUnitOfMeasure": Sting
    "Weight": Decimal
    "FreightClass": String
    "IsHazMat": Boolean
    "Nmfc": String
    "CommodityDescription": String
    "DimsWeightUnitOfMeasure": String
    "Cube": Deciaml
    "IsBillOfMaterial": Boolean
    "IsLotControlled": Boolean
    "LotPattern": String
    "IsSerialControlled": Boolean
    "SerialPattern": String
    "IsExpiryControlled": Boolean
    "IsDecimalControlled": Boolean
    "IsPacksizeControlled": Boolean
    "IsDiscontinued": Boolean
    "UnitOfMeasure": String
    "Info1": String
    "Info2": String
    "Info3": String
    "Info4": String
    "Info5": String
    "Info6": String
    "Info7": String
    "Info8": String
    "Info9": String
    "Info10": String

Notice: Product 'Id' and 'Sku' cannot be changed after the initial creation.

Last updated