This endpoint is for fetching Pay Requests.
The Pay Request response
When the provided payRequestId
does not match a Pay Request stored in the system.
curl -i -X GET \ 'https://api.tyro.com/connect/pay/requests/{payRequestId}' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{- "id": "string",
- "paySecret": "string",
- "locationId": "string",
- "provider": {
- "name": "TYRO",
- "method": "CARD"
}, - "origin": {
- "orderId": "string",
- "orderReference": "string",
- "name": "string"
}, - "payMethod": {
- "id": "string",
- "customerId": "string",
- "save": true
}, - "capture": {
- "method": "AUTOMATIC",
- "total": {
- "amount": 12520,
- "currency": "AUD"
}
}, - "status": "AWAITING_PAYMENT_INPUT",
- "supportedNetworks": [
- "visa"
], - "total": {
- "amount": 12520,
- "currency": "AUD"
}, - "transactionResults": [
- {
- "merchant": "string",
- "authentication": {
- "accessControlServerEci": "string",
- "accessControlServerTransactionId": "string",
- "acceptVersions": "string",
- "amount": "string",
- "additionalInfo": "string",
- "authenticationToken": "string",
- "3dsServerTransactionId": "string",
- "channel": "string",
- "directoryServerId": "string",
- "directoryServerTransactionId": "string",
- "method": "string",
- "methodCompleted": "string",
- "methodSupported": "SUPPORTED",
- "payerInteraction": "string",
- "protocolVersion": "string",
- "redirectedDomainName": "string",
- "requestorId": "string",
- "requestorName": "string",
- "statusReasonCode": "string",
- "transactionId": "string",
- "transactionStatus": "YES",
- "time": "string",
- "version": "string"
}, - "order": {
- "id": "string",
- "status": "string",
- "currency": "string",
- "reference": "string",
- "amount": 0,
- "authorisedAmount": 0,
- "capturedAmount": 0,
- "refundedAmount": 0,
- "merchantCurrency": "string",
- "merchantAmount": 0,
- "createdAt": "string",
- "updatedAt": "string"
}, - "card": {
- "brand": "string",
- "scheme": "string",
- "expiry": {
- "month": "string",
- "year": "string"
}, - "nameOnCard": "string",
- "number": "string",
- "fundingMethod": "string"
}, - "operationResult": {
- "result": "FAILURE",
- "acquirerCode": "string",
- "gatewayCode": "string",
- "errorCode": "string",
- "errorMessage": "string"
}, - "transaction": {
- "id": "string",
- "type": "string",
- "amount": 0,
- "currency": "string",
- "retrievalReferenceNumber": "string",
- "acquirer": {
- "id": "string",
- "merchantId": "string",
- "additionalResponse": "string"
}
}
}
], - "threeDSecureDetails": {
- "status": "AWAITING_3DS_METHOD"
}
}