---
title: "Card Type Lookup"
method: POST
path: "/v4/card_type"
tags: ["Processors and Services"]
---

# Card Type Lookup

`POST /v4/card_type`

## Request

- Base URL: `https://sandbox.nmi.com/api`
- URL: `https://sandbox.nmi.com/api/v4/card_type`
- Auth: none required

<summary>Usage</summary>
This endpoint will return whether the card is a `debit`, `credit`, or `charge` card. A card may return `unknown` if we can't recognize the card type provided. Or it may return `unavailable` if the service is offline.

## Headers

- `Content-Type` string, required
- `Authorization` string, required

## Request body

- CardTypeLookupRequest
  - `ccnumber` '510840' | '543267' | '453978' | '454634' | '341382', required: Credit card Issuer Identification Number (IIN). <details> <summary>Allowed Card Numbers:</summary> | Card Type | Test Card IIN | |:-------------------------|:--------------| | Mastercard Debit | 510840 | | Mastercard Credit | 543267 | | Visa Debit | 453978 | | Visa Credit | 454634 | | American Express Unknown | 341382 | </details>

## Response `200`

Success

- CardTypeLookupResponse
  - `result` 'debit' | 'credit' | 'prepaid' | 'charge' | 'deferred_debit': The card type associated with the credit card IIN sent in the request. Will return `unknown` if type can't be determined or `unavailable` if the service is offline.

---

[API](https://skmtc.dev/nmi/apis/payments-api.md) - [All operations](https://skmtc.dev/nmi/apis/payments-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nmi/apis/payments-api/revisions/c03727f27e27?raw)
