Record recoverable tax that was not recovered on this entry, and why
const url = 'https://example.com/v1/entities/example/entries/example/unrecovered-tax';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"commodity":"example","amount_micros":"-12000000","reason":"example","posting_id":"example","tax_code":"example","recoverable_until":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/v1/entities/example/entries/example/unrecovered-tax \ --header 'Content-Type: application/json' \ --data '{ "commodity": "example", "amount_micros": "-12000000", "reason": "example", "posting_id": "example", "tax_code": "example", "recoverable_until": "example" }'Record the decision to book a cost gross of a recoverable tax, and the reason for it.
Such a decision has a reason: the document does not support a claim, or there is no document. The gross figure records only the consequence, which is how an amount ends up inside a fixed asset with nobody able to say why. Nothing is posted here; the arithmetic already happened.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The entity this path is relative to
The entity this path is relative to
Request Bodyrequired
Section titled “Request Bodyrequired”An amount of recoverable tax that was not recovered on this entry, and why.
Nothing about a country or a tax is modelled. recoverable_until is a date the caller supplies; the
ledger applies no regime rule. It is what makes “what can we still reclaim, and by when” answerable.
tax_code is the entity’s own code, the same column name the chart and the postings use.
object
Signed integer micro-units (millionths) as a base-10 string; never a JSON number.
Why it was not recovered; the whole point of the record
Responses
Section titled “Responses”Successful Response
object
object
Signed integer micro-units (millionths) as a base-10 string; never a JSON number.
Unrecovered | recovered | forgone
Every record about this entry, oldest first
object
Signed integer micro-units (millionths) as a base-10 string; never a JSON number.
Unrecovered | recovered | forgone
object
Example
{ "record": { "amount_micros": "-12000000" }, "history": [ { "amount_micros": "-12000000" } ]}Bad Request
object
Example generated
{ "error": { "code": "example", "message": "example", "retryable": true, "details": [ {} ], "request_id": "example", "next_action": {} }}Unauthorized
object
Example generated
{ "error": { "code": "example", "message": "example", "retryable": true, "details": [ {} ], "request_id": "example", "next_action": {} }}Forbidden
object
Example generated
{ "error": { "code": "example", "message": "example", "retryable": true, "details": [ {} ], "request_id": "example", "next_action": {} }}Not Found
object
Example generated
{ "error": { "code": "example", "message": "example", "retryable": true, "details": [ {} ], "request_id": "example", "next_action": {} }}Conflict
object
Example generated
{ "error": { "code": "example", "message": "example", "retryable": true, "details": [ {} ], "request_id": "example", "next_action": {} }}Precondition Failed
object
Example generated
{ "error": { "code": "example", "message": "example", "retryable": true, "details": [ {} ], "request_id": "example", "next_action": {} }}Unprocessable Content
object
Example generated
{ "error": { "code": "example", "message": "example", "retryable": true, "details": [ {} ], "request_id": "example", "next_action": {} }}Internal Server Error
object
Example generated
{ "error": { "code": "example", "message": "example", "retryable": true, "details": [ {} ], "request_id": "example", "next_action": {} }}Service Unavailable
object
Example generated
{ "error": { "code": "example", "message": "example", "retryable": true, "details": [ {} ], "request_id": "example", "next_action": {} }}