OpheliaDocs
Search docs⌘K
DashboardCreate an account
v3 · Endpoints

POST /v3/bookings/{attempt_id}/abandon

End a pause you will not answer. It is not a cancel: it releases the waiting drive, and nothing more is pressed.

When to abandon: When a drive pauses.

Request

FieldTypeDefaultRule
attempt_id
path
none
The att_ id of the paused attempt. No body.

Response

The booking's answer: status, booking_id, attempt_id, error_code, error, failure_class, cancellable, cancel_via. A booking that had already finished keeps its stored answer, a confirmation included.

Statuses and error codes

HTTPStatus / error codeWhen
200
failed + attempt_abandoned
Released. The code was never typed, so the booking was almost certainly not made, but Ophelia cannot confirm it.
200
processing + continue_in_flight
A continue is applying a code right now, or the card was already entered on the pay page, or the person already approved the purchase in Link. Nothing was released. Read GET /v3/bookings/{booking_id}.
200
processing, no error_code
Nothing is paused: the drive is still running. Nothing was released. Read GET /v3/bookings/{booking_id} until it changes.
200
the stored status
The booking had already finished (succeeded with its confirmation, or failed).
404
unknown_attempt
No attempt with that id in your organization.
400
wrong_id_namespace
The id is not an att_ id.

Abandoning a booking that waits on a pay link spends the link: a card entered after it books nothing. Abandoning one that waits on a Link approval cancels the request: an approval given after it books nothing.

Example

curl
curl -X POST https://api.opheliaos.com/v3/bookings/att_6cf2814d9eb72b0945453f1d/abandon \
-H "Authorization: Bearer YOUR_TEST_KEY"

Response 200:

json
{
"status": "failed",
"booking_id": "bk_ac12c8f2543da9a840e906e1",
"attempt_id": "att_6cf2814d9eb72b0945453f1d",
"cancellable": false,
"cancel_via": "contact the venue directly using the confirmation on this booking",
"failure_class": "terminal",
"error_code": "attempt_abandoned",
"error": "the held session was released and its browser closed. The challenge was never answered, so the booking was almost certainly not completed — but v3 cannot confirm that and cannot cancel, so treat the outcome as unknown and check with the venue if a commitment matters"
}