Product
POST htpps://api.ecartapi.com/api/v2/products
Accounts is an object that you can use to reference IncomeAccount, AssetAccount, and ExpenseAccount. This allows you to properly organize the creation of your product if you don't use the default accounts within your QuickBooks store.
If you prefer to use QuickBooks' default accounts or don't have accounts created, you don't need to enter the accounts object. The object will be created with QuickBooks' default values.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
limit | number |
Request Body
{"product"=>{"name"=>"T-Shirt Black", "quantity"=>"1", "description"=>"True Classic Multicolor Navy", "sku"=>"22525", "price"=>"1", "productType"=>"Inventory", "accounts"=>{"incomeAccountId"=>"79", "assetAccountId"=>"81", "expenseAccountId"=>"80"}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | ||
`` | null |
RESPONSES
status: OK
{"success":true,"product":{"id":"31","productUserId":null,"sku":"31","name":"T-Shirt Black","subName":"T-Shirt Black","upc":null,"gtin":null,"description":"True Classic Multicolor Navy","currency":null,"productType":"Inventory","quantity":"1","price":"1","cost":null,"discount":null,"dimensions":{"width":null,"height":null,"length":null,"weight":null},"units":{"width":null,"height":null,"length":null,"weight":null},"category":{"id":null,"name":null,"all":[]},"tags":[],"status":{"id":null,"visibility":null,"active":null,"status":"true","ecartapiId":"1","ecartapi":"active","hasOptions":null,"inStock":null},"variants":[],"options":[],"associatedItems":[],"logistic":{"me1Suported":null,"mode":null,"type":null,"free":"false","direction":null,"dimensions":null,"rates":[]},"images":[],"imageUrl":null,"condition":null,"link":null,"dates":{"createdAt":"2024-07-03T10:55:48-07:00","updatedAt":"2024-07-03T10:55:48-07:00"},"vendor":null,"sellOutStock":null,"locations":[],"internationalShipment":[]}}