Get Card Details
POST
/api/pay/v1/getCardDetailsUse this API to get the card details.
Requires
Bearer token. Get token →Header Parameters
| Field | Details |
|---|---|
Request-Timestampstringdate-time | ISO 8601 UTC timestamp of the request. Used for idempotency and audit. |
Request-IDstring | Use a global unique identifier [GUID] for the request. Constraints Minimum length: 1 characterMaximum length: 50 characters |
Request Bodyrequired
| Field | Details |
|---|---|
amountstring | Transaction amount in smallest currency unit. |
card_detailsCardDetailLookupItem[]required2 nested fields | An array that contains the card details. Constraints Minimum items: 1 |
Response
| Field | Details |
|---|---|
card_payment_detailsCardPaymentDetailItem[]9 nested fields | Array of card payment details matching the lookup. |
card_networkstring | Card network provider. |
card_issuerstring | Card issuing bank or institution. |
card_typestring | Type of card. |
card_categorystring | Card category. |
is_international_cardboolean | Whether the card is an international card. |
is_native_otp_supportedboolean | Whether the card supports native OTP flow. |
country_codestring | Country code of the card issuer. |
currencystring | Currency associated with the card. |
is_currency_supportedboolean | Whether the card's currency is supported for transactions. |
Status Codes
200 | Card details retrieved successfully. |
400 | The request was malformed or missing required fields. |
422 | Unprocessable entity — invalid card number format. |
500 | An unexpected error occurred on the server. |
503 | Service temporarily unavailable. |
Request
curl --request POST \
--url https://pluraluat.v2.pinepg.in/api/pay/v1/getCardDetails \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--header 'Request-ID: a1b2c3d4-e5f6-7890-abcd-ef1234567890' \
--header 'Request-Timestamp: 2024-10-01T10:30:00Z' \
--data '{
"amount": "100",
"card_details": [
{
"payment_identifier": "4012001037141112",
"payment_reference_type": "CARD"
}
]
}'{
"card_payment_details": [
{
"card_network": "VISA",
"card_issuer": "INTL HDQTRS-CENTER OWNED",
"card_type": "CREDIT",
"card_category": "NONE",
"is_international_card": false,
"is_native_otp_supported": true,
"country_code": "IND",
"currency": "INR",
"is_currency_supported": true
}
]
}