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

# getCardInfo

`POST /v1/Payment/getCardInfo/json`

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-transaction-gateway-unit-api.md) · [All operations](https://skmtc.dev/pay/apis/pay-transaction-gateway-unit-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pay/pay-transaction-gateway-unit-api/revisions/2bc260c7bdfc/schema)
