Accounting ledger

An accounting ledger.

Create an accounting ledger

Create a new accounting ledger.

SecurityJWT
Request
Request Body schema: application/json

A JSON object containing accounting ledger information.

name
required
string <= 1000 characters

The name of the accounting ledger.

qualifier
required
string or integer <= 200 characters

The qualifier of the accounting ledger.

The qualifier is the identifier provieded by your ERP system and must be unique within the authenticated hub.

Responses
201

Successful operation

422

Unprocessable Content

post/accountingledger
Request samples
application/json
{
  • "ledger": "PVC expenses",
  • "qualifier": "47310"
}
Response samples
application/json
{
  • "success": true,
  • "hash": "8148dcd07538a848eda61e8c5d6ac452f1b8403e",
  • "data": {
    },
  • "timestamp": 1712314585578
}

Get all accounting ledgers

Get all accounting ledgers of the authenticated hub.

SecurityJWT
Request
query Parameters
page
integer
Default: 1

The page number of the response.

Responses
200

Successful operation

get/accountingledger
Request samples
Response samples
application/json
{
  • "success": true,
  • "hash": "6b31c0f80010b3af38b0b2ba9b2d64b696a54dc9",
  • "data": [
    ],
  • "meta": {
    },
  • "timestamp": 1712585466471
}

Get an accounting ledger

Get an accounting ledger.

SecurityJWT
Request
path Parameters
accountingledger
required
string or integer

The id/hash of the accounting ledger.

Responses
200

Successful operation

404

Not Found

get/accountingledger/{accountingledger}
Request samples
Response samples
application/json
{
  • "success": true,
  • "hash": "8148dcd07538a848eda61e8c5d6ac452f1b8403e",
  • "data": {
    },
  • "timestamp": 1712585466471
}

Update an accounting ledger

Update an accounting ledger.

SecurityJWT
Request
path Parameters
accountingledger
required
string or integer

The id/hash of the accounting ledger.

Request Body schema: application/json

A JSON object containing accounting ledger information

name
string <= 1000 characters

The name of the accounting ledger.

qualifier
string or integer <= 200 characters

The qualifier of the accounting ledger.

The qualifier is the identifier provieded by your ERP system and must be unique within the authenticated hub.

Responses
200

Successful operation

404

Not Found

422

Unprocessable Content

put/accountingledger/{accountingledger}
Request samples
application/json
{
  • "qualifier": "47311"
}
Response samples
application/json
{
  • "success": true,
  • "hash": "1d51fed2de4eeceea8c6a83fbe4f30b9f57c55d9",
  • "data": {
    },
  • "timestamp": 1712317167960
}

Delete an accounting ledger

Delete an accounting ledger.

SecurityJWT
Request
path Parameters
accountingledger
required
string or integer

The id/hash of the accounting ledger.

Responses
200

Successful operation

404

Not Found

delete/accountingledger/{accountingledger}
Request samples
Response samples
application/json
{
  • "success": true,
  • "hash": "97d170e1550eee4afc0af065b78cda302a97674c",
  • "data": { },
  • "timestamp": 1712319446880
}

Restore an accounting ledger

Restore an accounting ledger.

SecurityJWT
Request
path Parameters
accountingledger
required
string or integer

The id/hash of the accounting ledger.

Responses
200

Successful operation

404

Not Found

put/accountingledger/{accountingledger}/restore
Request samples
Response samples
application/json
{
  • "success": true,
  • "hash": "97d170e1550eee4afc0af065b78cda302a97674c",
  • "data": { },
  • "timestamp": 1712319742274
}