curl --request POST \
--url https://api.hyperline.co/v1/wallets/{id}/transactions/{transactionId}/revert \
--header 'Authorization: Bearer <token>'{
"id": "walt_FCihRDLYhKpSpL",
"type": "credit_paid",
"amount": 12000,
"invoice_id": null,
"original_transaction_id": null,
"reverted_by": null,
"created_at": "2024-12-20T16:04:11Z"
}Revert a credit wallet transaction. Voids the related credit note/document and creates a debit transaction.
curl --request POST \
--url https://api.hyperline.co/v1/wallets/{id}/transactions/{transactionId}/revert \
--header 'Authorization: Bearer <token>'{
"id": "walt_FCihRDLYhKpSpL",
"type": "credit_paid",
"amount": 12000,
"invoice_id": null,
"original_transaction_id": null,
"reverted_by": null,
"created_at": "2024-12-20T16:04:11Z"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The debit transaction created by the revert
Wallet transaction ID.
"walt_FCihRDLYhKpSpL"
Wallet transaction type.
credit_free, credit_paid, debit "credit_paid"
Amount of the wallet transaction.
12000
Generated invoice ID for the transaction. Only applies for credit_paid and debit.
null
The ID of the original wallet transaction that was reverted by this transaction.
null
The ID of the wallet transaction that reverted this transaction.
null
Was this page helpful?