Retrieving Payment Details

GET /v1/payments/card/info/{id}

This endpoint provides detailed information about a specific card transaction. Use it to retrieve all available
data for a transaction, such as the original request info, processed amounts, and masked card details.

  • {id} path parameter: The transactionId of the payment whose details you want to retrieve.

Payment Details Response Fields

The response structure for this endpoint mirrors the data sent in the webhook callback. It will include fields
such as:

FieldTypeDescription
transactionIdStringUnique transaction identifier.
requestIdStringThe original request ID provided when initiating the transaction.
midStringMerchant ID associated with the transaction.
transactionStatusStringFinal status of the transaction (e.g., SUCCEED, FAILED, PENDING).
declineCodeIntIf the transaction failed, this is the decline or error code.
cardMaskStringMasked card number (e.g., "4111********1111").
cardHolderStringCardholder name (if available).
orderCurrencyStringCurrency of the order (as provided in the request).
processedCurrencyStringCurrency in which the transaction was processed (usually same as orderCurrency).
orderAmountDoubleThe amount originally requested.
processedAmountDoubleThe amount actually processed (after currency conversion, if any).
conversionRateDoubleThe conversion rate applied if a currency conversion occurred.

Other details from the original request (such as portions of billingDetails and order ) may
also be included for reference.

Example Response:

{
"transactionId": "txn12345",
"requestId": "req67890",
"mid": "merchant001",
"transactionStatus": "SUCCEED",
"declineCode": null,
"cardMask": "411111******1111",
"cardHolder": "John Doe",
"orderCurrency": "USD",
"processedCurrency": "USD",
"orderAmount": 100.00,
"processedAmount": 100.00,
"conversionRate": 1.0,
"callbackUrl": "https://yourserver.com/callback",
"billingDetails": {
"firstName": "John",
"lastName": "Doe",
"country": "US",
"email": "[email protected]"
},
"order": {
"orderId": "order789",
"title": "Product Purchase"
},
"createdAt": "2024-01-01T12:00:00Z"
}

The above example shows a successful transaction with detailed information. Most of these fields
correspond to those in the original request or final outcome. The presence of callbackUrl indicates
where the webhook was sent, and createdAt is the timestamp of transaction creation.