Ledger transaction history
const url = 'https://api.wink.travel/api/managing-entity/d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69/payment/ledger/transactions?page=0&size=20';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/payment/ledger/transactions?page=0&size=20' \ --header 'Authorization: Bearer <token>' \ --header 'Wink-Version: 2.0'Returns a page of ledger entries for the given managing entity, ordered newest first. Entries include debits (payouts), credits (commissions/adjustments), and the associated metadata. Supports pagination via page and size parameters (defaults 0 and 20).
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Managing entity identifier (UUID)
Example
d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69Query Parameters
Section titled “Query Parameters ”Zero-based page number for pagination
Example
0Number of results per page
Example
20Header Parameters
Section titled “Header Parameters ”Responses
Section titled “ Responses ”Transaction history retrieved successfully
Double-entry ledger record tracking all incoming and outgoing funds for a beneficiary account (hotels, affiliates, etc.). Each transaction is recorded as a credit/debit pair to maintain balanced accounting.
object
Document UUID
Datetime this record was first created
Datetime this record was last updated
Version property that shows how many times this document has been persisted. Document will not persist if the version property is less than current version property in the system. Result in an optimistic locking exception.
Identifier of the account being credited or debited (e.g., hotel code or affiliate ID)
Display name of the account
Human-readable description of the transaction (e.g., ‘Sale revenue for booking WNK4ZQ7P’)
Reference identifier linking this ledger entry to its source transaction (e.g., booking ID, withdrawal ID, deposit ID)
Type of entity referenced by referenceIdentifier (BOOKING_CONTRACT, WITHDRAWAL, DEPOSIT, TRANSFER)
Economic category of the funds (e.g., SALE for hotel revenue, COMMISSION for affiliate earnings, TRANSACTION_FEE for payment processing costs)
Ledger entry direction: CREDIT (incoming funds) or DEBIT (outgoing funds)
Accounting classification per the five-account model (ASSETS, LIABILITIES, EQUITY, INCOME, EXPENSES)
Usage category for the account type (CASH, RECEIVABLE, PAYABLE, INVENTORY, CAPITAL)
Monetary amount of the transaction. Debits are negative values; credits are positive.
object
Optional metadata map for domain-specific transaction context (e.g., bank fees, FX rates, reconciliation details)
object
Example
[ null]Invalid pagination parameters
object
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }}object
object
object
object
object
object
object
object
Unauthorized — missing or invalid JWT token
object
object
Forbidden — missing ACCOUNTING:READ permission
object
object
Managing entity not found
Double-entry ledger record tracking all incoming and outgoing funds for a beneficiary account (hotels, affiliates, etc.). Each transaction is recorded as a credit/debit pair to maintain balanced accounting.
object
Document UUID
Datetime this record was first created
Datetime this record was last updated
Version property that shows how many times this document has been persisted. Document will not persist if the version property is less than current version property in the system. Result in an optimistic locking exception.
Identifier of the account being credited or debited (e.g., hotel code or affiliate ID)
Display name of the account
Human-readable description of the transaction (e.g., ‘Sale revenue for booking WNK4ZQ7P’)
Reference identifier linking this ledger entry to its source transaction (e.g., booking ID, withdrawal ID, deposit ID)
Type of entity referenced by referenceIdentifier (BOOKING_CONTRACT, WITHDRAWAL, DEPOSIT, TRANSFER)
Economic category of the funds (e.g., SALE for hotel revenue, COMMISSION for affiliate earnings, TRANSACTION_FEE for payment processing costs)
Ledger entry direction: CREDIT (incoming funds) or DEBIT (outgoing funds)
Accounting classification per the five-account model (ASSETS, LIABILITIES, EQUITY, INCOME, EXPENSES)
Usage category for the account type (CASH, RECEIVABLE, PAYABLE, INVENTORY, CAPITAL)
Monetary amount of the transaction. Debits are negative values; credits are positive.
object
Optional metadata map for domain-specific transaction context (e.g., bank fees, FX rates, reconciliation details)
object
Example
[ null]Internal Server Error
object
Example generated
{}