{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/citi/json-schema/citi-refunds-response-schema.json",
  "title": "Refunds-Response",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/citi-refunds-api-openapi.yml#/components/schemas/Refunds-Response",
  "type": "array",
  "items": {
    "$ref": "#/$defs/Payment-Refund-Notification"
  },
  "$defs": {
    "Acquirer-Refund-Response": {
      "title": "Acquirer Refund Response",
      "type": "object",
      "description": "Acquirer",
      "properties": {
        "transaction_id": {
          "description": "Identifier used by the acquirer to identify the transaction This identifier may be used by the acquirer in settlement reports.",
          "maxLength": 40,
          "minLength": 1,
          "type": "string",
          "title": "transaction_id"
        },
        "batch": {
          "description": "The processor's identifier for the settlement batch Provided only if the transaction was settled by batch.",
          "maxLength": 2147483647,
          "minLength": 1,
          "type": "string",
          "title": "batch"
        },
        "date": {
          "description": "The date the transaction was processed, as returned by the acquirer Not returned by most acquirers",
          "maxLength": 4000,
          "minLength": 1,
          "type": "string",
          "title": "date"
        },
        "id": {
          "description": "The ID for the acquirer used to process the transaction",
          "maxLength": 40,
          "minLength": 1,
          "type": "string",
          "title": "id"
        },
        "settlement_date": {
          "type": "string",
          "format": "date",
          "description": "The date the acquirer expects the funds to be transferred to (in the case of payments) or from (in the case of refunds) the merchant's account The date is defined in the acquirer's time zone (see transaction.acquirer.timeZone).",
          "title": "settlement_date"
        },
        "time_zone": {
          "type": "string",
          "format": "date-time",
          "description": "GMT (ISO 8601 YYYY-MM-DDTHH:MM:SS.sssZ)",
          "title": "time_zone"
        }
      }
    },
    "Authorization-Refund-Response": {
      "title": "Authorization Refund Response",
      "description": "Authorization Response",
      "properties": {
        "stan": {
          "description": "The System Trace Audit Number is assigned by a transaction originator to assist in identifying a Card Transaction.The trace number remains unchanged for the life of the Card Transaction.",
          "maxLength": 6,
          "minLength": 1,
          "type": "string",
          "title": "stan"
        },
        "merchant_advice_code": {
          "description": "This parameter contains data returned by the issuer or card network to clearly communicate to merchants the reason for declining a MasterCard or Visa transaction Merchants can use this information to determine the best action to take.",
          "maxLength": 2,
          "minLength": 1,
          "type": "string",
          "title": "merchant_advice_code"
        },
        "pos_entry_mode": {
          "description": "The POS Entry Mode provided to Discover (JCB (US Domestic only), and Diners) for the authorization",
          "maxLength": 4,
          "minLength": 1,
          "type": "string",
          "title": "pos_entry_mode"
        },
        "return_aci": {
          "description": "The ACI (Authorization Characteristics Indicator) returned by the issuer",
          "maxLength": 1,
          "minLength": 1,
          "type": "string",
          "title": "return_aci"
        },
        "avscode": {
          "description": "The acquirer AVS response code generated by the card issuing institution",
          "maxLength": 100,
          "minLength": 1,
          "type": "string",
          "title": "avscode"
        },
        "commercial_card_indicator": {
          "description": "Indicates the type of commercial card as returned by the card issuer",
          "maxLength": 1,
          "minLength": 1,
          "type": "string",
          "title": "commercial_card_indicator"
        },
        "date": {
          "type": "string",
          "description": "The local date, in MMDD format, on which the transaction occurred. \n- Format MMDD",
          "title": "date"
        },
        "financial_network_code": {
          "description": "Indicates the code of the financial network that was used to process the transaction with the issuer.",
          "maxLength": 3,
          "minLength": 1,
          "type": "string",
          "title": "financial_network_code"
        },
        "financial_network_date": {
          "type": "string",
          "format": "date",
          "description": "The date for the Authorization as returned by the scheme. \n- Format YYYY-MM-DD",
          "title": "financial_network_date"
        },
        "pos_data": {
          "description": "Indicates the code of the financial network that was used to process the transaction with the issuer.",
          "maxLength": 13,
          "minLength": 1,
          "type": "string",
          "title": "pos_data"
        },
        "processing_code": {
          "description": "Identifies the type of Card Transaction sent to Card Acceptor.",
          "maxLength": 6,
          "minLength": 1,
          "type": "string",
          "title": "processing_code"
        },
        "response_code": {
          "description": "The response code which indicates the status of the transaction.",
          "maxLength": 3,
          "minLength": 1,
          "type": "string",
          "title": "response_code"
        },
        "time": {
          "type": "string",
          "format": "date-time",
          "description": "GMT (ISO 8601 YYYY-MM-DDTHH:MM:SS.sssZ) \n- Instant Payment (Credit) - Date time, either provided by the debtor bank or generated by Citi's transaction processing application, when a transaction was created \n- For US RFP this parameter is mandatory",
          "title": "time"
        },
        "transaction_identifier": {
          "description": "The unique identifier for the transaction returned by the issuer.",
          "maxLength": 30,
          "minLength": 1,
          "type": "string",
          "title": "transaction_identifier"
        }
      }
    },
    "Card-Refund-Response": {
      "title": "card",
      "description": "Card Method Response",
      "properties": {
        "brand": {
          "description": "The brand name used to describe the card that is recognized and accepted globally. For many major card types this will match the scheme name. In some markets, a card may also be co-branded with a local brand that is recognized and accepted within its country/region of origin (see card.localBrand).You may use this information to support surcharging decisions. This information is gathered from 3rd party sources and may not be accurate in all circumstances. \n- For Card transaction, card.brand parameter is mandatory",
          "enum": [
            "AMEX",
            "CHINA_UNIONPA",
            "DINERS_CLUB",
            "DISCOVER",
            "JCB",
            "LOCAL_BRAND_ONLY",
            "MAESTRO",
            "MASTERCARD",
            "RUPAY",
            "UATP",
            "UNKNOWN",
            "VISA"
          ],
          "type": "string",
          "title": "brand"
        },
        "scheme": {
          "description": "The organization that owns a card brand and defines operating regulations for its use. The card scheme also controls authorization and settlement of card transactions among issuers and acquirers. \n- For Card transaction, card.scheme parameter is mandatory",
          "enum": [
            "AMEX",
            "CHINA_UNIONPA",
            "DINERS_CLUB",
            "DISCOVER",
            "JCB",
            "LOCAL_BRAND_ONLY",
            "MAESTRO",
            "MASTERCARD",
            "RUPAY",
            "UATP",
            "UNKNOWN",
            "VISA"
          ],
          "type": "string",
          "title": "scheme"
        },
        "funding_method": {
          "description": "The method used by the payer to provide the funds for the payment.You may use this information to support surcharging decisions. This information is gathered from 3rd party sources and may not be accurate in all circumstances. \n- For Card transaction, card.funding_method parameter is mandatory",
          "enum": [
            "CHARGE",
            "CREDIT",
            "DEBIT",
            "UNKNOWN"
          ],
          "type": "string",
          "title": "funding_method"
        },
        "stored_on_file": {
          "description": "This parameter only applies if you collect card details from your payer, store them, and either you or your payer use the stored credentials for subsequent payments.",
          "enum": [
            "NOT_STORED",
            "STORED",
            "TO_BE_STORED"
          ],
          "type": "string",
          "title": "stored_on_file"
        }
      }
    },
    "Original-Payment": {
      "type": "object",
      "title": "Original payment",
      "description": "Either populate UETR OR (end_to_end_id AND value_date) for the refund to be processed",
      "properties": {
        "id": {
          "description": "The original payment transaction identification",
          "maxLength": 128,
          "minLength": 1,
          "type": "string",
          "title": "id"
        },
        "uetr": {
          "type": "string",
          "pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}$",
          "description": "UUID v4 format unique end-to-end transaction reference. \n- This parameter is mandatory for ACH Return & Reversal.",
          "title": "uetr"
        },
        "value_date": {
          "type": "string",
          "format": "date",
          "description": "Format YYYY-MM-DD Date in local time zone (e.g., EST for a United States RTP network transaction) when Citi's transaction processing application starts processing a transaction",
          "title": "value_date"
        },
        "amount": {
          "type": "number",
          "minimum": 0.01,
          "maximum": 1000000000000000000,
          "description": "Instructed amount \n - Thailand PromptPay - Maximum amount is 2000000.00 \n - United States - Maximum amount is 1000000.00",
          "title": "amount"
        },
        "currency_code": {
          "description": "ISO 4217 code for the transaction instructed amount currency",
          "type": "string",
          "enum": [
            "INR",
            "USD",
            "BRL",
            "GBP"
          ],
          "title": "currency_code"
        }
      }
    },
    "Payment-Refund-Notification": {
      "type": "object",
      "title": "Payment Refund Notification",
      "required": [
        "method",
        "transaction"
      ],
      "properties": {
        "method": {
          "$ref": "#/$defs/Refund-Method-Status"
        },
        "transaction": {
          "$ref": "#/$defs/Refund-Transaction-Status"
        },
        "order": {
          "$ref": "#/$defs/Refund-Order-Status"
        },
        "original_payment": {
          "$ref": "#/$defs/Original-Payment"
        },
        "customer": {
          "$ref": "#/$defs/Refund-Customer-Status"
        },
        "merchant": {
          "$ref": "#/$defs/Refund-Merchant-Status"
        }
      }
    },
    "Refund-Customer-Status": {
      "type": "object",
      "title": "Customer",
      "properties": {
        "name": {
          "description": "Customer name \n- This parameter is optional for US ACH Return and Reversal",
          "maxLength": 140,
          "minLength": 1,
          "type": "string",
          "title": "name"
        },
        "organization_id": {
          "description": "Customer Organization Id/ Legal Entity as provided at the time of payment request \n- This parameter is optional for US ACH Return and Reversal",
          "maxLength": 35,
          "minLength": 1,
          "type": "string",
          "title": "organization_id"
        },
        "account": {
          "title": "refund customer account",
          "description": "Account Details",
          "properties": {
            "bank_id": {
              "maxLength": 35,
              "minLength": 1,
              "type": "string",
              "description": "Customer bank's network identification \n- This parameter is optional for US ACH Return and Reversal",
              "title": "bank_id"
            }
          }
        }
      }
    },
    "Refund-Merchant-Status": {
      "type": "object",
      "title": "Merchant",
      "properties": {
        "account": {
          "title": "refund merchant account",
          "description": "Account Details",
          "properties": {
            "bank_id": {
              "maxLength": 35,
              "minLength": 1,
              "type": "string",
              "description": "Merchant bank's network identification \n- This parameter is optional for US ACH Return and Reversal",
              "title": "bank_id"
            },
            "name": {
              "maxLength": 70,
              "minLength": 1,
              "type": "string",
              "description": "Merchant's Account Name \n- This parameter is optional for US ACH Return and Reversal",
              "title": "name"
            },
            "virtual_number": {
              "maxLength": 40,
              "minLength": 1,
              "type": "string",
              "description": "Customer's virtual account number \n- This parameter is optional for US ACH Return and Reversal",
              "title": "number"
            }
          }
        },
        "organization_id": {
          "description": "Merchant Organization Id",
          "maxLength": 35,
          "minLength": 1,
          "type": "string",
          "title": "organization_id"
        },
        "name": {
          "maxLength": 140,
          "minLength": 1,
          "type": "string",
          "description": "Merchant Name",
          "title": "name"
        }
      }
    },
    "Refund-Method-Status": {
      "title": "Method",
      "type": "object",
      "required": [
        "type"
      ],
      "properties": {
        "type": {
          "description": "Method specified by the customer for the transaction \n- Provide PIX for brazil QR creation \n- Provide CARD for CARD transactions \n- Provide UPI for India UPI transactions \n- Provide FPS for UK transactions \n- Provide PAYPAL for PAYPAL transactions \n- Provide ACH for US Return & Reversal \n- Provide GOOGLEPAY for GOOGLEPAY transactions \n- Provide APPLEPAY for APPLEPAY transactions",
          "type": "string",
          "enum": [
            "PIX",
            "CARD",
            "UPI",
            "FPS",
            "ACH",
            "PAYPAL",
            "GOOGLEPAY",
            "APPLEPAY",
            "AFTERPAY",
            "AMAZON_PAY",
            "BITPAY",
            "BIZUM",
            "ALIPAY",
            "TRUSTLY",
            "BLIK",
            "BLIK_BNPL",
            "CASH_APP",
            "DOKU_WALLET",
            "EPS",
            "ESTONIAN_BANKS",
            "VERKKOPANKKI",
            "FLOAPAY",
            "FPX",
            "GOPAY",
            "IDEAL",
            "INDOMARET",
            "INDONESIAN_BANKS",
            "JENIUS_PAY",
            "KREDIVO",
            "LATVIAN_BANKS",
            "LINK_AJA",
            "LITHUANIAN_BANKS",
            "MBWAY",
            "MULTIBANCO",
            "OVO_WALLET",
            "PAYSAFECARD",
            "P24",
            "SATISPAY",
            "SCALAPAY",
            "SKRILL",
            "SWISH",
            "THAIBANKS",
            "TWINT",
            "WERO",
            "ZIP",
            "BANCOMATPAY",
            "DRAGONPAY",
            "MYBANK",
            "ALFAMART",
            "PAYU",
            "BANCONTACT",
            "STABLECOINS",
            "OXXO_PAY"
          ],
          "title": "type"
        },
        "card": {
          "$ref": "#/$defs/Card-Refund-Response"
        },
        "ach": {
          "title": "refund-ach",
          "type": "object",
          "description": "ACH pay operation",
          "properties": {
            "sec_code": {
              "description": "Identifies the Standard Entry Class (SEC) code to be sent to the issuer. \n- This parameter is optional for ACH Return & Reversal.",
              "minLength": 1,
              "maxLength": 3,
              "type": "string",
              "title": "sec_code"
            }
          }
        }
      }
    },
    "Refund-Order-Status": {
      "title": "Order",
      "properties": {
        "id": {
          "description": "A unique identifier for this order to distinguish it from any other order you create. \n- For Card transaction, order.id parameter is mandatory",
          "maxLength": 40,
          "minLength": 1,
          "type": "string",
          "title": "id"
        },
        "creation_date_time": {
          "type": "string",
          "format": "date-time",
          "description": "GMT (ISO 8601 YYYY-MM-DDTHH:MM:SS.sssZ) \n- Instant Payment (Debit) - Date time, generated by CitiConnect API, when CitiConnect API accepted a payment initiation after validation \n- For Card transaction, order.creation_date_time parameter is mandatory",
          "title": "creation_date_time"
        },
        "update_time": {
          "type": "string",
          "format": "date-time",
          "description": "Indicates the date and time the gateway considers the order to have last been updated GMT (ISO 8601 YYYY-MM-DDTHH:MM:SS.sssZ) \n- For Card transaction, order.update_time parameter is mandatory",
          "title": "update_time"
        },
        "amount": {
          "description": "The total amount for the order. \n- For Card transaction, order.amount parameter is mandatory",
          "maximum": 1000000000000000000,
          "minimum": 0.01,
          "type": "number",
          "title": "amount"
        },
        "currency_code": {
          "description": "ISO 4217 Currency Code for instance  USD/GBP/EUR \n- For Card transaction, order.currency_code parameter is mandatory",
          "enum": [
            "USD",
            "INR"
          ],
          "type": "string",
          "title": "currency_code"
        },
        "merchant_amount": {
          "description": "The total amount for the order in order.merchantCurrency units. \n- For Card transaction, order.merchant_amount parameter is mandatory",
          "maximum": 1000000000000000000,
          "minimum": 0.01,
          "type": "number",
          "title": "merchant_amount"
        },
        "merchant_currency": {
          "description": " The currency in which you priced your inventory for this order, expressed as an ISO 4217 alpha codeISO 4217 Currency Code for instance  USD/GBP/EUR \n- order.merchant_currency parameter is mandatory for all transaction type creation \n- For Card transaction, order.merchant_currency parameter is mandatory",
          "enum": [
            "USD",
            "INR"
          ],
          "type": "string",
          "title": "merchant_currency"
        },
        "reference": {
          "description": "An optional identifier for the orderFor example, a shopping cart number, an order number, or an invoice number.",
          "maxLength": 200,
          "minLength": 1,
          "type": "string",
          "title": "reference"
        },
        "refund_order_id": {
          "description": "Refund order ID",
          "maxLength": 200,
          "minLength": 1,
          "type": "string",
          "title": "refund_order_id"
        },
        "status": {
          "type": "string",
          "maxLength": 30,
          "description": "Order Status, following status you will receive in response \n- AUTHENTICATED - The payer was successfully authenticated. \n- AUTHENTICATION_INITIATED - Payer authentication has been initiated but not completed. \n- AUTHENTICATION_NOT_NEEDED - Payer authentication was not performed as it was not needed. \n- AUTHENTICATION_UNSUCCESSFUL - Payer authentication was not able to be successfully completed. \n- AUTHORIZED - The payment has been authorized successfully but the authorized amount has not yet been captured, in part, full, or excess. \n- CANCELLED - The initial transaction for this order has been voided successfully. \n- CAPTURED - The authorized amount for this order, in full or excess, has been captured successfully. \n- CHARGEBACK_PROCESSED - A Chargeback has been processed against this order. \n- DISPUTED - The payment has been disputed and is under investigation. A request for information has been received or a chargeback is pending. \n- EXCESSIVELY_REFUNDED - The payment has been captured in part, full, or excess, but the captured amount in excess has been refunded successfully. \n- FAILED - The payment has not been successful. \n- FUNDING - The order transfers money to or from the merchant, without the involvement of a payer. For example, recording monthly merchant service fees from the payment service provider. \n- INITIATED - A browser payment that has successfully been initiated for this order. No payment has yet been made. \n- PARTIALLY_CAPTURED - The authorized amount for this order, in part, has been captured successfully. \n- PARTIALLY_REFUNDED - The payment has been captured in part, full, or excess, but the captured amount in part has been refunded successfully. \n- REFUNDED - The payment has been captured in part, full, or excess, but the captured amount in full has been refunded successfully. \n- REFUND_REQUESTED - A refund against captured amounts on this order has been requested but not executed. Requires further action to approve the refund. \n- VERIFIED - The card details for this order have successfully been verified. No payment has yet been initiated or made. \n- DISBURSED - The order amount has successfully been disbursed to the payer.",
          "title": "status"
        },
        "total_auth_amount": {
          "description": "The amount that has been successfully authorized for this order. \n- For Card transaction, order.total_auth_amount parameter is mandatory",
          "maximum": 1000000000000000000,
          "minimum": 0.01,
          "type": "number",
          "title": "total_auth_amount"
        },
        "total_captured_amount": {
          "description": "The amount that has been successfully captured for this order. \n- For Card transaction, order.total_captured_amount parameter is mandatory",
          "maximum": 1000000000000000000,
          "minimum": 0.01,
          "type": "number",
          "title": "total_captured_amount"
        },
        "total_refunded_amount": {
          "description": "The amount that has been successfully captured for this order. \n- For Card transaction, order.total_refunded_amount parameter is mandatory",
          "maximum": 1000000000000000000,
          "minimum": 0.01,
          "type": "number",
          "title": "total_refunded_amount"
        }
      }
    },
    "Refund-Transaction-Status": {
      "title": "Transaction",
      "required": [
        "id",
        "country_code"
      ],
      "properties": {
        "id": {
          "maxLength": 128,
          "minLength": 1,
          "type": "string",
          "description": "Unique Transaction identification provided by the merchant during transaction refund creation. \n- This parameter is mandatory for all payment type.",
          "title": "id"
        },
        "amount": {
          "description": "Transaction amount \n - For Brazil QR Creation decimal values are mandatory for transaction.amount and it must have 2 digits \n - For Brazil QR Creation maxmium amount limit is 9999999999.99 and transaction.amount parameter is mandatory \n- For Card transaction, transaction.amount parameter is mandatory and allowed max 2 decimal after dot. \n- This parameter is optional for ACH Return & Reversal.",
          "maximum": 1000000000000000000,
          "minimum": 0.01,
          "type": "number",
          "title": "amount"
        },
        "reason_code": {
          "description": "Transaction rejection Code.\n- This parameter is optional for ACH Return & Reversal.",
          "maxLength": 100,
          "minLength": 1,
          "type": "string",
          "title": "reason_code"
        },
        "uetr": {
          "type": "string",
          "pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}$",
          "description": "UUID v4 format unique end-to-end transaction reference",
          "title": "uetr"
        },
        "value_date": {
          "type": "string",
          "format": "date",
          "description": "Date in local time zone (e.g., EST for a United States RTP network transaction) when Citi's transaction processing application starts processing a transaction in format YYYY-MM-DD. \n- This parameter is optional for ACH Return & Reversal.",
          "title": "value_date"
        },
        "currency_code": {
          "description": "ISO 4217 Currency Code for instance  USD/GBP/EUR/INR \n- transaction.currency_code parameter is mandatory for all transaction type creation",
          "enum": [
            "BRL",
            "USD",
            "INR",
            "GBP",
            "EUR",
            "CAD",
            "HKD",
            "AUD",
            "SGD",
            "DKK",
            "NOK",
            "SEK",
            "PLN",
            "IDR",
            "MYR",
            "THB",
            "CHF",
            "PHP",
            "CZK"
          ],
          "type": "string",
          "title": "currency_code"
        },
        "country_code": {
          "description": "Country code \n- For ACH Return & Reversal, this parameter is mandatory.",
          "enum": [
            "US",
            "BR",
            "IN",
            "GB",
            "TH",
            "AU",
            "CA",
            "MX",
            "DE",
            "NL",
            "IE",
            "IT",
            "FR",
            "ES",
            "HK",
            "SG",
            "NZ",
            "DK",
            "NO",
            "SE",
            "SW",
            "BE",
            "FI",
            "CH",
            "CZ",
            "AT",
            "PT"
          ],
          "type": "string",
          "title": "country_code"
        },
        "reason": {
          "description": "Cancellation/adjustment reason. \n- This parameter is optional for ACH Return & Reversal.",
          "maxLength": 140,
          "minLength": 1,
          "type": "string",
          "title": "reason"
        },
        "psp_reference": {
          "type": "string",
          "maxLength": 36,
          "minLength": 1,
          "description": "Payment session id",
          "title": "psp_reference"
        },
        "retrieval_reference_number": {
          "description": "When a transaction registration succeeds, the value of this parameter contains the 44-digit number that was used to create the bar code on the Boleto slip. This bar code can then be scanned by the vendor if a payer elects to pay Boleto at a registered location.",
          "maxLength": 100,
          "minLength": 1,
          "type": "string",
          "title": "retrieval_reference_number"
        },
        "network_id": {
          "description": "Transaction identification generated by the network (clearing)",
          "maxLength": 128,
          "minLength": 1,
          "type": "string",
          "title": "network_id"
        },
        "creation_date_time": {
          "description": "GMT (ISO 8601 YYYY-MM-DDTHH:MM:SS.sssZ)- Instant Payment (Debit) - Date time, generated by CitiConnect API, when CitiConnect API accepted a payment initiation after validation \n- Instant Payment (Credit) - Date time, either provided by the debtor bank or generated by Citi's transaction processing application, when a transaction was created \n- For ACH Return & Reversal, this parameter is optional (only for enquiry & intermediary notification).",
          "type": "string",
          "format": "date-time",
          "title": "creation_date_time"
        },
        "status": {
          "type": "string",
          "maxLength": 20,
          "description": "Transaction Status, following status you will receive in response \n- CREATED - The transaction has successfully been created \n- FAILED - Transaction failed for invalid payload/ Transaction failed \n- SETTLED - Transaction settled \n- PENDING - The operation is currently in progress or pending processing/ Transaction is in-progress \n- SUCCESS - The operation was successfully processed \n- UNKNOWN - The result of the operation is unknown",
          "title": "status"
        },
        "description": {
          "type": "string",
          "maxLength": 200,
          "description": "Transaction Status, following status you will receive in response \n- FAILED - Transaction failed for invalid payload/ Transaction failed \n- PENDING - The operation is currently in progress or pending processing/ Transaction is in-progress \n- SETTLED - Transaction settled \n- SUCCESS - The operation was successfully processed (e.g., \n- AM03 -Method instructed currency is invalid (not in ISO 4217 format or value) \n- AM02 -Instructed amount is not ≥ 0.01 & ≤ 2,000,000.00.\n- AC02 -Debtor account is invalid \n- CH03 -Value date is in the future \n- CH04 -Value date is in the past \n- CH20 -Value-added tax (VAT) amount format is invalid \n- CH21 -Bill identification 1 is mandatory for a bill payment,Bill identification 2 and 3 are conditional for a bill payment \n- BE23 -Creditor mobile number (proxy identification) format is invalid \n- NARR -Creditor name maximum length is 50 )",
          "title": "description"
        },
        "status_date_time": {
          "type": "string",
          "format": "date-time",
          "description": "GMT (ISO 8601 YYYY-MM-DDTHH:MM:SS.sssZ) \n- Date time of transaction status \n- This parameter is optional for ACH Return & Reversal.",
          "title": "status_date_time"
        },
        "refund_type": {
          "type": "string",
          "description": "Refund Status P - Partial Refund F - Full Refund",
          "enum": [
            "P",
            "F"
          ],
          "title": "refund_type"
        },
        "authorization_response": {
          "$ref": "#/$defs/Authorization-Refund-Response"
        },
        "acquirer": {
          "$ref": "#/$defs/Acquirer-Refund-Response"
        },
        "response": {
          "$ref": "#/$defs/Response"
        },
        "acquirer_code": {
          "description": "Indicates success or failure of the transaction registration. A value of 0 (zero) indicates success, and a value of 99 indicates failure.",
          "maxLength": 100,
          "minLength": 1,
          "type": "string",
          "title": "acquirer_code"
        },
        "reference": {
          "description": "An optional identifier for this transaction \n- This parameter is optional for ACH Return & Reversal.",
          "maxLength": 250,
          "minLength": 1,
          "type": "string",
          "title": "reference"
        },
        "terminal": {
          "description": "Identifier used by the acquirer to identify the transaction. This identifier may be used by the acquirer in settlement reports.",
          "maxLength": 16,
          "minLength": 1,
          "type": "string",
          "title": "terminal"
        },
        "update_time": {
          "type": "string",
          "format": "date-time",
          "description": "Indicates the date and time the gateway considers the order to have last been updated GMT (ISO 8601 YYYY-MM-DDTHH:MM:SS.sssZ)",
          "title": "update_time"
        },
        "acquirer_message": {
          "description": "An additional message indicating the success or failure of the transaction registration. If the registration was successful, this parameter contains the value Data Received. If the registration failed, this parameter contains the value Data Not Received.",
          "maxLength": 255,
          "minLength": 1,
          "type": "string",
          "title": "acquirer_message"
        },
        "refund_authorization": {
          "description": "This parameter is used to indicate that you want the gateway to authorize the Refund with the issuer before submitting it to the acquirer. \n - The transaction.refund_authorization parameter is optional for Card transaction.",
          "enum": [
            "Y",
            "N"
          ],
          "type": "string",
          "title": "refund_authorization"
        },
        "clearing_local_code": {
          "maxLength": 4,
          "minLength": 1,
          "type": "string",
          "description": "Reason local Clearing codes (e.g.0000,0080,0081,0082,0083,0084,1100 and etc.).Additional status code received from the local clearing which does not follow ISO standards but will on some occasions provide additional insights. Codes will vary by country and will be published on our developer portal \n- For UK it is an optional parameter with max length 4 \n- For US FedNow, it is an optional parameter with max length 4 \n- refer to FPS Error Code excel file for complete list of response codes and descriptions. \n- This parameter is optional for ACH Return and Reversal.",
          "title": "clearing_local_code"
        },
        "rrn": {
          "maxLength": 100,
          "minLength": 1,
          "type": "string",
          "description": "A unique reference generated by the acquirer for a specific merchant interaction The reference may be used when contacting the acquirer about a specific transaction",
          "title": "rrn"
        },
        "stan": {
          "maxLength": 999999,
          "minLength": 1,
          "type": "string",
          "description": "The System Trace Audit Number (STAN) for the transaction The STAN is a unique trace number assigned by the gateway to identify the transaction message sent to the acquirer. It remains unchanged for the life of the transaction.",
          "title": "stan"
        },
        "authorization_code": {
          "maxLength": 100,
          "minLength": 1,
          "type": "string",
          "description": "Value generated by the issuing bank in response to a proposal to transfer funds",
          "title": "authorization_code"
        },
        "source": {
          "description": "Indicates the channel through which you received authorization for the payment for this order from the payer. \n- CALL_CENTRE Transaction conducted via a call centre. \n- CARD_PRESENT Transaction where the card is presented to the merchant. \n- INTERNET Transaction conducted over the Internet. \n- MAIL_ORDER Transaction received by mail. \n- MERCHANT Transaction initiated by you based on an agreement with the payer. For example, a recurring payment, installment payment, or account top-up. \n- MOTO Transaction received by mail or telephone. \n- PAYER_PRESENT Transaction where a non-card payment method is presented to the Merchant. \n- TELEPHONE_ORDER Transaction received by telephone.\n- VOICE_RESPONSE Transaction conducted by a voice/DTMF recognition system.",
          "enum": [
            "CALL_CENTRE",
            "CARD_PRESENT",
            "INTERNET",
            "MAIL_ORDER",
            "MERCHANT",
            "MOTO",
            "PAYER_PRESENT",
            "TELEPHONE_ORDER",
            "VOICE_RESPONSE"
          ],
          "type": "string",
          "title": "source"
        },
        "debit_credit_flag": {
          "type": "string",
          "enum": [
            "CR",
            "DR"
          ],
          "description": "Indicates if transaction is debit or credit \n- This parameter is optional for ACH Return & Reversal.",
          "title": "debit_credit_flag"
        },
        "action": {
          "description": "Indicates if this request is for Return or Reversal \n- This parameter is optional for ACH Return & Reversal.",
          "enum": [
            "RETURN",
            "REVERSAL"
          ],
          "type": "string",
          "title": "action"
        },
        "purpose": {
          "description": "Purpose of transaction. \n- This parameter is optional for ACH Return & Reversal.",
          "minLength": 1,
          "maxLength": 100,
          "type": "string",
          "title": "purpose"
        }
      }
    },
    "Response": {
      "title": "Response",
      "description": "Response",
      "properties": {
        "acquirer_code": {
          "description": "Indicates success or failure of the transaction registration. A value of 0 (zero) indicates success, and a value of 99 indicates failure.",
          "maxLength": 100,
          "minLength": 1,
          "type": "string",
          "title": "acquirer_code"
        },
        "acquirer_message": {
          "description": "An additional message indicating the success or failure of the transaction registration. If the registration was successful, this parameter contains the value Data Received. If the registration failed, this parameter contains the value Data Not Receive.",
          "maxLength": 255,
          "minLength": 1,
          "type": "string",
          "title": "acquirer_message"
        },
        "card_holder_verification": {
          "$ref": "#/$defs/avs"
        }
      }
    },
    "avs": {
      "title": "avs",
      "description": "avs",
      "properties": {
        "acquirer_code": {
          "description": "The acquirer AVS response code generated by the card issuing institution.",
          "maxLength": 100,
          "minLength": 1,
          "type": "string",
          "title": "acquirer_code"
        },
        "gateway_code": {
          "description": "The address verification result generated to indicate whether the address data supplied matches the data held by the cardholder's issuing bank",
          "enum": [
            "ADDRESS_MATCH",
            "ADDRESS_ZIP_MATCH",
            "NAME_ADDRESS_MATCH",
            "NAME_MATCH",
            "NAME_ZIP_MATCH",
            "NOT_AVAILABLE",
            "NOT_REQUESTED",
            "NOT_VERIFIED",
            "NO_MATCH",
            "SERVICE_NOT_AVAILABLE_RETRY",
            "SERVICE_NOT_SUPPORTED",
            "ZIP_MATCH"
          ],
          "type": "string",
          "title": "gateway_code"
        }
      }
    }
  }
}