Get Card Details

POST/api/pay/v1/getCardDetails

Use this API to get the card details.

Requires Bearer token. Get token →

Request Body

NameTypeDescription
amount
string

Transaction amount in smallest currency unit.

card_details
CardDetailLookupItem[]required

An array that contains the card details.

payment_identifier
stringrequired

Card Number.

  • Minimum length: 12 characters.
  • Maximum length: 19 characters.
  • Supported characters: 0-9
payment_reference_type
CARD | ALT_TOKEN_TXN | NETWORK_TOKEN_TXN | ISSUER_TOKEN_TXNrequired

Type of payment method you want to use to accept a payment.

CARDALT_TOKEN_TXNNETWORK_TOKEN_TXNISSUER_TOKEN_TXN

Response

NameTypeDescription
card_payment_details
CardPaymentDetailItem[]

Array of card payment details matching the lookup.

card_network
string

Card network provider.

card_issuer
string

Card issuing bank or institution.

card_type
string

Type of card.

card_category
string

Card category.

is_international_card
boolean

Whether the card is an international card.

is_native_otp_supported
boolean

Whether the card supports native OTP flow.

country_code
string

Country code of the card issuer.

currency
string

Currency associated with the card.

is_currency_supported
boolean

Whether the card's currency is supported for transactions.

Status Codes

200Card details retrieved successfully.
400
422Unprocessable entity — invalid card number format.
500
503Service 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' \
  --data '{
  "amount": "100",
  "card_details": [
    {
      "payment_identifier": "4012001037141112",
      "payment_reference_type": "CARD"
    }
  ]
}'

Run this request

200 OK
{
  "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
    }
  ]
}
New chat
Responses are generated using AI and may contain mistakes.
Hi! I'm Pine, your AI developer assistant. Ask me anything about Pine Labs APIs, integrations, or troubleshooting.

Tip: you can create a new chat with + E