Product
POST https://api.ecartapi.com/api/v2/products
This request allows you to create a new product in a Bigcommerce store. Only one product can be created at the time.
BigCommerce has a set of rules to follow when creating products.
Required Fields to create a product:
* name
* productType
* dimensions.weight
* price
Limits on information sent on fields.
* name. Must be less than 250 charaters.
* productType. Allowed Values [ physical, digital ].
More information about the ecommerce's resource.
Request Body
{"product"=>{"name"=>"BigCommerce Coffee Mug _ {{random}}", "sku"=>"Test_{{random}}", "description"=>"Testing product", "price"=>"19.00", "categoryId"=>"23, 21", "dimensions"=>{"weight"=>"4"}, "productType"=>"physical"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Authorization | string |
RESPONSES
status: OK
{"success":true,"product":{"id":"113","sku":"Test_lpiti","name":"BigCommerce Coffee Mug _ lpiti","upc":null,"description":"Testing product","currency":null,"productType":"physical","quantity":null,"price":"19","dimensions":{"width":null,"height":null,"length":null,"weight":"4"},"units":{"width":"cm","height":"cm","length":"cm","weight":"kg"},"category":{"id":"23","name":null,"all":[{"id":"23"},{"id":"21"}]},"tags":[],"status":{"id":null,"visibility":"true","active":null,"status":"available","ecartapi":"active","ecartapiId":"1"},"variants":[],"options":[],"associatedItems":[],"images":[],"imageUrl":null,"condition":"New","link":null,"dates":{"createdAt":"2021-12-09T00:19:53+00:00","updatedAt":"2021-12-09T00:19:53+00:00"},"vendor":null,"sellOutStock":null}}