Cancel a transaction

DELETE/api/wallet/transactions/{transactionID}

Changes a pending transaction to expired and returns the updated object with HTTP 200. The record remains in the transaction history. Use the key that created the transaction.

Example · cURL
curl -X DELETE "https://yorkonthe.net/api/wallet/transactions/TRANSACTION_ID" \
  -H "x-api-key: YOUR_WALLET_API_KEY"

A paid or already expired transaction returns 400. This endpoint does not refund payments; purchase_return is a type of new transaction that also requires payment confirmation.