Wallet
Every booking is charged against your office wallet. Read its balance to check you can cover an issuance before you make one.
Get the balance
GET/v3/HAPI/wallet
Requires the wallet:read scope. A test token reports the sandbox wallet; a live token reports the real office.
curl https://api.hermeseus.com/v3/HAPI/wallet \ -H "Authorization: Bearer $ACCESS_TOKEN"
Response
{
"object": "wallet",
"environment": "live",
"balance": { "amount": "1240.00", "currency": "USD" },
"held": { "amount": "150.00", "currency": "USD" },
"available": { "amount": "1090.00", "currency": "USD" }
}| Field | Description |
|---|---|
balance | The total funds on the wallet. |
held | Funds reserved by orders that are held but not yet issued. |
available | What you can still spend: balance minus held. |
Holds and issuance.
Creating a flight or hotel order holds nothing. Confirming it (hotel
confirm, flight ticket) moves its price from available into held; issuing draws it down from balance; cancelling releases the hold back to available. A confirm that would exceed available returns 402 insufficient_balance. Activity bookings, and insurance, visa, lounge and fast track orders, hold their price when created.
Was this page helpful?