B2B APIHotels
Payment Status
Check hotel booking payment status.
Payment Status
Poll the payment status for a hotel booking. Use this endpoint after initiating payment to determine whether the transaction has completed.
[!WARNING] Deprecated: This endpoint is deprecated. Use the unified checkout orchestrator endpoints (
/v1/checkout/sessionsand/v1/checkout/sessions/{id}) instead.
Get Payment Status
POST /v1/hotel/payment/status
Poll payment status for a hotel booking. Statuses: pending | paid | failed | refunded.
| Status | Description |
|---|---|
pending | Payment has been initiated but not yet confirmed. |
paid | Payment was successful and the booking is confirmed. |
failed | Payment failed. The booking may be released. |
refunded | Payment was refunded following a cancellation. |
| Field | Type | Required | Description |
|---|---|---|---|
booking_id | string | yes | Booking identifier to check payment status for. |
Sandbox-only. Try-it requests target
https://cloud.vanitypass.com with X-Environment: Sandbox. No real bookings or charges. Production access: contact us.POST
/v1/hotel/payment/statusSandbox credentials
Keys never leave your browser — they are sent only to cloud.vanitypass.com with X-Environment: Sandbox.
curl -X POST 'https://cloud.vanitypass.com/v1/hotel/payment/status' \
-H 'Content-Type: application/json' \
-H 'X-Environment: Sandbox' \
-d '{"booking_id":"book_example"}'