POST
/
accounting
/
bills
curl --request POST \
  --url https://api.rootfi.dev/v3/accounting/bills \
  --header 'Content-Type: application/json' \
  --header 'api_key: <api-key>' \
  --data '{
  "company_id": 123,
  "data": [
    {
      "amount_due": 1100,
      "contact_id": "123456",
      "currency_id": "123456",
      "currency_rate": 1,
      "document_number": "123456",
      "due_date": "2024-01-25T09:00:00Z",
      "line_items": [
        {
          "account_id": "123456",
          "description": "This is a description",
          "item_id": "123456",
          "line_item_type": "INVOICES",
          "line_item_type_id": "123456",
          "platform_id": "123456",
          "quantity": 1,
          "rootfi_id": 157,
          "sub_total": 100,
          "tax_amount": 100,
          "tax_id": "123456",
          "total_amount": 100,
          "total_discount": 100,
          "tracking_category_ids": [
            "123456"
          ],
          "unit_amount": 100,
          "updated_at": "2024-01-22T05:07:31.000Z"
        }
      ],
      "memo": "Example Memo",
      "posted_date": "2024-01-25T09:00:00Z",
      "purchase_order_ids": [
        "123456"
      ],
      "status": "Example Status",
      "sub_total": 1000,
      "tax_amount": 100,
      "total_amount": 1100,
      "total_discount": 100,
      "updated_at": "2024-01-25T09:00:00Z"
    }
  ]
}'
{
  "data": {
    "amount_due": 1100,
    "contact_id": "123456",
    "currency_id": "123456",
    "currency_rate": 1,
    "document_number": "123456",
    "due_date": "2024-01-25T09:00:00Z",
    "line_items": [
      {
        "account_id": "123456",
        "description": "This is a description",
        "item_id": "123456",
        "line_item_type": "INVOICES",
        "line_item_type_id": "123456",
        "platform_id": "123456",
        "quantity": 1,
        "rootfi_id": 157,
        "sub_total": 100,
        "tax_amount": 100,
        "tax_id": "123456",
        "total_amount": 100,
        "total_discount": 100,
        "tracking_category_ids": [
          "123456"
        ],
        "unit_amount": 100,
        "updated_at": "2024-01-22T05:07:31.000Z"
      }
    ],
    "memo": "Example Memo",
    "platform_id": "123456",
    "posted_date": "2024-01-25T09:00:00Z",
    "purchase_order_ids": [
      "123456"
    ],
    "rootfi_company_id": 456,
    "rootfi_created_at": "2024-01-25T09:00:00Z",
    "rootfi_id": 123,
    "rootfi_updated_at": "2024-01-25T09:00:00Z",
    "status": "Example Status",
    "sub_total": 1000,
    "tax_amount": 100,
    "total_amount": 1100,
    "total_discount": 100,
    "updated_at": "2024-01-25T09:00:00Z"
  }
}

A Bills record of goods or services purchased from a vendor.

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 bill to create

Response

200 - application/json
data
object
required