Reverse Request
Last updated: 2026-03-25
POST
/in-store/api/v1/reverseReverse a transaction that has not yet settled
Request Body
terminalIdstringrequiredThe ID of the terminal where the original transaction was processed.
HTTP Status Code Summary
| Code | Description |
|---|---|
| 201 | Reversal request created and sent to terminal. |
| 400 | Bad request. Check that terminalId is provided and valid. |
| 401 | Unauthorized. Ensure your bearer token and subscription key are valid. |
| 409 | Conflict. A reversal for this terminal is already in progress. |
| 422 | Unprocessable 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}