UpdateProduct

RazorCart > Integration > REST API
Usage
Update a product information
Basic URI
/DesktopModules/RazorCart/Services/v1/Products/{id}
Parameters
int id               The product Id
Data
product           The product object
AUTH
Bearer JWT
Required Scope(s)
products, edit
 
Request
PUT https://domain.com/DesktopModules/RazorCart/Services/v1/Products/16 HTTP/1.1
Authorization: Bearer {access_token}
Content-Type: application/json

{"ModelName":"Sample Product Test 2","UnitCost":10.5,"QuantityOnHand":150,"Weight":2,"SortOrder":20,"SEOURL":"sample-product-2"}
 
Response
{
  "ProductID": 16,
  "CategoryID": 0,
  "Manufacturer": "SC Tech Group",
  "ModelNumber": "sample-02",
  "ModelName": "Sample Product Test 2",
  "UnitCost": 10.5,
  "QuantityOnHand": 150,
  "Summary": "This is a sample product",
  "Description": null,
  "Featured": false,
  "Weight": 2,
  "SortOrder": 20,
  "Items": 0,
  "Recurring": false,
  "SubscriptionInterval": null,
  "RecurringOccurances": 0,
  "RequireLogin": false,
  "UsePriPriceWght": false,
  "MasterBundleID": 0,
  "BundleID": 0,
  "PortalID": 0,
  "TitleTag": null,
  "DescriptionTag": null,
  "KeywordTag": null,
  "RequireCoupon": false,
  "Description2": null,
  "Description3": null,
  "Description4": null,
  "Description5": null,
  "TabName1": null,
  "TabName2": null,
  "TabName3": null,
  "TabName4": null,
  "TabName5": null,
  "SEOURL": "sample-product-2",
  "HideThumbnail": false,
  "HidePrice": false,
  "PriceClass": null,
  "MinOrderQty": -1,
  "ChargeHandling": false,
  "HideQuantity": false,
  "PriceUnits": null,
  "MaxOrderQty": 0,
  "Width": -1,
  "Height": -1,
  "Length": -1,
  "RecurringStartDate": null,
  "ExcludeVariantRecur": false,
  "WholesalePrice": 0,
  "SalePrice": 5,
  "HideProduct": false,
  "ShowProductRole": false,
  "Upsell": false,
  "EnableTrial": false,
  "TrialInterval": null,
  "TrialOccurences": null,
  "TrialAmount": 0,
  "UseCompanyLogo": false,
  "UserEnteredAmount": false,
  "Booking": false,
  "BookingUnits": null,
  "RecurStartDateSetup": null,
  "ProductDetailUrl": null,
  "GiftCard": false,
  "SaleStartDate": "2017-02-01T00:00:00",
  "SaleEndDate": "2017-06-30T00:00:00",
  "CompareGroup": null,
  "ProductTypeID": 0,
  "StoreID": 1,
  "ThumbImage": null,
  "LargeImage": null,
  "ZoomImage": null,
  "HasVariants": false,
  "IsUnderSale": true,
  "MemberPriceOption": 0
}