> ## Documentation Index
> Fetch the complete documentation index at: https://docs.defendis.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Payment Cards



## OpenAPI

````yaml /openapi.json get /api/v1/dataleaks/paymentcards/bins
openapi: 3.0.3
info:
  title: Defendis API
  version: 2.0.0
  description: >
    Defendis API for external customer integrations.


    This API exposes security intelligence and watchlist-driven workflows across
    Dataleaks, Exposure, Ransomware, and Watchlists.

    All versioned customer endpoints are served under `/api/v1`.
servers:
  - url: https://api.defendis.ai
security: []
tags:
  - name: Health
  - name: Dataleaks
  - name: Watchlists
  - name: Assets watchlist
  - name: BINs watchlist
  - name: Domains watchlist
  - name: Executives watchlist
  - name: Keywords watchlist
  - name: Ransom watchlist
  - name: Ransomware
  - name: Exposure
  - name: Surface
paths:
  /api/v1/dataleaks/paymentcards/bins:
    get:
      tags:
        - Dataleaks
      summary: Payment Cards
      parameters:
        - name: bin
          in: query
          required: true
          schema:
            type: string
        - name: page
          in: query
          required: false
          schema:
            type: integer
      responses:
        '200':
          description: Payment cards response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataleaksPaymentCardsBinsResponse'
        '400':
          description: Missing required query parameter
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Access denied for requested BIN
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    DataleaksPaymentCardsBinsResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/DataleaksPaymentCardBinItem'
        paging:
          $ref: '#/components/schemas/PagingResponse'
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
      required:
        - error
    DataleaksPaymentCardBinItem:
      type: object
      description: Payment card record returned to API consumers.
      properties:
        cardid:
          type: string
        userid:
          type: string
        nameoncard:
          type: string
          nullable: true
        cardnumber:
          type: string
          nullable: true
          description: Masked card number showing first 8 and last 4 digits.
        expirydate:
          type: string
          nullable: true
        bank_name:
          type: string
          nullable: true
          description: Issuing bank name for the card BIN.
        brand:
          type: string
          nullable: true
        type:
          type: string
          nullable: true
        level:
          type: string
          nullable: true
        currency:
          type: string
          nullable: true
        countrycode:
          type: string
          nullable: true
        created_at:
          type: string
          nullable: true
          format: date-time
        user:
          type: object
          nullable: true
          additionalProperties: true
      required:
        - cardid
        - userid
        - cardnumber
        - expirydate
        - bank_name
      additionalProperties: true
    PagingResponse:
      type: object
      properties:
        hasMore:
          type: boolean
        nextPage:
          type: integer
          nullable: true
        pageSize:
          type: integer
      required:
        - hasMore
        - nextPage
        - pageSize
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: APIKey
      description: 'Required for all /api/v1 endpoints. Use Authorization: Bearer <api_key>'

````