---
updatedAt: 2025-06-18T12:39:16.000Z
agentTools:
  projectIndex: https://developer.pay.nl/llms.txt
---

# getCardInfo

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

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "PAY. Card Payment API - v1.2.3",
    "termsOfService": "https://www.pay.nl/algemene-voorwaarden",
    "contact": {
      "email": "support@pay.nl"
    },
    "version": "1.2"
  },
  "servers": [
    {
      "url": "https://payment.pay.nl/"
    }
  ],
  "paths": {
    "/v1/Payment/getCardInfo/json": {
      "post": {
        "tags": [
          "Card Payments"
        ],
        "summary": "getCardInfo",
        "description": "API returns the details for the given card number.\nCard number can be passed on as plain text or via CSE.",
        "operationId": "6bf1c1978ceadffdda65a50f03af790c",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CardInfo"
              },
              "examples": {
                "CardInfoCard": {
                  "$ref": "#/components/examples/CardInfoCard"
                },
                "CardInfoCSE": {
                  "$ref": "#/components/examples/CardInfoCSE"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful operation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CardInfoResponse"
                },
                "examples": {
                  "CardInfoResponse": {
                    "$ref": "#/components/examples/CardInfoResponse"
                  },
                  "CardInfoUnsupportedCardResponse": {
                    "$ref": "#/components/examples/CardInfoUnsupportedCardResponse"
                  },
                  "InvalidServiceId": {
                    "$ref": "#/components/examples/InvalidServiceId"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. See response for details."
          },
          "401": {
            "description": "Unauthorized."
          },
          "403": {
            "description": "Forbidden."
          },
          "404": {
            "description": "Not found."
          }
        },
        "security": [
          {
            "basicAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "CardInfo": {
        "required": [
          "serviceId",
          "cardData"
        ],
        "properties": {
          "serviceId": {
            "$ref": "#/components/schemas/Service/properties/id"
          },
          "cardData": {
            "properties": {
              "method": {
                "description": "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.",
                "type": "string",
                "default": "card",
                "enum": [
                  "cse",
                  "card"
                ],
                "example": "card"
              },
              "cse": {
                "$ref": "#/components/schemas/Cse"
              },
              "card": {
                "properties": {
                  "number": {
                    "$ref": "#/components/schemas/Card/properties/number"
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "CardInfoResponse": {
        "title": "Successfully completed transaction",
        "properties": {
          "request": {
            "$ref": "#/components/schemas/RequestResponse"
          },
          "binInfo": {
            "properties": {
              "anonymous": {
                "description": "",
                "type": "string",
                "example": ""
              },
              "bankId": {
                "description": "",
                "type": "number",
                "example": ""
              },
              "brandCode": {
                "description": "",
                "type": "string",
                "example": ""
              },
              "brandName": {
                "description": "",
                "type": "string",
                "example": ""
              },
              "brandProduct": {
                "description": "",
                "type": "string",
                "example": ""
              },
              "cardType": {
                "description": "",
                "type": "string",
                "example": ""
              },
              "countryCode": {
                "description": "",
                "type": "string",
                "example": ""
              },
              "fundType": {
                "description": "",
                "type": "string",
                "enum": [
                  "debit",
                  "credit"
                ],
                "example": ""
              },
              "scheme": {
                "description": "",
                "type": "string",
                "example": ""
              }
            },
            "type": "object"
          },
          "cardInfo": {
            "properties": {
              "tdsVersion": {
                "description": "",
                "type": "string",
                "example": ""
              },
              "luhn": {
                "description": "",
                "type": "number",
                "example": ""
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "RequestResponse": {
        "properties": {
          "result": {
            "description": "Indicates whether the request was successfully processed (`1`) or some error has occurred (`0`).",
            "type": "integer"
          },
          "errorId": {
            "description": "If the request was not successfully processed this parameter holds the ID of the error that has occurred. ",
            "type": "string"
          },
          "errorTag": {
            "description": "The error tag can be used to generate an error response for the customer.",
            "type": "string"
          },
          "errorMessage": {
            "description": "Description of the error that occurred. This message is returned in the language (if available) in which the transaction is/was submitted.",
            "type": "string"
          }
        },
        "type": "object",
        "example": [
          {
            "result": 1,
            "errorId": "",
            "errorTag": "",
            "errorMessage": ""
          },
          {
            "result": 0,
            "errorId": "PAY-2011",
            "errorTag": "invalidRequest",
            "errorMessage": "Invalid request; amount is missing in payload or value is not accepted. Amount must be a positive integer."
          }
        ]
      },
      "Card": {
        "required": [
          "number",
          "expire_month",
          "expire_year",
          "name"
        ],
        "properties": {
          "number": {
            "description": "The customer's card number",
            "type": "string",
            "example": "4200000000000001"
          },
          "expire_month": {
            "description": "Expire month of the card in MM format (2 digits).",
            "type": "string",
            "example": "02"
          },
          "expire_year": {
            "description": "Year the card expires in YY format (2 digits).",
            "type": "string",
            "example": "06"
          },
          "cvc": {
            "description": "Card verification code / safekey code of the card used",
            "type": "string",
            "example": "111"
          },
          "name": {
            "description": "The name of the customer as printed on his/her card",
            "type": "string",
            "example": "R. van der Werf"
          }
        },
        "type": "object"
      },
      "Cse": {
        "required": [
          "data",
          "identifier"
        ],
        "properties": {
          "data": {
            "description": "The encrypted card details, base64 encoded. See the `card` option for the fields that should be part of the encrypted card data.",
            "type": "string",
            "example": "TG9yZW0lMjBpcHN1bSUyMGRvbG9yJTIwc2l0JTIwYW1ldCwlMjBjb25zZWN0ZXR1ciUyMGFkaXBpc2NpbmclMjBlbGl0Lg=="
          },
          "identifier": {
            "description": "ID of the public key that is used to encrypt the card details.",
            "type": "string",
            "example": "68D761BBE5FF9593EDAE76143846D3D2ABA03143BDEA12761F5E50F7A8D19B8A"
          }
        },
        "type": "object"
      },
      "Service": {
        "properties": {
          "id": {
            "description": "The service id of your service starting with SL.",
            "type": "string",
            "example": "SL-1234-5678"
          }
        },
        "type": "object"
      }
    },
    "examples": {
      "CardInfoCard": {
        "summary": "Plain card data",
        "value": {
          "serviceId": "SL-1234-5678",
          "cardData": {
            "method": "card",
            "card": {
              "number": "4200000000000001"
            }
          }
        }
      },
      "CardInfoCSE": {
        "summary": "CSE data",
        "value": {
          "serviceId": "SL-1234-5678",
          "cardData": {
            "method": "cse",
            "cse": {
              "data": "TG9yZW0lMjBpcHN1bSUyMGRvbG9yJTIwc2l0JTIwYW1ldCwlMjBjb25zZWN0ZXR1ciUyMGFkaXBpc2NpbmclMjBlbGl0Lg==",
              "identifier": "68D761BBE5FF9593EDAE76143846D3D2ABA03143BDEA12761F5E50F7A8D19B8A"
            }
          }
        }
      },
      "CardInfoResponse": {
        "summary": "Successful card info response",
        "value": {
          "request": {
            "result": "1",
            "errorId": "",
            "errorTag": "",
            "errorMessage": ""
          },
          "binInfo": {
            "anonymous": "U",
            "bankId": "416598",
            "brandCode": "I",
            "brandName": "Visa Infinite",
            "brandProduct": "CN",
            "cardType": "consumer",
            "countryCode": "528",
            "fundType": "debit",
            "scheme": "VISA"
          },
          "cardInfo": {
            "tdsVersion": "2.1.0",
            "luhn": "1"
          }
        }
      },
      "CardInfoUnsupportedCardResponse": {
        "summary": "Error unsupported card",
        "value": {
          "request": {
            "result": "0",
            "errorId": "PAY-2804",
            "errorTag": "invalidCardNumber",
            "errorMessage": "Invalid card number provided"
          }
        }
      },
      "InvalidServiceId": {
        "summary": "ERROR - Invalid service ID",
        "value": {
          "request": {
            "result": "0",
            "errorId": "PAY-2009",
            "errorTag": "invalidRequest",
            "errorMessage": "Invalid request; serviceId is missing or is not valid."
          }
        }
      }
    },
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "tags": [
    {
      "name": "Card Payments"
    }
  ],
  "externalDocs": {
    "description": "Official PAY. documentation",
    "url": "https://docs.pay.nl"
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```