# Get card basic info

> Query basic status information for a card.

```yaml
openapi: 3.1.0
info:
  title: Get card basic info
  version: 1.0.0
  description: Query basic status information for a card.
paths:
  /api/v1/merchant/card/getBasicInfo:
    post:
      summary: Get card basic info
      description: Query basic status information for a card.
      parameters:
        - name: ApiKey
          in: header
          required: true
          description: Issuing API key request header assigned by Onerway.
          schema:
            type: string
            description: Issuing API key request header assigned by Onerway.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                cardId:
                  type: integer
                  description: Card ID.
              required:
                - cardId
            examples:
              default:
                summary: Get card basic info
                value:
                  cardId: 100001
      responses:
        "200":
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  respCode:
                    type: string
                    description: Business response code. `20000` means success.
                  respMsg:
                    type: string
                    description: Response message.
                  data:
                    type:
                      - object
                      - "null"
                    properties:
                      cardId:
                        type: integer
                        description: Card ID.
                      cardholderId:
                        type: integer
                        description: Cardholder ID.
                      productId:
                        type: integer
                        description: Card product ID.
                      status:
                        type: string
                        description: Card status.
                        enum:
                          - PROCESSING
                          - INFO_REQUIRED
                          - FAILED
                          - ACTIVE
                          - FREEZING
                          - FROZEN
                          - SYSTEM_FROZEN
                          - SYSTEM_FREEZING
                          - UNFREEZING
                          - SYSTEM_UNFREEZING
                          - TERMINATING
                          - TERMINATED
                          - EXPIRED
                        x-enum-descriptions:
                          PROCESSING: Card creation is processing.
                          INFO_REQUIRED: Additional information is required.
                          FAILED: Card creation failed.
                          ACTIVE: Card is active.
                          FREEZING: Card freeze is processing.
                          FROZEN: Card is frozen.
                          SYSTEM_FROZEN: Card is frozen by the system.
                          SYSTEM_FREEZING: System card freeze is processing.
                          UNFREEZING: Card unfreeze is processing.
                          SYSTEM_UNFREEZING: System card unfreeze is processing.
                          TERMINATING: Card termination is pending.
                          TERMINATED: Card has been terminated.
                          EXPIRED: Card has expired.
                      blockedFlag:
                        type: boolean
                        description: Whether the card is blocked.
                    description: Card basic information.
                    x-onerway-value:
                      nullable: true
                      when:
                        en: Returned as `null` when the query fails.
                        zh: 查询失败时返回 `null`。
              examples:
                success:
                  summary: Success
                  value:
                    respCode: "20000"
                    respMsg: success
                    data:
                      cardId: 100001
                      cardholderId: 300001
                      productId: 1
                      status: ACTIVE
                      blockedFlag: false
```
