General
Server Side SDKs
Core API
- Companies
- Invite Links
- Integrations
- Sync
- Jobs
- Passthrough
Unified API
- Accounting
- Accounts
- Bank Accounts
- Bank Transactions
- Bills
- Bill Payments
- Bill Credit Notes
- Contacts
- Company Info
- Currencies
- Documents
- Expenses
- Invoice Credit Notes
- Invoices
- Invoice Payments
- Items
- Journal Entries
- Purchase Orders
- Sales Orders
- Goods Receipt Notes
- Projects
- Tax Rates
- Tracking Categories
- Balance Sheet
- Cash Flow Statements
- Income Statements
Get Invoice Credit Notes
Retrieve invoice credit notes from the database based on the ID
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": [
{
"rootfi_id": 1234,
"rootfi_company_id": 123456,
"rootfi_organisation_id": 1,
"rootfi_integration_type": "ZOHO_BOOKS",
"rootfi_updated_at": "2021-09-28T15:00:00.000Z",
"rootfi_created_at": "2021-09-28T15:00:00.000Z",
"platform_id": "3770712000001556051",
"invoice_ids": [
"3770712000000352003"
],
"contact_id": "3770712000000080150",
"currency_id": null,
"document_number": "CN-00038",
"posted_date": "2023-03-21T00:00:00.000Z",
"memo": null,
"status": "SUBMITTED",
"tax_amount": null,
"total_amount": 60,
"remaining_credit": 60,
"updated_at": "2023-10-13T00:00:00.000Z",
"currency": {
"data": {
"platform_id": null,
"name": null,
"code": null,
"symbol": null,
"is_base_currency": null,
"exchange_rate": null,
"updated_at": null
}
},
"line_items": {
"data": [
{
"platform_id": "1234567890123456789",
"line_item_type": "BILLS",
"line_item_type_id": "1234567890123456789",
"tracking_category_ids": [
"1234567890123456789"
],
"item_id": "1234567890123456789",
"tax_id": "1234567890123456789",
"account_id": null,
"description": "Test Item",
"quantity": 1,
"unit_amount": 100,
"total_amount": 100,
"sub_total": null,
"tax_amount": 0,
"total_discount": null,
"updated_at": "2021-09-28T15:00:00.000Z"
}
]
}
}
],
"total_count": 1
},
"request_timestamp": "2021-09-28T15:00:00.000Z",
"response_timestamp": "2021-09-28T15:00:00.000Z",
"request_id": "7a1c0e42-9f85-4d6e-bb5d-358a72913c0b"
}
An Invoice Credit Note is a financial transaction representing a reduction that can be applied against one or multiple invoices issued to Customers.
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"
}
}
}'
Authorizations
Body
asc
, desc
asc
, desc
asc
, desc
asc
, desc
asc
, desc
asc
, desc
asc
, desc
asc
, desc
asc
, desc
asc
, desc
Response
The ID that the accounting platform uses to identify this account
The unique ID we assign for that data's information
The RootFi designated id for the company
The RootFi designated id for the organisation
The accounting platform from which the data is being retrieved
ZOHO_BOOKS
, QUICKBOOKS_SANDBOX
, QUICKBOOKS
, XERO
, TALLY
, SAGE_CLOUD_ACCOUNTING
, MS_DYNAMICS_365
, SAGE_ZA_CLOUD_ACCOUNTING
, MYOB_BUSINESS
, WAVE
, ODOO_ACCOUNTING
, NETSUITE
, WAFEQ
, MEKARI_JURNAL
, BUSY
, ROOTFI_SANDBOX
, QOYOD
The latest date at which RootFi updated this data
The date at which RootFi first synced this data
An Array of Invoices associated with the credit note
The accounting platform’s unique identifier for the contact associated with this credit note
Currency ID of the credit note
Reference number for the credit note
Date on which the credit note was posted
Description of the credit note
The status of the credit note.
DRAFT
, SUBMITTED
, PARTIALLY_PAID
, PAID
, OVERDUE
, VOID
, UNKNOWN
Total tax amount levied on the credit note
Total amount of the credit note
The balance amount remaining on the credit note
The last ISO 8601 timestamp that the data was updated at
The ISO-4217 currency code used in the credit note
Currency associated with the account.
The ID that the accounting platform uses to identify this currency
The name of the currency
The code of the currency
The symbol of the currency
Is this the base currency of the organisation?
The exchange rate of the currency
The last ISO 8601 timestamp that the data was updated at
An array of Credit Note Line Items
The item id of the line item
The tax id of the line item
The quantity of the line item
The unit amount of the line item
The platform id of the line item
The line item type of the line item
BILLS
, INVOICES
, BILL_CREDIT_NOTES
, INVOICE_CREDIT_NOTES
, EXPENSES
, PURCHASE_ORDERS
, SALES_ORDERS
The line item type id of the line item
The tracking category ids of the line item
The account id of the line item
The description of the line item
The total amount of the line item
The sub total of the line item
The tax amount of the line item
The total discount of the line item
The last ISO 8601 timestamp that the data was updated at
The total count of the accounts
The time at which the request was received by the server
The time at which the response was sent by the server
The unique ID of the request
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": [
{
"rootfi_id": 1234,
"rootfi_company_id": 123456,
"rootfi_organisation_id": 1,
"rootfi_integration_type": "ZOHO_BOOKS",
"rootfi_updated_at": "2021-09-28T15:00:00.000Z",
"rootfi_created_at": "2021-09-28T15:00:00.000Z",
"platform_id": "3770712000001556051",
"invoice_ids": [
"3770712000000352003"
],
"contact_id": "3770712000000080150",
"currency_id": null,
"document_number": "CN-00038",
"posted_date": "2023-03-21T00:00:00.000Z",
"memo": null,
"status": "SUBMITTED",
"tax_amount": null,
"total_amount": 60,
"remaining_credit": 60,
"updated_at": "2023-10-13T00:00:00.000Z",
"currency": {
"data": {
"platform_id": null,
"name": null,
"code": null,
"symbol": null,
"is_base_currency": null,
"exchange_rate": null,
"updated_at": null
}
},
"line_items": {
"data": [
{
"platform_id": "1234567890123456789",
"line_item_type": "BILLS",
"line_item_type_id": "1234567890123456789",
"tracking_category_ids": [
"1234567890123456789"
],
"item_id": "1234567890123456789",
"tax_id": "1234567890123456789",
"account_id": null,
"description": "Test Item",
"quantity": 1,
"unit_amount": 100,
"total_amount": 100,
"sub_total": null,
"tax_amount": 0,
"total_discount": null,
"updated_at": "2021-09-28T15:00:00.000Z"
}
]
}
}
],
"total_count": 1
},
"request_timestamp": "2021-09-28T15:00:00.000Z",
"response_timestamp": "2021-09-28T15:00:00.000Z",
"request_id": "7a1c0e42-9f85-4d6e-bb5d-358a72913c0b"
}