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

# Card Type Lookup

`POST /v4/card_type`

> ❗️ Never Use Real API Keys
>
> Never use real API Keys when testing. The gateway allows Partners to create Test Merchant Accounts. Testing should always use keys from the Test Accounts and never keys from a Standard Account.
<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/embedded-components-api.md) · [All operations](https://skmtc.dev/nmi/apis/embedded-components-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nmi/embedded-components-api/revisions/45c2ecda3685/schema)
