Product
POST https://api.ecartapi.com/api/v2/products
To create a new product marketplaceId is required.
Find more information about marketplace Id here.
You can also get the marketplace Id from the product listings requests.
More information about the ecommerce's resource.
Request Body
{"product"=>{"sku"=>"test7", "marketplaceId"=>"EBAY_US", "price"=>"0", "condition"=>"NEW", "quantity"=>"50", "name"=>"GoPro Hero4 Helmet Cam", "description"=>"New GoPro Hero4 Helmet Cam. Unopened box.", "vendor"=>"GoPro"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | ||
Content-Type | string |
RESPONSES
status: OK
{"success":true,"product":{"id":"test7","sku":"test7","name":"GoPro Hero4 Helmet Cam","description":"New GoPro Hero4 Helmet Cam. Unopened box.","currency":null,"productType":null,"quantity":"50","price":null,"dimensions":{"width":null,"height":null,"length":null,"weight":null},"units":{"width":null,"height":null,"length":null,"weight":null},"categoryId":null,"tags":[],"status":{"id":null,"visibility":null,"active":null,"status":null},"variants":[],"options":null,"images":[],"imageUrl":null,"condition":"NEW","link":null,"dates":{"createdAt":null,"updatedAt":null},"vendor":null}}