---
title: "getCardInfo"
method: POST
path: "/v1/Payment/getCardInfo/json"
tags: ["Card Payments"]
---

# getCardInfo

`POST /v1/Payment/getCardInfo/json`

## Request

- Base URL: `https://payment.pay.nl`
- URL: `https://payment.pay.nl/v1/Payment/getCardInfo/json`
- Auth: HTTP basic

API returns the details for the given card number.
Card number can be passed on as plain text or via CSE.

## Request body

- CardInfo
  - `serviceId` Id, required (unresolved $ref)
  - `cardData` object, required
    - `method` 'cse' | 'card': Defines the method in which the card details are submitted. Choose CSE when submitting the details in `cse` format, `card` when submitting plain card data. Note: the corresponding array must be included in the request.
    - `cse` Cse
      - `data` string, required: The encrypted card details, base64 encoded. See the `card` option for the fields that should be part of the encrypted card data.
      - `identifier` string, required: ID of the public key that is used to encrypt the card details.
    - `card` object
      - `number` Number (unresolved $ref)

## Response `200`

Successful operation

- CardInfoResponse
  - `request` RequestResponse
    - `result` integer: Indicates whether the request was successfully processed (`1`) or some error has occurred (`0`).
    - `errorId` string: If the request was not successfully processed this parameter holds the ID of the error that has occurred.
    - `errorTag` string: The error tag can be used to generate an error response for the customer.
    - `errorMessage` string: Description of the error that occurred. This message is returned in the language (if available) in which the transaction is/was submitted.
  - `binInfo` object
    - `anonymous` string
    - `bankId` number
    - `brandCode` string
    - `brandName` string
    - `brandProduct` string
    - `cardType` string
    - `countryCode` string
    - `fundType` 'debit' | 'credit'
    - `scheme` string
  - `cardInfo` object
    - `tdsVersion` string
    - `luhn` number

## Other responses

- `400`: Bad request. See response for details.
- `401`: Unauthorized.
- `403`: Forbidden.
- `404`: Not found.

---

[API](https://skmtc.dev/pay/apis/pay-card-payment-api-v1-2-3.md) - [All operations](https://skmtc.dev/pay/apis/pay-card-payment-api-v1-2-3/llms.txt) - [OpenAPI document](https://skmtc.dev/pay/apis/pay-card-payment-api-v1-2-3/revisions/07c50a8d28b1?raw)
