Get transaction details by card token and transaction ID (deprecated)
GET /api/transaction/{cardToken}{transactionId}
Use this call to get details of a transaction where {cardToken}
is the card token ID and where {transactionId}
is the transaction identifier. A sample request and response is below.
Path parameters
Parameter | Description |
---|---|
cardToken string | Token for the signed-up debit card. Required |
transactionRequestId GUID | Unique customer generated transaction request ID. This parameter corresponds to the TransacationRequestId in the response.Required |
Sample request
curl --location --request GET
'https://pushtopaystaging.crbnj.net/api/transaction/1XA580I8W75UW5TF5TWZ11MVL1MH1QIVSNG3MO/113-135155-548934-21939'
--header 'Accept: text/html'
--header 'Authorization: Bearer {xxx}'
Response attributes
Attribute | Description |
---|---|
transactionRequestId string | This attribute corresponds to the TransacationRequestId in the request. |
amount integer | Transaction amount in cents. |
transactionRequestedAt string | Date and time the transaction was requested. |
transactionStatus string | Status of the transaction: - Succeeded - Pending - Failed - Rejected |
errorDescription string | Description of any error that might have occurred. |
creditCardId string | Token for the signed-up debit card. |
railId string | The processor used to perform the transaction. - RS2 - McSend - TabaPay |
network string | Card network. - Visa - Mastercard - ET - PULSE - STAR - NYCE - Accel - RPPS - MoneySend |
retrievalReferenceId GUID | Unique tracking number for this transaction in the processors. |
actualTransactionDoneAt string | Actual time the transaction was sent to the processor. |
paymentSent boolean | True if the payment was sent, otherwise false. |
requestApproved boolean | True if the payment passed all the way to the processor successfully, otherwise false. |
responseReceived boolean | True if P2C received a response from the external processor, otherwise false. |
responseCode string | An ISO 8583 two-digit code signifying the transaction result. For example, 00 means successful. |
responseDescription string | An ISO 8583 string description of the transaction result. For example, Approved. |
traceNumber string | Unique number that is assigned to a transaction when it leaves the merchant bank until it arrives at the cardholder bank. |
error string | Descriptive error, if relevant. |
transactionRequestBatchId string | If a request is part of a batch, this ID shows. |
sourceSenderName string | Merchant name. |
*sourceMcc string | Merchant Category Code (MCC). 4-digits that a credit card issuer uses to categorize consumer transactions for their card. |
Sample response
{
"transactionRequestId":"7B8L8BCC-223B-H5X2-9X39-6EDBE6J3D731070",
"cardToken":"CF5TWZ11MVL1MH1QIVSNG3MO",
"amount":1000,
"transactionRequestedAt":"2022-01-03T09:57:03.020Z",
"transactionStatus":"Pending",
"errorDescription":"null",
"creditCardId":"string",
"railId":"RS2",
"network":"string",
"retrievalReferenceId":"string",
"actualTransactionDoneAt":"2021-01-03T09:57:03.020Z",
"paymentSent":true,
"responseReceived":true,
"responseCode":"00",
"responseDescription":"successful",
"traceNumber":"8BE5A0DC-4LYA-4AB5-9C49-6E9BE63BY4S1",
"error":"null",
"transactionRequestBatchId":"null",
"sourceSenderName":"Cooks"
}
Updated 6 months ago