Void Transaction
Cancel an authorization so that the funds are released on the payer's account and cannot be captured. Voids can only be performed on transactions that have not yet been captured.
Request
POST https://api.scanpay.dk/v2/{shopid}:trn:{trnid}/void - trnid is the ID you received from calling seq.
The request has no body.
Headers
| HTTP header | Description |
|---|---|
Idempotency-Key: xM3h1STdPREZVWXVNeTBqNzkwUTZUaHdCRWp4ZldGWHdKWjBX | Sending this header lets you fetch the result of the request at a later time even if the connection gets cut off. Simply send an identical request with the same key to retrieve the response. |
Response
There are no defined response fields and as such this returns an empty JSON object.
Headers
| HTTP header | Description |
|---|---|
Idempotency-Status: OK | The response is a replay. |