Skip to main content
POST
/
v1
/
wallets
/
{id}
/
transactions
/
{transactionId}
/
revert
Revert wallet load
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"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required
transactionId
string
required

Response

The debit transaction created by the revert

id
string
required

Wallet transaction ID.

Example:

"walt_FCihRDLYhKpSpL"

type
enum<string>
required

Wallet transaction type.

Available options:
credit_free,
credit_paid,
debit
Example:

"credit_paid"

amount
number
required

Amount of the wallet transaction.

Example:

12000

invoice_id
string | null
required

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

Example:

null

original_transaction_id
string | null
required

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

Example:

null

reverted_by
string | null
required

The ID of the wallet transaction that reverted this transaction.

Example:

null

created_at
string<date-time>
required

UTC date time string in the ISO 8601 format.

Example:

"2024-12-20T16:04:11Z"