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”Filter for querying bookings by their financial lifecycle state.
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, one row per source currency
Aggregate booking funds for a managing entity, in one source currency.
object
Aggregate funds in internal currency.
Internal (capture) currency code used for settlement.
Unique identifier of the managing entity.
Aggregate funds in source currency.
Source currency code of the funds (e.g. hotel’s local currency).
Example
[ { "internalAmount": 1250, "internalCurrency": "USD", "managingEntityIdentifier": "d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69", "sourceAmount": 45000, "sourceCurrency": "THB" }]Bad Request — missing or invalid request parameter or body
object
object
Examplegenerated
{ "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }, "status": 1, "title": "example", "type": "https://example.com"}Unauthorized — authentication is required or the session has expired
object
object
Examplegenerated
{ "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }, "status": 1, "title": "example", "type": "https://example.com"}Forbidden — authenticated but lacking the required permission or scope
object
object
Examplegenerated
{ "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }, "status": 1, "title": "example", "type": "https://example.com"}Not Found — the requested resource does not exist
object
object
Examplegenerated
{ "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }, "status": 1, "title": "example", "type": "https://example.com"}Method Not Allowed — the HTTP verb is not supported on this endpoint
object
object
Examplegenerated
{ "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }, "status": 1, "title": "example", "type": "https://example.com"}Conflict — the resource was modified by someone else since you read it; re-read it and retry with the new version
object
object
Examplegenerated
{ "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }, "status": 1, "title": "example", "type": "https://example.com"}Unsupported Media Type — use application/json
object
object
Examplegenerated
{ "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }, "status": 1, "title": "example", "type": "https://example.com"}Internal Server Error — an unexpected failure occurred on the server
object
object
Examplegenerated
{ "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }, "status": 1, "title": "example", "type": "https://example.com"}Service Unavailable — a downstream dependency is unreachable
object
object
Examplegenerated
{ "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }, "status": 1, "title": "example", "type": "https://example.com"}