One entry: its legs, what it is now, and every correction it is part of
const url = 'https://example.com/v1/entities/example/entries/example';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/v1/entities/example/entries/exampleReturn one entry with its legs, its current state and every correction it is part of (issue 0007).
Reviewing an entry means knowing what it is now: posted, corrected or reversed. That is not a column. It
follows from the correction rows that name the entry and is derived in one place (views.entry_state).
corrections is the chain from whichever end this entry sits on, so a mirror links back to what it
reversed rather than reading as a lone negative entry.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The entity this path is relative to
The entity this path is relative to
Responses
Section titled “Responses”Successful Response
object
object
object
Signed integer micro-units (millionths) as a base-10 string; never a JSON number.
object
Every correction this entry is part of, whichever end of it it is; issue 0007
One link in an entry’s correction chain, and which end of it this entry is.
role saves a reader re-deriving the relationship from three ids: original means this entry was
corrected, mirror means it is the reversal, and replacement means it is what was posted in the
original’s place. A reversal with no restatement has no replacement_id: “the books stopped saying this”
rather than “the books say it differently now”.
object
Original | mirror | replacement — which end of this correction the entry is
object
Posted | corrected | reversed | draft | void — what this entry is now
Example
{ "entry": { "postings": [ { "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": {} }}