POST
/
accounting
/
invoice_credit_notes
/
all
curl --request POST \
  --url https://api.rootfi.dev/accounting/invoice_credit_notes/all \
  --header 'Content-Type: application/json' \
  --header 'api_key: <api-key>' \
  --data '{
  "take": 10,
  "skip": 0,
  "orderBy": {
    "document_number": "asc"
  },
  "filter": {
    "contact_id": {
      "eq": "3770712000000080150"
    }
  }
}'
{
  "data": {
    "data": [
      {
        "contact_id": "3770712000000080150",
        "currency": {
          "data": {
            "code": null,
            "exchange_rate": null,
            "is_base_currency": null,
            "name": null,
            "platform_id": null,
            "symbol": null,
            "updated_at": null
          }
        },
        "currency_id": null,
        "document_number": "CN-00038",
        "invoice_ids": [
          "3770712000000352003"
        ],
        "line_items": {
          "data": [
            {
              "account_id": null,
              "description": "Test Item",
              "item_id": "1234567890123456789",
              "line_item_type": "BILLS",
              "line_item_type_id": "1234567890123456789",
              "platform_id": "1234567890123456789",
              "quantity": 1,
              "sub_total": null,
              "tax_amount": 0,
              "tax_id": "1234567890123456789",
              "total_amount": 100,
              "total_discount": null,
              "tracking_category_ids": [
                "1234567890123456789"
              ],
              "unit_amount": 100,
              "updated_at": "2021-09-28T15:00:00.000Z"
            }
          ]
        },
        "memo": null,
        "platform_id": "3770712000001556051",
        "posted_date": "2023-03-21T00:00:00.000Z",
        "remaining_credit": 60,
        "rootfi_company_id": 123456,
        "rootfi_created_at": "2021-09-28T15:00:00.000Z",
        "rootfi_id": 1234,
        "rootfi_integration_type": "ZOHO_BOOKS",
        "rootfi_organisation_id": 1,
        "rootfi_updated_at": "2021-09-28T15:00:00.000Z",
        "status": "SUBMITTED",
        "tax_amount": null,
        "total_amount": 60,
        "updated_at": "2023-10-13T00:00:00.000Z"
      }
    ],
    "total_count": 1
  },
  "request_id": "7a1c0e42-9f85-4d6e-bb5d-358a72913c0b",
  "request_timestamp": "2021-09-28T15:00:00.000Z",
  "response_timestamp": "2021-09-28T15:00:00.000Z"
}

An Invoice Credit Note is a financial transaction representing a reduction that can be applied against one or multiple invoices issued to Customers.

Authorizations

api_key
string
headerrequired

Body

application/json
filter
object
orderBy
object
skip
integer | null
take
integer | null

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