OpheliaDocs
Search docs⌘K
DashboardCreate an account
v3 · Reference

Statuses and error codes

Look up what an answer's status, HTTP code and error_code mean, and whether a booking may exist.

What to do with each kind of failure: Handle errors.

Statuses

statusHTTPMeans
succeeded
200
A search or read finished. A booking at commit is booked. A booking at begin reached the form and nothing final was pressed. To know whether something was booked, check confirmation_number, not status: a commit can also succeed with none (an RSVP, an appointment request, a free event), and reason then says so. A search or availability answer can carry an error_code on succeeded (no_offers_found, or a search at begin whose walk stopped).
processing
200
The outcome is not known yet (for example error_code: "continue_in_flight"). Read GET /v3/bookings/{booking_id} again until it changes.
requires_action
202
A pause: the drive is waiting for you. See When a drive pauses.
needs_input
422
The request must add something; missing[] lists it.
failed
by code
It did not work. The HTTP status comes from the error code (below).

A connected account has its own statuses (connecting, requires_action, active, failed, disconnected): session object.

HTTP for a failure

HTTPError codes
400
invalid_input, wrong_id_namespace, offer_entity_mismatch, ambiguous_vertical.
403
merchant_not_enabled_for_key: the site is not switched on for this key.
404
unknown_entity, unknown_offer, unknown_booking, unknown_attempt.
409
Every other failure with a code, unless a row below names it. failure_class is terminal.
410
attempt_expired
422
max_total_required
429
site_paced: the site asked for a gap. Your own rate limit is a different 429 (Rate limits).
200
attempt_abandoned: the abandon worked, so the call succeeded.
500
Ophelia failed on its side: {"error_code": "internal", "error": "…"}. Or the rate limiter is down: {"error": "rate limiter unavailable"}, with nothing done.
502
search_nav_failed, runner_transport, and a failure that carries no error_code or no failure_class.
503
drive_capacity with Retry-After: 60. Any failure with failure_class: "retryable_elsewhere" (a site's bot wall or block) with Retry-After: 30. Nothing was booked.
Read the error code before you book again. not_confirmed_after_otp, transaction_status_unknown and booked_a_different_entity mean a booking may exist, and v3 cannot cancel it. Tell the person and check with the site. Never send that booking again.

The failure body

A failed drive answers the full envelope with status: "failed", failure_class, error_code and error (a sentence; do not parse it). failure_class is terminal (this attempt is over; whether a new one is fine depends on the error code) or retryable_elsewhere (blocked; nothing committed; try again after Retry-After).

json
{
"status": "failed",
"path": "live",
"served_by": "form",
"drive_id": "drv_d0e571d14248a647033e9c35",
"failure_class": "terminal",
"error_code": "no_results",
"error": "the session ended without results: no_results: the site says 'No results'"
}

Refusals before anything runs have other, smaller bodies: Request rules and Keys and scopes.

Did it book?

Each code below says whether a booking may exist after it. There are four answers:

Booked?What to do
May have booked
Stop. Tell the person and check with the site. Never send the booking again.
Not confirmed
Almost certainly not booked. Check with the site if it matters, then you may start a new booking with a new idempotency_key.
Nothing booked
Answered before any press that could book. Fix the request and try again with a new idempotency_key.
Check first
The code does not say when it happened. On a booking at commit, check GET /v3/bookings/{booking_id} and with the site before you book again. On a search, an availability read or a booking at begin, no final press was made.
A booking at begin can still alarm. If a begin drive lands on a confirmation anyway, its booking report carries ALERT_BOOKING_CREATED. A booking may have been made that you did not authorize: tell the person and check with the site.

Next try: a new try is a new request. On POST /v3/bookings it always takes a new idempotency_key: the same key replays the first answer, a failure included. Read the Booked column first.

Every error code

Codes marked in error arrive in the error field, with no error_code. New codes can appear: treat an unknown one by its HTTP status and failure_class, and as Check first on a booking.

Keys, scopes and limits
error_codeHTTPMeansBooked?Next try
unauthorized
401
No key, or a key that is not valid.
After a fix
wrong_key_environment
403
A key that is not a test, live or beta key on /v3, or a beta key on /v1.
After a fix
insufficient_scopein error
403
The key lacks the scope the route needs; required_scope and accepted_scopes name it.
After a fix
merchant_not_enabled_for_key
403
The site is not switched on for this key in the dashboard. Nothing was driven. opheliapractice.com is always allowed.
After a fix
no_organization
403
The key is not tied to an organization.
Don't send it again
org_suspended
403
Your organization is suspended; message says why.
Don't send it again
billing_requiredin error
402
A live key, and your organization has no payment method on file. Add billing in the dashboard.
After a fix
free_tier_exhaustedin error
402
A test key, and your organization has used its free allowance of 3 confirmed bookings. Switch to a live key with billing.
After a fix
billing_check_unavailablein error
503
Ophelia could not check billing. Nothing was done.
Later
entitlement_check_unavailablein error
503
A test key, and Ophelia could not check the free allowance. Nothing was done.
Later
rate_limitedin error
429
Your organization made too many calls to this budget in 5 minutes. Wait Retry-After seconds.
Later
v3_disabled
503
v3 is switched off on this deployment.
Later
The request
error_codeHTTPMeansBooked?Next try
invalid_input
400
A field breaks its rule, or the body is not JSON; error names the field.
After a fix
needs_input
422
The request must add something; missing[] lists it. It can come after a drive ran (the answer has a drive_id): nothing was pressed. Send again with what missing lists.
After a fix
missing_fields
409
The request lacks a field the booking needs.
After a fix
no_input
409
The request carried nothing to act on.
After a fix
wrong_id_namespace
400
The id has the wrong prefix for this route, or is a v1 id (ven_…). v1 and v3 ids never mix.
After a fix
unknown_entity
404
No entity with that id in your organization. Ids come from POST /v3/search.
After a fix
unknown_offer
404
No offer with that id in your organization.
After a fix
unknown_booking
404
No booking with that id in your organization.
After a fix
unknown_attempt
404
No attempt with that id exists in your organization: check the attempt_id the booking returned. A finished attempt answers its stored result instead, and a lapsed one answers 410 attempt_expired.
After a fix
offer_entity_mismatch
400
The offer_id belongs to another entity than the one you are booking.
After a fix
ambiguous_vertical
400
The vertical covers several kinds of ask (travel); error names the ones to send.
After a fix
commitment_refused
409
A search or availability read asked to commit on a key with v3:act (without v3:act the answer is 403 insufficient_scope), or a booking asked only to read. Reads take read or begin; bookings take begin or commit.
After a fix
card_with_payment_link
400
The request sent a card and payment_collection "link". Send one.
After a fix
invalid_practice_timing
400
The Ophelia-Practice-Timing header is not live, fast or instant.
After a fix
invalid_practice_scenario
400
The Ophelia-Practice-Scenario header is not one of the practice scenarios; error lists them.
After a fix
not_implemented_in_v3
501
v3 cannot cancel or change a booking. This call changed nothing: the booking stands. Contact the site or the place.
Don't send it again
The site
error_codeHTTPMeansBooked?Next try
no_site
409 (400 on /v3/sessions)
The request named no site.
After a fix
unresolvable_site
409 (400 on /v3/sessions)
site is not a host or a URL.
After a fix
private_address
409 (400 on /v3/sessions)
The site is not on the public internet (a local, private or single-label address). It is never opened.
After a fix
akamai_blocked
503
The site's anti-bot protection refused the drive. Nothing was booked.
Later
bot_wall_blocked
503
An anti-bot wall stopped the drive, whoever built it; challenge_type may name the vendor. Nothing was booked.
Later
blocked
503
The site refused a request the drive made, without showing a page. Nothing was booked.
Later
rate_limit
503
The site walled a recent drive, so Ophelia is giving it time before driving it again.
Later
site_paced
429
The site is being driven by another request, or was read moments ago, so the drive did not open it. Come back later. Not a block.
Later
navigation_failed
409
A page of the site did not load.
Later
search_nav_failed
502
The browser never reached the site. Nothing was done.
Later
session_expired
409
The site's own sign-in or page timed out before the drive finished.
Later
site_timeout
409
The drive ran short of time before it could finish.
Later
Bookings
error_codeHTTPMeansBooked?Next try
not_confirmed_after_otp
409
A final press landed and no confirmation came back. The booking may exist. Tell the person and check with the site.
Don't send it again
transaction_status_unknown
409
The drive was lost after a press, or after a code was typed. The booking may exist. Tell the person and check with the site.
Don't send it again
booked_a_different_entity
409
The drive completed a booking, and it is for a different thing than the one you named. Tell the person: they must undo it with the site now.
Don't send it again
booking_error
409
The drive reached the booking screens and could not get through them. It stalled before any final press; nothing was booked.
Don't send it again
checkout_incomplete
409
The booking was started and did not complete.
Don't send it again
entity_not_reached
409
The drive no longer reaches the entity you named. Nothing was booked, and nothing else was put in its place. Search again.
After a fix
no_action_found
409
The drive found nothing it could press with confidence, or pressed and the page did not move. Nothing was booked.
Don't send it again
no_bookable_action
409
The entity's page has nothing that books it. Nothing was pressed. Address it differently or stop.
Don't send it again
not_bookable_here
409
The entity cannot be booked on this site (a closed listing, in-store only, offers that belong to someone else). Nothing was pressed.
Don't send it again
slot_mismatch
409
The booking form names a different day or value than you asked; slot_mismatch shows both.
After a fix
slot_click_failed
409
The time or option could not be selected on the page.
Don't send it again
offer_expired
409
The offer is past its expires_at (15 minutes at most after it was read). Read availability again.
After a fix
offer_gone
409
The offer's time is no longer in the site's results. Nothing was booked and no other time was put in its place.
After a fix
terms_changed
409
The total or the hold the site gave is not what the offer was read at.
After a fix
duplicate_reservation
409
The site says this email already holds a reservation here around that time. Change the time or the email.
After a fix
quote_unavailable
409
This site can stop short at begin only through its own data service, which did not answer. Nothing was pressed.
Later
drive_lost
409
The drive ended on Ophelia’s side before any press that could place the booking. Nothing was booked. Book again with a new idempotency_key.
Later
Orders from a store
error_codeHTTPMeansBooked?Next try
max_total_required
422
At commit, an order (shopping, or an unknown kind of ask with quantity, selections or a way to pay), or a booking on a site that may charge a fee, needs authorize.max_total and currency. A reservation’s own card needs none. Nothing was attempted. (With authorize.payment "account_on_file", a missing max_total is a 400 field error instead.)
After a fix
over_max_total
409
The checkout's total is over authorize.max_total. The final press was not made.
After a fix
total_unreadable
409
A max_total was sent and no total could be read on the page, so the final press was not made.
Don't send it again
cart_mismatch
409
The bag or the review was not exactly the item and quantity asked for. Nothing was ordered.
Don't send it again
currency_mismatch
409
The order's total is in another currency than authorize.currency. Nothing was ordered.
After a fix
out_of_stock
409
The page says the item cannot be bought (sold out, notify me). Nothing was pressed.
Don't send it again
variant_unavailable
409
The size, colour or other choice you asked for cannot be chosen (disabled or sold out). The answer names the values on offer.
After a fix
selection_unconfirmed
409
A choice you named was pressed and did not stay selected. Nothing was added to the bag.
Don't send it again
address_rejected
409
The store would not take the shipping address as given. Nothing was ordered.
After a fix
order_refused
409
The store refused the order press and said why on its form; error carries its words. Nothing was bought.
After a fix
Payment
error_codeHTTPMeansBooked?Next try
card_declined
409
The store or the bank declined the card. No order was placed.
After a fix
credit_card_required
409
The site needs a card to hold this booking and the request sent none.
After a fix
missing_card
409
The site asks for a card and the request carried none.
After a fix
card_fill_failed
409
The card could not be typed into the site's form.
Don't send it again
payment_method_unavailable
409
The checkout takes no card (only PayPal, a wallet, bank transfer or financing).
Don't send it again
payment_link_expired
409
The pay link lapsed, or Ophelia restarted, before a card arrived. Nothing was attempted or charged. Start a new booking.
Later
payment_link_unavailable
409
Pay links cannot be served right now. Send the card in the request. Nothing was attempted.
After a fix
card_with_link_wallet
400
The request sent a card and payment_collection "link_wallet". Send one.
After a fix
link_wallet_unavailable
409
This deployment cannot pay from a Link wallet. Send the card in the request. Nothing was attempted.
After a fix
link_wallet_amount_over_limit
409
authorize.max_total is over the 500 USD a Link wallet pays per purchase. Pay another way. Nothing was attempted.
After a fix
link_wallet_unauthorized
409
Link refused the person’s access token. Get a fresh token, or have the person sign in to Link again. Nothing was attempted or charged.
After a fix
link_wallet_declined
409
The person declined the purchase in Link. Nothing was attempted or charged.
Don't send it again
link_wallet_expired
409
The person did not approve in Link in time, or Ophelia restarted while the booking waited. Nothing was attempted or charged. Start a new booking.
Later
link_wallet_canceled
409
The Link spend request was canceled. Nothing was attempted or charged.
Don't send it again
link_wallet_action_required
409
The person’s Link wallet needs attention before it can pay; error carries Link’s words. Start a new booking once it is resolved. Nothing was attempted or charged.
Later
link_wallet_error
409
Link failed to issue the one-time card (or approved and returned none). Nothing was attempted.
Later
Pauses and codes
error_codeHTTPMeansBooked?Next try
attempt_expired
410 (also in a session object, 200 or 201, and on a 202)
The pause lapsed (600 seconds, or Ophelia restarted) before the code arrived, or can no longer be answered. The code was never typed: almost certainly not booked, but Ophelia cannot confirm it. In a session object: the code came too late; connect again.
Don't send it again
attempt_abandoned
200
You abandoned the pause. The code was never typed: almost certainly not booked, but Ophelia cannot confirm it.
Don't send it again
continue_in_flight
200 on processing (409 on /v3/sessions)
Another continue, or a card on the pay page, is already working this pause. Do not resend; read the booking or the connected account.
Don't send it again
otp_not_sent
409
The site did not send the person a code.
Later
otp_not_received
409
No code arrived for the drive to use.
Later
otp_missing
409
The site asked for a code and none was given.
Don't send it again
otp_read_failed
409
The code could not be read.
Later
otp_input_not_found
409
The site asked for a code and the drive could not find where to type it.
Don't send it again
otp_invalid
409 (200 in the session object)
The site did not take the code and asked for a new one. On a connect: get a new code and connect again.
After a fix
Connected accounts
error_codeHTTPMeansBooked?Next try
end_user_required
400
POST /v3/sessions needs end_user, your own id for the person.
After a fix
phone_or_email_required
400
Send the person’s phone or email under profile.
After a fix
phone_invalid
400
The phone is not E.164 (+15551234567) or a 10-digit US number.
After a fix
code_required
400
POST /v3/sessions/{session_id}/continue needs code.
After a fix
session_not_found
404
No connected account with that id in your organization.
After a fix
not_awaiting_code
409
The connected account is not waiting for a code. Read it with GET /v3/sessions/{session_id}.
Don't send it again
reconnect_required
200 (in the session object)
The saved account expired, or the site signed it out. Connect again.
After a fix
session_verification_required
200 (in the session object)
The site took the code, and the account must be connected again to verify it before use.
After a fix
sessions_unavailable
503
Connected accounts are not enabled on this deployment.
Later
account_required
409
The site checks out only for a signed-in account, and the drive could not sign in for the person. Connect their account and send authorize.sign_in.
After a fix
password_required
409
The site signs in only with a password. Ophelia never types a password.
Don't send it again
Failures on Ophelia's side
error_codeHTTPMeansBooked?Next try
drive_capacity
503
Ophelia is running as many drives as it can. Retry-After: 60.
Later
no_clean_exit
503
Ophelia has no way to reach the site right now. Retry-After: 30 (60 on /v3/sessions).
Later
proxy_lane_blocked
503
Ophelia's own way to the site was refused before it reached the site. The site did nothing wrong.
Later
runner_transport
502
Ophelia could not run the drive, on a request that could not book (a read, or a booking at begin). Nothing was booked.
Later
internal
500
Ophelia failed on its side while answering. In a session object: the site signed the person in and Ophelia could not keep the account; connect again.
Later
runner_error
409
Ophelia could not run the drive.
Later
timeout
409
The drive ran out of time before it finished.
Later
browser_launch_failed
409
Ophelia could not start the drive.
Later
create_profile_error
409
Ophelia could not run the drive.
Later
no_output
409
Ophelia could not run the drive: it ended without an answer.
Later
invalid_output
409
Ophelia could not run the drive: it ended with an answer Ophelia could not read.
Later
execution_failed
409
The drive failed on Ophelia’s side.
Later
read_error
409
Ophelia could not read the page.
Later
bootstrap_not_found
409
Ophelia could not read this site's page.
Don't send it again
missing_search_url
409
Ophelia found no page on the site to search from.
Don't send it again
no_recipe
409
Ophelia has no way to answer this ask on this site yet.
Don't send it again
recipe_invalid
409
Ophelia's way of reading this site failed.
Later
wire_fell_back
409
Ophelia could not read the site's own data, and did not drive the site instead.
Later
unknown_status
409
The drive ended with an outcome Ophelia does not recognise.
Don't send it again
unknown_action
409
Ophelia could not run the drive. Report it.
Don't send it again
bad_action
409
Ophelia could not run the drive. Report it.
Don't send it again
unknown_op
409
Ophelia could not run the drive. Report it.
Don't send it again
harness_error
409
Ophelia could not run the drive.
Don't send it again
harness_timeout
409
Ophelia could not run the drive in time.
Don't send it again
child_died
409
Ophelia could not run the drive: it stopped early.
Don't send it again