POST
/
accounting
/
items
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": {
    "bill_item": {
      "account_id": "123456",
      "description": "Test Item",
      "tax_id": "123456",
      "unit_price": 123.45
    },
    "code": "9837",
    "invoice_item": {
      "account_id": "123456",
      "description": "Test Item",
      "tax_id": "123456",
      "unit_price": 123.45
    },
    "is_bill_item": true,
    "is_invoice_item": true,
    "name": "Brian Vega",
    "platform_id": "a979d4e1-9795-ee11-be36-6045bdc629b7",
    "quantity_on_hand": 10,
    "rootfi_company_id": 1109,
    "rootfi_created_at": "2024-01-24T11:12:00.315Z",
    "rootfi_id": 32302,
    "rootfi_updated_at": "2024-01-24T11:12:00.000Z",
    "status": "ACTIVE",
    "type": "INVENTORY",
    "updated_at": "2023-12-08T00:00:00.000Z"
  }
}

The Items Data Model is designed to simplify the management and retrieval of item-related information across various accounting platforms.

Authorizations

api_key
string
headerrequired

Body

application/json
company_id
integer
required

The ID of the company in the accounting platform

data
object[]
required

The data of the items endpoint

Response

200 - application/json
data
object
required