CreateProduct

RazorCart > Integration > REST API
Usage
Create a new product
Basic URI
/DesktopModules/RazorCart/Services/v1/Products
Data
product               The product object
AUTH
Bearer JWT
Required Scope(s)
products, create
 
Request
POST https://domain.com/DesktopModules/RazorCart/Services/v1/Products HTTP/1.1
Authorization: Bearer {access_token}
Content-Type: application/json

{"Manufacturer":"SC Tech Group","ModelNumber":"sample-02","ModelName":"Sample Product Test","UnitCost":10,"QuantityOnHand":100,"Summary":"This is a sample product","Weight":1,"SortOrder":200,"SEOURL":"sample-product","MinOrderQty":-1,"Width":-1,"Height":-1,"Length":-1,"SalePrice":5,"UserEnteredAmount":false,"Booking":false,"SaleStartDate":"2017-02-01T00:00:00","SaleEndDate":"2017-06-30T00:00:00","StoreID":1}
 
Response
{
  "ProductID": 16,
  "CategoryID": 0,
  "Manufacturer": "SC Tech Group",
  "ModelNumber": "sample-02",
  "ModelName": "Sample Product Test",
  "UnitCost": 10,
  "QuantityOnHand": 100,
  "Summary": "This is a sample product",
  "Description": null,
  "Featured": false,
  "Weight": 1,
  "SortOrder": 200,
  "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",
  "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
}