POST /puttransaction.php curl --request POST 'https://restapi.imaginaits.com/puttransaction.php' \ --header 'x-auth-token: YOUR_TOKEN' \ --header 'Content-Type: application/json' \ --data '{"transaction_id":"TX-DEMO-20261029-001","amount":2100,"user":"OPERATOR-01","terminal":"DESK-01","method":1}' GET /statustransaction.php curl 'https://restapi.imaginaits.com/statustransaction.php?transaction_id=TX-DEMO-20261029-001' --header 'x-auth-token: YOUR_TOKEN' GET /transactioncashflow.php curl 'https://restapi.imaginaits.com/transactioncashflow.php?transaction_id=TX-DEMO-20261029-001' --header 'x-auth-token: YOUR_TOKEN' POST /canceltransaction.php curl --request POST 'https://restapi.imaginaits.com/canceltransaction.php?transaction_id=TX-DEMO-20261029-001' --header 'x-auth-token: YOUR_TOKEN' GET /v2.php?action=capabilities curl 'https://restapi.imaginaits.com/v2.php?action=capabilities' --header 'x-auth-token: YOUR_TOKEN' POST /canceltransactionv2.php curl --request POST 'https://restapi.imaginaits.com/canceltransactionv2.php' \ --header 'x-auth-token: YOUR_TOKEN' \ --header 'Content-Type: application/json' \ --header 'Idempotency-Key: cancel-DEMO-20261029-001' \ --header 'X-Request-ID: request-DEMO-001' \ --data '{"transaction_id":"TX-DEMO-20261029-001"}' GET /v2.php?action=operation curl 'https://restapi.imaginaits.com/v2.php?action=operation&operation_id=OPERATION_ID_FROM_RESPONSE' --header 'x-auth-token: YOUR_TOKEN' GET /v2.php?action=transaction curl 'https://restapi.imaginaits.com/v2.php?action=transaction&transaction_id=TX-DEMO-20261029-001' --header 'x-auth-token: YOUR_TOKEN' GET /listtransactions.php curl 'https://restapi.imaginaits.com/listtransactions.php?status=PENDING' --header 'x-auth-token: YOUR_TOKEN' GET /inventory.php curl 'https://restapi.imaginaits.com/inventory.php' --header 'x-auth-token: YOUR_TOKEN' POST /puttransaction.php curl --request POST 'https://restapi.imaginaits.com/puttransaction.php' \ --header 'x-auth-token: YOUR_TOKEN' --header 'Content-Type: application/json' \ --data '{"transaction_id":"REFUND-DEMO-20261029-001","amount":-2100,"user":"OPERATOR-01","terminal":"DESK-01","method":1}' HTTP 202 { "status": "ok", "api_version": "2.0", "request_id": "request-DEMO-001", "data": { "operation_id": "0123456789abcdef0123456789abcdef", "transaction_id": "TX-DEMO-20261029-001", "execution_state": "REQUESTED", "confirmed": false, "confirmation_source": null, "reported_state": null, "requested_at_utc": "2026-10-29 09:00:00.000000", "reported_at_utc": null, "cash_flow": { "received_minor": null, "returned_minor": null, "currency": null }, "requires_review": false } } HTTP 200 { "status": "ok", "api_version": "2.0", "request_id": "request-DEMO-002", "data": { "operation_id": "0123456789abcdef0123456789abcdef", "transaction_id": "TX-DEMO-20261029-001", "execution_state": "CONFIRMED_BY_IMACASH", "confirmed": true, "confirmation_source": "imacash_report", "reported_state": "CANCELLED", "requested_at_utc": "2026-10-29 09:00:00.000000", "reported_at_utc": "2026-10-29 09:00:02.000000", "cash_flow": { "received_minor": 100, "returned_minor": 100, "currency": "EUR" }, "requires_review": false } }