Skip to main content

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 provide ad hoc credits.

Create an Adjustment Transaction

let transaction = await solidtx.transactions.create({
walletId: 'wallet_yxeh6q5mmpik8w6cyvc9zcnn',
balanceId: 'cash',
amount: '50',
type: 'ADJUSTMENT'
})

Parameters


walletId stringRequired

ID of the Wallet


balanceId stringRequired

ID of the Balance


amount stringRequired
The amount of the transaction. Can be positive or negative.

type stringRequired
Must be ADJUSTMENT

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
}