Aggregate funds
const url = 'https://api.wink.travel/api/managing-entity/d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69/booking/funds?state=UPCOMING&accountFundsOnly=false';const options = { method: 'GET', headers: {'Wink-Version': '2.0', Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.wink.travel/api/managing-entity/d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69/booking/funds?state=UPCOMING&accountFundsOnly=false' \ --header 'Authorization: Bearer <token>' \ --header 'Wink-Version: 2.0'Returns total aggregate funds for the managing entity, optionally filtered by financial state; when accountFundsOnly is true only funds earned by this account as a beneficiary are summed, otherwise the full booking amounts it participated in.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Managing entity identifier
Example
d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69Query Parameters
Section titled “Query Parameters ”Financial state filter
Example
UPCOMINGReturn only funds earned by this account as a beneficiary (true), or total booking amounts this account was part of (false). Defaults to false.
Example
falseHeader Parameters
Section titled “Header Parameters ”Responses
Section titled “ Responses ”Aggregate funds for the managing entity
Aggregated booking funds expressed in three currency contexts: the property’s source currency, the platform’s internal capture currency, and the user’s display currency.
object
The property’s source currency code.
The platform’s internal capture currency code.
The user’s preferred display currency code.
Total amount in the source currency.
Total amount in the internal capture currency.
Total amount in the user’s display currency.
Example
{ "sourceCurrency": "THB", "internalCurrency": "USD", "displayCurrency": "USD", "sourceAmount": 45000, "internalAmount": 1285.75, "displayAmount": 1285.75}Bad Request — missing or invalid request parameter or body
object
object
Example
Unauthorized — authentication is required or the session has expired
object
object
Example
Forbidden — authenticated but lacking the required permission or scope
object
object
Example
Not Found — the requested resource does not exist
object
object
Example
Method Not Allowed — the HTTP verb is not supported on this endpoint
object
object
Example
Unsupported Media Type — use application/json
object
object
Example
Internal Server Error — an unexpected failure occurred on the server
object
object
Example
Service Unavailable — a downstream dependency is unreachable