v1
latestOpenAPI 3.0.02026-08-0696238481.7 KBIn-Person Terminals
Cancel the current action on a terminal
Cancel the action that has been initiated and is currently in-progress on a specific terminal.
post/in-person/terminals/{id}/cancel-action
Path parameters
idstring required
Example:tml_01FCTS1XMKH9FF43CAFA4CXT3P
the unique ID of the terminal
Headers
Accountstring
Example:ac_3fe8398f-8cdb-43a3-9be2-806c4f84c327
The linked accountId (use this when you want to cancel the current action on an in person terminal under a linked account)
Response
The action was successfully cancelled on the terminal. A new action can now be initiated on this terminal.
Example response
{
"id": "tml_01FCTS1XMKH9FF43CAFA4CXT3P",
"name": "Front of house",
"location": {
"id": "iploc_01FCTS1XMKH9FF43CAFA4CXT3P"
},
"device": {
"type": "PAX A920 Pro",
"serialNumber": "25050808291100"
},
"action": {
"type": "Transaction",
"status": "InProgress",
"id": "tmlact_01K7HNYENCZF6A784V5T625108_01K7KHC9ESPB1VZ9APGF3R5X7W",
"error": {
"code": "TransactionDeclined",
"settings": {
"receiptPrintingSource": "Terminal"
}
},
"transaction": {
"type": "Payment",
"paymentSessionId": "ps_01FCTS1XMKH9FF43CAFA4CXT3P",
"amounts": {
"requested": 500
},
"currency": "GBP",
"settings": {
"receiptPrintingSource": "Terminal"
}
},
"createdTimestamp": 1470989538,
"completedTimestamp": 1470989538
},
"metadata": {
"internalID": "1"
},
"createdTimestamp": 1470989538,
"lastUpdatedTimestamp": 1470989538
}