Product

POST https://api.ecartapi.com/api/v2/products

Request that creates a product.

More information about the ecommerce's resource.

Request Body

{"product"=>{"name"=>"My test product", "categoryId"=>"224", "price"=>"123", "storeId"=>"1", "status"=>{"status"=>"A"}}}

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring

RESPONSES

status: OK

{"success":true,"product":{"id":292,"sku":null,"name":"My test product","description":null,"currency":null,"productType":null,"quantity":"0","price":"123.000000","dimensions":{"width":"0","height":"0","length":"0","weight":"0.000"},"units":{"width":null,"height":null,"length":null,"weight":null},"category":{"id":224,"name":null,"all":[224]},"tags":[],"status":{"id":null,"visibility":"true","active":"true","status":"A","ecartapi":"active","ecartapiId":"1"},"variants":[],"options":[],"associatedItems":[],"images":[],"imageUrl":null,"condition":null,"link":null,"dates":{"createdAt":"1635962845","updatedAt":"1635962845","imageUrl":null},"vendor":"1","sellOutStock":null}}