Create a new accounting ledger.
A JSON object containing accounting ledger information.
Successful operation
Unprocessable Content
{- "ledger": "PVC expenses",
- "qualifier": "47310"
}
{- "success": true,
- "hash": "8148dcd07538a848eda61e8c5d6ac452f1b8403e",
- "data": {
- "id": 49,
- "hash": "a80649519c4bd33c7b2144d3119dd75db91e1021",
- "name": "PVC expenses",
- "qualifier": "47310",
- "created_time": "2024-04-08T14:03:43.000000Z",
- "modified_time": "2024-04-08T14:03:43.000000Z",
- "modified_user_time": "2024-04-08T14:03:43.000000Z",
- "model": "AccountingLedger",
- "created_user": {
- "id": 1,
- "hash": "8db560a23013ff54838d45e59a3f3f39f6720c86",
- "name": "Olli Kahn",
- "first_name": "Olli",
- "last_name": "Kahn",
- "position": "CEO",
- "department": "Engine room",
- "organization": "Nordantech",
- "email": "titan@nordantech.com",
- "status": 1,
- "created_time": "2022-05-04T16:51:37.000000Z",
- "modified_time": "2022-05-23T12:18:17.000000Z",
- "modified_user_time": "2022-05-23T12:18:17.000000Z",
- "model": "User"
}, - "modified_user": {
- "id": 1,
- "hash": "8db560a23013ff54838d45e59a3f3f39f6720c86",
- "name": "Olli Kahn",
- "first_name": "Olli",
- "last_name": "Kahn",
- "position": "CEO",
- "department": "Engine room",
- "organization": "Nordantech",
- "email": "titan@nordantech.com",
- "status": 1,
- "created_time": "2022-05-04T16:51:37.000000Z",
- "modified_time": "2022-05-23T12:18:17.000000Z",
- "modified_user_time": "2022-05-23T12:18:17.000000Z",
- "model": "User"
}
}, - "timestamp": 1712314585578
}
Get all accounting ledgers of the authenticated hub.
Successful operation
{- "success": true,
- "hash": "6b31c0f80010b3af38b0b2ba9b2d64b696a54dc9",
- "data": [
- {
- "id": 49,
- "hash": "a80649519c4bd33c7b2144d3119dd75db91e1021",
- "name": "PVC expenses",
- "qualifier": "47310",
- "created_time": "2024-04-08T14:03:43.000000Z",
- "modified_time": "2024-04-08T14:03:43.000000Z",
- "modified_user_time": "2024-04-08T14:03:43.000000Z",
- "model": "AccountingLedger",
- "created_user": {
- "id": 1,
- "hash": "8db560a23013ff54838d45e59a3f3f39f6720c86",
- "name": "Olli Kahn",
- "first_name": "Olli",
- "last_name": "Kahn",
- "position": "CEO",
- "department": "Engine room",
- "organization": "Nordantech",
- "email": "titan@nordantech.com",
- "status": 1,
- "created_time": "2022-05-04T16:51:37.000000Z",
- "modified_time": "2022-05-23T12:18:17.000000Z",
- "modified_user_time": "2022-05-23T12:18:17.000000Z",
- "model": "User"
}, - "modified_user": {
- "id": 1,
- "hash": "8db560a23013ff54838d45e59a3f3f39f6720c86",
- "name": "Olli Kahn",
- "first_name": "Olli",
- "last_name": "Kahn",
- "position": "CEO",
- "department": "Engine room",
- "organization": "Nordantech",
- "email": "titan@nordantech.com",
- "status": 1,
- "created_time": "2022-05-04T16:51:37.000000Z",
- "modified_time": "2022-05-23T12:18:17.000000Z",
- "modified_user_time": "2022-05-23T12:18:17.000000Z",
- "model": "User"
}
}, - {
- "id": 50,
- "hash": "d944005a4619b190e30478dc50666659941bc7c7",
- "name": "Revenue with other services",
- "qualifier": "82210",
- "created_time": "2024-04-08T14:03:43.000000Z",
- "modified_time": "2024-04-08T14:03:43.000000Z",
- "modified_user_time": "2024-04-08T14:03:43.000000Z",
- "model": "AccountingLedger",
- "created_user": {
- "id": 1,
- "hash": "8db560a23013ff54838d45e59a3f3f39f6720c86",
- "name": "Olli Kahn",
- "first_name": "Olli",
- "last_name": "Kahn",
- "position": "CEO",
- "department": "Engine room",
- "organization": "Nordantech",
- "email": "titan@nordantech.com",
- "status": 1,
- "created_time": "2022-05-04T16:51:37.000000Z",
- "modified_time": "2022-05-23T12:18:17.000000Z",
- "modified_user_time": "2022-05-23T12:18:17.000000Z",
- "model": "User"
}, - "modified_user": {
- "id": 1,
- "hash": "8db560a23013ff54838d45e59a3f3f39f6720c86",
- "name": "Olli Kahn",
- "first_name": "Olli",
- "last_name": "Kahn",
- "position": "CEO",
- "department": "Engine room",
- "organization": "Nordantech",
- "email": "titan@nordantech.com",
- "status": 1,
- "created_time": "2022-05-04T16:51:37.000000Z",
- "modified_time": "2022-05-23T12:18:17.000000Z",
- "modified_user_time": "2022-05-23T12:18:17.000000Z",
- "model": "User"
}
}, - {
- "id": 51,
- "hash": "f5a9a81c5b41a0c874baaf5cfb2ddbb332894533",
- "name": "Cash",
- "qualifier": "10009",
- "created_time": "2024-04-08T14:03:43.000000Z",
- "modified_time": "2024-04-08T14:03:43.000000Z",
- "modified_user_time": "2024-04-08T14:03:43.000000Z",
- "model": "AccountingLedger",
- "created_user": {
- "id": 1,
- "hash": "8db560a23013ff54838d45e59a3f3f39f6720c86",
- "name": "Olli Kahn",
- "first_name": "Olli",
- "last_name": "Kahn",
- "position": "CEO",
- "department": "Engine room",
- "organization": "Nordantech",
- "email": "titan@nordantech.com",
- "status": 1,
- "created_time": "2022-05-04T16:51:37.000000Z",
- "modified_time": "2022-05-23T12:18:17.000000Z",
- "modified_user_time": "2022-05-23T12:18:17.000000Z",
- "model": "User"
}, - "modified_user": {
- "id": 1,
- "hash": "8db560a23013ff54838d45e59a3f3f39f6720c86",
- "name": "Olli Kahn",
- "first_name": "Olli",
- "last_name": "Kahn",
- "position": "CEO",
- "department": "Engine room",
- "organization": "Nordantech",
- "email": "titan@nordantech.com",
- "status": 1,
- "created_time": "2022-05-04T16:51:37.000000Z",
- "modified_time": "2022-05-23T12:18:17.000000Z",
- "modified_user_time": "2022-05-23T12:18:17.000000Z",
- "model": "User"
}
}
], - "meta": {
- "page": 1,
- "first": 1,
- "last": 3,
- "total": 3,
- "limit": 1000,
- "pages": 1
}, - "timestamp": 1712585466471
}
Get an accounting ledger.
Successful operation
Not Found
{- "success": true,
- "hash": "8148dcd07538a848eda61e8c5d6ac452f1b8403e",
- "data": {
- "id": 49,
- "hash": "a80649519c4bd33c7b2144d3119dd75db91e1021",
- "name": "PVC expenses",
- "qualifier": "47310",
- "created_time": "2024-04-08T14:03:43.000000Z",
- "modified_time": "2024-04-08T14:03:43.000000Z",
- "modified_user_time": "2024-04-08T14:03:43.000000Z",
- "model": "AccountingLedger",
- "created_user": {
- "id": 1,
- "hash": "8db560a23013ff54838d45e59a3f3f39f6720c86",
- "name": "Olli Kahn",
- "first_name": "Olli",
- "last_name": "Kahn",
- "position": "CEO",
- "department": "Engine room",
- "organization": "Nordantech",
- "email": "titan@nordantech.com",
- "status": 1,
- "created_time": "2022-05-04T16:51:37.000000Z",
- "modified_time": "2022-05-23T12:18:17.000000Z",
- "modified_user_time": "2022-05-23T12:18:17.000000Z",
- "model": "User"
}, - "modified_user": {
- "id": 1,
- "hash": "8db560a23013ff54838d45e59a3f3f39f6720c86",
- "name": "Olli Kahn",
- "first_name": "Olli",
- "last_name": "Kahn",
- "position": "CEO",
- "department": "Engine room",
- "organization": "Nordantech",
- "email": "titan@nordantech.com",
- "status": 1,
- "created_time": "2022-05-04T16:51:37.000000Z",
- "modified_time": "2022-05-23T12:18:17.000000Z",
- "modified_user_time": "2022-05-23T12:18:17.000000Z",
- "model": "User"
}
}, - "timestamp": 1712585466471
}
Update an accounting ledger.
A JSON object containing accounting ledger information
Successful operation
Not Found
Unprocessable Content
{- "qualifier": "47311"
}
{- "success": true,
- "hash": "1d51fed2de4eeceea8c6a83fbe4f30b9f57c55d9",
- "data": {
- "id": 49,
- "hash": "a80649519c4bd33c7b2144d3119dd75db91e1021",
- "name": "PVC expenses",
- "qualifier": "47311",
- "created_time": "2024-04-08T14:03:43.000000Z",
- "modified_time": "2024-04-09T11:39:27.000000Z",
- "modified_user_time": "2024-04-09T11:39:27.000000Z",
- "model": "AccountingLedger",
- "modified_user": {
- "id": 1,
- "hash": "8db560a23013ff54838d45e59a3f3f39f6720c86",
- "name": "Olli Kahn",
- "first_name": "Olli",
- "last_name": "Kahn",
- "position": "CEO",
- "department": "Engine room",
- "organization": "Nordantech",
- "email": "titan@nordantech.com",
- "status": 1,
- "created_time": "2022-05-04T16:51:37.000000Z",
- "modified_time": "2022-05-23T12:18:17.000000Z",
- "modified_user_time": "2022-05-23T12:18:17.000000Z",
- "model": "User"
}
}, - "timestamp": 1712317167960
}
Delete an accounting ledger.
Successful operation
Not Found
{- "success": true,
- "hash": "97d170e1550eee4afc0af065b78cda302a97674c",
- "data": { },
- "timestamp": 1712319446880
}
Restore an accounting ledger.
Successful operation
Not Found
{- "success": true,
- "hash": "97d170e1550eee4afc0af065b78cda302a97674c",
- "data": { },
- "timestamp": 1712319742274
}