Ledger
Ledger entry
Changed onThis GET endpoint is used to retrieve a single ledger entry for a wallet with the provided wallet token. <br> You can use this endpoint to obtain the details of a specific balance movement, such as a payout, payin, load, spendback, fee, credit, or reversal, identified by its ledger entry token. <br> To use this endpoint, you need to provide the wallet_token and the ledger_transaction_token as parameters in the URL Path. <br> The response will contain a single JSON ledger entry object including entry details.
get/wallets/{wallet_token}/ledger/{ledger_transaction_token}
Request
- Base URLhttps://api.masspay.io/v1.0.0
- Auth
- API key in header Authorization
- or API key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Idempotency-Keystring
Unique key to prevent duplicate processing
Response
Succesful operation.
Example response
{
"token": "ltx_3f2c9b1a-77aa-4c3e-b2c4-1d2e3f4a5b6c",
"wallet_token": "usr_wlt_9e5a349e-8d10-4a0b-9d8f-6b3f2a1c4d7e",
"user_token": "usr_1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"metadata": {
"group_id": 541
},
"amount": 125.75,
"currency_code": "USD",
"timestamp": "2024-06-15T13:45:30.123Z",
"ref_token": "payout_7c1d2e3f-4a5b-6c7d-8e9f-0a1b2c3d4e5f",
"ref_tokens": [
"payout_7c1d2e3f-4a5b-6c7d-8e9f-0a1b2c3d4e5f"
]
}Changes
- info
endpoint added
- info