Reverse Request

Last updated: 2026-03-25

POST
/in-store/api/v1/reverse

Reverse a transaction that has not yet settled

Request Body

terminalIdstringrequired

The ID of the terminal where the original transaction was processed.

HTTP Status Code Summary

CodeDescription
201Reversal request created and sent to terminal.
400Bad request. Check that terminalId is provided and valid.
401Unauthorized. Ensure your bearer token and subscription key are valid.
409Conflict. A reversal for this terminal is already in progress.
422Unprocessable entity. The transaction may have already settled — use Refund instead.
Request
cURL
1curl -X 'POST' \
2  'https://demo-api.westpay.se/in-store/api/v1/reverse' \
3  -H 'accept: application/json' \
4  -H 'Ocp-Apim-Subscription-Key: <merchant-subscription-key>' \
5  -H 'Authorization: Bearer <access-token>' \
6  -H 'Content-Type: application/json' \
7  -d '{
8  "terminalId": "<your-terminal-id>"
9}'
Response
Response
1{
2  "onlineAPIRefId": "23179040000954"
3}