POST
/
accounting
/
items
curl --request POST \
  --url https://api.rootfi.dev/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": {
    "data": [
      {
        "error": null,
        "job_id": "aXI9pUDA5T7E2LS",
        "response": {
          "bill_item": {
            "account_id": "3770712000000076060",
            "description": "Bill Item Description",
            "unit_price": 10
          },
          "code": "I02",
          "description": "Test Item description",
          "invoice_item": {
            "account_id": "3770712000000000388",
            "description": "Invoice Item Description",
            "unit_price": 11
          },
          "is_bill_item": true,
          "is_invoice_item": true,
          "name": "Toy Car",
          "platform_id": "3770712000001690001",
          "quantity_on_hand": 12,
          "raw_data": {
            "category": "LIABILITY",
            "description": "Test Description",
            "name": "Test Account",
            "nominal_code": "Rootfi 01",
            "platform_id": "123456",
            "status": "ACTIVE",
            "sub_category": "Long Term Liabilities"
          },
          "status": "ACTIVE",
          "type": "INVENTORY",
          "updated_at": "2023-11-01T00:00:00.000Z"
        },
        "status": "success"
      }
    ],
    "status": "SUCCESS",
    "upload_job_id": "xQm2K441VosP8W4"
  },
  "request_id": "7a1c0e42-9f85-4d6e-bb5d-358a72913c0b",
  "request_timestamp": "2021-09-28T15:00:00.000Z",
  "response_timestamp": "2021-09-28T15: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
data
object[]
required

Response

200 - application/json
data
object
required
request_id
string
required

The unique ID of the request

request_timestamp
string
required

The time at which the request was received by the server

response_timestamp
string
required

The time at which the response was sent by the server