Skip to content

Sandbox

The sandbox airline answers like a real one, with a booking reference for every outcome, so your integration handles each of them before a real booking goes through.

Use your sandbox key (pk_test_…) and the airline code ZZ. Any surname works. Sandbox lookups finish in a few seconds, send the same webhooks as live ones, and are free: only your account's limits apply.

Booking references

Booking referenceWhat happens
SBXOK1completed: one passenger, one flight
SBXRTNcompleted: a return trip for two passengers
SBXCNXcompleted: a journey with a connection
SBXCANcompleted, with booking_status cancelled
SBXOTPaction_required for a one_time_code. Send 123456 to complete it; anything else and it asks again
SBXFNMaction_required for a first_name. Any name completes it
SBXMANmanual_review, then completed a minute later
SBXLATcompleted after 2 minutes, to try your timeouts
SBXBADfailed with invalid_credentials
SBXNFDfailed with booking_not_found
SBXDWNfailed with airline_unavailable, which can be retried
SBXCHGcompleted, and a monitor on it sends a change a minute after it starts

Monitoring in the sandbox

A monitor on SBXCHG sends a reservation.changed event a minute after it starts: the first flight leaves two hours later than it did. Other sandbox bookings never change, so their monitors stay quiet.