curl --request POST \
--url https://api.rootfi.dev/v3/accounting/items \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '{
"company_id": 1,
"data": [
{
"name": "Rootfi Test Item",
"description": "Rootfi Test Item",
"type": "INVENTORY",
"code": "1234567890",
"quantity_on_hand": 0,
"bill_item": {
"account_id": "123456",
"unit_price": 100
},
"invoice_item": {
"account_id": "123456",
"unit_price": 100
}
}
]
}'
{
"data": {
"rootfi_id": 32302,
"rootfi_deleted_at": null,
"rootfi_created_at": "2024-01-24T11:12:00.315Z",
"rootfi_updated_at": "2024-01-24T11:12:00.000Z",
"rootfi_company_id": 1109,
"platform_id": "123456_1",
"platform_unique_id": "123456",
"name": "Toy",
"description": "Toy Story",
"status": "active",
"type": "inventory",
"code": "T-40",
"quantity_on_hand": 44,
"is_bill_item": true,
"bill_item": {
"account_id": "3770712000001313073",
"tax_id": "3770712000001313073",
"description": "Bill Item Description",
"unit_price": 1320
},
"is_invoice_item": true,
"invoice_item": {
"account_id": "3770712000000000394",
"tax_id": "3770712000000000394",
"description": "Invoice Item Description",
"unit_price": 1500
},
"updated_at": "2023-09-22T00:00:00.000Z"
}
}Create an item.
curl --request POST \
--url https://api.rootfi.dev/v3/accounting/items \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '{
"company_id": 1,
"data": [
{
"name": "Rootfi Test Item",
"description": "Rootfi Test Item",
"type": "INVENTORY",
"code": "1234567890",
"quantity_on_hand": 0,
"bill_item": {
"account_id": "123456",
"unit_price": 100
},
"invoice_item": {
"account_id": "123456",
"unit_price": 100
}
}
]
}'
{
"data": {
"rootfi_id": 32302,
"rootfi_deleted_at": null,
"rootfi_created_at": "2024-01-24T11:12:00.315Z",
"rootfi_updated_at": "2024-01-24T11:12:00.000Z",
"rootfi_company_id": 1109,
"platform_id": "123456_1",
"platform_unique_id": "123456",
"name": "Toy",
"description": "Toy Story",
"status": "active",
"type": "inventory",
"code": "T-40",
"quantity_on_hand": 44,
"is_bill_item": true,
"bill_item": {
"account_id": "3770712000001313073",
"tax_id": "3770712000001313073",
"description": "Bill Item Description",
"unit_price": 1320
},
"is_invoice_item": true,
"invoice_item": {
"account_id": "3770712000000000394",
"tax_id": "3770712000000000394",
"description": "Invoice Item Description",
"unit_price": 1500
},
"updated_at": "2023-09-22T00:00:00.000Z"
}
}| Integration | Field | Description |
|---|---|---|
| NETSUITE | taxschedule | The ID of the tax schedule associated with the item. |
| MS_DYNAMICS_365_FO | ProductNumber | The product number of the item. |
| MYOB_BUSINESS | asset_account_id | The ID of the asset account associated with the item. |
| QOYOD | product_unit_type_id | The ID of the product unit type associated with the item. |
| QOYOD | category_id | The ID of the category associated with the item. |
| QOYOD | track_quantity | Whether the item should track quantity. |
| QOYOD | tax_id | The ID of the tax associated with the item. |
curl --request POST \
--url https://api.rootfi.dev/v3/accounting/items \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '{
"company_id": 1,
"data": [
{
"name": "Rootfi Test Item",
"description": "Rootfi Test Item",
"type": "INVENTORY",
"code": "1234567890",
"quantity_on_hand": 0,
"bill_item": {
"account_id": "123456",
"unit_price": 100
},
"invoice_item": {
"account_id": "123456",
"unit_price": 100
}
}
]
}'