Close it: recovered after all, naming the entry that did it, or deliberately forgone
const url = 'https://example.com/v1/entities/example/unrecovered-tax/example/resolve';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"outcome":"example","reason":"example","recovered_entry_id":"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/unrecovered-tax/example/resolve \ --header 'Content-Type: application/json' \ --data '{ "outcome": "example", "reason": "example", "recovered_entry_id": "example" }'Close a record as recovered (naming the recovering entry) or forgone (the reason stands alone).
Without forgone the list would only grow. When a claim window closes, or an amount is not worth the
paperwork, the record would otherwise go on saying money is recoverable when it is not.
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”Close a record.
recovered names the entry that recovered it. forgone names nothing, so its reason has to explain it
(the window closed, or the claim was not worth making).
object
Example generated
{ "outcome": "example", "reason": "example", "recovered_entry_id": "example"}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": {} }}