Skip to main content
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": {
    "status": "SUCCESS",
    "upload_job_id": "<string>",
    "data": [
      {
        "job_id": "<string>",
        "status": "success",
        "response": {
          "platform_id": "<string>",
          "is_bill_item": true,
          "is_invoice_item": true,
          "updated_at": "<string>",
          "name": "<string>",
          "description": "<string>",
          "type": "INVENTORY",
          "code": "<string>",
          "quantity_on_hand": 123,
          "bill_item": {
            "account_id": "<string>",
            "unit_price": 123,
            "raw_data": {},
            "description": "<string>",
            "tax_id": "<string>"
          },
          "invoice_item": {
            "account_id": "<string>",
            "unit_price": 123,
            "raw_data": {},
            "description": "<string>",
            "tax_id": "<string>"
          },
          "status": "ACTIVE",
          "raw_data": {}
        },
        "error": {
          "code": "<string>",
          "message": "<string>",
          "platform_error": "<string>",
          "raw_data": {}
        }
      }
    ]
  },
  "request_timestamp": "2023-11-07T05:31:56Z",
  "response_timestamp": "2023-11-07T05:31:56Z",
  "request_id": "<string>"
}
The Items Data Model is designed to simplify the management and retrieval of item-related information across various accounting platforms.
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
      }
    }
  ]
}'

Authorizations

api_key
string
header
required

Body

application/json

Create items

company_id
integer
required
Example:

1

data
accountingtypesItemsWriteRequestFields · object[]
required

Response

200 - application/json
data
accountingtypesCreateItemsResponseData · object
required
request_timestamp
string<date-time>
required

The time at which the request was received by the server

response_timestamp
string<date-time>
required

The time at which the response was sent by the server

request_id
string
required

The unique ID of the request