{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/billdesk/main/json-schema/billdesk-pay-using-network-token-schema.json",
  "title": "Pay using network token",
  "x-generated": "2026-10-14",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/billdesk-payments-openapi.yml#/components/schemas/Pay-using-network-token",
  "type": "object",
  "x-stoplight": {
    "id": "ze1cvmk9lawl5"
  },
  "properties": {
    "network_token": {
      "type": "object",
      "required": [
        "token_value",
        "token_cryptogram",
        "token_expiry_month",
        "token_expiry_year"
      ],
      "properties": {
        "token_value": {
          "type": "string",
          "description": "Token Value – as received from TSP, provided in the ‘Detokenize’ response",
          "pattern": "^[A-Za-z0-9]{1,35}$"
        },
        "token_cryptogram": {
          "type": "string",
          "description": "Token Cryptogram – as received from TSP, provided in the ‘Detokenize’ response",
          "pattern": "^[a-zA-Z0-9\\\\/\\\\!@#\\\\$%\\\\^&\\\\*\\\\(\\\\)\\\\{\\\\}_\\\\+\\\\=\\\\|:”;’,\\\\.~`\\\\-\\\\\\\\]{1,256}$"
        },
        "token_expiry_month": {
          "type": "integer",
          "description": "Token Expiry Month – as received from TSP in the MM format"
        },
        "token_expiry_year": {
          "type": "integer",
          "description": "Token Expiry Year – as received from TSP in the YYYY format"
        }
      }
    },
    "card_end": {
      "type": "string",
      "description": "Last 4 digits of the card number \n\nNote: For an EMI transaction via network token,this attribute value is required for loan booking"
    },
    "cvv": {
      "type": "string",
      "description": "Card cvv value"
    },
    "holder_name": {
      "type": "string",
      "description": "Cardholder name",
      "pattern": "^[A-Za-z0-9\\\\\\\\s\\\\\\\\.'\\\\\\\\-\\\\\\\\~\\\\\\\\@\\\\\\\\_]{1,120}$"
    }
  },
  "required": [
    "network_token",
    "card_end"
  ]
}