Cancel a pending transaction

Cancelling a pending transaction endpoint allows you to block the payment flow for consumers that currently visiting the payment page and also block the payment page for new consumers - only for specific transaction.

This API will not refund approved transactions, see Refund a transaction

API Interface

Cancelling a pending transaction object (Payment Request)

POST https://api.sensepass.com/api/transactions/cancel/{transactionNumber}

Path Parameters

NameTypeDescription

transactionNumber*

String

Transaction number to cancel

Request Body

NameTypeDescription

deviceId

string

Terminal unique device ID provided by SensePass (For Device based Transactions) - Required if apiKey is empty

apiKey

string

Merchant ID provided by SensePass (For Web based Transactions) - Required if deviceId is empty

{
  "status": 200,
  "status_message": "Transaction Was Canceled"
}

Flow Chart

See our payment flow chart here

Transaction Status Flow

See our transaction status flow here

Last updated