{"info":{"_postman_id":"15beb2c3-0dd0-495e-8313-cbe94fcfae5d","name":"eVOUCHER POS API Documentation","description":"<html><head></head><body><p><strong>The following API endpoints were created to allow partner stores to redeem eVOUCHERs, directly from their POS machines and they were based on the below workflow:</strong></p>\n<ol>\n<li><p>Customer visits the store</p>\n</li>\n<li><p>Customer selects one or more products/services</p>\n</li>\n<li><p>Cashier scans the products/services</p>\n</li>\n<li><p>Cashier selects eVOUCHER payment (bill_total_api)</p>\n</li>\n<li><p>Cashier scans the eVOUCHER(s) (scan_voucher_api)</p>\n</li>\n<li><p>Cashier confirms the transaction (redeem_voucher_api)</p>\n</li>\n</ol>\n<h1 id=\"how-to-get-your-access-token\"><strong>How to get your access token</strong></h1>\n<ol>\n<li><p>Login to <a href=\"http://evoucher.cy/admin\">evoucher.cy/admin</a></p>\n</li>\n<li><p>Click Sales -&gt; Generate Access Token</p>\n</li>\n<li><p>Select the merchant/store for which you want to create a new token from the dropdown menu</p>\n</li>\n<li><p>Name your access token after the machine that will be used for (e.g. 1st_floor_machine_1) and click Generate. (if you have mulltiple stores, make sure to include the store name/location in the token name)</p>\n</li>\n<li><p>Copy paste your access token and keep it somewhere safe</p>\n</li>\n</ol>\n<p><strong>Note</strong>: access tokens should always be passed as <strong>X-Token</strong> in the header.</p>\n<h1 id=\"important-information\"><strong>Important Information</strong></h1>\n<h2 id=\"api-method\">API Method</h2>\n<p>All API calls should be made using the POST method.</p>\n<h2 id=\"success-variable\">Success Variable</h2>\n<p>Your API calls are considered successful, when the success variable has value one (1). If the value is zero (0), the call is considered failed.</p>\n<h2 id=\"failed-actions\">Failed Actions</h2>\n<p>Proceed with necessary actions, if only the response of the API call is successful (1).</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"How to get your access token","slug":"how-to-get-your-access-token"},{"content":"Important Information","slug":"important-information"}],"owner":"33149398","collectionId":"15beb2c3-0dd0-495e-8313-cbe94fcfae5d","publishedId":"2sAYBd6T5S","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"11acac"},"publishDate":"2024-12-08T15:12:33.000Z"},"item":[{"name":"Send Bill Total","event":[{"listen":"test","script":{"id":"a533db8a-58ac-4bab-a03d-bac4831b96f0","exec":[""],"type":"text/javascript","packages":{}}}],"id":"6c761444-13d4-424f-8991-a4f72196a4e8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"X-Token","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"bill_total\": 50,                   //Customer’s bill total\n    \"machine_name\": \"{{machine_name}}\"  //Token name\n}","options":{"raw":{"language":"json"}}},"url":"https://evoucher.cy/index.php?route=account/bill_total_api","description":"<p>The first endpoint is triggered when the POS machine user selects the eVOUCHER payment option. By selecting this option, the POS system calls this endpoint which sends the customer’s bill total to the eVOUCHER API.</p>\n","urlObject":{"protocol":"https","path":["index.php"],"host":["evoucher.cy"],"query":[{"key":"route","value":"account/bill_total_api"}],"variable":[]}},"response":[{"id":"7f127f15-9b43-4ad1-b932-fd296f20ead4","name":"Success","originalRequest":{"method":"POST","header":[{"key":"X-Token","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"bill_total\": 50,\n    \"machine_name\": \"{{machine_name}}\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://evoucher.cy/index.php?route=account/bill_total_api","protocol":"https","host":["evoucher.cy"],"path":["index.php"],"query":[{"key":"route","value":"account/bill_total_api"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Sun, 08 Dec 2024 15:18:19 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-CE","value":"tx66"},{"key":"Set-Cookie","value":"OCSESSID=35b22c4ccc1f4858d81a4efc91; path=/"},{"key":"X-Httpd","value":"1"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-CDN-C","value":"static"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-SG-CDN","value":"1"},{"key":"X-Proxy-Cache-Info","value":"DT:1"},{"key":"Host-Header","value":"8441280b0c35cbc1147f8ba998a563a7"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": 1,\n    \"bill_total\": 50,\n    \"message\": \"Bill total has been updated successfully\"\n}"}],"_postman_id":"6c761444-13d4-424f-8991-a4f72196a4e8"},{"name":"Scan Voucher","id":"16bea1a7-796e-4511-87d3-0caabc55a5b9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"X-Token","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"voucher_code\": \"12345678\"\n}","options":{"raw":{"language":"json"}}},"url":"https://evoucher.cy/index.php?route=account/scan_voucher_api","description":"<p>This endpoint is triggered when the POS machine user scans the eVOUCHER. The system calls this enpoint and sends the eVOUCHER code to our API, we validate the code and then we respond with the maximum available amount that can be redeemed using this code.</p>\n<p><strong>Note</strong>: when a voucher is scanned, it gets locked so that it cannot be scanned by any other POS machine or website. If it is not unlocked by any of the following endpoints within 5 minutes, then it gets unlocked automatically.</p>\n","urlObject":{"protocol":"https","path":["index.php"],"host":["evoucher.cy"],"query":[{"key":"route","value":"account/scan_voucher_api"}],"variable":[]}},"response":[{"id":"12adf0a2-0796-46ad-a139-2b17f1695d10","name":"Success","originalRequest":{"method":"POST","header":[{"key":"X-Token","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"voucher_code\": \"12345678\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://evoucher.cy/index.php?route=account/scan_voucher_api","protocol":"https","host":["evoucher.cy"],"path":["index.php"],"query":[{"key":"route","value":"account/scan_voucher_api"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Sun, 08 Dec 2024 15:40:17 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-CE","value":"tx66"},{"key":"Set-Cookie","value":"OCSESSID=35b22c4ccc1f4858d81a4efc91; path=/"},{"key":"X-Httpd","value":"1"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-CDN-C","value":"static"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-SG-CDN","value":"1"},{"key":"X-Proxy-Cache-Info","value":"DT:1"},{"key":"Host-Header","value":"8441280b0c35cbc1147f8ba998a563a7"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": 1,\n    \"price\": \"50.00\",\n    \"message\": \"The voucher is valid\"\n}"},{"id":"e7d62845-0b05-4fae-ab93-13d005bd109d","name":"Wrong code","originalRequest":{"method":"POST","header":[{"key":"X-Token","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"voucher_code\": \"12345678\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://evoucher.cy/index.php?route=account/scan_voucher_api","protocol":"https","host":["evoucher.cy"],"path":["index.php"],"query":[{"key":"route","value":"account/scan_voucher_api"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Sun, 13 Apr 2025 17:28:51 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-CE","value":"8krx"},{"key":"Set-Cookie","value":"OCSESSID=fb4401036621038d436cf5e6c9; path=/"},{"key":"X-Httpd","value":"1"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-CDN-C","value":"static"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-SG-CDN","value":"1"},{"key":"X-Proxy-Cache-Info","value":"DT:1"},{"key":"Host-Header","value":"8441280b0c35cbc1147f8ba998a563a7"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": 0,\n    \"message\": \"Voucher with code 12345678 does not exist!\"\n}"},{"id":"b6ea2587-b5cf-4569-ad56-a55be699c655","name":"Already redeemed","originalRequest":{"method":"POST","header":[{"key":"X-Token","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"voucher_code\": \"12345678\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://evoucher.cy/index.php?route=account/scan_voucher_api","protocol":"https","host":["evoucher.cy"],"path":["index.php"],"query":[{"key":"route","value":"account/scan_voucher_api"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Sun, 13 Apr 2025 17:29:58 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-CE","value":"n55s"},{"key":"Set-Cookie","value":"OCSESSID=fb4401036621038d436cf5e6c9; path=/"},{"key":"X-Httpd","value":"1"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-CDN-C","value":"static"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-SG-CDN","value":"1"},{"key":"X-Proxy-Cache-Info","value":"DT:1"},{"key":"Host-Header","value":"8441280b0c35cbc1147f8ba998a563a7"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": 0,\n    \"message\": \"Voucher with code 12345678 has already been redeemed!\"\n}"},{"id":"9755e0d4-535d-4d47-865d-4c1384ed28df","name":"Expired voucher","originalRequest":{"method":"POST","header":[{"key":"X-Token","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"voucher_code\": \"12345678\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://evoucher.cy/index.php?route=account/scan_voucher_api","protocol":"https","host":["evoucher.cy"],"path":["index.php"],"query":[{"key":"route","value":"account/scan_voucher_api"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 09 Dec 2024 01:58:48 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-CE","value":"pc9j"},{"key":"Set-Cookie","value":"OCSESSID=35b22c4ccc1f4858d81a4efc91; path=/"},{"key":"X-Httpd","value":"1"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-CDN-C","value":"static"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-SG-CDN","value":"1"},{"key":"X-Proxy-Cache-Info","value":"DT:1"},{"key":"Host-Header","value":"8441280b0c35cbc1147f8ba998a563a7"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": 0,\n    \"message\": \"Voucher with code 12345678 expired on 30-11-2024.\"\n}"},{"id":"14803b54-004b-4399-8052-5e56831adaf5","name":"Store not allowed to redeem","originalRequest":{"method":"POST","header":[{"key":"X-Token","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"voucher_code\": \"12345678\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://evoucher.cy/index.php?route=account/scan_voucher_api","protocol":"https","host":["evoucher.cy"],"path":["index.php"],"query":[{"key":"route","value":"account/scan_voucher_api"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 09 Dec 2024 02:05:57 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-CE","value":"s965"},{"key":"Set-Cookie","value":"OCSESSID=35b22c4ccc1f4858d81a4efc91; path=/"},{"key":"X-Httpd","value":"1"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-CDN-C","value":"static"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-SG-CDN","value":"1"},{"key":"X-Proxy-Cache-Info","value":"DT:1"},{"key":"Host-Header","value":"8441280b0c35cbc1147f8ba998a563a7"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": 0,\n    \"message\": \"Voucher with code 12345678 cannot be redeemed at your store!\" //Trying to scan voucher of store A to store B\n}"},{"id":"359e3d5b-b7b4-4291-899e-df6e7d2494ae","name":"No amount due","originalRequest":{"method":"POST","header":[{"key":"X-Token","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"voucher_code\": \"12345678\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://evoucher.cy/index.php?route=account/scan_voucher_api","protocol":"https","host":["evoucher.cy"],"path":["index.php"],"query":[{"key":"route","value":"account/scan_voucher_api"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 09 Dec 2024 02:00:21 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-CE","value":"pc9j"},{"key":"Set-Cookie","value":"OCSESSID=35b22c4ccc1f4858d81a4efc91; path=/"},{"key":"X-Httpd","value":"1"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-CDN-C","value":"static"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-SG-CDN","value":"1"},{"key":"X-Proxy-Cache-Info","value":"DT:1"},{"key":"Host-Header","value":"8441280b0c35cbc1147f8ba998a563a7"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": 0,\n    \"message\": \"Remaining bill total is 0, cannot redeem more vouchers.\" //Amount due is 0, no reason to scan more vouchers\n}"}],"_postman_id":"16bea1a7-796e-4511-87d3-0caabc55a5b9"},{"name":"Redeem Vouchers","id":"d9985204-76f8-47d1-ab1d-e6dc0cb63fc6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"X-Token","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"voucher_codes\": \"12345678\" //To redeem multiple vouchers use semicolon e.g. 12345678;12341234\n}","options":{"raw":{"language":"json"}}},"url":"https://evoucher.cy/index.php?route=account/redeem_voucher_api","description":"<p>If all actions are completed successfully and the POS machine user is ready to complete the transaction, the \"Complete\"/\"Finalize\" button is pressed. By the press of the button, the POS machine calls this endpoint and sends the code(s) of the eVOUCHER(s) that were scanned by the POS machine, the eVOUCHER API redeems the code(s) and we respond with a success message.</p>\n","urlObject":{"protocol":"https","path":["index.php"],"host":["evoucher.cy"],"query":[{"key":"route","value":"account/redeem_voucher_api"}],"variable":[]}},"response":[{"id":"e701da52-c0a7-4724-85dc-e77a2f2205bc","name":"Single code","originalRequest":{"method":"POST","header":[{"key":"X-Token","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"voucher_codes\": \"12345678\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://evoucher.cy/index.php?route=account/redeem_voucher_api","protocol":"https","host":["evoucher","cy"],"path":["index.php"],"query":[{"key":"route","value":"account/redeem_voucher_api"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 28 Jan 2025 16:13:10 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-CE","value":"vppp"},{"key":"Set-Cookie","value":"OCSESSID=092059230a2c4fd3e33a24ceb7; path=/"},{"key":"X-Httpd","value":"1"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-CDN-C","value":"static"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-SG-CDN","value":"1"},{"key":"X-Proxy-Cache-Info","value":"DT:1"},{"key":"Host-Header","value":"8441280b0c35cbc1147f8ba998a563a7"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": 1,\n    \"message\": \"Voucher with code 12345678 have been successfully redeemed.!\"\n}"},{"id":"c010c413-3505-46da-9d67-c8f4fa9ea9b0","name":"Multiple codes","originalRequest":{"method":"POST","header":[{"key":"X-Token","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"voucher_codes\": \"12345678;12345679\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://evoucher.cy/index.php?route=account/redeem_voucher_api","protocol":"https","host":["evoucher","cy"],"path":["index.php"],"query":[{"key":"route","value":"account/redeem_voucher_api"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 28 Jan 2025 16:13:10 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-CE","value":"vppp"},{"key":"Set-Cookie","value":"OCSESSID=092059230a2c4fd3e33a24ceb7; path=/"},{"key":"X-Httpd","value":"1"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-CDN-C","value":"static"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-SG-CDN","value":"1"},{"key":"X-Proxy-Cache-Info","value":"DT:1"},{"key":"Host-Header","value":"8441280b0c35cbc1147f8ba998a563a7"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": 1,\n    \"message\": \"Vouchers with codes 12345678,12345679 have been successfully redeemed.!\"\n}"}],"_postman_id":"d9985204-76f8-47d1-ab1d-e6dc0cb63fc6"},{"name":"Remove Voucher","id":"943eadd2-28a1-4f2b-8e1c-1d3ef1780b12","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"X-Token","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"voucher_code\": \"12345678\"\n}","options":{"raw":{"language":"json"}}},"url":"https://evoucher.cy/index.php?route=account/remove_voucher_api","description":"<p>A POS machine user can scan one or multiple eVOUCHERs. If for any reason he wants to delete any of them, the POS machine calls this endpoint and sends the code of the eVOUCHER that must be deleted.</p>\n","urlObject":{"protocol":"https","path":["index.php"],"host":["evoucher.cy"],"query":[{"key":"route","value":"account/remove_voucher_api"}],"variable":[]}},"response":[{"id":"d8804cb6-21b1-471e-8d69-a2c91d332e7e","name":"Success","originalRequest":{"method":"POST","header":[{"key":"X-Token","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"voucher_code\": \"12345678\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://evoucher.cy/index.php?route=account/remove_voucher_api","protocol":"https","host":["evoucher.cy"],"path":["index.php"],"query":[{"key":"route","value":"account/remove_voucher_api"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Sun, 08 Dec 2024 15:40:37 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-CE","value":"tx66"},{"key":"Set-Cookie","value":"OCSESSID=35b22c4ccc1f4858d81a4efc91; path=/"},{"key":"X-Httpd","value":"1"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-CDN-C","value":"static"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-SG-CDN","value":"1"},{"key":"X-Proxy-Cache-Info","value":"DT:1"},{"key":"Host-Header","value":"8441280b0c35cbc1147f8ba998a563a7"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": 1,\n    \"message\": \"Voucher has been deleted.\"\n}"}],"_postman_id":"943eadd2-28a1-4f2b-8e1c-1d3ef1780b12"},{"name":"Cancel Payment","id":"496f0b42-9ff4-4675-9307-8a4601594bd5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"X-Token","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"voucher_codes\": \"12345678\" //To remove multiple vouchers use semicolon e.g. 12345678;12341234\r\n}","options":{"raw":{"language":"json"}}},"url":"https://evoucher.cy/index.php?route=account/cancel_payment_api","description":"<p>This endpoint is triggered when the POS machine user selected to pay using eVOUCHER and then decides to change the payment method. He then closes the eVOUCHER window or selects some other payment option to overwrite the previous selection. When the mentioned button is pressed, this endpoint is called and the machine sends the code(s) of the eVOUCHER(s) that have been scanned, if any.</p>\n<p><strong>Note</strong>: leave body empty if no eVOUCHERs were scanned.</p>\n","urlObject":{"protocol":"https","path":["index.php"],"host":["evoucher.cy"],"query":[{"key":"route","value":"account/cancel_payment_api"}],"variable":[]}},"response":[{"id":"031ae842-66dc-4865-8567-9168de7de1af","name":"Single code","originalRequest":{"method":"POST","header":[{"key":"X-Token","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"voucher_codes\": \"12345678\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://evoucher.cy/index.php?route=account/cancel_payment_api","protocol":"https","host":["evoucher.cy"],"path":["index.php"],"query":[{"key":"route","value":"account/cancel_payment_api"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Sun, 08 Dec 2024 15:40:51 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-CE","value":"tx66"},{"key":"Set-Cookie","value":"OCSESSID=35b22c4ccc1f4858d81a4efc91; path=/"},{"key":"X-Httpd","value":"1"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-CDN-C","value":"static"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-SG-CDN","value":"1"},{"key":"X-Proxy-Cache-Info","value":"DT:1"},{"key":"Host-Header","value":"8441280b0c35cbc1147f8ba998a563a7"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": 1,\n    \"message\": \"Payment has been canceled.\"\n}"},{"id":"8482e0f4-05dd-4486-9ac5-9f041ea65dad","name":"No codes","originalRequest":{"method":"POST","header":[{"key":"X-Token","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://evoucher.cy/index.php?route=account/cancel_payment_api","protocol":"https","host":["evoucher.cy"],"path":["index.php"],"query":[{"key":"route","value":"account/cancel_payment_api"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Wed, 05 Mar 2025 12:10:40 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-CE","value":"5536"},{"key":"Set-Cookie","value":"OCSESSID=ac220ca6b79ea52ca381905811; path=/"},{"key":"X-Httpd","value":"1"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-CDN-C","value":"static"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-SG-CDN","value":"1"},{"key":"X-Proxy-Cache-Info","value":"DT:1"},{"key":"Host-Header","value":"8441280b0c35cbc1147f8ba998a563a7"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": 1,\n    \"message\": \"Payment has been canceled.\"\n}"}],"_postman_id":"496f0b42-9ff4-4675-9307-8a4601594bd5"}],"event":[{"listen":"prerequest","script":{"id":"2d6adea1-8fe2-448c-8b19-e4ec5d970c86","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"7f656790-16ee-4081-b620-66f5c27ad32f","type":"text/javascript","packages":{},"exec":[""]}}],"variable":[{"key":"site","value":"evoucher.cy","type":"string"}]}