Walletguide
DevelopersAPIReferenceassets

RemoveHistoryPreview

The candidate dates, affected count (rows before date), and rollup balance the remove-history action would apply. kind follows the asset's options.

GET
/wallets/{walletId}/assets/{id}/removeHistoryPreview

Authorization

bearerAuth
headerAuthorization<token>

A Walletguide API key (wg_…) or an OAuth bearer token. Paste the value only. Create a key under Wallet settings → API keys.

Path Parameters

walletId*string

Row uuid

Formatuuid
id*string

Row uuid

Formatuuid

Query Parameters

date?string

Cutoff date; defaults to today.

Match^\d{4}-\d{2}-\d{2}$

Response Body

Remove-history preview

application/json
  1. response
kind*string
Value in"transactions""totalValueUpdates"
dates*array<>

The modal's orderedDates, ascending.

affectedCount*integer
rollup*|

The initial balance the remove would set at date, asset default currency.

Example Request
curl -X GET 'https://api.walletguide.com/wallets/497f6eca-6276-4993-bfeb-53cbbbba6f08/assets/497f6eca-6276-4993-bfeb-53cbbbba6f08/removeHistoryPreview'
Example Response
{  "kind": "transactions",  "dates": [    "string"  ],  "affectedCount": 0,  "rollup": {    "value": 0,    "currency": "string"  }}