Retrieving Payment Details
GET /v1/payments/card/info/{id}
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
transactionIdof 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:
| Field | Type | Description |
|---|---|---|
transactionId | String | Unique transaction identifier. |
requestId | String | The original request ID provided when initiating the transaction. |
mid | String | Merchant ID associated with the transaction. |
transactionStatus | String | Final status of the transaction (e.g., SUCCEED, FAILED, PENDING). |
declineCode | Int | If the transaction failed, this is the decline or error code. |
cardMask | String | Masked card number (e.g., "4111********1111"). |
cardHolder | String | Cardholder name (if available). |
orderCurrency | String | Currency of the order (as provided in the request). |
processedCurrency | String | Currency in which the transaction was processed (usually same as orderCurrency). |
orderAmount | Double | The amount originally requested. |
processedAmount | Double | The amount actually processed (after currency conversion, if any). |
conversionRate | Double | The 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.
Updated 8 days ago
