POS Payment Cancellation
Cancel any ongoing payment event on the RM Terminal from a POS system. Use when a payment must be aborted before it completes.
When to Use
▾
Use this endpoint when:
- Customer abandons an in-flight payment
- Voiding an unresponsive terminal event before retry
How to Use
▾
Method: POST
URL: https://open.revenuemonster.my/v3/event/terminal
Sandbox URL: https://sb-open.revenuemonster.my/v3/event/terminal
Step 1: Identify the Terminal
▾
Use the terminalId of the RM Terminal with the in-flight payment.
Step 2: Send the Cancel Event
▾
POST with type: "CANCEL". No body details needed beyond terminalId and type.
Step 3: Verify Cancellation
▾
A "SUCCESS" code confirms the cancel event was sent.
Request Parameters
▾
Terminal ID
Example: "1582107209454501456"
Request type
Example: "CANCEL"
Example Request
JSON
1curl --location --request POST "https://sb-open.revenuemonster.my/v3/event/terminal" \2--header "Content-Type: application/json" \3--header "Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IjIwMTgtMDMtMTMiLCJ0eXAiOiJKV1QifQ.eyJhdWQiOlsiYXBpX2NsaWVudEBFaGNLQzA5QmRYUm9RMnhwWlc1MEVNV1Z4NF9UbE5MZEZRIl0sImV4cCI6MTU4NjMzNzc1OCwiaWF0IjoxNTgzNzQ1NzU4LCJpc3MiOiJodHRwczovL3NiLW9hdXRoLnJldmVudWVtb25zdGVyLm15IiwianRpIjoiRWh3S0VFOUJkWFJvUVdOalpYTnpWRzlyWlc0UXlKSG9qb2VNcHYwViIsIm5iZiI6MTU4Mzc0NTc1OCwic3ViIjoiRWhRS0NFMWxjbU5vWVc1MEVKWFZ6ZDN3cmFxVE9SSVFDZ1JWYzJWeUVJeUpxSXp2eU1QVmNRIn0.FfBkCb7fjCKJdcy_DS06dKgEtcAvukPio0HyDRtH2UovhZsLFSqD_8oo21u094XSor_mqFg4hqXmLaHjX-h92Wz3kHl7OwiKQb16x8Rnl5OdyPHtMqIZqP8ab8Ch0RHEZ33VchK1zBTnG6Xosrb1B44tWqJ0_kdTtbRZN4rG821C8i4sb6sx8GaxgluJ5q7CEifMTBFJam_Jub9LfAfukq8YyIl0Bykp7B3A_su2QoELL9L_ElJdV9FuwFPHcKr9bxLvVSrEdyrFg7IBm_tJHxSl8gTh3j4b6lWZrBCfMSLraXaYRNzz1ddbVnwYD4aRuSyRmQeMYTUj0cInktnKUA" \4--header "X-Signature: sha256 GohuT2QTUXJV3MZh2OoEE9qW9wcfakOU9iVLmkTjM12NQuV6IcWMRQDz9NdxAOVIrh5MssfYCLDlafb2illXxgQMpmZkZ38NT6NQsMeMfGbHBS1Kc+BUtU7o1TMLUzk55J1tA6f0Z95oEuBlCeLm6VsgCG30wFm5YmgssJ0weIwMcW355r2sFl7QcKOuRqynoGtmmr/aGfOk1HjiFLoFzSd38O7rRjwGrekYwuYUD1N/Wp5GFXRjtaaPkzAERPbXEmnh/taLME8VeAhky6dAVGZE6gHKnP5WvvVjUE+KLtj3D32YIHzxhzEW9x3JEObqgvm5Q2oRZNxoh6/MvqwkVA==" \5--header "X-Nonce-Str: bfdgdjgtjhmnbmmjmdfdghghffj" \6--header "X-Timestamp: 1546850694" \7--data-raw {8 "terminalId": "1582107209454501456",9 "type": "CANCEL"10}
Response Parameters
▾
Successfully call this endpoint. If fail, will return error code object (Refer Appendix 1: Error Codes)
Example: "SUCCESS"
(Refer Appendix: Error Codes)
Example: {}
Example Response
JSON
1{2"code": "SUCCESS"3}