v1

latestOpenAPI 3.1.02026-07-222392081.7 MB
Wallets

Revert wallet load

Revert a credit wallet transaction. Voids the related credit note/document and creates a debit transaction.

post/v1/wallets/{id}/transactions/{transactionId}/revert

Path parameters

idstring required
transactionIdstring required

Response

The debit transaction created by the revert

idstring required

Wallet transaction ID.

type'credit_free' | 'credit_paid' | 'debit' required

Wallet transaction type.

amountnumber required

Amount of the wallet transaction.

commentstring nullable required

Internal comment stored on the wallet transaction.

invoice_idstring nullable required

Generated invoice ID for the transaction. Only applies for credit_paid and debit.

original_transaction_idstring nullable required

The ID of the original wallet transaction that was reverted by this transaction.

reverted_bystring nullable required

The ID of the wallet transaction that reverted this transaction.

created_atstring date-time required

UTC date time string in the ISO 8601 format.

Example response

{
  "id": "walt_FCihRDLYhKpSpL",
  "type": "credit_paid",
  "amount": 12000,
  "comment": "Offline payment received",
  "created_at": "2024-12-20T16:04:11Z"
}