Logo
Ecartapi.com Public API Documentation

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.

 

Body PARAM

Key Datatype Required Description 



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 } }

Curl
curl -X POST 'https://api.ecartapi.com/api/v2/products' -H 'Content-Type: application/json' -H 'Authorization: access_token' -d '{"product":{"name":"BigCommerce Coffee Mug _ random","sku":"Test_random","description":"Testing product","price":"19.00","categoryId":"23, 21","dimensions":{"weight":"4"},"productType":"physical"}}'

ENDPOINTS