Download OpenAPI specification:Download
Documentation for the yetipay Pay at Counter REST API (v1).
Retrieves a list of all currently connected card terminals. Results can be filtered by currency, capabilities, and status.
| capabilities | string Restricts the response to terminals that have specific capabilities. Values should be provided as a comma-separated list. |
| currency | string Enum: "GBP" "EUR" Restricts the response to terminals configured for a specific currency. |
| status | string Enum: "AVAILABLE" "BUSY" Restricts the response to show only available or only busy terminals. |
Array of objects (Terminal) | |||||||||||
Array
| |||||||||||
{- "terminals": [
- {
- "tpi": "12345678",
- "status": "AVAILABLE",
- "currency": "GBP",
- "capabilities": [
- "SALE",
- "REFUND"
], - "location": ""
}
]
}Retrieves details for a specific terminal.
| tpi required | string Unique identifier of the terminal to use in this request. |
| capabilities | Array of strings |
| currency | string Enum: "GBP" "EUR" |
| location | string |
| status | string Enum: "AVAILABLE" "BUSY" |
| tpi | string |
{- "tpi": "12345678",
- "status": "AVAILABLE",
- "currency": "GBP",
- "capabilities": [
- "SALE",
- "REFUND"
], - "location": ""
}Initiates a transaction on the terminal identified by the given terminal identifier.
| tpi required | string Unique identifier of the terminal to use in this request. |
| transactionType required | string Enum: "SALE" "REFUND" "DUPLICATE" Type of the transaction. |
| amount | integer Base amount for the transaction (in pence). |
| currency | string Enum: "GBP" "EUR" Currency for the request. Uses the textual representation from ISO 4217. |
| location | string |
| requestId | string <uuid> |
{- "transactionType": "SALE",
- "amount": 1234,
- "currency": "GBP"
}{- "requestId": "d19912ad-11a3-4af3-86e0-d6eb2ebea63c",
- "location": ""
}Retrieves data for the transaction identified by the given requestId.
| requestId required | string Request Id (a UUID assigned to a terminal request) for the terminal request to use in this request. |
| tpi required | string Unique identifier of the terminal to use in this request. |
| amountBase | string |
| amountCashback | string |
| amountGratuity | string |
| amountTotal | string |
| applicationId | string |
| applicationLabel | string |
| authCode | string |
| cardHolderVerificationMethod | string |
| cardSchemeName | string |
| currency | string Enum: "GBP" "EUR" |
| dateOfExpiry | string |
| dateOfStart | string |
| location | string |
| notifications | Array of strings |
| paymentMethod | string |
| primaryAccountNumber | string |
| primaryAccountNumberSequence | string |
object | |
| requestId | string <uuid> |
| transactionId | string |
| transactionNumber | string |
| transactionResult | string |
| transactionTime | string |
| transactionType | string Enum: "SALE" "REFUND" "DUPLICATE" |
{- "amountBase": "100",
- "amountCashback": "30",
- "amountGratuity": "20",
- "amountTotal": "150",
- "applicationId": "A0000000031010",
- "applicationLabel": "VISA",
- "authCode": "78YT6RS0",
- "cardSchemeName": "VISA",
- "cardHolderVerificationMethod": "PIN",
- "currency": "GBP",
- "dateOfExpiry": "01/25",
- "dateOfStart": "01/19",
- "location": "",
- "notifications": [
- "TRANSACTION_FINISHED",
- "APPROVED",
- "CONNECTION_MADE",
- "CONNECTING",
- "PIN_ENTRY",
- "PLEASE_WAIT",
- "PRESENT_CARD",
- "TRANSACTION_STARTED"
], - "paymentMethod": "ICC_CHIP",
- "primaryAccountNumber": "************1234",
- "primaryAccountNumberSequence": "01",
- "receiptLines": {
- "MERCHANT": [
- {
- "format": [
- "BOLD"
], - "type": "TEXT",
- "value": "John's Shop"
}
], - "CUSTOMER": [
- {
- "format": [
- "BOLD"
], - "type": "TEXT",
- "value": "John's Shop"
}
]
}, - "requestId": "d19912ad-11a3-4af3-86e0-d6eb2ebea63c",
- "transactionId": "1234567",
- "transactionNumber": "0012",
- "transactionResult": "SUCCESSFUL",
- "transactionTime": "2019-03-04T16:12:00",
- "transactionType": "SALE"
}Attempts to cancel the transaction identified by the given requestId.
| requestId required | string Request Id (a UUID assigned to a terminal request) for the terminal request to use in this request. |
| tpi required | string Unique identifier of the terminal to use in this request. |
Initiates a report on the terminal identified by the given terminal identifier.
| tpi required | string Unique identifier of the terminal to use in this request. |
| reportType required | string Enum: "END_OF_DAY" "BANKING" "X_BALANCE" "Z_BALANCE" Type of the report. |
| location | string |
| requestId | string <uuid> |
{- "reportType": "END_OF_DAY"
}{- "requestId": "d19912ad-11a3-4af3-86e0-d6eb2ebea63c",
- "location": ""
}Retrieves data for the report identified by the given requestId.
| requestId required | string Request Id (a UUID assigned to a terminal request) for the terminal request to use in this request. |
| tpi required | string Unique identifier of the terminal to use in this request. |
object | |
object | |
| location | string |
| notifications | Array of strings |
Array of objects (ReceiptLine) | |
| reportResult | string |
| reportTime | string |
| reportType | string Enum: "END_OF_DAY" "BANKING" "X_BALANCE" "Z_BALANCE" |
| requestId | string <uuid> |
| tpi | string |
{- "balances": {
- "currency": "string",
- "issuerTotals": {
- "property1": {
- "currency": "string",
- "totalAmount": 0,
- "totalRefundsAmount": 0,
- "totalRefundsCount": 0,
- "totalSalesAmount": 0,
- "totalSalesCount": 0
}, - "property2": {
- "currency": "string",
- "totalAmount": 0,
- "totalRefundsAmount": 0,
- "totalRefundsCount": 0,
- "totalSalesAmount": 0,
- "totalSalesCount": 0
}
}, - "totalAmount": "string",
- "totalCashbackAmount": "string",
- "totalCashbackCount": "string",
- "totalGratuityAmount": "string",
- "totalGratuityCount": "string",
- "totalRefundsAmount": "string",
- "totalRefundsCount": "string",
- "totalSalesAmount": "string",
- "totalSalesCount": "string",
- "totalsSince": "string",
- "waiterTotals": {
- "property1": {
- "currency": "string",
- "totalAmount": 0,
- "totalRefundsAmount": 0,
- "totalRefundsCount": 0,
- "totalSalesAmount": 0,
- "totalSalesCount": 0
}, - "property2": {
- "currency": "string",
- "totalAmount": 0,
- "totalRefundsAmount": 0,
- "totalRefundsCount": 0,
- "totalSalesAmount": 0,
- "totalSalesCount": 0
}
}
}, - "banking": {
- "property1": {
- "currency": "string",
- "currentSessionTotals": {
- "currency": "string",
- "totalAmount": 0,
- "totalRefundsAmount": 0,
- "totalRefundsCount": 0,
- "totalSalesAmount": 0,
- "totalSalesCount": 0
}, - "previousSessionTotals": {
- "currency": "string",
- "totalAmount": 0,
- "totalRefundsAmount": 0,
- "totalRefundsCount": 0,
- "totalSalesAmount": 0,
- "totalSalesCount": 0
}, - "currentSessionIssuerTotals": {
- "property1": {
- "currency": "string",
- "totalAmount": 0,
- "totalRefundsAmount": 0,
- "totalRefundsCount": 0,
- "totalSalesAmount": 0,
- "totalSalesCount": 0
}, - "property2": {
- "currency": "string",
- "totalAmount": 0,
- "totalRefundsAmount": 0,
- "totalRefundsCount": 0,
- "totalSalesAmount": 0,
- "totalSalesCount": 0
}
}, - "previousSessionIssuerTotals": {
- "property1": {
- "currency": "string",
- "totalAmount": 0,
- "totalRefundsAmount": 0,
- "totalRefundsCount": 0,
- "totalSalesAmount": 0,
- "totalSalesCount": 0
}, - "property2": {
- "currency": "string",
- "totalAmount": 0,
- "totalRefundsAmount": 0,
- "totalRefundsCount": 0,
- "totalSalesAmount": 0,
- "totalSalesCount": 0
}
}, - "currentSessionTransactionNumbers": [
- "string"
], - "previousSessionTransactionNumbers": [
- "string"
]
}, - "property2": {
- "currency": "string",
- "currentSessionTotals": {
- "currency": "string",
- "totalAmount": 0,
- "totalRefundsAmount": 0,
- "totalRefundsCount": 0,
- "totalSalesAmount": 0,
- "totalSalesCount": 0
}, - "previousSessionTotals": {
- "currency": "string",
- "totalAmount": 0,
- "totalRefundsAmount": 0,
- "totalRefundsCount": 0,
- "totalSalesAmount": 0,
- "totalSalesCount": 0
}, - "currentSessionIssuerTotals": {
- "property1": {
- "currency": "string",
- "totalAmount": 0,
- "totalRefundsAmount": 0,
- "totalRefundsCount": 0,
- "totalSalesAmount": 0,
- "totalSalesCount": 0
}, - "property2": {
- "currency": "string",
- "totalAmount": 0,
- "totalRefundsAmount": 0,
- "totalRefundsCount": 0,
- "totalSalesAmount": 0,
- "totalSalesCount": 0
}
}, - "previousSessionIssuerTotals": {
- "property1": {
- "currency": "string",
- "totalAmount": 0,
- "totalRefundsAmount": 0,
- "totalRefundsCount": 0,
- "totalSalesAmount": 0,
- "totalSalesCount": 0
}, - "property2": {
- "currency": "string",
- "totalAmount": 0,
- "totalRefundsAmount": 0,
- "totalRefundsCount": 0,
- "totalSalesAmount": 0,
- "totalSalesCount": 0
}
}, - "currentSessionTransactionNumbers": [
- "string"
], - "previousSessionTransactionNumbers": [
- "string"
]
}
}, - "reportLines": [
- {
- "format": [
- "string"
], - "type": "string",
- "value": "string"
}
], - "reportTime": "2019-03-04T16:12:00",
- "reportType": "END_OF_DAY",
- "reportResult": "COMPLETE",
- "tpi": "string",
- "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6",
- "location": "string",
- "notifications": [
- "string"
]
}