Adjustments
Adjustments are manual updates to a Wallet. They can be used to debit or credit a Balance to resolve a customer service issue or to manually provide credits.
Create an Adjustment Transaction
- TypeScript / JavaScript
let transaction = await solidtx.wallets.adjustBalance({
walletId: 'wallet_yxeh6q5mmpik8w6cyvc9zcnn',
balanceId: 'cash',
amount: '50',
})
Parameters
amount stringRequired
The amount of the transaction. Can be positive or negative.
note string | null
A note to attach to the transaction
Returns
Creates and returns a new Transaction object.
{
"id": "transaction_cm8orgnzp000a0cjv7m171dzn",
"walletId": "wallet_yxeh6q5mmpik8w6cyvc9zcnn",
"balanceId": "cash",
"type": "ADJUSTMENT",
"amount": "50",
"note": null
}