{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/citi/json-schema/citi-fi-cancellation-request-schema.json",
  "title": "fi_cancellation_request",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/citi-payments-api-openapi.yml#/components/schemas/fi_cancellation_request",
  "type": "object",
  "properties": {
    "uetr": {
      "type": "string",
      "format": "uuid",
      "description": "Unique End-to-end Transaction Reference (UETR) relating to a payment has been identified as being associated with a Request for Cancellation. It should follow UUID version 4 format. UETR or citi_reference with interbank_settlement_date or end_to_end_id / instruction_id with interbank_settlement_date is mandatory.",
      "minLength": 1,
      "maxLength": 32
    },
    "citi_reference": {
      "type": "string",
      "description": "This parameter specifies the product processor reference number for the transaction that needs to be cancelled or recalled. UETR or citi_reference with interbank_settlement_date or end_to_end_id / instruction_id with interbank_settlement_date is mandatory.",
      "maxLength": 32
    },
    "end_to_end_id": {
      "type": "string",
      "description": "This is a unique end-to-end reference number that identifies a transaction that needs to be cancelled. UETR or citi_reference with interbank_settlement_date or end_to_end_id / instruction_id with interbank_settlement_date is mandatory.",
      "maxLength": 16
    },
    "instruction_id": {
      "type": "string",
      "description": "This is a unique end-to-end instruction id that identifies a transaction that needs to be cancelled. UETR or citi_reference with interbank_settlement_date or end_to_end_id / instruction_id with interbank_settlement_date is mandatory.",
      "maxLength": 16
    },
    "interbank_settlement_date": {
      "type": "string",
      "description": "This parameter specifies the value date (yyyy-MM-dd) of the original transaction that needs to be cancelled or recalled (the date on which funds were credited to the account).",
      "format": "date"
    },
    "reason": {
      "type": "string",
      "description": "This is the four digits cancellation code (Example - DUPL) which is specified by the customer to request to cancel the transaction.",
      "maxLength": 4
    },
    "reason_description": {
      "type": "string",
      "description": "Further details on the request reason. Required for CUST and MS03 reason codes applicable to Stop services.",
      "maxLength": 150
    }
  },
  "required": [
    "reason"
  ]
}