---
updatedAt: 2025-09-17T23:33:14.000Z
agentTools:
  projectIndex: https://docs.nexiopay.com/llms.txt
---

# View card types

Returns an array listing all possible card types for transactions in Nexio.

See also the [Card type (cardType)](doc:constant-transaction-values#card-type-cardtype) section of "Constant transaction values" in Guides.

<!-- theme: info -->
> 📘 Note
> 
> It is not possible to use this endpoint to see the possible card types that your merchant account can accept. That is dependent on the [connections](doc:connections) that you have for your account. 
> 

<!-- theme: warning -->
> ⚠️ Try It
> 
> To use the Try It feature for this endpoint, you must use the credentials for your [Sandbox API user](doc:sandbox-environments).


<div style="display:none;">

## Response parameters
- id
- name

</div>

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Reporting API Reference",
    "version": "3.0.0",
    "description": "View and create reports about transactions, decline recovery, and chargebacks.\n\nFor information about querying the transaction endpoints, see [Finding a transaction](doc:finding-a-transaction) in Guides.",
    "contact": {
      "name": "Integrations Support",
      "email": "integrations@nexiopay.com",
      "url": "https://nexiointegrations.slack.com/"
    },
    "license": {
      "name": "ISC",
      "url": "https://docs.nexiopay.com/page/license"
    }
  },
  "security": [
    {
      "Basic_Authentication": []
    },
    {
      "One-time-use_Token": []
    }
  ],
  "servers": [
    {
      "description": "Sandbox",
      "url": "https://api.nexiopaysandbox.com",
      "variables": {}
    }
  ],
  "components": {
    "securitySchemes": {
      "Basic_Authentication": {
        "type": "http",
        "scheme": "basic",
        "description": "Basic authentication is a simple authentication scheme built into the HTTP protocol. \n\nFor the \"Try It\" feature, type your API username and password in the appropriate fields. The system then automatically creates the Authorization header that contains the word `Basic` followed by a space and a base64-encoded string `username:password`. \n\nFor example: `Authorization: Basic ZGVtbzpwQDU1dzByZA==` \n\nFor your own requests, learn how to do the conversion in the [Authentication](doc:authentication#basic-authentication) guide. \n\nFor more information about this security protocol, see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#basic-authentication-sample"
      },
      "One-time-use_Token": {
        "type": "apiKey",
        "name": "token",
        "in": "query",
        "description": "The one-time-use token authentication scheme requires a token supplied in the named query parameter that can only be used to submit a single API request and that expires after one hour. \n\nFor the \"Try It\" feature, first generate the one-time-use token through either the [Create one-time-use token](ref:createonetimeusetoken) or the [Create APM one-time-use token](ref:createapmonetimeusetoken) endpoint. Copy the resulting token and then paste it in the appropriate field for the current endpoint. \n\nFor your own requests, learn how to generate the one-time-use token in the [Authentication](doc:authentication#one-time-use-tokens) guide. Then, use it as normal for this endpoint. \n\nFor more information about the \"apiKeys\" security protocol, see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#security-scheme-object"
      }
    },
    "responses": {
      "401": {
        "description": "Unauthorized.\n\nFor help with this error and other error codes, see [Common errors](doc:common-errors) in the Guides area.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "message": {
                  "type": "string",
                  "description": "A message from Nexio about the state of the request",
                  "example": "Unauthorized"
                }
              }
            }
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "Transactions",
      "description": "APIs for transactions"
    }
  ],
  "paths": {
    "/transaction/v3/paymentTypes": {
      "get": {
        "description": "Returns an array listing all possible card types for transactions in Nexio.\n\nSee also the [Card type (cardType)](doc:constant-transaction-values#card-type-cardtype) section of \"Constant transaction values\" in Guides.\n\n<!-- theme: info -->\n> 📘 Note\n> \n> It is not possible to use this endpoint to see the possible card types that your merchant account can accept. That is dependent on the [connections](doc:connections) that you have for your account. \n> \n\n<!-- theme: warning -->\n> ⚠️ Try It\n> \n> To use the Try It feature for this endpoint, you must use the credentials for your [Sandbox API user](doc:sandbox-environments).\n\n\n<div style=\"display:none;\">\n\n## Response parameters\n- id\n- name\n\n</div>",
        "operationId": "ViewCardTypes",
        "tags": [
          "Transactions"
        ],
        "security": [
          {
            "Basic_Authentication": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "integer",
                        "example": 10,
                        "description": "The ID of the card type.\r\n\r\nFor possible IDs, see the [Card type (cardType)](doc:constant-transaction-values#card-type-cardtype) section of \"Constant transaction values\" in Guides."
                      },
                      "name": {
                        "type": "string",
                        "example": "visa",
                        "description": "The name associated with the card type. \r\n\r\nFor possible values, see the [Card type (cardType)](doc:constant-transaction-values#card-type-cardtype) section of \"Constant transaction values\" in Guides."
                      }
                    }
                  }
                },
                "examples": {
                  "Example response": {
                    "value": [
                      {
                        "id": 10,
                        "name": "visa"
                      },
                      {
                        "id": 20,
                        "name": "mastercard"
                      },
                      {
                        "id": 30,
                        "name": "discover"
                      },
                      {
                        "id": 40,
                        "name": "amex"
                      },
                      {
                        "id": 50,
                        "name": "jcb"
                      }
                    ]
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          }
        },
        "summary": "View card types"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```