Download OpenAPI specification:Download
Documentation for the yetipay Pay at Counter REST API.
Retrieves a list of all currently connected card terminals. Results can be filtered by currency and status.
| 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
| |||||||||
| userMessage | string |
| userMessage | string |
{- "terminals": [
- {
- "tid": "12345678",
- "status": "AVAILABLE",
- "currency": "GBP",
- "location": ""
}
]
}Retrieves details for a specific terminal.
| tid required | string Unique identifier of the terminal to use. |
| currency | string Enum: "GBP" "EUR" |
| location | string |
| status | string Enum: "AVAILABLE" "BUSY" |
| tid | string |
| userMessage | string |
| userMessage | string |
| userMessage | string |
{- "tid": "12345678",
- "status": "AVAILABLE",
- "currency": "GBP",
- "location": ""
}Initiates a transaction on the terminal identified by the given terminal identifier.
| tid required | string Unique identifier of the terminal to use. |
| transactionType required | string Enum: "SALE" "REFUND" "DUPLICATE" "PRE_AUTH" "COMPLETION" "ACCOUNT_VERIFICATION" Type of the transaction. |
| amount | integer [ 1 .. 99999999 ] Accepted for all transactions except duplicates. Base amount for the transaction (in pence). |
| amountCashback | integer [ 0 .. 10000 ] Only accepted for sale transactions. Amount of cashback to attempt to include in this transaction (in pence). |
| amountPreAuthorisedTotal | integer [ 1 .. 99999999 ] Required for completion transactions. Should contain the sum of all pre-auth transactions performed on a customer's card. |
| authCode | string Required for completion transactions. Should contain the authorization code of the first pre-auth transaction. |
| cardholderNotPresent | boolean Indicates whether this transaction should be completed as CNP (e.g. manual entry of card details). If set, the PDQ will skip the present card screen and immediately prompt for manual entry. |
| currency | string Enum: "GBP" "EUR" Currency for the request. Uses the textual representation from ISO 4217. |
| location | string |
| requestId | string <uuid> |
| userMessage | string |
| userMessage | string |
| userMessage | string |
{- "transactionType": "SALE",
- "amount": 100,
- "amountCashback": 50,
- "currency": "GBP",
- "cardholderNotPresent": true
}{- "requestId": "d19912ad-11a3-4af3-86e0-d6eb2ebea63c",
- "location": ""
}Retrieves data for the transaction identified by the given requestId.
| requestId required | string Id (a UUID assigned to a terminal request) for the request to use. |
| tid required | string Unique identifier of the terminal to use. |
| 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" "PRE_AUTH" "COMPLETION" "ACCOUNT_VERIFICATION" |
| userMessage | string |
| userMessage | string |
| userMessage | string |
| userMessage | string |
{- "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",
- "REPLACE_PAPER"
], - "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",
- "userMessage": "Signature check not actioned before timeout. When required, signatures must be verified within 80 seconds."
}Attempts to cancel the transaction identified by the given requestId.
| requestId required | string Id (a UUID assigned to a terminal request) for the request to use. |
| tid required | string Unique identifier of the terminal to use. |
| userMessage | string |
| userMessage | string |
| userMessage | string |
{- "userMessage": "This is an example error message. The string here should be displayed to the user."
}Initiates a report on the terminal identified by the given terminal identifier.
| tid required | string Unique identifier of the terminal to use. |
| reportType required | string Enum: "END_OF_DAY" "BANKING" "X_BALANCE" "Z_BALANCE" The type of report. |
| location | string |
| requestId | string <uuid> |
| userMessage | string |
| userMessage | string |
{- "reportType": "END_OF_DAY"
}{- "requestId": "d19912ad-11a3-4af3-86e0-d6eb2ebea63c",
- "location": ""
}Retrieves data for the report identified by the given requestId.
| requestId required | string Id (a UUID assigned to a terminal request) for the request to use. |
| tid required | string Unique identifier of the terminal to use. |
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> |
| tid | string |
| userMessage | string |
| userMessage | string |
| userMessage | 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",
- "tid": "string",
- "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6",
- "location": "string",
- "notifications": [
- "string"
]
}