curl --request POST \
--url https://api.rootfi.dev/accounting/bill_credit_notes/all \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '{
"take": 10,
"skip": 0,
"orderBy": {
"total_amount": "asc"
},
"filter": {
"currency_id": {
"eq": "3770712000000000099"
}
}
}'
{
"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": "1234567890123456789",
"bill_ids": [
"1234567890123456789"
],
"contact_id": "1234567890123456789",
"currency_id": "3770712000000000099",
"document_number": "AO-0001",
"posted_date": "2023-03-16T00:00:00.000Z",
"memo": "Test Invoice",
"remaining_credit": 423,
"total_amount": 423,
"status": "SUBMITTED",
"tax_amount": null,
"updated_at": "2023-10-13T00:00:00.000Z",
"currency": {
"data": {
"platform_id": "3770712000000000099",
"name": "Indian Rupee",
"code": "INR",
"symbol": "₹",
"is_base_currency": true,
"exchange_rate": 0,
"updated_at": null
}
},
"line_items": {
"data": [
{
"platform_id": "1234567890123456789",
"line_item_type": "BILLS",
"line_item_type_id": "1234567890123456789",
"tracking_category_ids": [],
"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": 0
},
"request_timestamp": "2021-09-28T15:00:00.000Z",
"response_timestamp": "2021-09-28T15:00:00.000Z",
"request_id": "b2e791f5-7384-4e4f-800f-5c032f6bb61b"
}
List all Bill Credit Notes
curl --request POST \
--url https://api.rootfi.dev/accounting/bill_credit_notes/all \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '{
"take": 10,
"skip": 0,
"orderBy": {
"total_amount": "asc"
},
"filter": {
"currency_id": {
"eq": "3770712000000000099"
}
}
}'
{
"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": "1234567890123456789",
"bill_ids": [
"1234567890123456789"
],
"contact_id": "1234567890123456789",
"currency_id": "3770712000000000099",
"document_number": "AO-0001",
"posted_date": "2023-03-16T00:00:00.000Z",
"memo": "Test Invoice",
"remaining_credit": 423,
"total_amount": 423,
"status": "SUBMITTED",
"tax_amount": null,
"updated_at": "2023-10-13T00:00:00.000Z",
"currency": {
"data": {
"platform_id": "3770712000000000099",
"name": "Indian Rupee",
"code": "INR",
"symbol": "₹",
"is_base_currency": true,
"exchange_rate": 0,
"updated_at": null
}
},
"line_items": {
"data": [
{
"platform_id": "1234567890123456789",
"line_item_type": "BILLS",
"line_item_type_id": "1234567890123456789",
"tracking_category_ids": [],
"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": 0
},
"request_timestamp": "2021-09-28T15:00:00.000Z",
"response_timestamp": "2021-09-28T15:00:00.000Z",
"request_id": "b2e791f5-7384-4e4f-800f-5c032f6bb61b"
}
curl --request POST \
--url https://api.rootfi.dev/accounting/bill_credit_notes/all \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '{
"take": 10,
"skip": 0,
"orderBy": {
"total_amount": "asc"
},
"filter": {
"currency_id": {
"eq": "3770712000000000099"
}
}
}'
The response is of type object
.