Download OpenAPI specification:
A collection of REST endpoints to perform transactional and reporting operations with Tora. All endpoints are accessed through a secure HTTPS channel. Required TLS version is 1.2 or newer.
Create a topup sale
| TORA-Terminal-Id | integer Unique identifier for the device which makes the request. |
| TORA-Idempotency-Key | string The API supports idempotency for safely retrying requests without accidentally performing the same operation twice. This is useful when an API call is disrupted in transit and you do not receive a response. |
| productCode required | string Unique identifier for the product. |
| reference | string A merchant specific reference, i.e. Order Number. |
| confirm | boolean Default: true Indicator for two step payment. If confirm = false, then capture or void request must follow. |
object (TopUpSaleRequest_paysafecard) |
{- "productCode": "VO12",
- "reference": "topup-1234567",
- "confirm": true,
- "paysafecard": {
- "shopId": "110300123",
- "terminalId": "terminalidtest"
}
}{- "id": "178345642",
- "amount": 1200,
- "pinCode": "4569123498763210",
- "serialNumber": "",
- "expirationDate": "2020-07-21T17:32:28Z",
- "advertisingText": ""
}[- {
- "providerCode": "vo",
- "providerName": "Vodafone",
- "products": [
- {
- "productCode": "vo12",
- "name": "Vodafone 12",
- "barcode": "5204555214058",
- "media": [
- {
- "type": "BARCODE",
- "content": "Qk0OAgAAAAAAAD4AAAAoAAAAcAAAAB0AAAABAAEAAAAAANABAADEDgAAxA4AAAAAAAAAAAAAAAAAAP///wD//////////////////wAAz+Hn758+f8Pv3z58//8AAKf32+9OnT/v797dun7/AAD3+9uH79+/9+8O3b9/HwAAh/nbjw4cP/PvHtw4f58AAJ6t288+fPrbz57dueo/AADGocPvjx46w8/eHDxr/wAA/r//////+v//////6/8AAP62WMU6dGqTMoxq9iv/AAD+tljFOnRqkzKMavYr/wAA/rZYxTp0apMyjGr2K/8AAP62WMU6dGqTMoxq9iv/AAD+tljFOnRqkzKMavYr/wAA/rZYxTp0apMyjGr2K/8AAP62WMU6dGqTMoxq9iv/AAD+tljFOnRqkzKMavYr/wAA/rZYxTp0apMyjGr2K/8AAP62WMU6dGqTMoxq9iv/AAD+tljFOnRqkzKMavYr/wAA/rZYxTp0apMyjGr2K/8AAP62WMU6dGqTMoxq9iv/AAD+tljFOnRqkzKMavYr/wAA/rZYxTp0apMyjGr2K/8AAP62WMU6dGqTMoxq9iv/AAD+tljFOnRqkzKMavYr/wAA/rZYxTp0apMyjGr2K/8AAP62WMU6dGqTMoxq9iv/AAD+tljFOnRqkzKMavYr/wAA/rZYxTp0apMyjGr2K/8AAA==",
- "mediaType": "image/bmp"
}
]
}
], - "media": [
- {
- "type": "LOGO",
- "content": "Qk1SAQAAAAAAAD4AAAAoAAAARAAAABcAAAABAAEAAAAAABQBAAATCwAAEwsAAAAAAAAAAAAAAAAAAP///wD///////////AAAAD///////////AAAAD///////////AAAADwPgeBB+BAAPAAAADwPgeBB8BAAHAAAADwHAOBB8BAABAAAADwHAOBB4BAABAAAADwDAOBB4BA+AAAAADgCAOBBwBA/AAAAADgCAOBBgBA/gAAAADgCAGBBghA/gAAAADBAAGBhBhA/gAAAADBAECBhBhA/gAAAACBAECBgDhA/AAAAACBgGCBgHhA/AAAAACDgOCBgHhA4AAAAACDwPABgPhAABAAAACD4fABgfhAADAAAAAH//ABgfhAAHAAAAAH//hBh/jgB/AAAAD///////////AAAAD///////////AAAAD///////////AAAAA=",
- "mediaType": "image/bmp"
}
]
}
]Retrieve bill payment details
| paymentCode required | string Example: 0001231415436457 |
| TORA-Terminal-Id | integer Unique identifier for the device which makes the request. |
[- {
- "productCode": "EYDAP",
- "productName": "ΕΥΔΑΠ",
- "commission": "100",
- "zeroAmountAllowed": false,
- "partialAmountAllowed": true,
- "higherAmountAllowed": true,
- "options": [
- {
- "key": "expiry_date",
- "required": true,
- "type": "DATE",
- "header": "Ημερομηνία λήξης",
- "message": "Εισάγετε την ημερομηνία λήξης του λογαριασμού όπως αναγράφεται στο έντυπο"
}, - {
- "key": "subscriber_nr",
- "required": true,
- "type": "TEXT",
- "header": "Αρ. Μετρητή",
- "message": "Εισάγετε τον Αριθμό Μετρητή"
}
]
}
]Create bill payment
| TORA-Idempotency-Key | string The API supports idempotency for safely retrying requests without accidentally performing the same operation twice. This is useful when an API call is disrupted in transit and you do not receive a response. |
| TORA-Terminal-Id | integer Unique identifier for the device which makes the request. |
| productCode required | string |
| paymentCode required | string |
| paymentAmount required | integer |
| phone required | string |
| reference | string |
| confirm | boolean Default: true Indicator for two step payment. If confirm = false, then capture or void request must follow. |
Array of objects (CreatePaymentRequest_options) |
{- "productCode": "EYDAP",
- "paymentCode": "201700110372307171",
- "paymentAmount": 5000,
- "phone": "2101234567",
- "reference": "payment-123542356",
- "confirm": true,
- "options": [
- {
- "key": "expiry_date",
- "value": "2018-01-12"
}, - {
- "key": "subscriber_nr",
- "value": "1720271"
}
]
}{- "id": "178693397",
- "paymentCode": "201700110372307171",
- "totalAmount": 5100,
- "paymentAmount": 5000,
- "commission": 100,
- "reference": "payment-123542356",
- "media": [
- {
- "type": "LOGO",
- "content": "Qk1SAQAAAAAAAD4AAAAoAAAARAAAABcAAAABAAEAAAAAABQBAAATCwAAEwsAAAAAAAAAAAAAAAAAAP///wD///////////AAAAD///////////AAAAD///////////AAAADwPgeBB+BAAPAAAADwPgeBB8BAAHAAAADwHAOBB8BAABAAAADwHAOBB4BAABAAAADwDAOBB4BA+AAAAADgCAOBBwBA/AAAAADgCAOBBgBA/gAAAADgCAGBBghA/gAAAADBAAGBhBhA/gAAAADBAECBhBhA/gAAAACBAECBgDhA/AAAAACBgGCBgHhA/AAAAACDgOCBgHhA4AAAAACDwPABgPhAABAAAACD4fABgfhAADAAAAAH//ABgfhAAHAAAAAH//hBh/jgB/AAAAD///////////AAAAD///////////AAAAD///////////AAAAA=",
- "mediaType": "image/bmp"
}
]
}Register an e-laiko ticket request
| TORA-Terminal-Id | integer Unique identifier for the device which makes the request. |
| TORA-Idempotency-Key | string The API supports idempotency for safely retrying requests without accidentally performing the same operation twice. This is useful when an API call is disrupted in transit and you do not receive a response. |
| productCode required | string |
| mobile required | string Customer's mobile phone number to receive the OTP |
| ending | integer [ 0 .. 9 ] Customer picks the ending digit of the ticket. Can be combined with 'thousand' |
| thousand | integer [ 0 .. 80 ] Customer picks the starting thousand of the ticket. Can be combined with 'ending' |
| oddOrEven | string or null Enum: "ODD" "EVEN" Customer picks if ticket's ending digit will be Odd or Even. Cannot be combined with 'thousand' or 'ending' |
{- "productCode": "HL01",
- "mobile": "6988888888",
- "ending": 9,
- "thousand": 80,
- "oddOrEven": "ODD"
}{- "requestId": "string"
}Issue an e-laiko ticket
| TORA-Idempotency-Key | string The API supports idempotency for safely retrying requests without accidentally performing the same operation twice. This is useful when an API call is disrupted in transit and you do not receive a response. |
| requestId required | string The requestId received from a successful POST /elaiko/requests API call response |
| otp required | string One-time-passcode received on customer's mobile phone |
{- "requestId": "string",
- "otp": "092345"
}{- "id": "178345642",
- "amount": 1000,
- "ticketNumber": "string",
- "ticketRow": "string",
- "barcodes": [
- "00032440320204845056213311745200305",
- "00259522560000025006417987883337932",
- "04026531870012803328120705740028905",
- "00000031680000200056337426918620924",
- "16609443841809842200122464545141997"
], - "barcodeCost": 200,
- "drawId": 1,
- "drawDate": "2019-08-24",
- "drawType": "ΚΑΛΟΚΑΙΡΙΝΗ",
- "drawPayment": "2019-08-24"
}New reclamation request
| TORA-Idempotency-Key | string The API supports idempotency for safely retrying requests without accidentally performing the same operation twice. This is useful when an API call is disrupted in transit and you do not receive a response. |
| transactionId required | string The id of the Transaction for which a cancellation is requested. |
| reason | string The reason of the Cancellation Request. |
{- "transactionId": "12345678",
- "reason": "Receipt not printed"
}{- "id": 342526,
- "transactionId": "17831415",
- "status": "pending",
- "totalAmount": 14412
}Get transaction list
| from | string <date-time> |
| to | string <date-time> |
| type | string Enum: "BP" "TOPUP" "ELAIKO" |
| mid | string The merchant id |
| terminalId | integer |
| status | string Enum: "captured" "canceled" |
| cancelFrom | string <date-time> |
| cancelTo | string <date-time> |
| reference | string |
| page | integer |
| limit | integer [ 10 .. 100 ] Default: 10 |
[- {
- "id": "string",
- "terminalId": 0,
- "type": "BP",
- "product": {
- "code": "string",
- "name": "string"
}, - "amount": 0,
- "status": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "canceledAt": "2019-08-24T14:15:22Z",
- "reference": "string"
}
]Get transaction details
| id required | string |
{- "id": "string",
- "terminalId": 0,
- "type": "BP",
- "product": {
- "code": "string",
- "name": "string"
}, - "amount": 0,
- "status": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "canceledAt": "2019-08-24T14:15:22Z",
- "reference": "string",
- "details": {
- "paymentCode": "string",
- "paymentAmount": 0,
- "commission": 0,
- "phone": "string",
- "extTransId": "string"
}
}Start a reporting file process
| type | string Enum: "transactions" "actions" |
| from | string <date-time> |
| to | string <date-time> |
| transType | string Enum: "BP" "TOPUP" |
| mid | string |
| terminalId | integer |
| status | string Value: "" |
| cancelFrom | string <date-time> |
| cancelTo | string <date-time> |
| format | string Default: "csv" Enum: "csv" "excel" "txt" "pdf" |
{- "type": "transactions",
- "from": "2019-08-24T14:15:22Z",
- "to": "2019-08-24T14:15:22Z",
- "transType": "BP",
- "mid": "string",
- "terminalId": 0,
- "status": "",
- "cancelFrom": "2019-08-24T14:15:22Z",
- "cancelTo": "2019-08-24T14:15:22Z",
- "format": "csv"
}{- "id": "AxlUp3bNDDQK40thmAKmzRTo",
- "type": "TRANSACTIONS",
- "filename": "206941-TRANSACTIONS_AxlUp3bNDDQK40thmAKmzRTo.csv",
- "status": "pending"
}Get reporting file details
| id required | string |
{- "id": "AxlUp3bNDDQK40thmAKmzRTo",
- "type": "TRANSACTIONS",
- "filename": "206941-TRANSACTIONS_AxlUp3bNDDQK40thmAKmzRTo.csv",
- "status": "pending"
}