No document is coming: the booking stands as it is, and the reason says why
const url = 'https://example.com/v1/entities/example/entries/example/awaiting-document/withdraw';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"reason":"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/awaiting-document/withdraw \ --header 'Content-Type: application/json' \ --data '{ "reason": "example" }'Close an expectation because no document is coming; the booking stands as it is.
This is kept separate from a document arriving. A simplified receipt the supplier will never reissue settles the question, but not the way an invoice would, and the record keeps the two apart so the reason each item left the provisional list stays true.
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”No document is coming. The booking stands as it is, and the reason says why it is no longer provisional.
This is deliberately a different act from the document arriving. A receipt that will never be reissued is a different fact about the books from an invoice that turned up, and the record keeps them apart.
object
Why no document is expected any more
Example generated
{ "reason": "example"}Responses
Section titled “Responses”Successful Response
object
object
Awaiting | met | withdrawn
Every record about this entry, oldest first
object
Awaiting | met | withdrawn
object
Example generated
{ "entity_id": "example", "legal_name": "example", "base_currency": "example", "snapshot_seq": 1, "expectation": { "id": "example", "entry_id": "example", "state": "example", "awaiting": "example", "reason": "example", "evidence_id": "example", "supersedes_id": "example", "created_at": "example", "created_by": "example" }, "history": [ { "id": "example", "entry_id": "example", "state": "example", "awaiting": "example", "reason": "example", "evidence_id": "example", "supersedes_id": "example", "created_at": "example", "created_by": "example" } ], "links": { "additionalProperty": "example" }}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": {} }}