{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/billdesk/main/json-schema/billdesk-bankaccount-schema.json",
  "title": "Bankaccount",
  "description": "Required when payment_method_type = bankaccount",
  "x-generated": "2026-10-14",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/billdesk-recurring-openapi.yml#/components/schemas/Bankaccount",
  "type": "object",
  "x-stoplight": {
    "id": "xz4vf44eamaja"
  },
  "properties": {
    "number": {
      "type": "string",
      "description": "Bank account number",
      "pattern": "^\\\\d{9,18}$",
      "x-stoplight": {
        "id": "gtyccqe4czccv"
      }
    },
    "type": {
      "type": "string",
      "description": "Type of the bank account, and can take the following values:\n•\tsavings\n•\tcurrent",
      "enum": [
        "savings",
        "current",
        "overdraft"
      ],
      "x-stoplight": {
        "id": "iv130qvba1z6k"
      }
    },
    "holder_name": {
      "type": "string",
      "description": "Name of the bank account holder",
      "pattern": "^[A-Za-z0-9\\\\s\\\\.'\\\\-\\\\~\\\\@\\\\_]{1,120}$",
      "x-stoplight": {
        "id": "mmbh9skvdy39x"
      }
    },
    "dest_bank_id": {
      "type": "string",
      "description": "Unique id created for the destination bank, where enach services are currently facilitated by NPCI",
      "x-stoplight": {
        "id": "xkncms4x678ni"
      }
    },
    "ifsc": {
      "type": "string",
      "description": "IFSC of the bank account number",
      "pattern": "^[A-Za-z]{4}[a-zA-Z0-9]{7}$",
      "x-stoplight": {
        "id": "oij0aiw1orzjm"
      }
    },
    "paymentaccountid": {
      "type": "string",
      "description": "Unique id created by BillDesk for the payment instrument",
      "x-stoplight": {
        "id": "bwkpaipiq7kq3"
      }
    },
    "bank_id": {
      "type": "string",
      "description": "Sponsor bank through which the mandate is created",
      "pattern": "^[A-Za-z0-9]{1,10}$",
      "x-stoplight": {
        "id": "h0jt9657rsmng"
      }
    }
  },
  "required": [
    "number",
    "type",
    "holder_name",
    "dest_bank_id"
  ]
}