{
  "openapi": "3.1.0",
  "info": {
    "title": "NetValve Merchant Documentation",
    "description": "The NetValve merchant documentation provides information on the available APIs. Authenticate every request with the netvalve-api-key and netvalve-client-id headers.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://payment-api.uat.sandbox-netvalve.com",
      "description": "UAT / Integration URL"
    },
    {
      "url": "https://api.netvalve.com",
      "description": "Production URL"
    }
  ],
  "paths": {
    "/subscription/update": {
      "put": {
        "tags": [
          "Recurring Payment Service"
        ],
        "operationId": "updateManagedRecurringSubscription",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TransactionRecurringScheduleUpdateDTO"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateManagedRecurringSubscriptionResponseDTO"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationFieldsResponseDTO"
                }
              }
            }
          }
        },
        "summary": "Update subscription",
        "description": "Update an existing subscription based off an existing subscriptionId"
      }
    },
    "/subscription/cancel": {
      "put": {
        "tags": [
          "Recurring Payment Service"
        ],
        "operationId": "cancelManagedRecurringSubscription",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TransactionRecurringScheduleCancelDTO"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/CancelManagedRecurringSubscriptionResponseDTO"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationFieldsResponseDTO"
                }
              }
            }
          }
        },
        "summary": "Cancel subscription",
        "description": "Cancel a subscription off an existing subscriptionId"
      }
    },
    "/subscription/pay": {
      "post": {
        "tags": [
          "Recurring Payment Service"
        ],
        "operationId": "instantRecurringPayment",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InstantRecurringPaymentDTO"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/RebillTransactionResponseDTO"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationFieldsResponseDTO"
                }
              }
            }
          }
        },
        "summary": "Instant Payment",
        "description": "Charge an existing subscription based off an existing subscriptionId"
      }
    },
    "/subscription/create": {
      "post": {
        "tags": [
          "Recurring Payment Service"
        ],
        "operationId": "createManagedRecurringSubscriptionForExistingTransaction",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TransactionRecurringScheduleCreateDTO"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/CreateManagedRecurringSubscriptionResponseDTO"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationFieldsResponseDTO"
                }
              }
            }
          }
        },
        "summary": "Create subscription",
        "description": "Setup a new subscription based off an existing transactionId"
      }
    },
    "/sdk/sale": {
      "post": {
        "tags": [
          "Checkout SDK"
        ],
        "summary": "SDK Sale",
        "description": "Executes a payment from a previously initialized SDK payment session.\nSupports card, wallet, tokenized, and alternative payment method payloads through a single endpoint.\nClient IP is resolved from X-Forwarded-For, then X-Real-IP, then the servlet remote address.\n",
        "operationId": "sale",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SdkSaleRequestDTO"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "SDK sale processed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TransactionResponseDTO"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request payload.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationFieldsResponseDTO"
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/TransactionResponseDTO"
                }
              }
            }
          }
        }
      }
    },
    "/sdk/initializeSession": {
      "post": {
        "tags": [
          "Checkout SDK"
        ],
        "summary": "Initialize SDK session",
        "description": "Creates a hosted SDK payment session for the authenticated merchant.\nThe response contains the payment token, SDK endpoint URLs, script metadata, and initialization configuration needed by the client SDK.\n",
        "operationId": "initializeSession",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HppOrderInputFieldsDTO"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "SDK session initialized.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SdkInitializeSessionResponseDTO"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request payload.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationFieldsResponseDTO"
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/SdkInitializeSessionResponseDTO"
                }
              }
            }
          }
        }
      }
    },
    "/sdk/3ds/payment": {
      "post": {
        "tags": [
          "Checkout SDK"
        ],
        "summary": "Complete SDK 3DS payment",
        "description": "Completes a SDK payment after a 3DS challenge/result is returned by the authentication provider.\nThe endpoint submits the 3DS transaction data and returns the final gateway transaction response.\n",
        "operationId": "completeThreeDSPayment",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SdkThreeDSPaymentRequestDTO"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "3DS payment completion processed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TransactionResponseDTO"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request payload.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationFieldsResponseDTO"
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/TransactionResponseDTO"
                }
              }
            }
          }
        }
      }
    },
    "/sale": {
      "post": {
        "tags": [
          "Payment Service"
        ],
        "summary": "Sale",
        "description": "A sale transaction also known as a “Pay” transaction, is a combination of an Authorization (to check the card has sufficient funds and has not been reported lost or stolen) and a Capture, meaning the funds are taken from the cardholder immediately. It is the most common form of card transaction",
        "operationId": "saleOperation",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BasicInputFieldsDTO"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/AuthAndSaleTransactionResponseDTO"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationFieldsResponseDTO"
                }
              }
            }
          }
        }
      }
    },
    "/registerApplePayDomain": {
      "post": {
        "tags": [
          "Wallet"
        ],
        "summary": "Register Apple Pay™ Domain",
        "description": "This api allows merchants to register apple pay domains",
        "operationId": "registerApplePayDomain",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApplePayMerchantRegisterRequestDTO"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApplePayRegistrationResponseDTO"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationFieldsResponseDTO"
                }
              }
            }
          }
        }
      }
    },
    "/refund": {
      "post": {
        "tags": [
          "Payment Service"
        ],
        "summary": "Refund",
        "description": "A Refund transaction is the process of returning the funds of a previously settled transaction. A refund amount appears as a credit on the card holder’s statement.",
        "operationId": "refundOperation",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RefundInputFieldsDTO"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/RefundTransactionResponseDTO"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationFieldsResponseDTO"
                }
              }
            }
          }
        }
      }
    },
    "/rebill": {
      "post": {
        "tags": [
          "Payment Service"
        ],
        "summary": "Rebill",
        "description": "A Rebill transaction is for merchants that are offering subscriptions for their services require a way of billing the same amount on a regular basis.",
        "operationId": "rebillOperation",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RebillInputFieldsDTO"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/RebillTransactionResponseDTO"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationFieldsResponseDTO"
                }
              }
            }
          }
        }
      }
    },
    "/order": {
      "get": {
        "tags": [
          "Payment Service"
        ],
        "summary": "Get order",
        "description": "Retrieves a single order for the authenticated merchant.\nProvide at least one lookup key: id, clientOrderId, or transactionId.\nWhen clientOrderId is used without id or transactionId, netvalveMidId is required to disambiguate the merchant account.\n",
        "operationId": "getOrderById",
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "description": "Internal order identifier.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "example": 12345
          },
          {
            "name": "clientOrderId",
            "in": "query",
            "description": "Client-provided order identifier. Requires netvalveMidId when id and transactionId are not supplied.",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "ORD-12345-ABC"
          },
          {
            "name": "netvalveMidId",
            "in": "query",
            "description": "Netvalve MID identifier required with clientOrderId-only lookup.",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "f8c2c3a9-9d2e-4a7e-9c6b-6b3c0a6e4f21"
          },
          {
            "name": "transactionId",
            "in": "query",
            "description": "Internal transaction identifier linked to the order.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "example": 987654321
          },
          {
            "name": "collectBillingInfo",
            "in": "query",
            "description": "Include customer billing information in the order response.",
            "required": false,
            "schema": {
              "type": "string",
              "default": "false"
            },
            "example": false
          },
          {
            "name": "collectShippingInfo",
            "in": "query",
            "description": "Include customer shipping information in the order response.",
            "required": false,
            "schema": {
              "type": "string",
              "default": "false"
            },
            "example": false
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderOutputDTO"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationFieldsResponseDTO"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Payment Service"
        ],
        "summary": "Create Order",
        "description": "This api allows merchants to create order to initiate transaction",
        "operationId": "createOrder",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HppOrderInputFieldsDTO"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/CreateOrderResponseDTO"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationFieldsResponseDTO"
                }
              }
            }
          }
        }
      }
    },
    "/initializeApplePaySession": {
      "post": {
        "tags": [
          "Wallet"
        ],
        "summary": "Initialize Apple Pay™ session",
        "description": "This api allows merchants to initialize apple pay session before transaction",
        "operationId": "initializeApplePaySession",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApplePayInitializeSessionRequestDTO"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApplePayInitializeSessionResponseDTO"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationFieldsResponseDTO"
                }
              }
            }
          }
        }
      }
    },
    "/createToken": {
      "post": {
        "tags": [
          "Payment Service"
        ],
        "summary": "Create token",
        "description": "The process of creating gateway token",
        "operationId": "createTokenizedCard",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateTokenRequestDTO"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/CreateTokenResponseDTO"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationFieldsResponseDTO"
                }
              }
            }
          }
        }
      }
    },
    "/capture": {
      "post": {
        "tags": [
          "Payment Service"
        ],
        "summary": "Capture",
        "description": "A Capture transaction is a process that flags an already authorized transaction to be settled in the next settlement period.",
        "operationId": "captureOperation",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CaptureInputFieldsDTO"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/CaptureTransactionResponseDTO"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationFieldsResponseDTO"
                }
              }
            }
          }
        }
      }
    },
    "/cancel": {
      "post": {
        "tags": [
          "Payment Service"
        ],
        "summary": "Cancel",
        "description": "Cancel operation can be done for successfully authorized transactions only. If a transaction is authorized then merchant can either capture or cancel the transaction. In case of cancel on-hold amount will be returned to customer card. The default period of on-hold varies for each card issuers normally it is around 5-30 days.",
        "operationId": "cancelOperation",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CancelInputFieldsDTO"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/CancelTransactionResponseDTO"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationFieldsResponseDTO"
                }
              }
            }
          }
        }
      }
    },
    "/authorize": {
      "post": {
        "tags": [
          "Payment Service"
        ],
        "summary": "Authorize",
        "description": "The process of checking that the card being used in a transaction contains sufficient funds to cover the amount of the transaction",
        "operationId": "authorizeOperation",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BasicInputFieldsDTO"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/AuthAndSaleTransactionResponseDTO"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationFieldsResponseDTO"
                }
              }
            }
          }
        }
      }
    },
    "/3ds/v2/initialization": {
      "post": {
        "tags": [
          "Three DS"
        ],
        "summary": "3DS Initialization V2",
        "description": "This endpoint allows merchant to initiate 3DS transaction",
        "operationId": "initAndAuthOperation",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ThreeDSInitAndAuthInputDTO"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ThreeDSInitAndAuthResponseDTO"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationFieldsResponseDTO"
                }
              }
            }
          }
        }
      }
    },
    "/3ds/result": {
      "post": {
        "tags": [
          "Three DS"
        ],
        "summary": "3DS Result",
        "description": "This endpoint allows merchant to retrieve 3DS result",
        "operationId": "resultOperation",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ThreeDSResultInputDTO"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ThreeDSResultResponseDTO"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationFieldsResponseDTO"
                }
              }
            }
          }
        }
      }
    },
    "/3ds/authentication": {
      "post": {
        "tags": [
          "Three DS"
        ],
        "summary": "3DS Authentication",
        "description": "This endpoint allows merchant to Authenticate 3DS transaction",
        "operationId": "authenticationOperation",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ThreeDSAuthInputDTO"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ThreeDSAuthenticationResponseDTO"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationFieldsResponseDTO"
                }
              }
            }
          }
        }
      }
    },
    "/transaction": {
      "get": {
        "tags": [
          "Reconciliation"
        ],
        "summary": "Get Transaction",
        "description": "This api allows merchant to retrieve an transaction by Id.",
        "operationId": "getTransactionById",
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "description": "Transaction identifier.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "example": 123456789
          },
          {
            "name": "collectBillingInfo",
            "in": "query",
            "description": "If true, billing address information is included in the response.",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false
            },
            "example": false
          },
          {
            "name": "collectShippingInfo",
            "in": "query",
            "description": "If true, shipping address information is included in the response.",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false
            },
            "example": false
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TransactionOutputDTO"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationFieldsResponseDTO"
                }
              }
            }
          }
        }
      }
    },
    "/subscriptions": {
      "get": {
        "tags": [
          "Recurring Payment Service"
        ],
        "operationId": "getAllManagedRecurringSubscriptionByFilters",
        "parameters": [
          {
            "name": "filters",
            "in": "query",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/RecurringScheduleSearchFilterDTO"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageManagedRecurringSubscriptionDTO"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationFieldsResponseDTO"
                }
              }
            }
          }
        },
        "summary": "Get subscriptions",
        "description": "Get all subscriptions"
      }
    },
    "/subscription": {
      "get": {
        "tags": [
          "Recurring Payment Service"
        ],
        "operationId": "getManagedRecurringSubscription",
        "parameters": [
          {
            "name": "subscriptionId",
            "in": "query",
            "description": "Managed recurring subscription identifier",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "example": 5001
          },
          {
            "name": "transactionId",
            "in": "query",
            "description": "Original transaction identifier",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "example": 100001
          },
          {
            "name": "showRelatedTransactions",
            "in": "query",
            "description": "Include related transaction list in response",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false
            },
            "example": false
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ManagedRecurringSubscriptionDTO"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationFieldsResponseDTO"
                }
              }
            }
          }
        },
        "summary": "Get subscription",
        "description": "Get subscription by subscriptionId or transactionId"
      }
    },
    "/sdk/pageLayoutSettingsFile": {
      "get": {
        "tags": [
          "Checkout SDK"
        ],
        "summary": "Get SDK page layout settings file",
        "description": "Returns a page layout asset, such as logo or CSS, when the supplied SDK Bearer token belongs to the layout owner.",
        "operationId": "getPageLayoutSettingsFile",
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "description": "Page layout file id.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "type",
            "in": "query",
            "description": "Page layout file type. Supported values: logo, html, css.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Page layout file returned.",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationFieldsResponseDTO"
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed.",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "404": {
            "description": "File not found or not accessible for the SDK token.",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          }
        }
      }
    },
    "/sdk/inquiry": {
      "get": {
        "tags": [
          "Checkout SDK"
        ],
        "summary": "Query SDK transaction status",
        "description": "Retrieves the current status of the transaction bound to the supplied SDK Bearer token.",
        "operationId": "inquiry",
        "parameters": [
          {
            "name": "transactionId",
            "in": "query",
            "description": "Internal transaction identifier returned by the SDK sale or 3DS payment response. The transaction must belong to the SDK Bearer token client.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "example": 987654321
          },
          {
            "name": "Authorization",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Transaction status returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TransactionResponseDTO"
                }
              }
            }
          },
          "400": {
            "description": "Invalid transaction id.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationFieldsResponseDTO"
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/TransactionResponseDTO"
                }
              }
            }
          }
        }
      }
    },
    "/report/batchSummary": {
      "get": {
        "tags": [
          "Reconciliation"
        ],
        "summary": "Batch summary",
        "description": "Retrieves batch summary rows for the authenticated merchant.\nSend filters as query parameters. fromDateTime and toDateTime must use yyyy-MM-dd HH:mm:ss format and are used against the batch created datetime.\nOptional filters are descriptor, midId, currency, cardType, bin, and countryCode. clientId is resolved from authentication.\n",
        "operationId": "getBatchSummaryData",
        "parameters": [
          {
            "name": "fromDateTime",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "toDateTime",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "descriptor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "midId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "currency",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "*/*": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BatchSummaryDataDTO"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationFieldsResponseDTO"
                }
              }
            }
          }
        }
      }
    },
    "/report/batchSummaryDetails": {
      "get": {
        "tags": [
          "Reconciliation"
        ],
        "summary": "Batch details",
        "description": "Retrieves aggregate totals for a single batch ID scoped to the authenticated merchant.",
        "operationId": "getBatchSummaryDetails",
        "parameters": [
          {
            "name": "batchId",
            "in": "query",
            "description": "Batch summary identifier.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "example": 12345
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/BatchSummaryDetailsDTO"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationFieldsResponseDTO"
                }
              }
            }
          }
        }
      }
    },
    "/orders": {
      "get": {
        "tags": [
          "Reconciliation"
        ],
        "summary": "Export orders by filters",
        "description": "Retrieves orders for the authenticated merchant using query-string filters and pagination.\nDates must use yyyy-MM-dd HH:mm:ss format, for example fromDateTime=2026-06-01 00:00:00&toDateTime=2026-06-26 23:59:59.\nIf orderId or clientOrderId is supplied, order identifier search takes precedence. If emailAddress is supplied without a complete date range, email search is prioritized.\nWhen fromDateTime/toDateTime are omitted, this endpoint performs a non-date-filtered search; no default date range is applied by this API.\n",
        "operationId": "exportOrders",
        "parameters": [
          {
            "name": "filters",
            "in": "query",
            "description": "Order export filters. Send fields as query parameters, for example orderStatus=Completed&currency=USD&ccLastFour=1111.",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/OrderSearchFilterDTO"
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "Zero-based page number.",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 0
            },
            "example": 0
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "Requested page size.",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "example": 100
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageResultOrderDTO"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationFieldsResponseDTO"
                }
              }
            }
          }
        }
      }
    },
    "/inquiry": {
      "get": {
        "tags": [
          "Reconciliation"
        ],
        "summary": "Query Transaction Status",
        "description": "Retrieve the status of a previously submitted transaction",
        "operationId": "inquiry_1",
        "parameters": [
          {
            "name": "transactionId",
            "in": "query",
            "description": "Transaction identifier to query status for.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "example": 123456789
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/InquiryTransactionResponseDTO"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationFieldsResponseDTO"
                }
              }
            }
          }
        }
      }
    },
    "/hpf/initializeSession": {
      "get": {
        "tags": [
          "Hosted Payment Fields"
        ],
        "summary": "Initialize Session",
        "description": "The process of initialize Session",
        "operationId": "initializeSession_1",
        "parameters": [
          {
            "name": "version",
            "in": "query",
            "description": "Hosted payment field script version.",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "1.0.0"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/HostedPaymentFieldsResponseDTO"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationFieldsResponseDTO"
                }
              }
            }
          }
        }
      }
    },
    "/export": {
      "get": {
        "tags": [
          "Reconciliation"
        ],
        "summary": "Export transactions by filters",
        "description": "Retrieves transactions for the authenticated merchant using query-string filters.\nDates must use yyyy-MM-dd HH:mm:ss format, for example fromDateTime=2026-06-01 00:00:00&toDateTime=2026-06-26 23:59:59.\nIf transactionId is supplied, the service searches by that transaction first. Otherwise, an explicit fromDateTime/toDateTime range is used; when dates are omitted, the configured default lookback window is applied.\nThe service enforces the configured maximum export date range and caps pageSize to the configured maximum unless maxLimit is provided.\n",
        "operationId": "exportTransactions",
        "parameters": [
          {
            "name": "filters",
            "in": "query",
            "description": "Transaction export filters. Send fields as query parameters, for example transactionType=SALE&currency=USD&ccLastFour=1111.",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/TransactionSearchFilterDTO"
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "Zero-based page number.",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 0
            },
            "example": 0
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "Requested page size. The service caps this to its configured maximum or to maxLimit when supplied in filters.",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "example": 100
          },
          {
            "name": "collectBillingInfo",
            "in": "query",
            "description": "Include customer billing information in each transaction result.",
            "required": false,
            "schema": {
              "type": "string",
              "default": "false"
            },
            "example": false
          },
          {
            "name": "collectShippingInfo",
            "in": "query",
            "description": "Include customer shipping information in each transaction result.",
            "required": false,
            "schema": {
              "type": "string",
              "default": "false"
            },
            "example": false
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageResultTransactionDTO"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationFieldsResponseDTO"
                }
              }
            }
          }
        }
      }
    },
    "/hpp/order": {
      "post": {
        "tags": [
          "Hosted Payment Page"
        ],
        "summary": "Create Order",
        "description": "This api allows merchants to create order to initiate transaction",
        "operationId": "createHppOrder",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HppOrderInputFieldsDTO"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/CreateOrderResponseDTO"
                }
              }
            }
          }
        }
      },
      "servers": [
        {
          "url": "https://hpp-api.uat.sandbox-netvalve.com",
          "description": "UAT / Integration URL"
        },
        {
          "url": "https://hpp-api.netvalve.com",
          "description": "Production URL"
        }
      ]
    }
  },
  "components": {
    "schemas": {
      "ValidationFieldsResponseDTO": {
        "type": "object",
        "properties": {
          "responseCode": {
            "type": "string"
          },
          "responseMessage": {
            "type": "string"
          },
          "responseCodeType": {
            "type": "string"
          },
          "traceID": {
            "type": "string"
          },
          "responseTimestamp": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "RecurringScheduleDTO": {
        "type": "object",
        "description": "Recurring schedule configuration. For create requests, recurringPeriod, startDate, and recurringAmount are required. For update requests, recurringSchedule can be omitted to keep the existing subscription unchanged; if supplied, only non-null fields are applied. Date-time fields use yyyy-MM-dd HH:mm:ss.",
        "properties": {
          "subscriptionName": {
            "type": "string",
            "description": "Optional name of the subscription or recurring plan. Valid text up to 1000 characters.",
            "example": "Gold Membership Plan"
          },
          "recurringPeriod": {
            "type": "integer",
            "format": "int32",
            "description": "Recurring interval value. Required on create, optional on update. Allowed range: 1 to 365. Interpreted using recurringType; if recurringType is omitted, DAYS is used.",
            "example": 30,
            "maximum": 365,
            "minimum": 1
          },
          "startDate": {
            "type": "string",
            "format": "date-time",
            "description": "Start date and time of the recurring schedule. Required on create. Format: yyyy-MM-dd HH:mm:ss. Must not be in the past. Not applied by the managed recurring update endpoint.",
            "example": "2026-01-01 10:00:00",
            "pattern": "yyyy-MM-dd HH:mm:ss"
          },
          "endDate": {
            "type": "string",
            "format": "date-time",
            "description": "Optional end date and time of the recurring schedule. Format: yyyy-MM-dd HH:mm:ss. If provided, it must not be in the past and must be after the start date.",
            "example": "2026-12-31 23:59:59",
            "pattern": "yyyy-MM-dd HH:mm:ss"
          },
          "recurringAmount": {
            "type": "number",
            "description": "Amount to be charged for each recurrence cycle. Required on create. Must be zero or greater, with up to 2 decimal places and up to 8 integer digits.",
            "example": 499.99,
            "minimum": 0
          },
          "recurringType": {
            "type": "string",
            "description": "Type of recurring interval. Optional on create and update. If omitted on create, DAYS is used.",
            "enum": [
              "DAYS",
              "HOURS",
              "DAYS",
              "HOURS"
            ],
            "example": "DAYS"
          },
          "status": {
            "type": "string",
            "description": "Status to apply to the recurring schedule. Optional and mainly used on update. Create defaults the managed subscription status to ACTIVE.",
            "enum": [
              "ACTIVE",
              "PAUSED",
              "INACTIVE",
              "PAYMENT_PENDING",
              "PAYMENT_FAILED",
              "ACTIVE",
              "PAUSED",
              "INACTIVE",
              "PAYMENT_PENDING",
              "PAYMENT_FAILED"
            ],
            "example": "ACTIVE"
          },
          "dateNextAttempt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of the next scheduled recurring payment attempt. Optional and mainly used on update. Format: yyyy-MM-dd HH:mm:ss. Must not be in the past, must be after the subscription start date, and must be before the end date when an end date exists.",
            "example": "2026-02-01 10:00:00",
            "pattern": "yyyy-MM-dd HH:mm:ss"
          }
        },
        "required": [
          "recurringAmount",
          "recurringPeriod",
          "startDate",
          "recurringAmount",
          "recurringPeriod",
          "startDate"
        ]
      },
      "UpdateManagedRecurringSubscriptionResponseDTO": {
        "type": "object",
        "description": "Response payload returned after updating managed recurring subscription.",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64",
            "description": "Managed recurring subscription identifier.",
            "example": 5001
          },
          "transactionId": {
            "type": "integer",
            "format": "int64",
            "description": "Original transaction identifier linked to the subscription.",
            "example": 100001
          },
          "clientId": {
            "type": "integer",
            "format": "int64",
            "description": "Client identifier owning this subscription.",
            "example": 2001
          },
          "status": {
            "type": "string",
            "description": "Current recurring schedule status.",
            "enum": [
              "ACTIVE",
              "PAUSED",
              "INACTIVE",
              "PAYMENT_PENDING",
              "PAYMENT_FAILED"
            ],
            "example": "ACTIVE"
          },
          "createdDatetime": {
            "type": "string",
            "format": "date-time",
            "description": "Subscription creation timestamp."
          },
          "updatedDatetime": {
            "type": "string",
            "format": "date-time",
            "description": "Subscription last updated timestamp."
          },
          "nextAttemptDate": {
            "type": "string",
            "format": "date-time",
            "description": "Next rebill attempt date-time."
          },
          "recurringType": {
            "type": "string",
            "description": "Recurring unit type.",
            "enum": [
              "DAYS",
              "HOURS",
              "WEEK",
              "MONTH",
              "QUARTER",
              "SEMESTER",
              "YEAR"
            ],
            "example": "DAYS"
          },
          "recurringPeriod": {
            "type": "integer",
            "format": "int32",
            "description": "Recurring interval count.",
            "example": 30
          },
          "recurringAmount": {
            "type": "number",
            "description": "Amount charged each recurring attempt.",
            "example": 99.99
          },
          "failureAttempts": {
            "type": "integer",
            "format": "int32",
            "description": "Total failure attempts for this subscription.",
            "example": 0
          },
          "subscriptionName": {
            "type": "string",
            "description": "Subscription name.",
            "example": "Gym Membership"
          },
          "description": {
            "type": "string",
            "description": "Subscription description or update reason."
          },
          "recurringTransactionStatus": {
            "type": "string",
            "description": "Current recurring transaction status.",
            "enum": [
              "NEW",
              "PROCESSING",
              "COMPLETED",
              "FAILED"
            ],
            "example": "NEW"
          },
          "endDate": {
            "type": "string",
            "format": "date-time",
            "description": "Subscription end date-time, if configured."
          },
          "startDate": {
            "type": "string",
            "format": "date-time",
            "description": "Subscription start date-time."
          },
          "traceID": {
            "type": "string",
            "description": "Correlation identifier for request tracing.",
            "example": "d3cb9f3c-16c3-4d9e-a22f-f8935c1d8f8f"
          },
          "responseTimestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Response timestamp in server timezone."
          },
          "responseCode": {
            "type": "string",
            "description": "Gateway response code.",
            "example": "GTW_1000"
          },
          "responseMessage": {
            "type": "string",
            "description": "Gateway response message.",
            "example": "Managed recurring subscription updated successfully."
          }
        }
      },
      "CancelManagedRecurringSubscriptionResponseDTO": {
        "type": "object",
        "description": "Response payload returned after canceling managed recurring subscription.",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64",
            "description": "Managed recurring subscription identifier.",
            "example": 5001
          },
          "transactionId": {
            "type": "integer",
            "format": "int64",
            "description": "Original transaction identifier linked to the subscription.",
            "example": 100001
          },
          "clientId": {
            "type": "integer",
            "format": "int64",
            "description": "Client identifier owning this subscription.",
            "example": 2001
          },
          "status": {
            "type": "string",
            "description": "Recurring schedule status after cancellation.",
            "enum": [
              "ACTIVE",
              "PAUSED",
              "INACTIVE",
              "PAYMENT_PENDING",
              "PAYMENT_FAILED"
            ],
            "example": "INACTIVE"
          },
          "createdDatetime": {
            "type": "string",
            "format": "date-time",
            "description": "Subscription creation timestamp."
          },
          "updatedDatetime": {
            "type": "string",
            "format": "date-time",
            "description": "Subscription cancellation timestamp."
          },
          "nextAttemptDate": {
            "type": "string",
            "format": "date-time",
            "description": "Next rebill attempt date-time, if present."
          },
          "recurringType": {
            "type": "string",
            "description": "Recurring unit type.",
            "enum": [
              "DAYS",
              "HOURS",
              "WEEK",
              "MONTH",
              "QUARTER",
              "SEMESTER",
              "YEAR"
            ],
            "example": "DAYS"
          },
          "recurringPeriod": {
            "type": "integer",
            "format": "int32",
            "description": "Recurring interval count.",
            "example": 30
          },
          "recurringAmount": {
            "type": "number",
            "description": "Amount charged each recurring attempt.",
            "example": 99.99
          },
          "failureAttempts": {
            "type": "integer",
            "format": "int32",
            "description": "Total failure attempts for this subscription.",
            "example": 0
          },
          "subscriptionName": {
            "type": "string",
            "description": "Subscription name.",
            "example": "Gym Membership"
          },
          "description": {
            "type": "string",
            "description": "Cancellation reason or subscription description."
          },
          "recurringTransactionStatus": {
            "type": "string",
            "description": "Current recurring transaction status.",
            "enum": [
              "NEW",
              "PROCESSING",
              "COMPLETED",
              "FAILED"
            ],
            "example": "NEW"
          },
          "endDate": {
            "type": "string",
            "format": "date-time",
            "description": "Subscription end date-time, if configured."
          },
          "startDate": {
            "type": "string",
            "format": "date-time",
            "description": "Subscription start date-time."
          },
          "traceID": {
            "type": "string",
            "description": "Correlation identifier for request tracing.",
            "example": "d3cb9f3c-16c3-4d9e-a22f-f8935c1d8f8f"
          },
          "responseTimestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Response timestamp in server timezone."
          },
          "responseCode": {
            "type": "string",
            "description": "Gateway response code.",
            "example": "GTW_1000"
          },
          "responseMessage": {
            "type": "string",
            "description": "Gateway response message.",
            "example": "Managed recurring subscription canceled successfully."
          }
        }
      },
      "WalletInitializeSessionResponseDTO": {
        "type": "object",
        "description": "Wallet-specific session initialization result payload.",
        "properties": {
          "status": {
            "type": "string",
            "description": "Wallet session status.",
            "example": "OK"
          },
          "data": {
            "type": "string",
            "description": "Wallet session payload represented as JSON string.",
            "example": {
              "merchantIdentifier": "merchant.com.example",
              "merchantName": "Example Store"
            }
          }
        }
      },
      "InstantRecurringPaymentDTO": {
        "type": "object",
        "description": "Request payload for triggering an instant payment against an existing managed recurring subscription.",
        "properties": {
          "subscriptionId": {
            "type": "integer",
            "format": "int64",
            "description": "Managed recurring subscription identifier.",
            "example": 5001
          },
          "amount": {
            "type": "number",
            "description": "Amount to be charged for the instant recurring payment.",
            "example": 49.99
          },
          "nextAttemptDate": {
            "type": "string",
            "format": "date-time",
            "description": "Override for the next recurring attempt date-time.",
            "example": "2026-05-01 10:00:00"
          }
        },
        "required": [
          "amount",
          "subscriptionId"
        ]
      },
      "RebillTransactionResponseDTO": {
        "type": "object",
        "description": "Response payload for recurring rebill or instant recurring payment transaction.",
        "properties": {
          "traceID": {
            "type": "string",
            "description": "Correlation identifier for tracing request flow.",
            "example": "d3cb9f3c-16c3-4d9e-a22f-f8935c1d8f8f"
          },
          "responseTimestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Response timestamp generated by the service.",
            "example": "2026-04-27T11:05:30Z"
          },
          "bankResponseCode": {
            "type": "string",
            "description": "Bank/acquirer response code.",
            "example": "00"
          },
          "bankResponseMessage": {
            "type": "string",
            "description": "Bank/acquirer response message.",
            "example": "Approved"
          },
          "responseCode": {
            "type": "string",
            "description": "Gateway response code.",
            "example": "GTW_1000"
          },
          "responseMessage": {
            "type": "string",
            "description": "Gateway response message.",
            "example": "Transaction Approved/ Request Successful."
          },
          "webhookFailureMessage": {
            "type": "string",
            "description": "Returned when webhookData.webhookUrl was invalid. The transaction is still processed, but no per-order webhook is sent. Omitted when the URL is valid or webhookData was not supplied.",
            "example": "Merchant provided webhook URL not valid"
          },
          "originalTransactionId": {
            "type": "integer",
            "format": "int64",
            "description": "Internal parent transaction identifier.",
            "example": 987654321
          },
          "originalTransactionType": {
            "type": "string",
            "description": "Internal parent transaction type.",
            "enum": [
              "AUTHORIZATION",
              "CAPTURE",
              "SALE",
              "REFUND",
              "CANCEL",
              "REBILL",
              "INQUIRY"
            ],
            "example": "SALE"
          },
          "transactionID": {
            "type": "integer",
            "format": "int64",
            "description": "Gateway transaction identifier.",
            "example": 100001
          },
          "responseCodeType": {
            "type": "string",
            "description": "Response code category/type.",
            "example": "SUCCESS"
          },
          "paymentMethod": {
            "type": "string",
            "description": "Payment method used for transaction.",
            "example": "CARD"
          },
          "cardType": {
            "type": "string",
            "description": "Card brand/type when card data is available.",
            "example": "VISA"
          },
          "bankTransactionId": {
            "type": "string",
            "description": "Transaction identifier returned by bank/acquirer.",
            "example": "BNK123456789"
          },
          "authCode": {
            "type": "string",
            "description": "Authorization code returned by bank/acquirer.",
            "example": "123456"
          },
          "schemeTransactionLinkIdentifier": {
            "type": "string",
            "description": "Scheme transaction link identifier returned by the card network/acquirer.",
            "example": "MCTLI1234567890123456"
          },
          "midId": {
            "type": "integer",
            "format": "int64",
            "description": "Merchant identifier used for processing.",
            "example": 1001
          },
          "netvalveMidId": {
            "type": "string",
            "description": "External/Netvalve merchant identifier.",
            "example": "f7e0f1b8-2c6d-4a91-9a5b-3de2c4f8b7a1"
          },
          "midIdentifier": {
            "type": "string",
            "description": "Processor-side merchant identifier configured on the MID, for linking to merchant-side reports.",
            "example": "0000000029612"
          },
          "processor": {
            "type": "string",
            "description": "Payment processor name.",
            "example": "TSYS"
          },
          "cardNumber": {
            "type": "string",
            "description": "Masked card number.",
            "example": "411111******1111"
          },
          "transactionType": {
            "type": "string",
            "description": "Transaction operation type.",
            "enum": [
              "AUTHORIZATION",
              "CAPTURE",
              "SALE",
              "REFUND",
              "CANCEL",
              "REBILL",
              "INQUIRY"
            ],
            "example": "SALE"
          },
          "currency": {
            "type": "string",
            "description": "Processed transaction currency (ISO 4217).",
            "example": "USD"
          },
          "clientId": {
            "type": "integer",
            "format": "int64",
            "description": "Client identifier associated with the transaction.",
            "example": 2001
          },
          "siteId": {
            "type": "string",
            "description": "Site identifier associated with the transaction.",
            "example": "6001"
          },
          "amount": {
            "type": "number",
            "description": "Transaction amount processed for rebill payment.",
            "example": 49.99
          },
          "subscriptionId": {
            "type": "integer",
            "format": "int64",
            "description": "Managed recurring subscription identifier linked to the payment.",
            "example": 5001
          },
          "subscriptionStatus": {
            "type": "string",
            "description": "Subscription status after rebill.",
            "example": "ACTIVE"
          }
        }
      },
      "CreateManagedRecurringSubscriptionResponseDTO": {
        "type": "object",
        "description": "Response payload returned after successfully creating managed recurring subscription.",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64",
            "description": "Managed recurring subscription identifier.",
            "example": 5001
          },
          "transactionId": {
            "type": "integer",
            "format": "int64",
            "description": "Original transaction identifier linked to the subscription.",
            "example": 100001
          },
          "clientId": {
            "type": "integer",
            "format": "int64",
            "description": "Client identifier owning this subscription.",
            "example": 2001
          },
          "status": {
            "type": "string",
            "description": "Current recurring schedule status.",
            "enum": [
              "ACTIVE",
              "PAUSED",
              "INACTIVE",
              "PAYMENT_PENDING",
              "PAYMENT_FAILED"
            ],
            "example": "ACTIVE"
          },
          "createdDatetime": {
            "type": "string",
            "format": "date-time",
            "description": "Subscription creation timestamp."
          },
          "updatedDatetime": {
            "type": "string",
            "format": "date-time",
            "description": "Subscription last updated timestamp."
          },
          "nextAttemptDate": {
            "type": "string",
            "format": "date-time",
            "description": "Next rebill attempt date-time."
          },
          "recurringType": {
            "type": "string",
            "description": "Recurring unit type.",
            "enum": [
              "DAYS",
              "HOURS",
              "WEEK",
              "MONTH",
              "QUARTER",
              "SEMESTER",
              "YEAR"
            ],
            "example": "DAYS"
          },
          "recurringPeriod": {
            "type": "integer",
            "format": "int32",
            "description": "Recurring interval count.",
            "example": 30
          },
          "recurringAmount": {
            "type": "number",
            "description": "Amount charged each recurring attempt.",
            "example": 99.99
          },
          "failureAttempts": {
            "type": "integer",
            "format": "int32",
            "description": "Total failure attempts for this subscription.",
            "example": 0
          },
          "subscriptionName": {
            "type": "string",
            "description": "Subscription name.",
            "example": "Gym Membership"
          },
          "description": {
            "type": "string",
            "description": "Subscription description or reason."
          },
          "recurringTransactionStatus": {
            "type": "string",
            "description": "Current recurring transaction status.",
            "enum": [
              "NEW",
              "PROCESSING",
              "COMPLETED",
              "FAILED"
            ],
            "example": "NEW"
          },
          "endDate": {
            "type": "string",
            "format": "date-time",
            "description": "Subscription end date-time, if configured."
          },
          "startDate": {
            "type": "string",
            "format": "date-time",
            "description": "Subscription start date-time."
          },
          "traceID": {
            "type": "string",
            "description": "Correlation identifier for request tracing.",
            "example": "d3cb9f3c-16c3-4d9e-a22f-f8935c1d8f8f"
          },
          "responseTimestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Response timestamp in server timezone."
          },
          "responseCode": {
            "type": "string",
            "description": "Gateway response code.",
            "example": "GTW_1000"
          },
          "responseMessage": {
            "type": "string",
            "description": "Gateway response message.",
            "example": "Managed recurring subscription created successfully."
          }
        }
      },
      "AlternativePaymentMethodDTO": {
        "type": "object",
        "description": "Alternative payment method customer and payment details.",
        "properties": {
          "userType": {
            "type": "string",
            "description": "Type of user initiating the payment (e.g., Person or Company)."
          },
          "documentType": {
            "type": "string",
            "description": "Type of identification document provided by the payer.",
            "example": "cpf"
          },
          "documentNumber": {
            "type": "string",
            "description": "Identification document number of the payer.",
            "example": "A12345678"
          },
          "rfcPf": {
            "type": "string",
            "description": "Mexican Tax Identification Number (RFC) for an individual (Persona Física). Required for SPEI payments when the payer is a natural person.",
            "example": "SOMH031031C50"
          },
          "socialName": {
            "type": "string",
            "description": "Registered or social name of the payer as per official records.",
            "example": "John Doe"
          },
          "fiscalCountry": {
            "type": "string",
            "description": "Country of tax residency.",
            "example": "Brasil"
          },
          "paymentNonce": {
            "type": "string",
            "description": "One-time payment token (nonce) generated by the APM provider to authorize the transaction securely."
          },
          "financialInstitutionCode": {
            "type": "string",
            "description": "Code identifying the financial institution involved in the payment."
          },
          "payerEmail": {
            "type": "string",
            "description": "Email address of the payer."
          },
          "payerPhone": {
            "type": "string",
            "description": "Phone number of the payer."
          },
          "apmTerminalType": {
            "type": "string",
            "description": "Client-side terminal the payer is on, for redirect wallets that render a different authorisation page per device (Checkout.com GCash). APP = mobile app or mobile browser deep link, WEB = desktop browser QR page. Optional: when omitted it is derived from the customer's user agent.",
            "enum": [
              "APP",
              "WEB",
              "APP",
              "WEB"
            ],
            "example": "APP"
          },
          "apmOsType": {
            "type": "string",
            "description": "Mobile operating system of the payer's device. Required by Checkout.com GCash whenever apmTerminalType is APP; ignored for WEB. Optional: when omitted it is derived from the customer's user agent.",
            "enum": [
              "IOS",
              "ANDROID",
              "IOS",
              "ANDROID"
            ],
            "example": "IOS"
          }
        }
      },
      "ApplePaySSLDTO": {
        "type": "object",
        "properties": {
          "paymentData": {
            "$ref": "#/components/schemas/ApplePaymentDataDTO",
            "description": "Encrypted Apple Pay payment data payload including cryptographic information and tokenized payment details."
          },
          "paymentMethod": {
            "$ref": "#/components/schemas/ApplePaymentMethodDTO",
            "description": "Apple Pay payment method details including card network and display information."
          },
          "transactionIdentifier": {
            "type": "string",
            "description": "Unique transaction identifier generated by the Apple Pay device."
          }
        }
      },
      "ApplePaymentDataDTO": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string",
            "description": "Version of Apple Pay payment token format. Typically EC_v1.",
            "example": "EC_v1"
          },
          "signature": {
            "type": "string",
            "description": "Cryptographic signature used to verify the integrity of the payment data."
          },
          "data": {
            "type": "string",
            "description": "Base64-encoded encrypted payment data containing tokenized card information."
          },
          "header": {
            "$ref": "#/components/schemas/HeaderDTO",
            "description": "Apple Pay cryptographic header containing keys and identifiers required for secure payment decryption."
          }
        },
        "required": [
          "version",
          "version"
        ]
      },
      "ApplePaymentMethodDTO": {
        "type": "object",
        "properties": {
          "displayName": {
            "type": "string",
            "description": "Human-readable name of the payment method as shown in Apple Pay wallet.",
            "example": "Visa 4242"
          },
          "network": {
            "type": "string",
            "description": "Card network used for the Apple Pay transaction.",
            "example": "VISA"
          },
          "type": {
            "type": "string",
            "description": "Type of payment method used in Apple Pay (e.g., debit, credit, prepaid).",
            "example": "credit"
          }
        }
      },
      "BillingAddressDTO": {
        "type": "object",
        "description": "Billing address details associated with a transaction/order.",
        "properties": {
          "billingAddress": {
            "type": "string",
            "description": "Billing street address line.",
            "example": "221B Baker Street",
            "maxLength": 128,
            "minLength": 0
          },
          "billingZipCode": {
            "type": "string",
            "description": "Billing ZIP/postal code.",
            "example": "10001",
            "maxLength": 10,
            "minLength": 0
          },
          "billingCity": {
            "type": "string",
            "description": "Billing city.",
            "example": "New York",
            "maxLength": 128,
            "minLength": 0
          },
          "billingState": {
            "type": "string",
            "description": "Billing state/region.",
            "example": "NY",
            "maxLength": 30,
            "minLength": 0
          },
          "billingCountryCode": {
            "type": "string",
            "description": "Billing country code in ISO 3166-1 alpha-2 format.",
            "example": "GB",
            "maxLength": 2,
            "minLength": 2
          },
          "addressIdentifier": {
            "type": "string",
            "description": "Optional identifier for saved/normalized billing address record.",
            "example": "BILL-ADDR-001"
          }
        }
      },
      "GoogleIntermediateSigningKeyDTO": {
        "type": "object",
        "properties": {
          "signedKey": {
            "type": "string",
            "description": "JSON Web Signature (JWS) signed key used for Google Pay signature verification."
          },
          "signatures": {
            "type": "array",
            "description": "Array of signatures corresponding to the intermediate signing key.",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "GooglePaySSLDTO": {
        "type": "object",
        "properties": {
          "protocolVersion": {
            "type": "string",
            "description": "Google Pay protocol version for the signed payload.",
            "example": "ECv2"
          },
          "signature": {
            "type": "string",
            "description": "Cryptographic signature returned by Google Pay."
          },
          "intermediateSigningKey": {
            "$ref": "#/components/schemas/GoogleIntermediateSigningKeyDTO",
            "description": "Intermediate signing key bundle used to verify Google Pay signature."
          },
          "signedMessage": {
            "type": "string",
            "description": "Serialized signed message containing encrypted payment payload and cryptographic metadata."
          }
        }
      },
      "HeaderDTO": {
        "type": "object",
        "properties": {
          "transactionId": {
            "type": "string",
            "description": "Transaction identifier generated on the Apple Pay device."
          },
          "publicKeyHash": {
            "type": "string",
            "description": "SHA-256 hash of the merchant’s X.509 public key certificate used for payment encryption."
          },
          "ephemeralPublicKey": {
            "type": "string",
            "description": "Ephemeral public key generated for this transaction. Required for EC_v1 encryption."
          }
        },
        "required": [
          "ephemeralPublicKey",
          "publicKeyHash",
          "transactionId",
          "ephemeralPublicKey",
          "publicKeyHash",
          "transactionId"
        ]
      },
      "HppBrowserInfoDTO": {
        "type": "object",
        "properties": {
          "userAgent": {
            "type": "string"
          },
          "browserHeader": {
            "type": "string"
          },
          "browserLanguage": {
            "type": "string"
          },
          "browserJavaEnabled": {
            "type": "boolean"
          },
          "browserColorDepth": {
            "type": "integer",
            "format": "int32"
          },
          "browserScreenHeight": {
            "type": "integer",
            "format": "int32"
          },
          "browserScreenWidth": {
            "type": "integer",
            "format": "int32"
          },
          "browserTimeZone": {
            "type": "integer",
            "format": "int32"
          },
          "browserIp": {
            "type": "string"
          }
        }
      },
      "HppCustomerDetailsDTO": {
        "type": "object",
        "description": "Customer details used in HPP create order/payment flows.",
        "properties": {
          "customerIp": {
            "type": "string",
            "description": "Customer IP address (IPv4).",
            "example": "203.0.113.10"
          },
          "customerEmail": {
            "type": "string",
            "description": "Customer email address.",
            "example": "john.doe@example.com",
            "maxLength": 128,
            "minLength": 0
          },
          "customerName": {
            "type": "string",
            "description": "Customer full name.",
            "example": "John Doe",
            "maxLength": 128,
            "minLength": 0
          },
          "customerFirstName": {
            "type": [
              "string",
              "null",
              "string",
              "null"
            ],
            "description": "Customer first name.",
            "example": "John",
            "maxLength": 128,
            "minLength": 0
          },
          "customerLastName": {
            "type": "string",
            "description": "Customer last name.",
            "example": "Doe",
            "maxLength": 128,
            "minLength": 0
          },
          "customerAddress": {
            "type": "string",
            "description": "Customer address line.",
            "example": "123 Main Street",
            "maxLength": 128,
            "minLength": 0
          },
          "customerZipCode": {
            "type": "string",
            "description": "Customer ZIP/postal code.",
            "example": "10001",
            "maxLength": 10,
            "minLength": 0
          },
          "customerCity": {
            "type": "string",
            "description": "Customer city.",
            "example": "New York",
            "maxLength": 128,
            "minLength": 0
          },
          "customerState": {
            "type": "string",
            "description": "Customer state/region.",
            "example": "NY",
            "maxLength": 30,
            "minLength": 0
          },
          "customerCountryCode": {
            "type": "string",
            "description": "Customer country code.",
            "example": "US",
            "maxLength": 2,
            "minLength": 2
          },
          "customerPhone": {
            "type": "string",
            "description": "Customer phone number.",
            "example": "+15551234567",
            "maxLength": 20,
            "minLength": 0
          }
        }
      },
      "SdkSaleRequestDTO": {
        "type": "object",
        "description": "SDK sale request containing the payment token and payment method payload.",
        "properties": {
          "siteId": {
            "type": "string",
            "description": "Merchant site identifier for the SDK session.",
            "example": "site-id"
          },
          "paymentToken": {
            "type": "string",
            "description": "Payment token returned by the SDK initialize-session endpoint.",
            "example": "tok_8f34c1d7e9ab42f5",
            "minLength": 1
          },
          "paymentType": {
            "type": "string",
            "description": "Payment method type. Defaults to CARD when omitted or invalid.",
            "example": "CARD"
          },
          "walletType": {
            "type": "string",
            "description": "Wallet type for wallet payments.",
            "example": "APPLE_PAY"
          },
          "applePaySSL": {
            "$ref": "#/components/schemas/ApplePaySSLDTO",
            "description": "Apple Pay encrypted payment payload."
          },
          "googlePaySSL": {
            "$ref": "#/components/schemas/GooglePaySSLDTO",
            "description": "Google Pay encrypted payment payload."
          },
          "tokenizedDTO": {
            "$ref": "#/components/schemas/TokenizedDTO",
            "description": "Tokenized payment details."
          },
          "apmType": {
            "type": "string",
            "description": "Alternative payment method type.",
            "example": "PAYPAL"
          },
          "alternativePaymentMethod": {
            "$ref": "#/components/schemas/AlternativePaymentMethodDTO",
            "description": "Alternative payment method request details."
          },
          "cardHolderName": {
            "type": "string",
            "maxLength": 128,
            "minLength": 0
          },
          "dfReferenceId": {
            "type": "string",
            "description": "Device fingerprint reference identifier for risk and 3DS flows.",
            "example": "df-ref-123"
          },
          "transID": {
            "type": "string",
            "description": "3DS transaction identifier when continuing a 3DS flow.",
            "example": "3ds-trans-123"
          },
          "customerDetails": {
            "$ref": "#/components/schemas/HppCustomerDetailsDTO",
            "description": "Customer details supplied by the SDK or merchant checkout."
          },
          "billingDetails": {
            "$ref": "#/components/schemas/BillingAddressDTO",
            "description": "Billing address details."
          },
          "shippingDetails": {
            "$ref": "#/components/schemas/ShippingAddressDTO",
            "description": "Shipping address details."
          },
          "isBillingAndShippingDetailsSame": {
            "type": "boolean",
            "description": "Whether billing and shipping details are the same.",
            "example": false
          },
          "browserData": {
            "$ref": "#/components/schemas/HppBrowserInfoDTO",
            "description": "Browser/device data used for 3DS and risk checks."
          }
        },
        "required": [
          "paymentToken"
        ]
      },
      "ShippingAddressDTO": {
        "type": "object",
        "description": "Shipping address details associated with a transaction/order.",
        "properties": {
          "shippingAddress": {
            "type": "string",
            "description": "Shipping address line.",
            "example": "123 Main Street",
            "maxLength": 128,
            "minLength": 0
          },
          "shippingZipCode": {
            "type": "string",
            "description": "Shipping ZIP/postal code.",
            "example": "10001",
            "maxLength": 10,
            "minLength": 0
          },
          "shippingCity": {
            "type": "string",
            "description": "Shipping city.",
            "example": "New York",
            "maxLength": 128,
            "minLength": 0
          },
          "shippingState": {
            "type": "string",
            "description": "Shipping state/region.",
            "example": "NY",
            "maxLength": 30,
            "minLength": 0
          },
          "shippingCountryCode": {
            "type": "string",
            "description": "Shipping country code (ISO 3166-1 alpha-2).",
            "example": "US",
            "maxLength": 2,
            "minLength": 2
          },
          "addressIdentifier": {
            "type": "string",
            "description": "Internal identifier for stored shipping address.",
            "example": "98f46613-9ee7-40a8-a3d6-8f2b7ccb91a2"
          }
        }
      },
      "TokenizedDTO": {
        "type": "object",
        "properties": {
          "cardNumber": {
            "type": "string",
            "description": "DPAN"
          },
          "cardExpiryMonth": {
            "pattern": "^(0[1-9]|1[0-2])$",
            "type": "string",
            "description": "Card expiry month in MM format.",
            "example": "09"
          },
          "cardExpiryYear": {
            "maxLength": 4,
            "minLength": 4,
            "type": "string",
            "description": "Card expiry year in YYYY format.",
            "example": "2028"
          },
          "cryptogram": {
            "type": "string"
          },
          "eciIndicator": {
            "type": "string"
          },
          "authMethod": {
            "type": "string"
          },
          "paymentToken": {
            "type": "string"
          }
        }
      },
      "APMPaymentInfoDTO": {
        "type": "object",
        "description": "Alternative payment method details returned for APM transactions.",
        "properties": {
          "apmPaymentUrl": {
            "type": "string",
            "description": "Redirect/deeplink URL used by the payer to complete APM payment.",
            "example": "https://pay.provider.com/checkout/abc123"
          },
          "apmPaymentUrlExpiry": {
            "type": "string",
            "format": "date-time",
            "description": "Expiry timestamp for the APM payment URL.",
            "example": "2026-05-09T18:30:00.000+05:30"
          },
          "bankAccountNumber": {
            "type": "string",
            "description": "Destination bank account number provided for manual transfer based APM flows.",
            "example": "123456789012"
          },
          "bankName": {
            "type": "string",
            "description": "Destination bank name for the payment instructions.",
            "example": "Banco Example"
          },
          "beneficiaryName": {
            "type": "string",
            "description": "Account beneficiary name to be shown to the payer.",
            "example": "Gateway Payments LLC"
          },
          "dynamicClabe": {
            "type": "string",
            "description": "Dynamic CLABE value generated for Mexico bank transfer flows when applicable.",
            "example": "032180000118359719"
          },
          "referenceNumber": {
            "type": "string",
            "description": "Reference number that the payer must include while making payment.",
            "example": "REF-84736291"
          },
          "qrCode": {
            "type": "string",
            "description": "Base64-encoded PNG image of the QR code returned for QR-based APM payment flows.",
            "example": "iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAQAAAAA2RLUcAAAAeElEQVR4XmP4DwYHGOhG/2ERkAfRf79Mvw+mxUziIfQUCC16BUJ/LQfL/2ENAKv//8ceoj+FcT6I/pf9FKzuX9hfMP1nbhTEni3pYPn/f5aC9f1h74GY90UZLP9XjGU/mBavqYfY9xWs7u/XexDzWUrA9qK7mz40ALEOMCWDxuHaAAAAAElFTkSuQmCC"
          },
          "qrCodeExpiry": {
            "type": "string",
            "format": "date-time",
            "description": "Expiry timestamp for the QR code content.",
            "example": "2026-05-09T18:30:00"
          },
          "qrCodePayload": {
            "type": "string",
            "description": "QR code payload/content returned for QR-based APM payment flows.",
            "example": "00020101021226830014br.gov.bcb.pix2561qrcode.provider.com/pix/v2/8f3d2d2a-1d3b-4fc9-8b92-12ab34cd56ef5204000053039865406100.005802BR5913Gateway Store6009Sao Paulo62140510REF123456304B9A1"
          },
          "payerEmail": {
            "type": "string"
          },
          "apmPaymentDirectUrl": {
            "type": "string"
          }
        }
      },
      "BinInfo": {
        "type": "object",
        "description": "BIN lookup information derived from the card number.",
        "properties": {
          "cardBin": {
            "type": "string",
            "description": "Card BIN/IIN prefix.",
            "example": "411111"
          },
          "cardBrand": {
            "type": "string",
            "description": "Card scheme/brand.",
            "example": "VISA"
          },
          "cardIssuer": {
            "type": "string",
            "description": "Card issuer/bank name.",
            "example": "Example Bank"
          },
          "cardFundingType": {
            "type": "string",
            "description": "Card funding type.",
            "example": "CREDIT"
          },
          "cardCategoryLevel": {
            "type": "string",
            "description": "Issuer product/category level.",
            "example": "PREPAID"
          },
          "cardIssuerCountry": {
            "type": "string",
            "description": "Issuer country code (ISO 3166-1 alpha-2).",
            "example": "US"
          },
          "cardIssuerPhone": {
            "type": "string",
            "description": "Issuer support/contact phone number.",
            "example": "+18005551234"
          },
          "cardIssuerSite": {
            "type": "string",
            "description": "Issuer website URL.",
            "example": "https://www.examplebank.com"
          }
        }
      },
      "ResultThreeDSTransactionResponseDTO": {
        "type": "object",
        "description": "Response payload for 3DS transaction initialization/challenge flows.",
        "properties": {
          "traceID": {
            "type": "string",
            "description": "Trace identifier for request correlation.",
            "example": "trace-7f3d9e12"
          },
          "responseTimestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when the 3DS response was generated.",
            "example": "2026-05-09T18:30:00Z"
          },
          "transID": {
            "type": "string",
            "description": "Internal transaction identifier for the 3DS flow.",
            "example": "TXN-123456789"
          },
          "referenceId": {
            "type": "string",
            "description": "Reference identifier tied to the transaction request.",
            "example": "REF-987654"
          },
          "errorCode": {
            "type": "string",
            "description": "Error code returned when 3DS processing fails.",
            "example": "3DS_1001"
          },
          "errorMessage": {
            "type": "string",
            "description": "Error message returned when 3DS processing fails.",
            "example": "Challenge initialization failed"
          },
          "threeDs2TransactionId": {
            "type": "string",
            "description": "3DS2 provider transaction identifier.",
            "example": "3DS2-abc-123"
          },
          "eci": {
            "type": "string",
            "description": "Electronic Commerce Indicator returned by 3DS.",
            "example": "05"
          },
          "cavv": {
            "type": "string",
            "description": "Cardholder Authentication Verification Value returned by 3DS.",
            "example": "AAABBIIFmAAAAAAAAAAAAAAAAAA="
          },
          "challengeRequired": {
            "type": "boolean",
            "description": "Indicates whether a challenge step is required.",
            "example": true
          },
          "jwt": {
            "type": "string",
            "description": "JWT token required for client-side challenge continuation.",
            "example": "eyJhbGciOi..."
          },
          "redirectUrl": {
            "type": "string",
            "description": "URL where client should be redirected for next 3DS step.",
            "example": "https://acs.example.com/challenge"
          },
          "status": {
            "type": "string",
            "description": "Current 3DS status for the transaction.",
            "enum": [
              "INITIALIZED",
              "INITIALIZATION_FAILED",
              "AUTHENTICATED",
              "AUTHENTICATION_FAILED",
              "DEVICE_DATA_COLLECTED",
              "ACS_REQUIRED",
              "ACS_COMPLETED",
              "ACS_FAILED",
              "COMPLETED",
              "RESULT_FAILED",
              "INITIALIZED",
              "INITIALIZATION_FAILED",
              "AUTHENTICATED",
              "AUTHENTICATION_FAILED",
              "DEVICE_DATA_COLLECTED",
              "ACS_REQUIRED",
              "ACS_COMPLETED",
              "ACS_FAILED",
              "COMPLETED",
              "RESULT_FAILED"
            ],
            "example": "CHALLENGE_REQUIRED"
          },
          "threeDsVersion": {
            "type": "string",
            "description": "3DS protocol version used for this transaction.",
            "example": "2.0.0"
          },
          "providerRedirectUrl": {
            "type": "string",
            "description": "Provider-specific redirect URL for completing 3DS.",
            "example": "https://provider.example.com/redirect/txn123"
          },
          "merchantRedirectUrl": {
            "type": "string",
            "description": "Merchant callback/return URL after 3DS flow completes.",
            "example": "https://merchant.example.com/3ds/callback"
          },
          "provider": {
            "type": "string",
            "description": "3DS provider identifier handling the authentication.",
            "example": "UNICON"
          },
          "providerTransactionId": {
            "type": "string",
            "description": "Provider transaction identifier returned by 3DS provider.",
            "example": "UNI-3DS-443322"
          },
          "netvalveCallBackUrl": {
            "type": "string",
            "description": "Callback URL to be used by Netvalve integration, when applicable.",
            "example": "https://gateway.example.com/netvalve/callback"
          },
          "authType": {
            "type": "string",
            "description": "Authentication type returned by provider.",
            "example": "CHALLENGE"
          },
          "methodPostData": {
            "type": "string",
            "description": "Additional form post data required for browser-based challenge steps.",
            "example": "PaReq=...&MD=...&TermUrl=..."
          },
          "providerResponse": {
            "type": "string"
          },
          "cReq": {
            "type": "string",
            "description": "Base64 CReq payload for Mastercard challenge flow.",
            "example": "eyJ0aHJlZURTU2VydmVyVHJhbnNJRCI6Ii4uLiJ9"
          }
        }
      },
      "TokenizationResponseDTO": {
        "type": "object",
        "properties": {
          "tokenizationSuccessful": {
            "type": "boolean"
          }
        }
      },
      "TransactionResponseDTO": {
        "type": "object",
        "properties": {
          "traceID": {
            "type": "string"
          },
          "responseTimestamp": {
            "type": "string",
            "format": "date-time"
          },
          "orderId": {
            "type": "integer",
            "format": "int64"
          },
          "transactionID": {
            "type": "integer",
            "format": "int64"
          },
          "responseCode": {
            "type": "string"
          },
          "responseMessage": {
            "type": "string"
          },
          "responseCodeType": {
            "type": "string"
          },
          "bankResponseCode": {
            "type": "string"
          },
          "bankResponseMessage": {
            "type": "string"
          },
          "orderState": {
            "type": "string",
            "enum": [
              "CREATED",
              "READY_TO_PAY",
              "PENDING",
              "PAID",
              "DECLINED",
              "EXPIRED",
              "AWAIT_3DS",
              "CREATED",
              "READY_TO_PAY",
              "PENDING",
              "PAID",
              "DECLINED",
              "EXPIRED",
              "AWAIT_3DS"
            ]
          },
          "redirectUrl": {
            "type": "string"
          },
          "merchantName": {
            "type": "string"
          },
          "clientId": {
            "type": "integer",
            "format": "int64"
          },
          "isRetryAllowed": {
            "type": "boolean"
          },
          "threeDSProviderResponse": {
            "$ref": "#/components/schemas/ResultThreeDSTransactionResponseDTO"
          },
          "paymentMethod": {
            "type": "string"
          },
          "cardNumber": {
            "type": "string"
          },
          "cardExpiryMonth": {
            "type": "string"
          },
          "cardExpiryYear": {
            "type": "string"
          },
          "cardType": {
            "type": "string"
          },
          "bankTransactionId": {
            "type": "string"
          },
          "authCode": {
            "type": "string"
          },
          "schemeTransactionLinkIdentifier": {
            "type": "string",
            "description": "Mastercard Transaction Link Identifier (TLID). Send it in additionalData when your integration already has the Mastercard TLID; returned when available from the request or processor response.",
            "example": "mastercard-tlid"
          },
          "midId": {
            "type": "integer",
            "format": "int64"
          },
          "netvalveMidId": {
            "type": "string"
          },
          "midIdentifier": {
            "type": "string"
          },
          "processor": {
            "type": "string"
          },
          "amount": {
            "type": "number"
          },
          "currency": {
            "type": "string"
          },
          "hppIFrameSupported": {
            "type": "boolean"
          },
          "token": {
            "type": "string"
          },
          "tokenizationResponseDTO": {
            "$ref": "#/components/schemas/TokenizationResponseDTO"
          },
          "paymentAttempted": {
            "type": "boolean"
          },
          "paymentChannelType": {
            "type": "string",
            "enum": [
              "HPP",
              "API",
              "API_3DS",
              "HPP_3DS",
              "RETRY_WITH_HPP",
              "SMART_ROUTING",
              "RETRY_WITH_SMART_ROUTING",
              "SERVER_TO_SERVER",
              "RETRY_WITH_SERVER_TO_SERVER",
              "APPLE_PAY",
              "GOOGLE_PAY",
              "SAMSUNG_PAY",
              "HPP_3DS_CARDS",
              "HPP_3DS_APPLE_PAY",
              "HPP_3DS_GOOGLE_PAY",
              "HPP_3DS_SAMSUNG_PAY",
              "HPP_APPLE_PAY_CONFIG_NETVALVE_INTEGRATOR",
              "HPP_APPLE_PAY_CONFIG_NETVALVE_LEVEL",
              "HPP_APPLE_PAY_CONFIG_CLIENT_LEVEL",
              "HPP_APPLE_PAY_CONFIG_MID_LEVEL",
              "HPP_GOOGLE_PAY_CONFIG_NETVALVE_LEVEL",
              "HPP_GOOGLE_PAY_CONFIG_CLIENT_LEVEL",
              "HPP_GOOGLE_PAY_CONFIG_MID_LEVEL",
              "GATEWAY_TOKEN_SAVING",
              "GATEWAY_TOKEN_PROCESSING",
              "NETWORK_TOKEN_SAVING",
              "NETWORK_TOKEN_PROCESSING",
              "HOSTED_PAYMENT_FIELDS",
              "ACCOUNT_UPDATER",
              "DISABLE_BLACKLIST",
              "ENABLE_DYNAMIC_DESCRIPTOR",
              "ENABLE_BIN_INFO_RESPONSE",
              "ENABLE_DATA_ENRICHMENT",
              "ENABLE_PIX_SUBSCRIPTION",
              "ENABLE_MANAGED_RECURRING",
              "ENABLE_MANAGED_RECURRING_RETRIES",
              "PAYLINKS",
              "MOTO_DIRECT_MARKETING_TRANSACTIONS",
              "ENABLE_FSA_HSA_HEALTHCARE_DATA",
              "HPP",
              "API",
              "API_3DS",
              "HPP_3DS",
              "RETRY_WITH_HPP",
              "SMART_ROUTING",
              "RETRY_WITH_SMART_ROUTING",
              "SERVER_TO_SERVER",
              "RETRY_WITH_SERVER_TO_SERVER",
              "APPLE_PAY",
              "GOOGLE_PAY",
              "SAMSUNG_PAY",
              "HPP_3DS_CARDS",
              "HPP_3DS_APPLE_PAY",
              "HPP_3DS_GOOGLE_PAY",
              "HPP_3DS_SAMSUNG_PAY",
              "HPP_APPLE_PAY_CONFIG_NETVALVE_INTEGRATOR",
              "HPP_APPLE_PAY_CONFIG_NETVALVE_LEVEL",
              "HPP_APPLE_PAY_CONFIG_CLIENT_LEVEL",
              "HPP_APPLE_PAY_CONFIG_MID_LEVEL",
              "HPP_GOOGLE_PAY_CONFIG_NETVALVE_LEVEL",
              "HPP_GOOGLE_PAY_CONFIG_CLIENT_LEVEL",
              "HPP_GOOGLE_PAY_CONFIG_MID_LEVEL",
              "GATEWAY_TOKEN_SAVING",
              "GATEWAY_TOKEN_PROCESSING",
              "NETWORK_TOKEN_SAVING",
              "NETWORK_TOKEN_PROCESSING",
              "HOSTED_PAYMENT_FIELDS",
              "ACCOUNT_UPDATER",
              "DISABLE_BLACKLIST",
              "ENABLE_DYNAMIC_DESCRIPTOR",
              "ENABLE_BIN_INFO_RESPONSE",
              "ENABLE_DATA_ENRICHMENT",
              "ENABLE_PIX_SUBSCRIPTION",
              "ENABLE_MANAGED_RECURRING",
              "ENABLE_MANAGED_RECURRING_RETRIES",
              "PAYLINKS",
              "MOTO_DIRECT_MARKETING_TRANSACTIONS",
              "ENABLE_FSA_HSA_HEALTHCARE_DATA"
            ]
          },
          "siteId": {
            "type": "string"
          },
          "paymentToken": {
            "type": "string"
          },
          "paymentTokenType": {
            "type": "string",
            "enum": [
              "GATEWAY_TOKEN",
              "NETWORK_TOKEN",
              "BANK_TOKEN",
              "HPF",
              "SDK",
              "GATEWAY_TOKEN",
              "NETWORK_TOKEN",
              "BANK_TOKEN",
              "HPF",
              "SDK"
            ]
          },
          "transactionType": {
            "type": "string",
            "enum": [
              "AUTHORIZATION",
              "CAPTURE",
              "SALE",
              "REFUND",
              "CANCEL",
              "REBILL",
              "INQUIRY",
              "AUTHORIZATION",
              "CAPTURE",
              "SALE",
              "REFUND",
              "CANCEL",
              "REBILL",
              "INQUIRY"
            ]
          },
          "walletInitializeSessionResponseDTO": {
            "$ref": "#/components/schemas/WalletInitializeSessionResponseDTO"
          },
          "subscriptionId": {
            "type": "integer",
            "format": "int64"
          },
          "subscriptionStatus": {
            "type": "string",
            "enum": [
              "ACTIVE",
              "PAUSED",
              "INACTIVE",
              "PAYMENT_PENDING",
              "PAYMENT_FAILED",
              "ACTIVE",
              "PAUSED",
              "INACTIVE",
              "PAYMENT_PENDING",
              "PAYMENT_FAILED"
            ]
          },
          "binInfo": {
            "$ref": "#/components/schemas/BinInfo"
          },
          "apmType": {
            "type": "string",
            "enum": [
              "PIX",
              "PAYPAL",
              "BITPACE",
              "PSE",
              "VENMO",
              "SPEI",
              "VOLT",
              "SEZZLE",
              "IDEAL",
              "WERO",
              "SWISH",
              "EPS",
              "TWINT",
              "BANCONTACT",
              "BLIK",
              "GCASH",
              "PIX",
              "PAYPAL",
              "BITPACE",
              "PSE",
              "VENMO",
              "SPEI",
              "VOLT",
              "SEZZLE",
              "IDEAL",
              "WERO",
              "SWISH",
              "EPS",
              "TWINT",
              "BANCONTACT",
              "BLIK",
              "GCASH"
            ]
          },
          "apmPaymentInfo": {
            "$ref": "#/components/schemas/APMPaymentInfoDTO"
          },
          "originalTransactionId": {
            "type": "integer",
            "format": "int64",
            "description": "Internal parent transaction identifier.",
            "example": 987654321
          },
          "originalTransactionType": {
            "type": "string",
            "description": "Internal parent transaction type.",
            "enum": [
              "AUTHORIZATION",
              "CAPTURE",
              "SALE",
              "REFUND",
              "CANCEL",
              "REBILL",
              "INQUIRY",
              "AUTHORIZATION",
              "CAPTURE",
              "SALE",
              "REFUND",
              "CANCEL",
              "REBILL",
              "INQUIRY"
            ],
            "example": "SALE"
          },
          "eventName": {
            "type": "string",
            "enum": [
              "AUTHORISED",
              "PURCHASED",
              "CAPTURED",
              "REBILLED",
              "REFUNDED",
              "CANCELLED",
              "AUTHORISATION_FAILED",
              "PURCHASE_FAILED",
              "CAPTURE_FAILED",
              "REBILL_FAILED",
              "REFUND_FAILED",
              "CANCELLATION_FAILED",
              "AUTHORISATION_PENDING",
              "PURCHASE_PENDING",
              "CAPTURE_PENDING",
              "REBILL_PENDING",
              "REFUND_PENDING",
              "CANCELLATION_PENDING",
              "CHARGEBACK",
              "AUTHORISED",
              "PURCHASED",
              "CAPTURED",
              "REBILLED",
              "REFUNDED",
              "CANCELLED",
              "AUTHORISATION_FAILED",
              "PURCHASE_FAILED",
              "CAPTURE_FAILED",
              "REBILL_FAILED",
              "REFUND_FAILED",
              "CANCELLATION_FAILED",
              "AUTHORISATION_PENDING",
              "PURCHASE_PENDING",
              "CAPTURE_PENDING",
              "REBILL_PENDING",
              "REFUND_PENDING",
              "CANCELLATION_PENDING",
              "CHARGEBACK"
            ]
          },
          "chargebackTransactionType": {
            "type": "string"
          },
          "chargebackSource": {
            "type": "string"
          },
          "eventType": {
            "type": "string"
          },
          "chargebackCategory": {
            "type": "string"
          },
          "disputeStage": {
            "type": "string"
          },
          "cardScheme": {
            "type": "string"
          },
          "reasonCode": {
            "type": "string"
          },
          "reasonDescription": {
            "type": "string"
          },
          "webhookFailureMessage": {
            "type": "string",
            "description": "Returned when webhookData.webhookUrl was invalid. The transaction is still processed, but no per-order webhook is sent. Omitted when the URL is valid or webhookData was not supplied.",
            "example": "Merchant provided webhook URL not valid"
          }
        }
      },
      "AdditionalTaxDetailsDTO": {
        "type": "object",
        "description": "Additional tax details used in Level 3 transaction data.",
        "properties": {
          "taxType": {
            "type": "string",
            "description": "Tax type code or label.",
            "example": "VAT"
          },
          "taxAmount": {
            "type": "number",
            "description": "Tax amount for the given tax type.",
            "example": 10
          },
          "taxRate": {
            "type": "number",
            "description": "Tax rate percentage.",
            "example": 7.5
          },
          "taxCategory": {
            "type": "string",
            "description": "Tax category/classification.",
            "example": "STANDARD"
          }
        }
      },
      "HealthCareDataDTO": {
        "type": "object",
        "description": "Healthcare transaction data for eligible HSA/FSA Visa or Mastercard Auth and Sale payments. The merchant's MID must have the ENABLE_FSA_HSA_HEALTHCARE_DATA payment channel enabled. For non-zero transactions, the healthcare amounts must be non-negative, at least one must be positive, and their sum must equal the transaction amount exactly. isQualifiedIIAS is required when any healthcare amount is positive.",
        "properties": {
          "healthCareAccountType": {
            "type": "string",
            "description": "Healthcare account type used for the transaction.",
            "enum": [
              "HSA",
              "FSA"
            ],
            "example": "HSA"
          },
          "prescriptionAmount": {
            "type": "number",
            "format": "double",
            "description": "Prescription or Rx amount included in the transaction.",
            "example": 0
          },
          "visionAmount": {
            "type": "number",
            "format": "double",
            "description": "Vision care amount included in the transaction.",
            "example": 0
          },
          "dentalAmount": {
            "type": "number",
            "format": "double",
            "description": "Dental care amount included in the transaction.",
            "example": 0
          },
          "clinicAmount": {
            "type": "number",
            "format": "double",
            "description": "Clinic or medical care amount included in the transaction.",
            "example": 12
          },
          "isQualifiedIIAS": {
            "type": "string",
            "description": "Indicates whether the transaction is qualified under the Inventory Information Approval System. Required when any healthcare amount is greater than zero.",
            "enum": [
              "YES",
              "NO",
              "EXEMPTED"
            ],
            "example": "NO"
          },
          "prescriptionNumber": {
            "type": "string",
            "maxLength": 64,
            "description": "Prescription/Rx number associated with the healthcare transaction, when applicable. Redacted in gateway logs.",
            "example": "00001"
          }
        }
      },
      "HppOrderInputFieldsDTO": {
        "type": "object",
        "description": "Create order request payload for HPP checkout and optional direct payment mode.",
        "properties": {
          "recurringSchedule": {
            "$ref": "#/components/schemas/RecurringScheduleDTO",
            "description": "Managed recurring schedule payload."
          },
          "mode": {
            "type": "string",
            "description": "Transaction mode for create order.",
            "enum": [
              "SALE",
              "AUTHORIZATION"
            ],
            "example": "SALE"
          },
          "amount": {
            "type": "number",
            "description": "Order amount.",
            "example": 49.99
          },
          "currency": {
            "type": "string",
            "description": "Order currency (ISO-4217).",
            "example": "USD"
          },
          "midId": {
            "type": "integer",
            "format": "int64",
            "description": "Internal merchant identifier.",
            "example": 3001
          },
          "netvalveMidId": {
            "type": "string",
            "description": "External merchant identifier.",
            "example": "716a2234-8e24-4a2d-b0d9-aa35d02f370d"
          },
          "siteId": {
            "type": "string",
            "description": "Site identifier for routing/layout.",
            "example": "201"
          },
          "clientOrderId": {
            "type": "string",
            "description": "Client-provided unique order reference.",
            "example": "ORD-20260422-001",
            "maxLength": 100,
            "minLength": 0
          },
          "cardHolderName": {
            "type": "string",
            "description": "Name of the cardholder. Optional field. If provided, must be a valid text value up to 128 characters. ",
            "example": "John Doe",
            "maxLength": 128,
            "minLength": 0
          },
          "orderDesc": {
            "type": "string",
            "description": "Order description.",
            "example": "Monthly subscription payment"
          },
          "successUrl": {
            "type": "string",
            "description": "Redirect URL for successful payment.",
            "example": "https://merchant.example/success"
          },
          "cancelUrl": {
            "type": "string",
            "description": "Redirect URL for cancelled payment.",
            "example": "https://merchant.example/cancel"
          },
          "failedUrl": {
            "type": "string",
            "description": "Redirect URL for failed payment.",
            "example": "https://merchant.example/failed"
          },
          "pendingUrl": {
            "type": "string",
            "description": "Redirect URL for pending payment status.",
            "example": "https://merchant.example/pending"
          },
          "webhookData": {
            "$ref": "#/components/schemas/WebhookConfigDTO",
            "description": "Optional per-order webhook. Events for this order are sent to webhookData.webhookUrl in addition to your configured webhook URLs."
          },
          "slimMode": {
            "type": "boolean",
            "description": "If true, opens slim checkout UI.",
            "example": false
          },
          "isBillingAndShippingDetailsSame": {
            "type": "boolean",
            "description": "If true, shipping details are copied from billing details.",
            "example": false
          },
          "customerDetails": {
            "$ref": "#/components/schemas/HppCustomerDetailsDTO",
            "description": "Customer details payload."
          },
          "billingDetails": {
            "$ref": "#/components/schemas/BillingAddressDTO",
            "description": "Billing address details payload."
          },
          "shippingDetails": {
            "$ref": "#/components/schemas/ShippingAddressDTO",
            "description": "Shipping address details payload."
          },
          "additionalParameters": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Additional merchant parameters stored with order.",
            "example": {
              "source": "campaign-a"
            }
          },
          "descriptor": {
            "type": "string",
            "description": "Dynamic descriptor (if enabled for merchant).",
            "example": "MYSHOP*SUBSCRIPTION",
            "pattern": "^.{0,50}$"
          },
          "language": {
            "type": "string",
            "description": "Checkout language code.",
            "example": "en"
          },
          "level2Data": {
            "$ref": "#/components/schemas/TransactionInputLevel2DTO",
            "description": "Level 2 transaction data."
          },
          "level3Data": {
            "$ref": "#/components/schemas/TransactionInputLevel3DTO",
            "description": "Level 3 transaction data."
          },
          "healthCareData": {
            "$ref": "#/components/schemas/HealthCareDataDTO"
          },
          "paymentMode": {
            "type": "string",
            "description": "Payment mode. Use DIRECT to execute payment in create-order flow.",
            "example": "REDIRECT"
          },
          "paymentOption": {
            "type": "string",
            "description": "Payment option identifier.",
            "example": "CARD"
          },
          "alternativePaymentMethod": {
            "$ref": "#/components/schemas/AlternativePaymentMethodDTO",
            "description": "Alternative payment method details."
          },
          "payLinkId": {
            "type": "string"
          }
        },
        "required": [
          "amount",
          "cancelUrl",
          "currency",
          "failedUrl",
          "successUrl",
          "amount",
          "cancelUrl",
          "currency",
          "failedUrl",
          "successUrl"
        ]
      },
      "TransactionInputLevel2DTO": {
        "type": "object",
        "description": "Level 2 transaction data used for enhanced corporate/commercial card processing.",
        "properties": {
          "taxAmount": {
            "type": "number",
            "description": "Tax amount applied to the transaction.",
            "example": 7.5
          },
          "purchaseOrderNumber": {
            "type": "string",
            "description": "Purchase order number associated with the transaction."
          },
          "customerReference": {
            "type": "string",
            "description": "Customer reference identifier for reconciliation."
          },
          "merchantTaxId": {
            "type": "string",
            "description": "Merchant tax identifier."
          },
          "taxExempt": {
            "type": "boolean",
            "description": "Indicates whether the transaction is tax exempt."
          }
        }
      },
      "TransactionInputLevel3DTO": {
        "type": "object",
        "description": "Level 3 transaction data used for enhanced commercial/corporate card processing.",
        "properties": {
          "customerReference": {
            "type": "string",
            "description": "Customer reference identifier for Level 3 transaction."
          },
          "purchaseOrderNumber": {
            "type": "string",
            "description": "Purchase order number for Level 3 transaction."
          },
          "invoiceNumber": {
            "type": "string",
            "description": "Invoice number associated with the transaction."
          },
          "taxAmount": {
            "type": "number",
            "description": "Tax amount for Level 3 transaction.",
            "example": 12.5
          },
          "taxExempt": {
            "type": "boolean",
            "description": "Indicates whether Level 3 transaction is tax exempt."
          },
          "freightAmount": {
            "type": "number",
            "description": "Freight amount for shipped goods.",
            "example": 5
          },
          "dutyAmount": {
            "type": "number",
            "description": "Duty amount applicable to the transaction.",
            "example": 2
          },
          "shipFromPostalCode": {
            "type": "string",
            "description": "Origin postal code for shipment."
          },
          "destinationPostalCode": {
            "type": "string",
            "description": "Destination postal code for shipment."
          },
          "shipToCountry": {
            "type": "string",
            "description": "Destination country code for shipment.",
            "example": "US"
          },
          "merchantTaxId": {
            "type": "string",
            "description": "Merchant tax identifier for Level 3 data."
          },
          "customerTaxId": {
            "type": "string"
          },
          "additionalTaxDetails": {
            "$ref": "#/components/schemas/AdditionalTaxDetailsDTO",
            "description": "Additional tax breakdown details."
          },
          "lineItems": {
            "type": "array",
            "description": "Line-item details for Level 3 transaction.",
            "items": {
              "$ref": "#/components/schemas/TransactionInputLevel3ItemDTO"
            }
          }
        }
      },
      "TransactionInputLevel3ItemDTO": {
        "type": "object",
        "description": "Line item details for Level 3 transaction processing.",
        "properties": {
          "productCode": {
            "type": "string",
            "description": "Product code for line item."
          },
          "productName": {
            "type": "string",
            "description": "Product name for line item."
          },
          "productSKU": {
            "type": "string",
            "description": "Stock keeping unit identifier for line item."
          },
          "quantity": {
            "type": "integer",
            "format": "int64",
            "description": "Quantity of product purchased.",
            "example": 2
          },
          "unitPrice": {
            "type": "number",
            "description": "Unit price of the product.",
            "example": 49.99
          },
          "totalAmount": {
            "type": "number",
            "description": "Total amount for line item.",
            "example": 99.98
          },
          "taxAmount": {
            "type": "number",
            "description": "Tax amount for line item.",
            "example": 5
          },
          "alternateTaxIdentifier": {
            "type": "string",
            "description": "Alternate tax identifier for line item."
          },
          "taxType": {
            "type": "string",
            "description": "Tax type for line item.",
            "example": "VAT"
          },
          "taxRate": {
            "type": "number",
            "description": "Tax rate for line item.",
            "example": 0.1
          },
          "unitOfMeasure": {
            "type": "string",
            "description": "Unit of measure for quantity.",
            "example": "EA"
          },
          "discountAmount": {
            "type": "number",
            "description": "Discount amount applied to line item.",
            "example": 2
          },
          "discountRate": {
            "type": "number",
            "description": "Discount rate applied to line item.",
            "example": 0.05
          },
          "discountApplied": {
            "type": "boolean",
            "description": "Indicates whether discount was applied."
          },
          "commodityCode": {
            "type": "string",
            "description": "Commodity code for line item classification."
          },
          "description": {
            "type": "string",
            "description": "Detailed line item description."
          }
        }
      },
      "WebhookConfigDTO": {
        "type": "object",
        "description": "Per-order webhook. NetValve sends every webhook event for this order (including later capture, refund, cancel and rebill transactions) to webhookUrl, in addition to the webhook URLs configured for your account, site or MID.",
        "properties": {
          "webhookUrl": {
            "type": "string",
            "maxLength": 1024,
            "description": "Absolute http or https URL that receives the webhook events for this order. Must resolve to a public address. If the URL is blank, malformed or too long, the transaction is still processed, no per-order webhook is sent, and webhookFailureMessage is returned.",
            "example": "https://merchant.example.com/webhooks/netvalve"
          },
          "header": {
            "type": "string",
            "maxLength": 256,
            "description": "Optional name of a custom HTTP header to include on each webhook request, for example an authentication header. Sent only when headerValue is also set.",
            "example": "X-Webhook-Token"
          },
          "headerValue": {
            "type": "string",
            "maxLength": 512,
            "description": "Value of the custom header. Stored encrypted and never logged.",
            "example": "your-shared-secret"
          }
        }
      },
      "PaymentMethodConfigurationDTO": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string"
          },
          "fields": {
            "type": "string"
          },
          "systemFields": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {}
            }
          }
        }
      },
      "PaymentPageLayoutDTO": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "clientId": {
            "type": "integer",
            "format": "int64"
          },
          "siteId": {
            "type": "integer",
            "format": "int64"
          },
          "midId": {
            "type": "integer",
            "format": "int64"
          },
          "logoId": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "bgColor": {
            "type": "string"
          },
          "cssId": {
            "type": "string"
          },
          "confirmationMsg": {
            "type": "string"
          },
          "payButtonText": {
            "type": "string"
          },
          "collectBillingInfo": {
            "type": "boolean"
          },
          "collectShippingInfo": {
            "type": "boolean"
          },
          "collectCustomerInfo": {
            "type": "boolean"
          },
          "collectZipCode": {
            "type": "boolean"
          },
          "allowedPaymentOptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "paymentMethodConfigurations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PaymentMethodConfigurationDTO"
            }
          },
          "termsAndConditions": {
            "$ref": "#/components/schemas/TermsAndConditionsDTO"
          },
          "displayFooterInfo": {
            "type": "boolean"
          },
          "footerFields": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "displayDescriptorInfo": {
            "type": "boolean"
          },
          "merchantDescriptor": {
            "type": "string"
          },
          "language": {
            "type": "string"
          },
          "enableTranslation": {
            "type": "boolean"
          }
        }
      },
      "SdkEndpointDTO": {
        "type": "object",
        "description": "Endpoint URLs returned to the SDK during session initialization.",
        "properties": {
          "apiBaseUrl": {
            "type": "string",
            "description": "Base URL for SDK calls to the Netvalve payment API.",
            "example": "https://payment-api.dev3.netvalve-dev.com"
          },
          "tokenfieldUrl": {
            "type": "string",
            "description": "URL for Netvalve token-field SDK assets.",
            "example": "https://tokenfield.dev3.netvalve-dev.com/sdk"
          },
          "scriptSrc": {
            "type": "string",
            "description": "URL of the SDK script to load.",
            "example": "https://sdk.dev3.netvalve-dev.com/netvalve-sdk.iife.js"
          }
        }
      },
      "SdkInitializeSessionResponseDTO": {
        "type": "object",
        "description": "Response payload returned when an SDK payment session is initialized.",
        "properties": {
          "traceID": {
            "type": "string",
            "description": "Unique request trace identifier for observability and troubleshooting.",
            "example": "trace-7f3d9e12"
          },
          "responseTimestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when the response was generated.",
            "example": "2026-07-03T11:05:30Z"
          },
          "responseCode": {
            "type": "string",
            "description": "Gateway response code indicating the operation result.",
            "example": "GTW_0000"
          },
          "responseMessage": {
            "type": "string",
            "description": "Human-readable gateway response message.",
            "example": "Transaction processed successfully"
          },
          "netvalveScriptSrc": {
            "type": "string",
            "description": "URL of the Netvalve SDK JavaScript file to load on the merchant checkout page.",
            "example": "https://sdk.dev3.netvalve-dev.com/netvalve-sdk.iife.js"
          },
          "version": {
            "type": "string",
            "description": "SDK version associated with the initialized session.",
            "example": "v1"
          },
          "integrity": {
            "type": "string",
            "description": "Subresource Integrity hash for validating the SDK script.",
            "example": "sha384-base64hash"
          },
          "paymentToken": {
            "type": "string",
            "description": "Payment token associated with the initialized SDK payment session.",
            "example": "tok_8f34c1d7e9ab42f5"
          },
          "jwtToken": {
            "type": "string",
            "description": "JWT token used by the SDK for session authorization.",
            "example": "eyJhbGciOiJkaXIi..."
          },
          "endpoints": {
            "$ref": "#/components/schemas/SdkEndpointDTO",
            "description": "Endpoint URLs used by the SDK for API and token-field calls."
          },
          "initConfig": {
            "$ref": "#/components/schemas/SdkSessionInitConfigDTO",
            "description": "Initialization configuration used by the SDK to render and process checkout."
          }
        }
      },
      "SdkSessionInitConfigDTO": {
        "type": "object",
        "description": "SDK initialization configuration used to render checkout and control data collection.",
        "properties": {
          "traceID": {
            "type": "string",
            "description": "Unique request trace identifier for the initialized session.",
            "example": "trace-7f3d9e12"
          },
          "responseTimestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when the initialization configuration was generated.",
            "example": "2026-07-03T11:05:30Z"
          },
          "responseCode": {
            "type": "string",
            "description": "Gateway response code for the initialization configuration.",
            "example": "GTW_0000"
          },
          "responseMessage": {
            "type": "string",
            "description": "Human-readable response message for the initialization configuration.",
            "example": "Transaction processed successfully"
          },
          "apiBaseUrl": {
            "type": "string",
            "description": "Base API URL used by the SDK.",
            "example": "https://payment-api.dev3.netvalve-dev.com"
          },
          "orderId": {
            "type": "integer",
            "format": "int64",
            "description": "Internal order identifier created for the SDK session.",
            "example": 123456
          },
          "transactionID": {
            "type": "integer",
            "format": "int64",
            "description": "Internal transaction identifier created for the SDK session.",
            "example": 987654321
          },
          "orderState": {
            "type": "string",
            "description": "Current payment/order state for the SDK session.",
            "enum": [
              "CREATED",
              "READY_TO_PAY",
              "PENDING",
              "PAID",
              "DECLINED",
              "EXPIRED",
              "AWAIT_3DS"
            ],
            "example": "READY_TO_PAY"
          },
          "orderDetails": {
            "$ref": "#/components/schemas/SdkSessionOrderDetailsDTO",
            "description": "Order amount, currency, expiry, and merchant reference information."
          },
          "collectBillingInfo": {
            "type": "boolean",
            "description": "Whether the SDK should collect billing details.",
            "example": true
          },
          "collectShippingInfo": {
            "type": "boolean",
            "description": "Whether the SDK should collect shipping details.",
            "example": false
          },
          "collectCustomerInfo": {
            "type": "boolean",
            "description": "Whether the SDK should collect customer details.",
            "example": true
          },
          "customerDetails": {
            "$ref": "#/components/schemas/HppCustomerDetailsDTO",
            "description": "Customer details available to the SDK checkout."
          },
          "collectZipCode": {
            "type": "boolean",
            "description": "Whether the SDK should collect ZIP/postal code.",
            "example": true
          },
          "successUrl": {
            "type": "string",
            "description": "Merchant URL used after successful payment.",
            "example": "https://merchant.example.com/success"
          },
          "cancelUrl": {
            "type": "string",
            "description": "Merchant URL used when checkout is cancelled.",
            "example": "https://merchant.example.com/cancel"
          },
          "failedUrl": {
            "type": "string",
            "description": "Merchant URL used after failed payment.",
            "example": "https://merchant.example.com/failed"
          },
          "theme": {
            "type": "integer",
            "format": "int64",
            "description": "Payment page layout/theme identifier.",
            "example": 99
          },
          "isIFrameSupported": {
            "type": "boolean",
            "description": "Whether iframe integration is supported for this session.",
            "example": false
          },
          "paymentPageLayout": {
            "$ref": "#/components/schemas/PaymentPageLayoutDTO",
            "description": "Payment page layout, branding, and allowed payment method configuration."
          },
          "paymentOption": {
            "type": "string",
            "description": "Default or selected payment option for the SDK session.",
            "example": "CARD"
          },
          "alternativePaymentMethod": {
            "$ref": "#/components/schemas/AlternativePaymentMethodDTO",
            "description": "Alternative payment method details returned for SDK checkout."
          }
        }
      },
      "SdkSessionOrderDetailsDTO": {
        "type": "object",
        "description": "Order details returned as part of SDK session initialization.",
        "properties": {
          "clientOrderId": {
            "type": "string",
            "description": "Merchant-provided order identifier.",
            "example": "merchant-order-1001"
          },
          "orderDesc": {
            "type": "string",
            "description": "Merchant-provided order description.",
            "example": "Checkout order"
          },
          "amount": {
            "type": "number",
            "description": "Order amount.",
            "example": 49.99
          },
          "currency": {
            "type": "string",
            "description": "Order currency in ISO 4217 format.",
            "example": "USD"
          },
          "timeLimit": {
            "type": "integer",
            "format": "int64",
            "description": "Payment session time limit in seconds.",
            "example": 600
          },
          "expiryDate": {
            "type": "string",
            "description": "Payment session expiry timestamp.",
            "example": "2026-07-03T11:15:30Z"
          },
          "siteId": {
            "type": "string",
            "description": "Merchant site identifier used for the SDK session.",
            "example": "site-id"
          }
        }
      },
      "TermsAndConditionsDTO": {
        "type": "object",
        "properties": {
          "checkboxRequired": {
            "type": "boolean"
          },
          "termsAndConditionsLabel": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "URL",
              "TEXT",
              "URL",
              "TEXT"
            ]
          },
          "url": {
            "type": "string"
          },
          "htmlFileId": {
            "type": "string"
          }
        }
      },
      "SdkThreeDSPaymentRequestDTO": {
        "type": "object",
        "description": "SDK 3DS completion request containing payment token and 3DS transaction identifiers.",
        "properties": {
          "siteId": {
            "type": "string",
            "description": "Merchant site identifier for the SDK session.",
            "example": "site-id"
          },
          "paymentToken": {
            "type": "string",
            "description": "Payment token returned by the SDK initialize-session endpoint.",
            "example": "tok_8f34c1d7e9ab42f5"
          },
          "transID": {
            "type": "string",
            "description": "3DS transaction identifier returned by the authentication provider.",
            "example": "3ds-trans-123"
          },
          "dfReferenceId": {
            "type": "string",
            "description": "Device fingerprint reference identifier for risk and 3DS flows.",
            "example": "df-ref-123"
          },
          "browserData": {
            "$ref": "#/components/schemas/HppBrowserInfoDTO",
            "description": "Browser/device data used to complete the 3DS flow."
          }
        }
      },
      "AdditionalDataDTO": {
        "type": "object",
        "properties": {
          "industryCode": {
            "type": "string",
            "description": "Merchant industry code used to classify the type of business.",
            "example": "Food/Restaurant"
          },
          "isCardAuthentication": {
            "type": "boolean",
            "default": false,
            "description": "Indicates whether card authentication was performed."
          },
          "isOfflineTransaction": {
            "type": "boolean",
            "default": false,
            "description": "Indicates whether the transaction was processed in offline mode.",
            "example": false
          },
          "requestTransactionType": {
            "type": "string",
            "description": "Type of transaction request (e.g., IN_APP, ECOMMERCE, DIRECT_MARKETING etc.).",
            "enum": [
              "IN_APP",
              "ECOMMERCE",
              "RECURRING",
              "DIRECT_MARKETING",
              "INSTALLMENT"
            ],
            "example": "SALE"
          },
          "isLevel2Transaction": {
            "type": "boolean",
            "default": false,
            "description": "Indicates whether this is a Level 2 transaction with enhanced data (e.g., tax, customer details).",
            "example": false
          },
          "taxAmount": {
            "type": "number",
            "format": "double",
            "description": "Tax amount associated with the transaction.",
            "example": 18
          },
          "settlementAmount": {
            "type": "number",
            "description": "Settlement amount to be processed.",
            "example": 1000.5
          },
          "isDirectMarketing": {
            "type": "boolean",
            "default": false,
            "description": "Indicates whether the transaction is related to direct marketing activity.",
            "example": false
          },
          "recurringScheduleType": {
            "type": "string",
            "description": "Type of recurring schedule applied to the transaction (e.g., CIT_STANDING_ORDER, CIT_SUBSCRIPTION, MIT_STANDING_ORDER, MIT_UNSCHEDULED_COF etc.).",
            "example": "MONTHLY"
          },
          "partialAuthorizationIndicator": {
            "type": "string",
            "description": "Indicates partial authorization for the transaction."
          },
          "directMarketingTxnMode": {
            "type": "string",
            "description": "Direct marketing transaction mode indicator.",
            "example": "MAIL"
          },
          "cardUsage": {
            "type": "string",
            "description": "Indicates intended usage of the card (e.g., COF, INITIAL, INSTALLMENT)."
          },
          "recipientDob": {
            "type": "string",
            "description": "Recipient date of birth."
          },
          "recipientAccountNo": {
            "type": "string",
            "description": "Recipient account number.",
            "example": "123456789012"
          },
          "recipientPostalCode": {
            "type": "string",
            "description": "Recipient postal/ZIP code.",
            "example": "440001"
          },
          "recipientSurname": {
            "type": "string",
            "description": "Recipient surname/last name.",
            "example": "Doe"
          },
          "scaExemptionIndicator": {
            "type": "string",
            "description": "Strong Customer Authentication (SCA) exemption indicator."
          },
          "credentialOnFileTransaction": {
            "type": "string",
            "description": "Network Transaction ID (scheme transaction ID / TRN) of the original customer-initiated transaction that a merchant-initiated payment refers back to. Omit for CIT payments and for MIT payments whose original CIT was processed through NetValve; NetValve looks it up from the card's earlier transactions. Send it only when the original CIT was processed outside NetValve. Do not send flag values such as CIT or MIT; they are forwarded to the processor as the transaction reference and declined.",
            "example": "015221061118123"
          },
          "schemeTransactionLinkIdentifier": {
            "type": "string",
            "description": "Mastercard Transaction Link Identifier (TLID). Send it in additionalData when your integration already has the Mastercard TLID; returned when available from the request or processor response.",
            "example": "mastercard-tlid"
          },
          "recurrenceMode": {
            "type": "string",
            "description": "Recurrence mode of the transaction (e.g., INITIAL, REPEATED)."
          },
          "transactionId": {
            "type": "string",
            "description": "Unique identifier for the transaction."
          }
        }
      },
      "BasicInputFieldsDTO": {
        "type": "object",
        "properties": {
          "midId": {
            "type": "integer",
            "format": "int64",
            "description": "Merchant identifier internally used by the Netvalve",
            "example": 1001
          },
          "netvalveMidId": {
            "type": "string",
            "description": "A unique merchant identifier assigned to the account.",
            "example": "f8c2c3a9-9d2e-4a7e-9c6b-6b3c0a6e4f21"
          },
          "amount": {
            "type": "number",
            "description": "The amount of the transaction.",
            "example": 49.99
          },
          "currency": {
            "type": "string",
            "description": "Currency code in ISO 4217 format. Must be a valid 3-letter uppercase currency code (e.g., INR, USD, EUR). ",
            "example": "USD",
            "maxLength": 3,
            "minLength": 3
          },
          "orderDesc": {
            "type": "string",
            "description": "Optional order description. If provided, must be a valid text string up to 1000 characters.",
            "example": "Payment for order 12345",
            "maxLength": 1000
          },
          "clientOrderId": {
            "type": "string",
            "description": "Optional client-provided order identifier. If provided, must be a valid text value with a maximum length of 100 characters. ",
            "example": "ORD-12345-ABC",
            "maxLength": 100,
            "minLength": 0
          },
          "cardSecurityCode": {
            "type": "string",
            "description": "Optional card security code (CVV/CVC). If provided, must be between 3 and 4 characters in length. ",
            "example": "123",
            "maxLength": 4,
            "minLength": 3
          },
          "cardHolderName": {
            "type": "string",
            "description": "Name of the cardholder. Optional field. If provided, must be a valid text value up to 128 characters. ",
            "example": "John Doe",
            "maxLength": 128,
            "minLength": 0
          },
          "cardExpireMonth": {
            "type": "string",
            "description": "Card expiration month. Optional field. If provided, must be in MM format ranging from 01 to 12. ",
            "example": "09",
            "pattern": "^(0[1-9]|1[0-2])$"
          },
          "cardExpireYear": {
            "type": "string",
            "description": "Card expiration year in YYYY format. Optional field. If provided, must be exactly 4 digits representing a valid year.",
            "example": "2026",
            "maxLength": 4,
            "minLength": 4
          },
          "customerName": {
            "type": "string",
            "description": "Full name of the customer. Optional field. If provided, must be a valid text value up to 128 characters.",
            "example": "John Doe",
            "maxLength": 128,
            "minLength": 0
          },
          "customerFirstName": {
            "type": "string",
            "description": "Customer first name. Optional field. Must be valid text up to 128 characters if provided.",
            "example": "John",
            "maxLength": 128,
            "minLength": 0
          },
          "customerLastName": {
            "type": "string",
            "description": "Customer last name. Optional field. Must be valid text up to 128 characters if provided.",
            "example": "Doe",
            "maxLength": 128,
            "minLength": 0
          },
          "customerAddress": {
            "type": "string",
            "description": "Customer address. Optional field. If provided, must be valid text up to 128 characters.",
            "example": "221B Baker Street",
            "maxLength": 128,
            "minLength": 0
          },
          "customerZipCode": {
            "type": "string",
            "description": "Customer ZIP / postal code. Optional field. Must be up to 10 characters if provided.",
            "example": "440001",
            "maxLength": 10,
            "minLength": 0
          },
          "customerCity": {
            "type": "string",
            "description": "Customer city. Optional field. Must be valid text up to 128 characters if provided.",
            "example": "Leeds",
            "maxLength": 128,
            "minLength": 0
          },
          "customerState": {
            "type": "string",
            "description": "Customer state or region. Optional field. Must be valid text up to 30 characters if provided.",
            "example": "Massachusetts",
            "maxLength": 30,
            "minLength": 0
          },
          "customerCountryCode": {
            "type": "string",
            "description": "Customer country code in ISO 3166-1 alpha-2 format. Optional field. If provided, must be a valid 2-letter country code (e.g., IN, US, GB). ",
            "example": "IN",
            "maxLength": 2,
            "minLength": 2
          },
          "customerPhone": {
            "type": "string",
            "description": "Customer phone number. Optional field. If provided, must contain only valid phone characters: digits (0-9), plus sign (+), parentheses (), hyphen (-), dot (.), and spaces. Maximum length is 20 characters. Blank or null values are allowed.",
            "example": "+91 98765 43210",
            "maxLength": 20,
            "minLength": 0
          },
          "customerEmail": {
            "type": "string",
            "description": "Customer email address. Optional field. If provided, must be a valid email address format. Maximum length is 128 characters.",
            "example": "john.doe@example.com",
            "maxLength": 128,
            "minLength": 0
          },
          "customerIp": {
            "type": "string",
            "description": "Customer IP address. Optional field. If provided, must be a valid IPv4 or IPv6 address.",
            "example": "192.x.x.1"
          },
          "forceThreeDS": {
            "type": "boolean"
          },
          "paymentType": {
            "type": "string",
            "description": "Payment type used for the transaction. Defaults to CARD if not provided.",
            "enum": [
              "CARD",
              "WALLET",
              "TOKEN",
              "APM",
              "MERCHANT_NETWORK_TOKEN"
            ],
            "example": "CARD"
          },
          "walletType": {
            "type": "string",
            "description": "Wallet type used for the transaction. Required when paymentType is WALLET. Indicates the digital wallet provider selected by the customer.",
            "enum": [
              "APPLE_PAY",
              "GOOGLE_PAY",
              "SAMSUNG_PAY"
            ],
            "example": "APPLE_PAY"
          },
          "ApplePaySSL": {
            "$ref": "#/components/schemas/ApplePaySSLDTO",
            "description": "Apple Pay payment payload used for processing secure Apple Pay transactions. Contains encrypted payment data, payment method details, and transaction identifiers."
          },
          "GooglePaySSL": {
            "$ref": "#/components/schemas/GooglePaySSLDTO",
            "description": "Google Pay signed/encrypted payload used for secure wallet transaction processing."
          },
          "SamsungPaySSL": {
            "$ref": "#/components/schemas/SamsungPaySSLDTO",
            "description": "Samsung Pay wallet payload containing request, credential, and payer metadata."
          },
          "tokenizedDTO": {
            "$ref": "#/components/schemas/TokenizedDTO",
            "description": "Tokenized payment request containing card token details, cryptographic authentication data, and transaction information. Used when payments are processed using stored or network tokenization mechanisms."
          },
          "networkTokenInfo": {
            "$ref": "#/components/schemas/NetworkTokenInfoDTO"
          },
          "additionalData": {
            "$ref": "#/components/schemas/AdditionalDataDTO",
            "description": "Additional transaction metadata used for enhanced payment processing, including industry classification, recurring settings, Level 2/3 data, fraud indicators, and regulatory flags."
          },
          "additionalParameters": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Free-form key/value metadata passed along with the payment request.",
            "example": {
              "promoCode": "SPRING10",
              "channel": "web"
            }
          },
          "siteId": {
            "type": "string",
            "description": "Identifier of the merchant site.",
            "example": "SITE-001"
          },
          "webhookData": {
            "$ref": "#/components/schemas/WebhookConfigDTO",
            "description": "Optional per-order webhook. Events for this order are sent to webhookData.webhookUrl in addition to your configured webhook URLs."
          },
          "paymentToken": {
            "type": "string",
            "description": "Payment token representing a secure reference to a tokenized payment method. Used to complete transactions without directly exposing card or wallet details.",
            "example": "tok_8f34c1d7e9ab42f5"
          },
          "descriptor": {
            "type": "string",
            "description": "Transaction descriptor used to provide a short description of the payment as it appears on customer statements. Maximum length is 50 characters.",
            "example": "ONLINE PURCHASE STORE123",
            "maxLength": 50,
            "pattern": "^.{0,50}$"
          },
          "recurringSchedule": {
            "$ref": "#/components/schemas/RecurringScheduleDTO",
            "description": "Represents configuration for recurring payment schedules including frequency, duration, amount, and status. Used to manage subscription-based or scheduled billing flows."
          },
          "level2Data": {
            "$ref": "#/components/schemas/TransactionInputLevel2DTO",
            "description": "Level 2 enhanced transaction data such as tax and purchase order information."
          },
          "level3Data": {
            "$ref": "#/components/schemas/TransactionInputLevel3DTO",
            "description": "Level 3 line-item transaction data used for commercial and corporate card processing."
          },
          "apmType": {
            "type": "string",
            "description": "Alternative Payment Method (APM) type used for the transaction. Specifies the external payment network or provider selected by the customer.",
            "enum": [
              "PIX",
              "PAYPAL",
              "BITPACE",
              "PSE",
              "VENMO",
              "SPEI",
              "VOLT",
              "SEZZLE",
              "IDEAL",
              "WERO",
              "SWISH",
              "EPS",
              "TWINT",
              "BANCONTACT",
              "BLIK",
              "GCASH"
            ],
            "example": "PAYPAL"
          },
          "alternativePaymentMethod": {
            "$ref": "#/components/schemas/AlternativePaymentMethodDTO",
            "description": "Request payload for alternative payment method (APM) processing. "
          },
          "successUrl": {
            "type": "string",
            "description": "Merchant URL the consumer returns to after a redirect-based APM payment. Confirm the final status via webhook or inquiry.",
            "example": "https://merchant.example/payment/return"
          },
          "failedUrl": {
            "type": "string",
            "description": "Merchant URL the consumer returns to when a redirect-based APM payment fails or is declined. Confirm the final status via webhook or inquiry.",
            "example": "https://merchant.example/payment/failed"
          },
          "pendingUrl": {
            "type": "string",
            "description": "Merchant URL the consumer returns to while a redirect-based APM payment is still pending.",
            "example": "https://merchant.example/payment/pending"
          },
          "healthCareData": {
            "$ref": "#/components/schemas/HealthCareDataDTO"
          },
          "cardNumber": {
            "type": "string",
            "description": "Optional credit card number. If provided, must be a valid credit card number that passes standard validation (including Luhn check). Whitespace characters are ignored during validation. Only numeric digits are validated after removing spaces. Maximum length is 40 characters (including spaces before normalization). ",
            "example": "4111111111111111",
            "maxLength": 40,
            "minLength": 0
          },
          "3DS": {
            "$ref": "#/components/schemas/ThreeDomainsSecureDTO",
            "description": "3D Secure (3DS) authentication data associated with a transaction. Optional field. If provided, must contain valid 3DS authentication details such as CAVV, DS Transaction ID, XID, ECI, status, version, MasterCard DSRP, and Cavv Algorithm. This information is used to enhance security and reduce fraud."
          }
        },
        "required": [
          "amount",
          "currency",
          "paymentType"
        ]
      },
      "NetworkTokenInfoDTO": {
        "type": "object",
        "properties": {
          "networkToken": {
            "type": "string",
            "minLength": 1
          },
          "networkTokenExpireMonth": {
            "type": "string",
            "minLength": 1,
            "pattern": "^(0[1-9]|1[0-2])$"
          },
          "networkTokenExpireYear": {
            "type": "string",
            "maxLength": 4,
            "minLength": 4
          },
          "cryptogram": {
            "type": "string"
          },
          "eciIndicator": {
            "type": "string"
          },
          "tokenRequesterId": {
            "type": "string"
          },
          "cardSuffix": {
            "type": "string",
            "maxLength": 4,
            "minLength": 0
          },
          "cardPrefix": {
            "type": "string",
            "maxLength": 6,
            "minLength": 0
          },
          "cardholderName": {
            "type": "string"
          }
        },
        "required": [
          "networkToken",
          "networkTokenExpireMonth",
          "networkTokenExpireYear"
        ]
      },
      "Samsung3DSDTO": {
        "type": "object",
        "properties": {
          "data": {
            "type": "string",
            "description": "Encrypted Samsung 3DS payload data."
          },
          "type": {
            "type": "string",
            "description": "Samsung 3DS payload type."
          },
          "version": {
            "type": "string",
            "description": "Samsung 3DS payload version."
          }
        }
      },
      "SamsungDetailsDTO": {
        "type": "object",
        "properties": {
          "method": {
            "type": "string",
            "description": "Samsung Pay payment method identifier."
          },
          "paymentCredential": {
            "$ref": "#/components/schemas/SamsungPaymentCredentialDTO",
            "description": "Samsung Pay payment credential payload."
          },
          "paymentInfo": {
            "$ref": "#/components/schemas/SamsungPaymentInfoDTO",
            "description": "Samsung Pay payment info such as card brand and order number."
          }
        }
      },
      "SamsungPaySSLDTO": {
        "type": "object",
        "properties": {
          "requestId": {
            "type": "string",
            "description": "Unique request identifier from Samsung Pay."
          },
          "methodName": {
            "type": "string",
            "description": "Samsung Pay method name used for the transaction."
          },
          "details": {
            "$ref": "#/components/schemas/SamsungDetailsDTO",
            "description": "Samsung Pay details block containing method, credentials, and payment info."
          },
          "shippingAddress": {
            "type": "string",
            "description": "Shipping address selected in Samsung Pay checkout."
          },
          "shippingOption": {
            "type": "string",
            "description": "Shipping option selected in Samsung Pay checkout."
          },
          "payerName": {
            "type": "string",
            "description": "Payer full name from Samsung Pay."
          },
          "payerEmail": {
            "type": "string",
            "description": "Payer email address from Samsung Pay."
          },
          "payerPhone": {
            "type": "string",
            "description": "Payer phone number from Samsung Pay."
          }
        }
      },
      "SamsungPaymentCredentialDTO": {
        "type": "object",
        "properties": {
          "3DS": {
            "$ref": "#/components/schemas/Samsung3DSDTO",
            "description": "Samsung Pay 3DS credential payload."
          },
          "recurring_payment": {
            "type": "boolean",
            "description": "Indicates whether this Samsung Pay transaction is for recurring payments."
          }
        }
      },
      "SamsungPaymentInfoDTO": {
        "type": "object",
        "properties": {
          "cardBrand": {
            "type": "string",
            "description": "Card brand/network from Samsung Pay.",
            "example": "VISA"
          },
          "orderNumber": {
            "type": "string",
            "description": "Order number associated with Samsung Pay transaction."
          },
          "card_last4digits": {
            "type": "string",
            "description": "Last 4 digits of the card used in Samsung Pay.",
            "example": "1234"
          }
        }
      },
      "ThreeDomainsSecureDTO": {
        "type": "object",
        "description": "3DS authentication data captured/returned for a transaction.",
        "properties": {
          "cavv": {
            "type": "string",
            "description": "Cardholder Authentication Verification Value (CAVV). Cryptographic value generated during 3D Secure authentication.",
            "example": "AAABBBCCC1234567890"
          },
          "dsTransactionId": {
            "type": "string",
            "description": "Directory Server transaction identifier for the 3DS authentication.",
            "example": "f47ac10b-58cc-4372-a567-0e02b2c3d479"
          },
          "xid": {
            "type": "string",
            "description": "Transaction identifier used in 3D Secure 1.0 authentication (XID).",
            "example": "MDAwMDAwMDAwMDAwMDAwMzIyNzY="
          },
          "eci": {
            "type": "string",
            "description": "Electronic Commerce Indicator (ECI) representing authentication result. Common values: 05 (fully authenticated), 06 (attempted), 07 (not authenticated).",
            "example": "05"
          },
          "status": {
            "type": "string",
            "description": "3D Secure authentication status. Indicates whether authentication was successful, attempted, or failed."
          },
          "version": {
            "type": "string",
            "description": "Version of the 3D Secure protocol used (e.g., 1.0, 2.1, 2.2).",
            "example": "2.1.0"
          },
          "masterCardDSRP": {
            "type": "string",
            "description": "Mastercard Digital Secure Remote Payment (DSRP) data."
          },
          "cavvAlgorithm": {
            "type": "string",
            "description": "CAVV algorithm indicator. Possible values: 0 = HMAC, 1 = CVV, 2 = CVV with ATN, 3 = Mastercard SPA.",
            "example": "2"
          },
          "provider": {
            "type": "string",
            "description": "3D Secure provider or authentication service used.",
            "example": "MASTERCARD"
          },
          "verifyTransactionId": {
            "type": "string",
            "description": "Transaction identifier returned during 3DS verification process.",
            "example": "TXN123456789"
          },
          "isFrictionLess": {
            "type": "boolean",
            "description": "Indicates whether the authentication was completed without user interaction (frictionless flow).",
            "example": true
          },
          "flow": {
            "type": "string",
            "description": "3DS authentication flow type. Typically indicates whether the flow was ACS (challenge) or frictionless.",
            "example": "Frictionless, Challenge"
          }
        },
        "required": [
          "cavv",
          "dsTransactionId",
          "eci",
          "cavv",
          "dsTransactionId",
          "eci"
        ]
      },
      "AuthAndSaleTransactionResponseDTO": {
        "type": "object",
        "description": "Response payload for authorize and sale operations.",
        "properties": {
          "traceID": {
            "type": "string",
            "description": "Correlation identifier for tracing request flow.",
            "example": "d3cb9f3c-16c3-4d9e-a22f-f8935c1d8f8f"
          },
          "responseTimestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Response timestamp generated by the service.",
            "example": "2026-04-27T11:05:30Z"
          },
          "bankResponseCode": {
            "type": "string",
            "description": "Bank/acquirer response code.",
            "example": "00"
          },
          "bankResponseMessage": {
            "type": "string",
            "description": "Bank/acquirer response message.",
            "example": "Approved"
          },
          "responseCode": {
            "type": "string",
            "description": "Gateway response code.",
            "example": "GTW_1000"
          },
          "responseMessage": {
            "type": "string",
            "description": "Gateway response message.",
            "example": "Transaction Approved/ Request Successful."
          },
          "webhookFailureMessage": {
            "type": "string",
            "description": "Returned when webhookData.webhookUrl was invalid. The transaction is still processed, but no per-order webhook is sent. Omitted when the URL is valid or webhookData was not supplied.",
            "example": "Merchant provided webhook URL not valid"
          },
          "originalTransactionId": {
            "type": "integer",
            "format": "int64",
            "description": "Internal parent transaction identifier.",
            "example": 987654321
          },
          "originalTransactionType": {
            "type": "string",
            "description": "Internal parent transaction type.",
            "enum": [
              "AUTHORIZATION",
              "CAPTURE",
              "SALE",
              "REFUND",
              "CANCEL",
              "REBILL",
              "INQUIRY"
            ],
            "example": "SALE"
          },
          "transactionID": {
            "type": "integer",
            "format": "int64",
            "description": "Gateway transaction identifier.",
            "example": 100001
          },
          "responseCodeType": {
            "type": "string",
            "description": "Response code category/type.",
            "example": "SUCCESS"
          },
          "paymentMethod": {
            "type": "string",
            "description": "Payment method used for transaction.",
            "example": "CARD"
          },
          "cardType": {
            "type": "string",
            "description": "Card brand/type when card data is available.",
            "example": "VISA"
          },
          "bankTransactionId": {
            "type": "string",
            "description": "Transaction identifier returned by bank/acquirer.",
            "example": "BNK123456789"
          },
          "authCode": {
            "type": "string",
            "description": "Authorization code returned by bank/acquirer.",
            "example": "123456"
          },
          "schemeTransactionLinkIdentifier": {
            "type": "string",
            "description": "Mastercard Transaction Link Identifier (TLID). Send it in additionalData when your integration already has the Mastercard TLID; returned when available from the request or processor response.",
            "example": "mastercard-tlid"
          },
          "midId": {
            "type": "integer",
            "format": "int64",
            "description": "Merchant identifier used for processing.",
            "example": 1001
          },
          "netvalveMidId": {
            "type": "string",
            "description": "External/Netvalve merchant identifier.",
            "example": "f7e0f1b8-2c6d-4a91-9a5b-3de2c4f8b7a1"
          },
          "midIdentifier": {
            "type": "string",
            "description": "Processor-side merchant identifier configured on the MID, for linking to merchant-side reports.",
            "example": "0000000029612"
          },
          "processor": {
            "type": "string",
            "description": "Payment processor name.",
            "example": "TSYS"
          },
          "cardNumber": {
            "type": "string",
            "description": "Masked card number.",
            "example": "411111******1111"
          },
          "transactionType": {
            "type": "string",
            "description": "Transaction operation type.",
            "enum": [
              "AUTHORIZATION",
              "CAPTURE",
              "SALE",
              "REFUND",
              "CANCEL",
              "REBILL",
              "INQUIRY"
            ],
            "example": "SALE"
          },
          "currency": {
            "type": "string",
            "description": "Processed transaction currency (ISO 4217).",
            "example": "USD"
          },
          "clientId": {
            "type": "integer",
            "format": "int64",
            "description": "Client identifier associated with the transaction.",
            "example": 2001
          },
          "siteId": {
            "type": "string",
            "description": "Site identifier associated with the transaction.",
            "example": "6001"
          },
          "orderId": {
            "type": "integer",
            "format": "int64"
          },
          "cardExpiryMonth": {
            "type": "string",
            "description": "Card expiry month in MM format.",
            "example": "09"
          },
          "cardExpiryYear": {
            "type": "string",
            "description": "Card expiry year in YYYY format.",
            "example": "2028"
          },
          "amount": {
            "type": "number",
            "description": "Authorized or captured transaction amount.",
            "example": 49.99
          },
          "merchantRegistrationId": {
            "type": "string",
            "description": "Merchant registration identifier at processor level.",
            "example": "MER-778899"
          },
          "apmType": {
            "type": "string",
            "description": "Alternative payment method type when paymentMethod is APM.",
            "enum": [
              "PIX",
              "PAYPAL",
              "BITPACE",
              "PSE",
              "VENMO",
              "SPEI",
              "VOLT",
              "SEZZLE",
              "IDEAL",
              "WERO",
              "SWISH",
              "EPS",
              "TWINT",
              "BANCONTACT",
              "BLIK",
              "GCASH"
            ],
            "example": "PAYPAL"
          },
          "qrCode": {
            "type": "string",
            "description": "QR payload/content for QR-based payments.",
            "example": "000201010212...6304ABCD"
          },
          "qrCodeExpiry": {
            "type": "string",
            "format": "date-time",
            "description": "Expiry time for QR-based payment initiation.",
            "example": "2026-04-27T12:30:00"
          },
          "subscriptionId": {
            "type": "integer",
            "format": "int64",
            "description": "Subscription identifier for recurring transactions.",
            "example": 12345
          },
          "subscriptionStatus": {
            "type": "string",
            "description": "Subscription status.",
            "example": "ACTIVE"
          },
          "paymentToken": {
            "type": "string",
            "description": "Payment token reference used for tokenized payment flows.",
            "example": "tok_8f34c1d7e9ab42f5"
          },
          "paymentTokenType": {
            "type": "string",
            "description": "Tokenization type associated with payment token.",
            "enum": [
              "GATEWAY_TOKEN",
              "NETWORK_TOKEN",
              "BANK_TOKEN",
              "HPF",
              "SDK"
            ],
            "example": "NETWORK_TOKEN"
          },
          "binInfo": {
            "$ref": "#/components/schemas/BinInfo",
            "description": "BIN information associated with the payment card."
          },
          "redirectUrl": {
            "type": "string",
            "description": "Payer redirect URL returned when a pending authorization or sale requires browser redirection, for example a 3DS challenge. When responseCode is GTW_1002 and this field is present, redirect the payer to this URL and wait for the final webhook.",
            "example": "https://authentication-devices.checkout.com/sessions-interceptor/sid_4likv5ab6djy7czmuloefwft4m"
          },
          "apmPaymentInfo": {
            "$ref": "#/components/schemas/APMPaymentInfoDTO",
            "description": "Alternative payment method info (e.g. consumer redirect URL) for APM sales."
          }
        }
      },
      "ApplePayMerchantRegisterRequestDTO": {
        "type": "object",
        "description": "Request payload to register Apple Pay domain(s).",
        "properties": {
          "domainNames": {
            "type": "array",
            "description": "List of domains to register for Apple Pay.",
            "example": [
              "checkout.dev.sandbox.com"
            ],
            "items": {
              "type": "string"
            }
          },
          "clientId": {
            "type": "integer",
            "format": "int64"
          },
          "displayName": {
            "type": "string",
            "description": "Display name shown for the merchant.",
            "example": "Netvalve Checkout"
          }
        },
        "required": [
          "displayName",
          "domainNames"
        ]
      },
      "ApplePayRegistrationResponseDTO": {
        "type": "object",
        "description": "Response payload for Apple Pay domain registration.",
        "properties": {
          "traceID": {
            "type": "string",
            "description": "Correlation identifier for request tracing.",
            "example": "d3cb9f3c-16c3-4d9e-a22f-f8935c1d8f8f"
          },
          "responseTimestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Response timestamp in server timezone."
          },
          "responseCode": {
            "type": "string",
            "description": "Gateway response code.",
            "example": "GTW_1000"
          },
          "responseMessage": {
            "type": "string",
            "description": "Gateway response message.",
            "example": "Registration Success"
          },
          "merchantRegistrationId": {
            "type": "string",
            "description": "Registered merchant identifier returned for successful registration.",
            "example": "6c6e8d4a-bcb5-46d6-a8f4-6d8e6f1a9809"
          }
        }
      },
      "RefundInputFieldsDTO": {
        "type": "object",
        "description": "Request payload for refund operation.",
        "properties": {
          "transactionID": {
            "type": "integer",
            "format": "int64",
            "description": "Transaction identifier to refund.",
            "example": 987654321
          },
          "amount": {
            "type": "number",
            "description": "Partial refund amount. If omitted, full refund is attempted.",
            "example": 10.5
          },
          "additionalData": {
            "$ref": "#/components/schemas/AdditionalDataDTO",
            "description": "Optional additional data for refund processing."
          }
        },
        "required": [
          "transactionID"
        ]
      },
      "RefundTransactionResponseDTO": {
        "type": "object",
        "description": "Response payload for refund operation.",
        "properties": {
          "traceID": {
            "type": "string",
            "description": "Correlation identifier for tracing request flow.",
            "example": "d3cb9f3c-16c3-4d9e-a22f-f8935c1d8f8f"
          },
          "responseTimestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Response timestamp generated by the service.",
            "example": "2026-04-27T11:05:30Z"
          },
          "bankResponseCode": {
            "type": "string",
            "description": "Bank/acquirer response code.",
            "example": "00"
          },
          "bankResponseMessage": {
            "type": "string",
            "description": "Bank/acquirer response message.",
            "example": "Approved"
          },
          "responseCode": {
            "type": "string",
            "description": "Gateway response code.",
            "example": "GTW_1000"
          },
          "responseMessage": {
            "type": "string",
            "description": "Gateway response message.",
            "example": "Transaction Approved/ Request Successful."
          },
          "webhookFailureMessage": {
            "type": "string",
            "description": "Returned when webhookData.webhookUrl was invalid. The transaction is still processed, but no per-order webhook is sent. Omitted when the URL is valid or webhookData was not supplied.",
            "example": "Merchant provided webhook URL not valid"
          },
          "originalTransactionId": {
            "type": "integer",
            "format": "int64",
            "description": "Internal parent transaction identifier.",
            "example": 987654321
          },
          "originalTransactionType": {
            "type": "string",
            "description": "Internal parent transaction type.",
            "enum": [
              "AUTHORIZATION",
              "CAPTURE",
              "SALE",
              "REFUND",
              "CANCEL",
              "REBILL",
              "INQUIRY"
            ],
            "example": "SALE"
          },
          "transactionID": {
            "type": "integer",
            "format": "int64",
            "description": "Gateway transaction identifier.",
            "example": 100001
          },
          "responseCodeType": {
            "type": "string",
            "description": "Response code category/type.",
            "example": "SUCCESS"
          },
          "paymentMethod": {
            "type": "string",
            "description": "Payment method used for transaction.",
            "example": "CARD"
          },
          "cardType": {
            "type": "string",
            "description": "Card brand/type when card data is available.",
            "example": "VISA"
          },
          "bankTransactionId": {
            "type": "string",
            "description": "Transaction identifier returned by bank/acquirer.",
            "example": "BNK123456789"
          },
          "authCode": {
            "type": "string",
            "description": "Authorization code returned by bank/acquirer.",
            "example": "123456"
          },
          "schemeTransactionLinkIdentifier": {
            "type": "string",
            "description": "Scheme transaction link identifier returned by the card network/acquirer.",
            "example": "MCTLI1234567890123456"
          },
          "midId": {
            "type": "integer",
            "format": "int64",
            "description": "Merchant identifier used for processing.",
            "example": 1001
          },
          "netvalveMidId": {
            "type": "string",
            "description": "External/Netvalve merchant identifier.",
            "example": "f7e0f1b8-2c6d-4a91-9a5b-3de2c4f8b7a1"
          },
          "midIdentifier": {
            "type": "string",
            "description": "Processor-side merchant identifier configured on the MID, for linking to merchant-side reports.",
            "example": "0000000029612"
          },
          "processor": {
            "type": "string",
            "description": "Payment processor name.",
            "example": "TSYS"
          },
          "cardNumber": {
            "type": "string",
            "description": "Masked card number.",
            "example": "411111******1111"
          },
          "transactionType": {
            "type": "string",
            "description": "Transaction operation type.",
            "enum": [
              "AUTHORIZATION",
              "CAPTURE",
              "SALE",
              "REFUND",
              "CANCEL",
              "REBILL",
              "INQUIRY"
            ],
            "example": "SALE"
          },
          "currency": {
            "type": "string",
            "description": "Processed transaction currency (ISO 4217).",
            "example": "USD"
          },
          "clientId": {
            "type": "integer",
            "format": "int64",
            "description": "Client identifier associated with the transaction.",
            "example": 2001
          },
          "amount": {
            "type": "number",
            "description": "Refunded amount for full or partial refund.",
            "example": 19.99
          }
        }
      },
      "RebillInputFieldsDTO": {
        "type": "object",
        "description": "Request payload for rebill operation.",
        "properties": {
          "amount": {
            "type": "number",
            "description": "Rebill amount.",
            "example": 19.99
          },
          "clientOrderId": {
            "type": "string",
            "description": "Client-provided order identifier for rebill.",
            "example": "REBILL-ORD-1001",
            "maxLength": 100,
            "minLength": 0
          },
          "transactionID": {
            "type": "integer",
            "format": "int64",
            "description": "Reference transaction identifier used for rebill.",
            "example": 987654321
          },
          "additionalData": {
            "$ref": "#/components/schemas/AdditionalDataDTO",
            "description": "Optional additional data for rebill processing."
          }
        },
        "required": [
          "amount",
          "transactionID"
        ]
      },
      "CreateOrderResponseDTO": {
        "type": "object",
        "description": "Create order response containing fields returned across standard, direct and error branches.",
        "properties": {
          "traceID": {
            "type": "string",
            "description": "Correlation identifier for request tracing.",
            "example": "d3cb9f3c-16c3-4d9e-a22f-f8935c1d8f8f"
          },
          "responseTimestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Response timestamp in server timezone."
          },
          "orderId": {
            "type": "integer",
            "format": "int64",
            "description": "Gateway order identifier.",
            "example": 100001
          },
          "transactionID": {
            "type": "integer",
            "format": "int64",
            "description": "Gateway transaction identifier.",
            "example": 200001
          },
          "responseCode": {
            "type": "string",
            "description": "Gateway response code.",
            "example": "GTW_1000"
          },
          "responseMessage": {
            "type": "string",
            "description": "Gateway response message.",
            "example": "Transaction Approved/ Request Successful."
          },
          "responseCodeType": {
            "type": "string",
            "description": "Response code category/type.",
            "example": "SUCCESS"
          },
          "orderState": {
            "type": "string",
            "description": "Current order state.",
            "enum": [
              "CREATED",
              "READY_TO_PAY",
              "PENDING",
              "PAID",
              "DECLINED",
              "EXPIRED",
              "AWAIT_3DS",
              "CREATED",
              "READY_TO_PAY",
              "PENDING",
              "PAID",
              "DECLINED",
              "EXPIRED",
              "AWAIT_3DS"
            ],
            "example": "CREATED"
          },
          "redirectUrl": {
            "type": "string",
            "description": "Redirect URL for hosted checkout or status callback.",
            "example": "https://hpp.example.com?paymentToken=opaque_123"
          },
          "isRetryAllowed": {
            "type": "boolean",
            "description": "Whether retry is allowed in HPP payment branch.",
            "example": true
          },
          "threeDSProviderResponse": {
            "$ref": "#/components/schemas/ResultThreeDSTransactionResponseDTO",
            "description": "3DS provider response details for 3DS initialization/auth/result branches."
          },
          "midId": {
            "type": "integer",
            "format": "int64",
            "description": "Internal merchant identifier.",
            "example": 3001
          },
          "netvalveMidId": {
            "type": "string",
            "description": "External merchant identifier.",
            "example": "MID_ABC_001"
          },
          "processor": {
            "type": "string",
            "description": "Processor/acquirer name.",
            "example": "TRUEVO"
          },
          "amount": {
            "type": "number",
            "description": "Transaction amount.",
            "example": 49.99
          },
          "currency": {
            "type": "string",
            "description": "Transaction currency (ISO-4217).",
            "example": "USD"
          },
          "paymentMethod": {
            "type": "string",
            "description": "Payment method used.",
            "example": "CARD"
          },
          "cardNumber": {
            "type": "string",
            "description": "Masked card number.",
            "example": "411111******1111"
          },
          "cardExpiryMonth": {
            "type": "string",
            "description": "Card expiry month.",
            "example": "12"
          },
          "cardExpiryYear": {
            "type": "string",
            "description": "Card expiry year.",
            "example": "2029"
          },
          "cardType": {
            "type": "string",
            "description": "Card brand/type.",
            "example": "VISA"
          },
          "bankTransactionId": {
            "type": "string",
            "description": "Bank/acquirer transaction identifier.",
            "example": "BNK123456789"
          },
          "authCode": {
            "type": "string",
            "description": "Bank/acquirer authorization code.",
            "example": "123456"
          },
          "bankResponseCode": {
            "type": "string",
            "description": "Bank response code.",
            "example": "00"
          },
          "bankResponseMessage": {
            "type": "string",
            "description": "Bank response message.",
            "example": "Approved"
          },
          "paymentToken": {
            "type": "string",
            "description": "Payment token/customer vault id when tokenization applies.",
            "example": "cv_9d12ab34"
          },
          "paymentTokenType": {
            "type": "string",
            "description": "Token type for payment token.",
            "enum": [
              "GATEWAY_TOKEN",
              "NETWORK_TOKEN",
              "BANK_TOKEN",
              "HPF",
              "SDK",
              "GATEWAY_TOKEN",
              "NETWORK_TOKEN",
              "BANK_TOKEN",
              "HPF",
              "SDK"
            ],
            "example": "GATEWAY_TOKEN"
          },
          "siteId": {
            "type": "string",
            "description": "Site identifier used for processing.",
            "example": "SITE_US_01"
          },
          "transactionType": {
            "type": "string",
            "description": "Processed transaction type.",
            "enum": [
              "AUTHORIZATION",
              "CAPTURE",
              "SALE",
              "REFUND",
              "CANCEL",
              "REBILL",
              "INQUIRY",
              "AUTHORIZATION",
              "CAPTURE",
              "SALE",
              "REFUND",
              "CANCEL",
              "REBILL",
              "INQUIRY"
            ],
            "example": "SALE"
          },
          "subscriptionId": {
            "type": "integer",
            "format": "int64",
            "description": "Managed recurring subscription id.",
            "example": 5001
          },
          "subscriptionStatus": {
            "type": "string",
            "description": "Managed recurring subscription status.",
            "enum": [
              "ACTIVE",
              "PAUSED",
              "INACTIVE",
              "PAYMENT_PENDING",
              "PAYMENT_FAILED",
              "ACTIVE",
              "PAUSED",
              "INACTIVE",
              "PAYMENT_PENDING",
              "PAYMENT_FAILED"
            ],
            "example": "ACTIVE"
          },
          "binInfo": {
            "$ref": "#/components/schemas/BinInfo",
            "description": "BIN enrichment info."
          },
          "apmType": {
            "type": "string",
            "description": "APM type when alternative payment method is used.",
            "enum": [
              "PIX",
              "PAYPAL",
              "BITPACE",
              "PSE",
              "VENMO",
              "SPEI",
              "VOLT",
              "SEZZLE",
              "IDEAL",
              "WERO",
              "SWISH",
              "EPS",
              "TWINT",
              "BANCONTACT",
              "BLIK",
              "GCASH",
              "PIX",
              "PAYPAL",
              "BITPACE",
              "PSE",
              "VENMO",
              "SPEI",
              "VOLT",
              "SEZZLE",
              "IDEAL",
              "WERO",
              "SWISH",
              "EPS",
              "TWINT",
              "BANCONTACT",
              "BLIK",
              "GCASH"
            ],
            "example": "BITPACE"
          },
          "apmPaymentUrl": {
            "type": "string",
            "description": "APM hosted payment URL.",
            "example": "https://apm.example.com/pay/abc123"
          },
          "apmPaymentUrlExpiry": {
            "type": "string",
            "format": "date-time",
            "description": "APM payment URL expiry timestamp."
          },
          "apmPaymentInfo": {
            "$ref": "#/components/schemas/APMPaymentInfoDTO",
            "description": "APM additional payment information payload."
          },
          "schemeTransactionLinkIdentifier": {
            "type": "string",
            "description": "Mastercard Transaction Link Identifier (TLID). Send it in additionalData when your integration already has the Mastercard TLID; returned when available from the request or processor response.",
            "example": "mastercard-tlid"
          }
        }
      },
      "ApplePayInitializeSessionRequestDTO": {
        "type": "object",
        "description": "Request payload to initialize an Apple Pay session.",
        "properties": {
          "domainName": {
            "type": "string",
            "description": "Merchant domain used for Apple Pay session initialization.",
            "example": "checkout.dev.sandbox.com",
            "minLength": 1
          }
        },
        "required": [
          "domainName"
        ]
      },
      "ApplePayInitializeSessionResponseDTO": {
        "type": "object",
        "description": "Response payload for Apple Pay session initialization.",
        "properties": {
          "traceID": {
            "type": "string",
            "description": "Correlation identifier for request tracing.",
            "example": "d3cb9f3c-16c3-4d9e-a22f-f8935c1d8f8f"
          },
          "responseTimestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Response timestamp in server timezone.",
            "example": "2025-09-17T07:12:17.492+00:00"
          },
          "responseCode": {
            "type": "string",
            "description": "Gateway response code.",
            "example": "GTW_1000"
          },
          "responseMessage": {
            "type": "string",
            "description": "Gateway response message.",
            "example": "Transaction Approved/ Request Successful."
          },
          "responseCodeType": {
            "type": "string",
            "description": "Derived response type for the response code.",
            "example": "APPROVED"
          },
          "walletInitializeSessionResponseDTO": {
            "$ref": "#/components/schemas/WalletInitializeSessionResponseDTO",
            "description": "Wallet session details."
          }
        }
      },
      "CreateTokenRequestDTO": {
        "type": "object",
        "description": "Request payload for Payment API create token endpoint.",
        "properties": {
          "amount": {
            "type": "number",
            "description": "Transaction amount.",
            "example": 0
          },
          "cardExpireMonth": {
            "type": "string",
            "description": "Card expiry month in MM format.",
            "example": "12",
            "pattern": "^(0[1-9]|1[0-2])$"
          },
          "cardExpireYear": {
            "type": "string",
            "description": "Card expiry year in YYYY format.",
            "example": "2030",
            "maxLength": 4,
            "minLength": 4
          },
          "cardSecurityCode": {
            "type": "string",
            "description": "Card security code (CVV/CVC).",
            "example": "123"
          },
          "cardHolderName": {
            "type": "string",
            "description": "Card holder name.",
            "example": "John Doe",
            "maxLength": 128,
            "minLength": 0
          },
          "cardNumber": {
            "type": "string",
            "description": "Card number (PAN).",
            "example": "4111111111111111",
            "maxLength": 40,
            "minLength": 0
          },
          "currency": {
            "type": "string",
            "description": "Currency code in ISO-4217 format.",
            "example": "USD"
          },
          "customerAddress": {
            "type": "string",
            "description": "Customer billing address line.",
            "example": "123 Main St",
            "maxLength": 128,
            "minLength": 0
          },
          "customerCity": {
            "type": "string",
            "description": "Customer city.",
            "example": "New York",
            "maxLength": 128,
            "minLength": 0
          },
          "customerCountryCode": {
            "type": "string",
            "description": "Customer country code in ISO-3166 alpha-2.",
            "example": "US",
            "maxLength": 2,
            "minLength": 2
          },
          "customerEmail": {
            "type": "string",
            "description": "Customer email address.",
            "example": "john.doe@example.com",
            "maxLength": 128,
            "minLength": 0
          },
          "customerIp": {
            "type": "string",
            "description": "Customer IPv4/IPv6 address.",
            "example": "203.0.113.10"
          },
          "customerName": {
            "type": "string",
            "description": "Customer first name.",
            "example": "John",
            "maxLength": 128,
            "minLength": 0
          },
          "customerLastName": {
            "type": "string",
            "description": "Customer last name.",
            "example": "Doe",
            "maxLength": 128,
            "minLength": 0
          },
          "customerPhone": {
            "type": "string",
            "description": "Customer phone number.",
            "example": "98725550123",
            "maxLength": 20,
            "minLength": 0
          },
          "customerState": {
            "type": "string",
            "description": "Customer state or province.",
            "example": "NY",
            "maxLength": 30,
            "minLength": 0
          },
          "customerZipCode": {
            "type": "string",
            "description": "Customer ZIP or postal code.",
            "example": "10001",
            "maxLength": 10,
            "minLength": 0
          },
          "midId": {
            "type": "integer",
            "format": "int64",
            "description": "Internal merchant identifier (MID).",
            "example": 1001
          },
          "netvalveMidId": {
            "type": "string",
            "description": "External Netvalve MID identifier.",
            "example": "3f16ef23-bc03-4aaa-b632-fbebda462fe5"
          },
          "verify": {
            "type": "boolean",
            "description": "If true, performs verification/auth before token save.",
            "example": false
          },
          "siteId": {
            "type": "string",
            "description": "Site identifier used internally."
          }
        },
        "required": [
          "cardExpireMonth",
          "cardExpireYear",
          "cardNumber"
        ]
      },
      "CreateTokenResponseDTO": {
        "type": "object",
        "description": "Response payload for Payment API create token endpoint.",
        "properties": {
          "traceID": {
            "type": "string",
            "description": "Request trace identifier used for correlation.",
            "example": "4f0d3f6e-c84a-4ab3-9a60-58fd3e4b1ce5"
          },
          "responseTimestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp at which the response was generated.",
            "example": "2026-04-25T10:15:30Z"
          },
          "transactionID": {
            "type": "integer",
            "format": "int64",
            "description": "Internal transaction identifier.",
            "example": 123456789
          },
          "responseCode": {
            "type": "string",
            "description": "Gateway response code.",
            "example": "GTW_1000"
          },
          "responseMessage": {
            "type": "string",
            "description": "Gateway response message.",
            "example": "Transaction successfully completed"
          },
          "responseCodeType": {
            "type": "string",
            "description": "Category of response code.",
            "example": "approved"
          },
          "paymentMethod": {
            "type": "string",
            "description": "Payment method used in transaction processing.",
            "example": "CARD"
          },
          "paymentToken": {
            "type": "string",
            "description": "Gateway payment token/customer vault token.",
            "example": "3f16ef23-bc03-4aaa-b632-fbebda462fe5"
          },
          "paymentTokenType": {
            "type": "string",
            "description": "Token type returned for the payment token.",
            "enum": [
              "GATEWAY_TOKEN",
              "NETWORK_TOKEN",
              "BANK_TOKEN",
              "HPF",
              "SDK"
            ]
          },
          "bankTransactionId": {
            "type": "string",
            "description": "Bank transaction identifier.",
            "example": "BANK_TXN_123456"
          },
          "authCode": {
            "type": "string",
            "description": "Authorization code from processor/bank.",
            "example": "A1B2C3"
          },
          "cardNumber": {
            "type": "string",
            "description": "Masked card number.",
            "example": "411111******1111"
          },
          "cardExpiryMonth": {
            "type": "string",
            "description": "Card expiry month in MM format.",
            "example": "12"
          },
          "cardExpiryYear": {
            "type": "string",
            "description": "Card expiry year in YYYY format.",
            "example": "2030"
          },
          "cardType": {
            "type": "string",
            "description": "Card type/brand.",
            "example": "VISA"
          },
          "bankResponseCode": {
            "type": "string",
            "description": "Raw response code from bank/acquirer.",
            "example": "00"
          },
          "bankResponseMessage": {
            "type": "string",
            "description": "Raw response message from bank/acquirer.",
            "example": "Approved"
          },
          "midId": {
            "type": "integer",
            "format": "int64",
            "description": "Internal MID identifier.",
            "example": 1001
          },
          "netvalveMidId": {
            "type": "string",
            "description": "External Netvalve MID identifier.",
            "example": "3f16ef23-bc03-4aaa-b632-fbebda462fe5"
          },
          "processor": {
            "type": "string",
            "description": "Processor/system name.",
            "example": "TSYS"
          },
          "amount": {
            "type": "number",
            "description": "Transaction amount processed.",
            "example": 0
          },
          "currency": {
            "type": "string",
            "description": "Currency used for processing.",
            "example": "USD"
          },
          "clientId": {
            "type": "integer",
            "format": "int64",
            "description": "Internal client identifier.",
            "example": 2001
          },
          "binInfo": {
            "$ref": "#/components/schemas/BinInfo",
            "description": "BIN enrichment data (issuer/funding/country/brand)."
          },
          "transactionType": {
            "type": "string",
            "description": "Transaction type associated with this response.",
            "enum": [
              "AUTHORIZATION",
              "CAPTURE",
              "SALE",
              "REFUND",
              "CANCEL",
              "REBILL",
              "INQUIRY"
            ]
          },
          "siteId": {
            "type": "string",
            "description": "Associated Site id"
          },
          "schemeTransactionLinkIdentifier": {
            "type": "string",
            "description": "Mastercard Transaction Link Identifier (TLID). Send it in additionalData when your integration already has the Mastercard TLID; returned when available from the request or processor response.",
            "example": "mastercard-tlid"
          }
        }
      },
      "CaptureInputFieldsDTO": {
        "type": "object",
        "description": "Request payload for capture operation.",
        "properties": {
          "amount": {
            "type": "number",
            "description": "Capture amount.",
            "example": 49.99
          },
          "transactionID": {
            "type": "integer",
            "format": "int64",
            "description": "Transaction identifier to capture against.",
            "example": 987654321
          },
          "additionalData": {
            "$ref": "#/components/schemas/AdditionalDataDTO",
            "description": "Optional additional data for capture processing."
          },
          "captureOptions": {
            "$ref": "#/components/schemas/CaptureOptionsDTO",
            "description": "Optional partial-capture options."
          }
        },
        "required": [
          "amount",
          "transactionID"
        ]
      },
      "CaptureOptionsDTO": {
        "type": "object",
        "description": "Optional options for capture operation.",
        "properties": {
          "finalCapture": {
            "type": "boolean",
            "description": "Marks whether this capture is the final capture for the authorized amount.",
            "example": true
          }
        }
      },
      "CaptureTransactionResponseDTO": {
        "type": "object",
        "description": "Response payload for capture operation.",
        "properties": {
          "traceID": {
            "type": "string",
            "description": "Correlation identifier for tracing request flow.",
            "example": "d3cb9f3c-16c3-4d9e-a22f-f8935c1d8f8f"
          },
          "responseTimestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Response timestamp generated by the service.",
            "example": "2026-04-27T11:05:30Z"
          },
          "bankResponseCode": {
            "type": "string",
            "description": "Bank/acquirer response code.",
            "example": "00"
          },
          "bankResponseMessage": {
            "type": "string",
            "description": "Bank/acquirer response message.",
            "example": "Approved"
          },
          "responseCode": {
            "type": "string",
            "description": "Gateway response code.",
            "example": "GTW_1000"
          },
          "responseMessage": {
            "type": "string",
            "description": "Gateway response message.",
            "example": "Transaction Approved/ Request Successful."
          },
          "webhookFailureMessage": {
            "type": "string",
            "description": "Returned when webhookData.webhookUrl was invalid. The transaction is still processed, but no per-order webhook is sent. Omitted when the URL is valid or webhookData was not supplied.",
            "example": "Merchant provided webhook URL not valid"
          },
          "originalTransactionId": {
            "type": "integer",
            "format": "int64",
            "description": "Internal parent transaction identifier.",
            "example": 987654321
          },
          "originalTransactionType": {
            "type": "string",
            "description": "Internal parent transaction type.",
            "enum": [
              "AUTHORIZATION",
              "CAPTURE",
              "SALE",
              "REFUND",
              "CANCEL",
              "REBILL",
              "INQUIRY"
            ],
            "example": "SALE"
          },
          "transactionID": {
            "type": "integer",
            "format": "int64",
            "description": "Gateway transaction identifier.",
            "example": 100001
          },
          "responseCodeType": {
            "type": "string",
            "description": "Response code category/type.",
            "example": "SUCCESS"
          },
          "paymentMethod": {
            "type": "string",
            "description": "Payment method used for transaction.",
            "example": "CARD"
          },
          "cardType": {
            "type": "string",
            "description": "Card brand/type when card data is available.",
            "example": "VISA"
          },
          "bankTransactionId": {
            "type": "string",
            "description": "Transaction identifier returned by bank/acquirer.",
            "example": "BNK123456789"
          },
          "authCode": {
            "type": "string",
            "description": "Authorization code returned by bank/acquirer.",
            "example": "123456"
          },
          "schemeTransactionLinkIdentifier": {
            "type": "string",
            "description": "Scheme transaction link identifier returned by the card network/acquirer.",
            "example": "MCTLI1234567890123456"
          },
          "midId": {
            "type": "integer",
            "format": "int64",
            "description": "Merchant identifier used for processing.",
            "example": 1001
          },
          "netvalveMidId": {
            "type": "string",
            "description": "External/Netvalve merchant identifier.",
            "example": "f7e0f1b8-2c6d-4a91-9a5b-3de2c4f8b7a1"
          },
          "midIdentifier": {
            "type": "string",
            "description": "Processor-side merchant identifier configured on the MID, for linking to merchant-side reports.",
            "example": "0000000029612"
          },
          "processor": {
            "type": "string",
            "description": "Payment processor name.",
            "example": "TSYS"
          },
          "cardNumber": {
            "type": "string",
            "description": "Masked card number.",
            "example": "411111******1111"
          },
          "transactionType": {
            "type": "string",
            "description": "Transaction operation type.",
            "enum": [
              "AUTHORIZATION",
              "CAPTURE",
              "SALE",
              "REFUND",
              "CANCEL",
              "REBILL",
              "INQUIRY"
            ],
            "example": "SALE"
          },
          "currency": {
            "type": "string",
            "description": "Processed transaction currency (ISO 4217).",
            "example": "USD"
          },
          "clientId": {
            "type": "integer",
            "format": "int64",
            "description": "Client identifier associated with the transaction.",
            "example": 2001
          },
          "amount": {
            "type": "number",
            "description": "Captured amount.",
            "example": 49.99
          }
        }
      },
      "CancelInputFieldsDTO": {
        "type": "object",
        "description": "Request payload for cancel operation.",
        "properties": {
          "transactionID": {
            "type": "integer",
            "format": "int64",
            "description": "Transaction identifier to cancel/void.",
            "example": 987654321
          },
          "additionalData": {
            "$ref": "#/components/schemas/AdditionalDataDTO",
            "description": "Optional additional data for cancel processing."
          }
        },
        "required": [
          "transactionID"
        ]
      },
      "CancelTransactionResponseDTO": {
        "type": "object",
        "description": "Response payload for cancel/void operation.",
        "properties": {
          "traceID": {
            "type": "string",
            "description": "Correlation identifier for tracing request flow.",
            "example": "d3cb9f3c-16c3-4d9e-a22f-f8935c1d8f8f"
          },
          "responseTimestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Response timestamp generated by the service.",
            "example": "2026-04-27T11:05:30Z"
          },
          "bankResponseCode": {
            "type": "string",
            "description": "Bank/acquirer response code.",
            "example": "00"
          },
          "bankResponseMessage": {
            "type": "string",
            "description": "Bank/acquirer response message.",
            "example": "Approved"
          },
          "responseCode": {
            "type": "string",
            "description": "Gateway response code.",
            "example": "GTW_1000"
          },
          "responseMessage": {
            "type": "string",
            "description": "Gateway response message.",
            "example": "Transaction Approved/ Request Successful."
          },
          "webhookFailureMessage": {
            "type": "string",
            "description": "Returned when webhookData.webhookUrl was invalid. The transaction is still processed, but no per-order webhook is sent. Omitted when the URL is valid or webhookData was not supplied.",
            "example": "Merchant provided webhook URL not valid"
          },
          "originalTransactionId": {
            "type": "integer",
            "format": "int64",
            "description": "Internal parent transaction identifier.",
            "example": 987654321
          },
          "originalTransactionType": {
            "type": "string",
            "description": "Internal parent transaction type.",
            "enum": [
              "AUTHORIZATION",
              "CAPTURE",
              "SALE",
              "REFUND",
              "CANCEL",
              "REBILL",
              "INQUIRY"
            ],
            "example": "SALE"
          },
          "transactionID": {
            "type": "integer",
            "format": "int64",
            "description": "Gateway transaction identifier.",
            "example": 100001
          },
          "responseCodeType": {
            "type": "string",
            "description": "Response code category/type.",
            "example": "SUCCESS"
          },
          "paymentMethod": {
            "type": "string",
            "description": "Payment method used for transaction.",
            "example": "CARD"
          },
          "cardType": {
            "type": "string",
            "description": "Card brand/type when card data is available.",
            "example": "VISA"
          },
          "bankTransactionId": {
            "type": "string",
            "description": "Transaction identifier returned by bank/acquirer.",
            "example": "BNK123456789"
          },
          "authCode": {
            "type": "string",
            "description": "Authorization code returned by bank/acquirer.",
            "example": "123456"
          },
          "schemeTransactionLinkIdentifier": {
            "type": "string",
            "description": "Scheme transaction link identifier returned by the card network/acquirer.",
            "example": "MCTLI1234567890123456"
          },
          "midId": {
            "type": "integer",
            "format": "int64",
            "description": "Merchant identifier used for processing.",
            "example": 1001
          },
          "netvalveMidId": {
            "type": "string",
            "description": "External/Netvalve merchant identifier.",
            "example": "f7e0f1b8-2c6d-4a91-9a5b-3de2c4f8b7a1"
          },
          "midIdentifier": {
            "type": "string",
            "description": "Processor-side merchant identifier configured on the MID, for linking to merchant-side reports.",
            "example": "0000000029612"
          },
          "processor": {
            "type": "string",
            "description": "Payment processor name.",
            "example": "TSYS"
          },
          "cardNumber": {
            "type": "string",
            "description": "Masked card number.",
            "example": "411111******1111"
          },
          "transactionType": {
            "type": "string",
            "description": "Transaction operation type.",
            "enum": [
              "AUTHORIZATION",
              "CAPTURE",
              "SALE",
              "REFUND",
              "CANCEL",
              "REBILL",
              "INQUIRY"
            ],
            "example": "SALE"
          },
          "currency": {
            "type": "string",
            "description": "Processed transaction currency (ISO 4217).",
            "example": "USD"
          },
          "clientId": {
            "type": "integer",
            "format": "int64",
            "description": "Client identifier associated with the transaction.",
            "example": 2001
          }
        }
      },
      "ThreeDSInitAndAuthInputDTO": {
        "type": "object",
        "properties": {
          "midId": {
            "type": "integer",
            "format": "int64"
          },
          "netvalveMidId": {
            "type": "string"
          },
          "cardNumber": {
            "type": "string",
            "maxLength": 40,
            "minLength": 0
          },
          "cardSecurityCode": {
            "type": "string"
          },
          "cardExpireMonth": {
            "type": "string",
            "pattern": "^(0[1-9]|1[0-2])$"
          },
          "cardExpireYear": {
            "type": "string",
            "maxLength": 4,
            "minLength": 4
          },
          "cardHolderName": {
            "type": "string",
            "maxLength": 128,
            "minLength": 0
          },
          "customerIp": {
            "type": "string"
          },
          "customerEmail": {
            "type": "string",
            "maxLength": 128,
            "minLength": 0
          },
          "customerPhone": {
            "type": "string",
            "maxLength": 20,
            "minLength": 0
          },
          "amount": {
            "type": "number"
          },
          "clientOrderId": {
            "type": "string",
            "description": "Optional client-provided order identifier. If provided, must be a valid text value with a maximum length of 100 characters. ",
            "example": "ORD-12345-ABC",
            "maxLength": 100,
            "minLength": 0
          },
          "currency": {
            "type": "string"
          },
          "merchantRedirectUrl": {
            "type": "string"
          },
          "siteId": {
            "type": "string"
          },
          "userAgent": {
            "type": "string"
          },
          "browserHeader": {
            "type": "string"
          },
          "browserLanguage": {
            "type": "string"
          },
          "browserJavaEnabled": {
            "type": "boolean"
          },
          "browserColorDepth": {
            "type": "integer",
            "format": "int32"
          },
          "browserScreenHeight": {
            "type": "integer",
            "format": "int32"
          },
          "browserScreenWidth": {
            "type": "integer",
            "format": "int32"
          },
          "browserTimeZone": {
            "type": "integer",
            "format": "int32"
          },
          "challengeIndicator": {
            "type": "string"
          },
          "paymentToken": {
            "type": "string"
          },
          "paymentType": {
            "type": "string",
            "description": "Payment type used for the transaction. Defaults to CARD if not provided.",
            "enum": [
              "CARD",
              "WALLET",
              "TOKEN",
              "APM",
              "MERCHANT_NETWORK_TOKEN"
            ],
            "example": "CARD"
          },
          "descriptor": {
            "type": "string",
            "pattern": "^.{0,50}$"
          },
          "customerAddress": {
            "type": "string",
            "maxLength": 128,
            "minLength": 0
          },
          "customerZipCode": {
            "type": "string",
            "maxLength": 10,
            "minLength": 0
          },
          "customerCity": {
            "type": "string",
            "maxLength": 128,
            "minLength": 0
          },
          "customerState": {
            "type": "string",
            "maxLength": 30,
            "minLength": 0
          },
          "customerCountryCode": {
            "type": "string",
            "maxLength": 2,
            "minLength": 2
          },
          "customerName": {
            "type": "string",
            "maxLength": 128,
            "minLength": 0
          },
          "customerLastName": {
            "type": "string",
            "maxLength": 128,
            "minLength": 0
          },
          "webhookData": {
            "$ref": "#/components/schemas/WebhookConfigDTO",
            "description": "Optional per-order webhook. Events for this order are sent to webhookData.webhookUrl in addition to your configured webhook URLs."
          }
        },
        "required": [
          "cardHolderName",
          "currency",
          "paymentType"
        ]
      },
      "ThreeDSInitAndAuthProviderResponseDTO": {
        "type": "object",
        "description": "Provider-specific response for 3DS init+auth v2 endpoint.",
        "properties": {
          "transID": {
            "type": "string",
            "description": "3DS transaction identifier.",
            "example": "1f3b7cc8-95d8-4b57-a969-2340f0d5c3ef"
          },
          "referenceId": {
            "type": "string",
            "description": "Provider reference identifier."
          },
          "errorCode": {
            "type": "string",
            "description": "Provider error code when request fails."
          },
          "errorMessage": {
            "type": "string",
            "description": "Provider error message when request fails."
          },
          "threeDs2TransactionId": {
            "type": "string",
            "description": "3DS2 DS transaction identifier."
          },
          "eci": {
            "type": "string",
            "description": "Electronic Commerce Indicator (ECI)."
          },
          "cavv": {
            "type": "string",
            "description": "Cardholder Authentication Verification Value (CAVV)."
          },
          "challengeRequired": {
            "type": "boolean",
            "description": "Indicates whether challenge flow is required."
          },
          "jwt": {
            "type": "string",
            "description": "Provider JWT/token, if applicable."
          },
          "redirectUrl": {
            "type": "string",
            "description": "Netvalve redirect URL to continue 3DS flow."
          },
          "status": {
            "type": "string",
            "description": "Current 3DS transaction status.",
            "enum": [
              "INITIALIZED",
              "INITIALIZATION_FAILED",
              "AUTHENTICATED",
              "AUTHENTICATION_FAILED",
              "DEVICE_DATA_COLLECTED",
              "ACS_REQUIRED",
              "ACS_COMPLETED",
              "ACS_FAILED",
              "COMPLETED",
              "RESULT_FAILED"
            ]
          },
          "threeDsVersion": {
            "type": "string",
            "description": "3DS protocol version.",
            "example": "2.2.0"
          },
          "providerRedirectUrl": {
            "type": "string",
            "description": "Provider redirect URL, if required by provider flow."
          },
          "merchantRedirectUrl": {
            "type": "string",
            "description": "Merchant redirect URL supplied at initialization."
          },
          "provider": {
            "type": "string",
            "description": "3DS provider name.",
            "example": "MASTERCARD"
          },
          "providerTransactionId": {
            "type": "string",
            "description": "Provider-side transaction identifier."
          },
          "netvalveCallBackUrl": {
            "type": "string",
            "description": "Netvalve callback URL used by provider flow."
          },
          "authType": {
            "type": "string",
            "description": "Provider-specific authentication type."
          },
          "methodPostData": {
            "type": "string",
            "description": "Provider method post data for device data collection/challenge."
          },
          "cReq": {
            "type": "string",
            "description": "Challenge request payload (CReq) used for challenge flow."
          }
        }
      },
      "ThreeDSInitAndAuthResponseDTO": {
        "type": "object",
        "description": "Response DTO specific to /3ds/v2/initialization endpoint.",
        "properties": {
          "traceID": {
            "type": "string",
            "description": "Unique trace identifier for request correlation.",
            "example": "9a37d2f1-6a7c-44a9-9b3d-2cf52f5f2a5e"
          },
          "responseTimestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Response creation timestamp."
          },
          "responseCode": {
            "type": "string",
            "description": "Netvalve response code.",
            "example": "3DS_1000"
          },
          "responseMessage": {
            "type": "string",
            "description": "Human-readable response message.",
            "example": "3DS request successfully completed"
          },
          "responseCodeType": {
            "type": "string",
            "description": "Response code category.",
            "example": "APPROVED"
          },
          "bankResponseCode": {
            "type": "string",
            "description": "Provider or bank response code.",
            "example": "00"
          },
          "bankResponseMessage": {
            "type": "string",
            "description": "Provider or bank response message.",
            "example": "Success"
          },
          "midId": {
            "type": "integer",
            "format": "int64",
            "description": "Internal merchant identifier (MID).",
            "example": 101
          },
          "netvalveMidId": {
            "type": "string",
            "description": "External Netvalve MID identifier.",
            "example": "MID_ABC123"
          },
          "transactionId": {
            "type": "integer",
            "format": "int64",
            "description": "Internal sale transaction identifier.",
            "example": 123456
          },
          "orderId": {
            "type": "integer",
            "format": "int64",
            "description": "Internal order identifier.",
            "example": 78910
          },
          "threeDSProviderResponse": {
            "$ref": "#/components/schemas/ThreeDSInitAndAuthProviderResponseDTO",
            "description": "3DS provider-specific response payload."
          }
        }
      },
      "ThreeDSResultInputDTO": {
        "type": "object",
        "properties": {
          "midId": {
            "type": "integer",
            "format": "int64"
          },
          "netvalveMidId": {
            "type": "string"
          },
          "transID": {
            "type": "string"
          },
          "siteId": {
            "type": "string"
          }
        },
        "required": [
          "transID"
        ]
      },
      "ThreeDSResultProviderResponseDTO": {
        "type": "object",
        "description": "Provider-specific details for 3DS result response.",
        "properties": {
          "transID": {
            "type": "string",
            "description": "3DS transaction identifier.",
            "example": "1f3b7cc8-95d8-4b57-a969-2340f0d5c3ef"
          },
          "referenceId": {
            "type": "string",
            "description": "Provider reference identifier."
          },
          "errorCode": {
            "type": "string",
            "description": "Provider error code when request fails."
          },
          "errorMessage": {
            "type": "string",
            "description": "Provider error message when request fails."
          },
          "threeDs2TransactionId": {
            "type": "string",
            "description": "3DS2 DS transaction identifier."
          },
          "eci": {
            "type": "string",
            "description": "Electronic Commerce Indicator (ECI)."
          },
          "cavv": {
            "type": "string",
            "description": "Cardholder Authentication Verification Value (CAVV)."
          },
          "challengeRequired": {
            "type": "boolean",
            "description": "Indicates whether challenge flow is required."
          },
          "jwt": {
            "type": "string",
            "description": "Provider JWT/token, if applicable."
          },
          "redirectUrl": {
            "type": "string",
            "description": "Netvalve redirect URL to continue 3DS flow."
          },
          "status": {
            "type": "string",
            "description": "Current 3DS transaction status.",
            "enum": [
              "INITIALIZED",
              "INITIALIZATION_FAILED",
              "AUTHENTICATED",
              "AUTHENTICATION_FAILED",
              "DEVICE_DATA_COLLECTED",
              "ACS_REQUIRED",
              "ACS_COMPLETED",
              "ACS_FAILED",
              "COMPLETED",
              "RESULT_FAILED"
            ]
          },
          "threeDsVersion": {
            "type": "string",
            "description": "3DS protocol version.",
            "example": "2.2.0"
          },
          "providerRedirectUrl": {
            "type": "string",
            "description": "Provider redirect URL, if required by provider flow."
          },
          "merchantRedirectUrl": {
            "type": "string",
            "description": "Merchant redirect URL supplied at initialization."
          },
          "provider": {
            "type": "string",
            "description": "3DS provider name.",
            "example": "MASTERCARD"
          },
          "providerTransactionId": {
            "type": "string",
            "description": "Provider-side transaction identifier."
          },
          "netvalveCallBackUrl": {
            "type": "string",
            "description": "Netvalve callback URL used by provider flow."
          },
          "authType": {
            "type": "string",
            "description": "Provider-specific authentication type."
          },
          "methodPostData": {
            "type": "string",
            "description": "Provider method post data for device data collection/challenge."
          },
          "cReq": {
            "type": "string",
            "description": "Challenge request payload (CReq) used for challenge flow."
          }
        }
      },
      "ThreeDSResultResponseDTO": {
        "type": "object",
        "description": "Response payload for 3DS result endpoint.",
        "properties": {
          "traceID": {
            "type": "string",
            "description": "Unique trace identifier for request correlation.",
            "example": "9a37d2f1-6a7c-44a9-9b3d-2cf52f5f2a5e"
          },
          "responseTimestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Response creation timestamp."
          },
          "responseCode": {
            "type": "string",
            "description": "Netvalve response code.",
            "example": "3DS_1000"
          },
          "responseMessage": {
            "type": "string",
            "description": "Human-readable response message.",
            "example": "3DS request successfully completed"
          },
          "responseCodeType": {
            "type": "string",
            "description": "Response code category.",
            "example": "APPROVED"
          },
          "bankResponseCode": {
            "type": "string",
            "description": "Provider or bank response code.",
            "example": "00"
          },
          "bankResponseMessage": {
            "type": "string",
            "description": "Provider or bank response message.",
            "example": "Success"
          },
          "midId": {
            "type": "integer",
            "format": "int64",
            "description": "Internal merchant identifier (MID).",
            "example": 101
          },
          "netvalveMidId": {
            "type": "string",
            "description": "External Netvalve MID identifier.",
            "example": "MID_ABC123"
          },
          "transactionId": {
            "type": "integer",
            "format": "int64",
            "description": "Internal sale transaction identifier.",
            "example": 123456
          },
          "orderId": {
            "type": "integer",
            "format": "int64",
            "description": "Internal order identifier.",
            "example": 78910
          },
          "threeDSProviderResponse": {
            "$ref": "#/components/schemas/ThreeDSResultProviderResponseDTO",
            "description": "3DS provider-specific response payload."
          }
        }
      },
      "ThreeDSAuthInputDTO": {
        "type": "object",
        "properties": {
          "midId": {
            "type": "integer",
            "format": "int64"
          },
          "netvalveMidId": {
            "type": "string"
          },
          "transID": {
            "type": "string"
          },
          "amount": {
            "type": "number"
          },
          "currency": {
            "type": "string"
          },
          "cardNumber": {
            "type": "string",
            "maxLength": 40,
            "minLength": 0
          },
          "cardExpireMonth": {
            "type": "string",
            "pattern": "^(0[1-9]|1[0-2])$"
          },
          "cardExpireYear": {
            "type": "string",
            "maxLength": 4,
            "minLength": 4
          },
          "cardHolderName": {
            "type": "string",
            "maxLength": 128,
            "minLength": 0
          },
          "challengeIndicator": {
            "type": "string"
          },
          "browserInfo": {
            "type": "string"
          },
          "customerIp": {
            "type": "string"
          },
          "customerEmail": {
            "type": "string",
            "maxLength": 128,
            "minLength": 0
          },
          "customerName": {
            "type": "string",
            "maxLength": 128,
            "minLength": 0
          },
          "customerLastName": {
            "type": "string",
            "maxLength": 128,
            "minLength": 0
          },
          "customerAddress": {
            "type": "string",
            "maxLength": 128,
            "minLength": 0
          },
          "customerZipCode": {
            "type": "string",
            "maxLength": 10,
            "minLength": 0
          },
          "customerCity": {
            "type": "string",
            "maxLength": 128,
            "minLength": 0
          },
          "customerState": {
            "type": "string",
            "maxLength": 30,
            "minLength": 0
          },
          "customerCountryCode": {
            "type": "string",
            "maxLength": 2,
            "minLength": 2
          },
          "customerPhone": {
            "type": "string",
            "maxLength": 20,
            "minLength": 0
          },
          "dfReferenceId": {
            "type": "string"
          },
          "acsWindowSize": {
            "type": "integer",
            "format": "int32"
          },
          "siteId": {
            "type": "string"
          },
          "paymentToken": {
            "type": "string"
          },
          "paymentType": {
            "type": "string",
            "description": "Payment type used for the transaction. Defaults to CARD if not provided.",
            "enum": [
              "CARD",
              "WALLET",
              "TOKEN",
              "APM",
              "MERCHANT_NETWORK_TOKEN"
            ],
            "example": "CARD"
          },
          "descriptor": {
            "type": "string",
            "pattern": "^.{0,50}$"
          }
        },
        "required": [
          "cardHolderName",
          "currency",
          "customerLastName",
          "customerName",
          "paymentType",
          "transID"
        ]
      },
      "ThreeDSAuthenticationProviderResponseDTO": {
        "type": "object",
        "description": "Provider-specific details for 3DS authentication response.",
        "properties": {
          "transID": {
            "type": "string",
            "description": "3DS transaction identifier.",
            "example": "1f3b7cc8-95d8-4b57-a969-2340f0d5c3ef"
          },
          "referenceId": {
            "type": "string",
            "description": "Provider reference identifier."
          },
          "errorCode": {
            "type": "string",
            "description": "Provider error code when request fails."
          },
          "errorMessage": {
            "type": "string",
            "description": "Provider error message when request fails."
          },
          "threeDs2TransactionId": {
            "type": "string",
            "description": "3DS2 DS transaction identifier."
          },
          "eci": {
            "type": "string",
            "description": "Electronic Commerce Indicator (ECI)."
          },
          "cavv": {
            "type": "string",
            "description": "Cardholder Authentication Verification Value (CAVV)."
          },
          "challengeRequired": {
            "type": "boolean",
            "description": "Indicates whether challenge flow is required."
          },
          "jwt": {
            "type": "string",
            "description": "Provider JWT/token, if applicable."
          },
          "redirectUrl": {
            "type": "string",
            "description": "Netvalve redirect URL to continue 3DS flow."
          },
          "status": {
            "type": "string",
            "description": "Current 3DS transaction status.",
            "enum": [
              "INITIALIZED",
              "INITIALIZATION_FAILED",
              "AUTHENTICATED",
              "AUTHENTICATION_FAILED",
              "DEVICE_DATA_COLLECTED",
              "ACS_REQUIRED",
              "ACS_COMPLETED",
              "ACS_FAILED",
              "COMPLETED",
              "RESULT_FAILED"
            ]
          },
          "threeDsVersion": {
            "type": "string",
            "description": "3DS protocol version.",
            "example": "2.2.0"
          },
          "providerRedirectUrl": {
            "type": "string",
            "description": "Provider redirect URL, if required by provider flow."
          },
          "merchantRedirectUrl": {
            "type": "string",
            "description": "Merchant redirect URL supplied at initialization."
          },
          "provider": {
            "type": "string",
            "description": "3DS provider name.",
            "example": "MASTERCARD"
          },
          "providerTransactionId": {
            "type": "string",
            "description": "Provider-side transaction identifier."
          },
          "netvalveCallBackUrl": {
            "type": "string",
            "description": "Netvalve callback URL used by provider flow."
          },
          "authType": {
            "type": "string",
            "description": "Provider-specific authentication type."
          },
          "methodPostData": {
            "type": "string",
            "description": "Provider method post data for device data collection/challenge."
          },
          "cReq": {
            "type": "string",
            "description": "Challenge request payload (CReq) used for challenge flow."
          }
        }
      },
      "ThreeDSAuthenticationResponseDTO": {
        "type": "object",
        "description": "Response payload for 3DS authentication endpoint.",
        "properties": {
          "traceID": {
            "type": "string",
            "description": "Unique trace identifier for request correlation.",
            "example": "9a37d2f1-6a7c-44a9-9b3d-2cf52f5f2a5e"
          },
          "responseTimestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Response creation timestamp."
          },
          "responseCode": {
            "type": "string",
            "description": "Netvalve response code.",
            "example": "3DS_1000"
          },
          "responseMessage": {
            "type": "string",
            "description": "Human-readable response message.",
            "example": "3DS request successfully completed"
          },
          "responseCodeType": {
            "type": "string",
            "description": "Response code category.",
            "example": "APPROVED"
          },
          "bankResponseCode": {
            "type": "string",
            "description": "Provider or bank response code.",
            "example": "00"
          },
          "bankResponseMessage": {
            "type": "string",
            "description": "Provider or bank response message.",
            "example": "Success"
          },
          "midId": {
            "type": "integer",
            "format": "int64",
            "description": "Internal merchant identifier (MID).",
            "example": 101
          },
          "netvalveMidId": {
            "type": "string",
            "description": "External Netvalve MID identifier.",
            "example": "MID_ABC123"
          },
          "transactionId": {
            "type": "integer",
            "format": "int64",
            "description": "Internal sale transaction identifier.",
            "example": 123456
          },
          "orderId": {
            "type": "integer",
            "format": "int64",
            "description": "Internal order identifier.",
            "example": 78910
          },
          "threeDSProviderResponse": {
            "$ref": "#/components/schemas/ThreeDSAuthenticationProviderResponseDTO",
            "description": "3DS provider-specific response payload."
          }
        }
      },
      "AVSData": {
        "type": "object",
        "description": "Address Verification Service (AVS) result details.",
        "properties": {
          "code": {
            "type": "string",
            "description": "AVS verification result code.",
            "example": "Y"
          },
          "description": {
            "type": "string",
            "description": "AVS verification result description.",
            "example": "Street and ZIP match"
          }
        }
      },
      "ApiSecurityTypeDTO": {
        "type": "object",
        "description": "API security configuration details.",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64",
            "description": "Unique identifier of the API security configuration.",
            "example": 101
          },
          "userName": {
            "type": "string",
            "description": "Username associated with the API security credentials.",
            "example": "merchant_user"
          },
          "apiClientId": {
            "type": "string",
            "description": "Unique client identifier used for API authentication.",
            "example": "client_abc123"
          },
          "keyName": {
            "type": "string",
            "description": "Name or label of the security key.",
            "example": "Primary API Key"
          },
          "securityType": {
            "type": "string",
            "description": "Type of security mechanism used.",
            "example": "API_KEY"
          },
          "status": {
            "type": "string",
            "description": "Current status of the API security configuration.",
            "example": "ACTIVE"
          }
        }
      },
      "CVVVerificationData": {
        "type": "object",
        "description": "CVV verification result details.",
        "properties": {
          "code": {
            "type": "string",
            "description": "CVV verification result code.",
            "example": "M"
          },
          "description": {
            "type": "string",
            "description": "CVV verification result description.",
            "example": "CVV match"
          }
        }
      },
      "ClientFraudRulesTransactionDTO": {
        "type": "object",
        "description": "Fraud rules transaction details for a client.",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32",
            "description": "Unique identifier for the fraud rule transaction.",
            "example": 101
          },
          "transactionId": {
            "type": "integer",
            "format": "int64",
            "description": "Transaction identifier associated with the triggered fraud rule.",
            "example": 123456789
          },
          "clientId": {
            "type": "integer",
            "format": "int64",
            "description": "Client identifier related to this fraud transaction.",
            "example": 2001
          },
          "midId": {
            "type": "integer",
            "format": "int64",
            "description": "Merchant identifier (MID) linked to this fraud transaction.",
            "example": 1001
          },
          "ruleCode": {
            "type": "string",
            "description": "Fraud rule code triggered for this transaction.",
            "example": "FRAUD_RULE_001"
          },
          "createdDatetime": {
            "type": "string",
            "format": "date-time",
            "description": "Date and time when this fraud transaction record was created.",
            "example": "2026-04-26T16:20:00"
          }
        }
      },
      "ResultChargebackDataDTO": {
        "type": "object",
        "description": "Chargeback result details associated with a transaction.",
        "properties": {
          "chargebackStatus": {
            "type": "boolean",
            "description": "Indicates whether chargeback is present/active for the transaction.",
            "example": true
          },
          "chargebackTransactionType": {
            "type": "string",
            "description": "Chargeback transaction type.",
            "enum": [
              "ETHOCA",
              "RDR",
              "VERIFY",
              "TC40",
              "INFORM",
              "FRAUD",
              "CHARGEBACK",
              "OI_DEFLECTION_STATUS",
              "RDR_NOTICE"
            ]
          },
          "chargebackDate": {
            "type": "string",
            "format": "date-time",
            "description": "Chargeback date and time.",
            "example": "2026-04-26T14:30:00"
          },
          "chargebackTransactionId": {
            "type": "integer",
            "format": "int64",
            "description": "Chargeback transaction identifier.",
            "example": 123456789
          },
          "cbAlertId": {
            "type": "string",
            "description": "Chargeback alert identifier.",
            "example": "CB-ALERT-20260426-001"
          },
          "chargebackData": {
            "type": "string",
            "description": "Raw chargeback data payload.",
            "example": {
              "reasonCode": "4837"
            }
          }
        }
      },
      "SmartRoutingDTO": {
        "type": "object",
        "description": "Smart routing rule and MID selection details used for transaction processing.",
        "properties": {
          "siteId": {
            "type": "string",
            "description": "Site identifier associated with routing decision.",
            "example": "SITE_001"
          },
          "siteName": {
            "type": "string",
            "description": "Site name associated with routing decision.",
            "example": "Primary Site"
          },
          "ruleId": {
            "type": "string",
            "description": "Smart routing rule identifier.",
            "example": "RULE_100"
          },
          "primaryMid": {
            "type": "integer",
            "format": "int64",
            "description": "Primary internal MID selected by routing.",
            "example": 1001
          },
          "retryMid": {
            "type": "integer",
            "format": "int64",
            "description": "Retry internal MID selected by routing.",
            "example": 1002
          },
          "primaryMidId": {
            "type": "string",
            "description": "Primary external/netvalve MID identifier.",
            "example": "MID-PRIMARY-001"
          },
          "primaryMidName": {
            "type": "string",
            "description": "Primary MID display/account name.",
            "example": "Primary Merchant MID"
          },
          "retryMidId": {
            "type": "string",
            "description": "Retry external/netvalve MID identifier.",
            "example": "MID-RETRY-001"
          },
          "retryMidName": {
            "type": "string",
            "description": "Retry MID display/account name.",
            "example": "Retry Merchant MID"
          },
          "transactionProcessingMid": {
            "type": "string",
            "description": "MID actually used to process this transaction.",
            "example": "PRIMARY"
          },
          "ruleDateTime": {
            "type": "string",
            "format": "date-time",
            "description": "Date and time when routing rule was evaluated/applied.",
            "example": "2026-04-26T20:00:00"
          },
          "clientId": {
            "type": "integer",
            "format": "int64",
            "description": "Client identifier for the routing decision.",
            "example": 2001
          },
          "traceID": {
            "type": "string",
            "description": "Trace identifier used for correlation.",
            "example": "4f0d3f6e-c84a-4ab3-9a60-58fd3e4b1ce5"
          }
        }
      },
      "TokenDTO": {
        "type": "object",
        "description": "Token details returned for tokenized card operations.",
        "properties": {
          "tokenizedCardId": {
            "type": "integer",
            "format": "int64",
            "description": "Internal identifier of the tokenized card.",
            "example": 12345
          },
          "paymentToken": {
            "type": "string",
            "description": "Payment token (customer vault identifier).",
            "example": "tok_3f16ef23bc034aaab632fbebda462fe5"
          },
          "paymentTokenType": {
            "type": "string",
            "description": "Payment token type.",
            "example": "GATEWAY_TOKEN"
          }
        }
      },
      "TransactionOutputDTO": {
        "type": "object",
        "description": "Transaction response payload with payment, customer, routing, and post-processing details.",
        "properties": {
          "createdDate": {
            "type": "string",
            "format": "date-time",
            "description": "Transaction creation timestamp."
          },
          "status": {
            "type": "string",
            "description": "Current transaction status.",
            "example": "APPROVED"
          },
          "settlementStatus": {
            "type": "string",
            "description": "Settlement status for transaction.",
            "example": "SETTLED"
          },
          "issuer": {
            "type": "string",
            "description": "Card issuer/bank name.",
            "example": "JPMORGAN CHASE"
          },
          "cardType": {
            "type": "string",
            "description": "Card type/category.",
            "example": "CREDIT"
          },
          "issuerCountry": {
            "type": "string",
            "description": "Card issuer country code.",
            "example": "US"
          },
          "cardholderName": {
            "type": "string",
            "description": "Cardholder full name.",
            "example": "JOHN DOE"
          },
          "netvalveID": {
            "type": "string",
            "description": "Internal gateway identifier."
          },
          "clientOrderId": {
            "type": "string",
            "description": "Merchant-side order identifier.",
            "example": "ORD-10001"
          },
          "customerEmail": {
            "type": "string",
            "description": "Customer email address.",
            "example": "john@example.com"
          },
          "cardNumber": {
            "type": "string",
            "description": "Masked card number.",
            "example": "411111******1111"
          },
          "brand": {
            "type": "string",
            "description": "Card brand/network.",
            "example": "VISA"
          },
          "userID": {
            "type": "integer",
            "format": "int64",
            "description": "Internal user identifier.",
            "example": 1001
          },
          "paymentMethod": {
            "type": "string",
            "description": "Payment method used for transaction.",
            "example": "CARD"
          },
          "paymentType": {
            "type": "string",
            "description": "Payment type classification.",
            "example": "OPERATION"
          },
          "ipAddress": {
            "type": "string",
            "description": "Client IP address captured for transaction.",
            "example": "203.0.113.10"
          },
          "responseCode": {
            "type": "string",
            "description": "Gateway response code.",
            "example": "GTW_1000"
          },
          "accountName": {
            "type": "string",
            "description": "Processing account name.",
            "example": "primary-us-account"
          },
          "descriptor": {
            "type": "string",
            "description": "Statement descriptor used for charge.",
            "example": "HITPIXEL*STORE"
          },
          "authCode": {
            "type": "string",
            "description": "Authorization code from processor/acquirer.",
            "example": "123456"
          },
          "bankTransactionId": {
            "type": "string",
            "description": "Acquirer/bank transaction identifier.",
            "example": "BNK123456789"
          },
          "schemeTransactionLinkIdentifier": {
            "type": "string",
            "description": "Mastercard Transaction Link Identifier (TLID). Send it in additionalData when your integration already has the Mastercard TLID; returned when available from the request or processor response.",
            "example": "mastercard-tlid"
          },
          "responseMessage": {
            "type": "string",
            "description": "Gateway response message.",
            "example": "Transaction Approved/ Request Successful."
          },
          "transactions": {
            "type": "array",
            "description": "Referenced transactions linked to this transaction.",
            "items": {
              "$ref": "#/components/schemas/TransactionShortOutputDTO"
            }
          },
          "amount": {
            "type": "number",
            "description": "Transaction amount.",
            "example": 100
          },
          "currency": {
            "type": "string",
            "description": "Transaction currency (ISO 4217).",
            "example": "USD"
          },
          "avsData": {
            "$ref": "#/components/schemas/AVSData",
            "description": "Address Verification Service result payload."
          },
          "cvvVerificationData": {
            "$ref": "#/components/schemas/CVVVerificationData",
            "description": "CVV verification result payload."
          },
          "name": {
            "type": "string",
            "description": "Customer full name.",
            "example": "John Doe"
          },
          "firstName": {
            "type": "string",
            "description": "Customer first name.",
            "example": "John"
          },
          "lastName": {
            "type": "string",
            "description": "Customer last name.",
            "example": "Doe"
          },
          "ip": {
            "type": "string",
            "description": "Customer IP address.",
            "example": "203.0.113.10"
          },
          "email": {
            "type": "string",
            "description": "Customer email.",
            "example": "john@example.com"
          },
          "address": {
            "type": "string",
            "description": "Customer address line.",
            "example": "123 Main Street"
          },
          "phone": {
            "type": "string",
            "description": "Customer phone number.",
            "example": "+15551234567"
          },
          "city": {
            "type": "string",
            "description": "Customer city.",
            "example": "New York"
          },
          "state": {
            "type": "string",
            "description": "Customer state/region.",
            "example": "NY"
          },
          "countryCode": {
            "type": "string",
            "description": "Customer country code.",
            "example": "US"
          },
          "zipCode": {
            "type": "string",
            "description": "Customer ZIP/postal code.",
            "example": "10001"
          },
          "successUrl": {
            "type": "string",
            "description": "Merchant success redirect URL.",
            "example": "https://merchant.example/success"
          },
          "cancelUrl": {
            "type": "string",
            "description": "Merchant cancel redirect URL.",
            "example": "https://merchant.example/cancel"
          },
          "failedUrl": {
            "type": "string",
            "description": "Merchant failure redirect URL.",
            "example": "https://merchant.example/failed"
          },
          "pendingUrl": {
            "type": "string",
            "description": "Merchant pending redirect URL.",
            "example": "https://merchant.example/pending"
          },
          "threeDomainsSecureData": {
            "$ref": "#/components/schemas/ThreeDomainsSecureDTO",
            "description": "3DS data captured/returned for the transaction."
          },
          "sourceOfTransaction": {
            "type": "string",
            "description": "Transaction source/channel.",
            "example": "API"
          },
          "billingDetails": {
            "$ref": "#/components/schemas/BillingAddressDTO",
            "description": "Billing address details."
          },
          "shippingDetails": {
            "$ref": "#/components/schemas/ShippingAddressDTO",
            "description": "Shipping address details."
          },
          "transactionReferencedList": {
            "type": "array",
            "description": "List of referenced transactions.",
            "items": {
              "$ref": "#/components/schemas/TransactionShortOutputDTO"
            }
          },
          "transactionType": {
            "type": "string",
            "description": "Transaction type enum.",
            "enum": [
              "AUTHORIZATION",
              "CAPTURE",
              "SALE",
              "REFUND",
              "CANCEL",
              "REBILL",
              "INQUIRY"
            ],
            "example": "SALE"
          },
          "responseCodeType": {
            "type": "string",
            "description": "Response code category/type.",
            "example": "SUCCESS"
          },
          "bankResponseCode": {
            "type": "string",
            "description": "Bank/acquirer response code.",
            "example": "00"
          },
          "bankResponseMessage": {
            "type": "string",
            "description": "Bank/acquirer response message.",
            "example": "Approved"
          },
          "allowedActions": {
            "type": "array",
            "description": "Actions currently allowed on this transaction.",
            "example": [
              "REFUND",
              "CAPTURE"
            ],
            "items": {
              "type": "string"
            }
          },
          "transactionReference": {
            "type": "integer",
            "format": "int64",
            "description": "Primary referenced transaction ID.",
            "example": 1000001
          },
          "orderId": {
            "type": "integer",
            "format": "int64",
            "description": "Internal order identifier.",
            "example": 200001
          },
          "paymentTypeEnum": {
            "type": "string",
            "description": "Payment type enum.",
            "enum": [
              "CARD",
              "WALLET",
              "TOKEN",
              "APM",
              "MERCHANT_NETWORK_TOKEN"
            ],
            "example": "OPERATION"
          },
          "walletDataDTO": {
            "$ref": "#/components/schemas/WalletDataDTO",
            "description": "Wallet-specific transaction data."
          },
          "bankName": {
            "type": "string",
            "description": "Processor/acquirer bank name.",
            "example": "CHASE"
          },
          "refundBalancedAmount": {
            "type": "number",
            "description": "Remaining refundable amount.",
            "example": 35.5
          },
          "isFraudTransaction": {
            "type": "boolean",
            "description": "Indicates whether transaction is marked as fraud.",
            "example": false
          },
          "clientFraudRulesTransaction": {
            "$ref": "#/components/schemas/ClientFraudRulesTransactionDTO",
            "description": "Fraud rules evaluation data."
          },
          "chargebackData": {
            "type": "array",
            "description": "Chargeback records associated with the transaction.",
            "items": {
              "$ref": "#/components/schemas/ResultChargebackDataDTO"
            }
          },
          "cardExpiryMonth": {
            "type": "string",
            "description": "Card expiry month (MM).",
            "example": "12"
          },
          "cardExpiryYear": {
            "type": "string",
            "description": "Card expiry year (YYYY).",
            "example": "2030"
          },
          "tokenDTO": {
            "$ref": "#/components/schemas/TokenDTO",
            "description": "Tokenization response data for saved card/token."
          },
          "level2Data": {
            "$ref": "#/components/schemas/TransactionInputLevel2DTO",
            "description": "Level 2 transaction data."
          },
          "level3Data": {
            "$ref": "#/components/schemas/TransactionInputLevel3DTO",
            "description": "Level 3 transaction data."
          },
          "additionalParameters": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Additional transaction parameters as key-value pairs."
          },
          "backofficeUserName": {
            "type": "string"
          },
          "apiSecurityType": {
            "$ref": "#/components/schemas/ApiSecurityTypeDTO",
            "description": "API security type configuration used for the request."
          },
          "apmType": {
            "type": "string",
            "description": "Alternative payment method subtype.",
            "enum": [
              "PIX",
              "PAYPAL",
              "BITPACE",
              "PSE",
              "VENMO",
              "SPEI",
              "VOLT",
              "SEZZLE",
              "IDEAL",
              "WERO",
              "SWISH",
              "EPS",
              "TWINT",
              "BANCONTACT",
              "BLIK",
              "GCASH"
            ],
            "example": "PSE"
          },
          "cryptoProvider": {
            "type": "string",
            "description": "Crypto payment provider name.",
            "example": "BITPACE"
          },
          "callbackData": {
            "description": "Raw callback payload/object captured from provider."
          },
          "networkTokenPrefix": {
            "type": "string",
            "description": "Network token prefix digits.",
            "example": "520000"
          },
          "networkTokenSuffix": {
            "type": "string",
            "description": "Network token suffix digits.",
            "example": "1234"
          },
          "networkTokenExpiryMonth": {
            "type": "string",
            "description": "Network token expiry month (MM).",
            "example": "08"
          },
          "networkTokenExpiryYear": {
            "type": "string",
            "description": "Network token expiry year (YYYY).",
            "example": "2031"
          },
          "networkTokenPrefixAndSuffix": {
            "type": "string",
            "description": "Combined network token masked representation.",
            "example": "520000******1234"
          },
          "tsysBatchSettlementDTO": {
            "$ref": "#/components/schemas/TsysBatchSettlementDTO",
            "description": "TSYS batch settlement details."
          },
          "apmPaymentInfo": {
            "$ref": "#/components/schemas/APMPaymentInfoDTO"
          },
          "healthCareData": {
            "$ref": "#/components/schemas/HealthCareDataDTO"
          },
          "smartRoutingTransaction": {
            "type": "boolean"
          },
          "partialCaptureAllowed": {
            "type": "boolean"
          },
          "smartRouting": {
            "$ref": "#/components/schemas/SmartRoutingDTO"
          },
          "threeDsTransaction": {
            "type": "boolean"
          },
          "partialRefundAllowed": {
            "type": "boolean"
          },
          "isPartialRefund": {
            "type": "boolean",
            "description": "Indicates whether this refund is partial.",
            "example": false
          },
          "isPartialRefundAllowed": {
            "type": "boolean",
            "description": "Indicates whether partial refund is allowed.",
            "example": true
          },
          "isPartialCaptureAllowed": {
            "type": "boolean",
            "description": "Indicates whether partial capture is allowed.",
            "example": true
          }
        }
      },
      "TransactionShortOutputDTO": {
        "type": "object",
        "description": "Compact transaction response details.",
        "properties": {
          "createdDate": {
            "type": "string",
            "format": "date-time",
            "description": "Transaction creation date and time.",
            "example": "2026-04-26T19:10:00"
          },
          "transactionType": {
            "type": "string",
            "description": "Transaction type.",
            "enum": [
              "AUTHORIZATION",
              "CAPTURE",
              "SALE",
              "REFUND",
              "CANCEL",
              "REBILL",
              "INQUIRY",
              "AUTHORIZATION",
              "CAPTURE",
              "SALE",
              "REFUND",
              "CANCEL",
              "REBILL",
              "INQUIRY"
            ]
          },
          "amount": {
            "type": "number",
            "format": "double",
            "description": "Transaction amount.",
            "example": 100.5
          },
          "status": {
            "type": "string",
            "description": "Transaction status.",
            "example": "APPROVED"
          },
          "settlementStatus": {
            "type": "string",
            "description": "Settlement status for transaction.",
            "example": "SETTLED"
          },
          "transactionId": {
            "type": "integer",
            "format": "int64",
            "description": "Transaction identifier.",
            "example": 123456789
          },
          "currency": {
            "type": "string",
            "description": "Transaction currency code.",
            "example": "USD"
          },
          "authCode": {
            "type": "string",
            "description": "Authorization code from acquirer/processor.",
            "example": "123456"
          },
          "responseCode": {
            "type": "string",
            "description": "Gateway response code.",
            "example": "GTW_1000"
          },
          "responseMessage": {
            "type": "string",
            "description": "Gateway response message.",
            "example": "Transaction Approved/ Request Successful."
          },
          "responseCodeType": {
            "type": "string",
            "description": "Response code type/category.",
            "example": "SUCCESS"
          },
          "bankTransactionId": {
            "type": "string",
            "description": "Bank/acquirer transaction identifier.",
            "example": "BNK123456789"
          },
          "bankResponseCode": {
            "type": "string",
            "description": "Bank/acquirer response code.",
            "example": "00"
          },
          "bankResponseMessage": {
            "type": "string",
            "description": "Bank/acquirer response message.",
            "example": "Approved"
          },
          "allowedActions": {
            "type": "array",
            "description": "Allowed actions for this transaction.",
            "example": [
              "REFUND",
              "CAPTURE",
              "REFUND",
              "CAPTURE"
            ],
            "items": {
              "type": "string"
            }
          },
          "transactionReference": {
            "type": "integer",
            "format": "int64",
            "description": "Referenced transaction identifier.",
            "example": 1000001
          },
          "threeDomainsSecureData": {
            "$ref": "#/components/schemas/ThreeDomainsSecureDTO",
            "description": "3DS data associated with this transaction."
          },
          "smartRoutingData": {
            "$ref": "#/components/schemas/SmartRoutingDTO",
            "description": "Smart routing data associated with this transaction."
          },
          "sourceOfTransaction": {
            "type": "string",
            "description": "Source/channel of transaction.",
            "enum": [
              "HPP",
              "API",
              "API_3DS",
              "HPP_3DS",
              "RETRY_WITH_HPP",
              "SMART_ROUTING",
              "RETRY_WITH_SMART_ROUTING",
              "SERVER_TO_SERVER",
              "RETRY_WITH_SERVER_TO_SERVER",
              "APPLE_PAY",
              "GOOGLE_PAY",
              "SAMSUNG_PAY",
              "HPP_3DS_CARDS",
              "HPP_3DS_APPLE_PAY",
              "HPP_3DS_GOOGLE_PAY",
              "HPP_3DS_SAMSUNG_PAY",
              "HPP_APPLE_PAY_CONFIG_NETVALVE_INTEGRATOR",
              "HPP_APPLE_PAY_CONFIG_NETVALVE_LEVEL",
              "HPP_APPLE_PAY_CONFIG_CLIENT_LEVEL",
              "HPP_APPLE_PAY_CONFIG_MID_LEVEL",
              "HPP_GOOGLE_PAY_CONFIG_NETVALVE_LEVEL",
              "HPP_GOOGLE_PAY_CONFIG_CLIENT_LEVEL",
              "HPP_GOOGLE_PAY_CONFIG_MID_LEVEL",
              "GATEWAY_TOKEN_SAVING",
              "GATEWAY_TOKEN_PROCESSING",
              "NETWORK_TOKEN_SAVING",
              "NETWORK_TOKEN_PROCESSING",
              "HOSTED_PAYMENT_FIELDS",
              "ACCOUNT_UPDATER",
              "DISABLE_BLACKLIST",
              "ENABLE_DYNAMIC_DESCRIPTOR",
              "ENABLE_BIN_INFO_RESPONSE",
              "ENABLE_DATA_ENRICHMENT",
              "ENABLE_PIX_SUBSCRIPTION",
              "ENABLE_MANAGED_RECURRING",
              "ENABLE_MANAGED_RECURRING_RETRIES",
              "PAYLINKS",
              "MOTO_DIRECT_MARKETING_TRANSACTIONS",
              "ENABLE_FSA_HSA_HEALTHCARE_DATA",
              "HPP",
              "API",
              "API_3DS",
              "HPP_3DS",
              "RETRY_WITH_HPP",
              "SMART_ROUTING",
              "RETRY_WITH_SMART_ROUTING",
              "SERVER_TO_SERVER",
              "RETRY_WITH_SERVER_TO_SERVER",
              "APPLE_PAY",
              "GOOGLE_PAY",
              "SAMSUNG_PAY",
              "HPP_3DS_CARDS",
              "HPP_3DS_APPLE_PAY",
              "HPP_3DS_GOOGLE_PAY",
              "HPP_3DS_SAMSUNG_PAY",
              "HPP_APPLE_PAY_CONFIG_NETVALVE_INTEGRATOR",
              "HPP_APPLE_PAY_CONFIG_NETVALVE_LEVEL",
              "HPP_APPLE_PAY_CONFIG_CLIENT_LEVEL",
              "HPP_APPLE_PAY_CONFIG_MID_LEVEL",
              "HPP_GOOGLE_PAY_CONFIG_NETVALVE_LEVEL",
              "HPP_GOOGLE_PAY_CONFIG_CLIENT_LEVEL",
              "HPP_GOOGLE_PAY_CONFIG_MID_LEVEL",
              "GATEWAY_TOKEN_SAVING",
              "GATEWAY_TOKEN_PROCESSING",
              "NETWORK_TOKEN_SAVING",
              "NETWORK_TOKEN_PROCESSING",
              "HOSTED_PAYMENT_FIELDS",
              "ACCOUNT_UPDATER",
              "DISABLE_BLACKLIST",
              "ENABLE_DYNAMIC_DESCRIPTOR",
              "ENABLE_BIN_INFO_RESPONSE",
              "ENABLE_DATA_ENRICHMENT",
              "ENABLE_PIX_SUBSCRIPTION",
              "ENABLE_MANAGED_RECURRING",
              "ENABLE_MANAGED_RECURRING_RETRIES",
              "PAYLINKS",
              "MOTO_DIRECT_MARKETING_TRANSACTIONS",
              "ENABLE_FSA_HSA_HEALTHCARE_DATA"
            ]
          },
          "billingDetails": {
            "$ref": "#/components/schemas/BillingAddressDTO",
            "description": "Billing address details."
          },
          "shippingDetails": {
            "$ref": "#/components/schemas/ShippingAddressDTO",
            "description": "Shipping address details."
          },
          "tokenDTO": {
            "$ref": "#/components/schemas/TokenDTO",
            "description": "Token details for tokenized card response."
          },
          "smartRoutingTransaction": {
            "type": "boolean"
          },
          "threeDsTransaction": {
            "type": "boolean"
          }
        }
      },
      "TsysBatchSettlementDTO": {
        "type": "object",
        "description": "TSYS batch settlement details attached to a transaction response.",
        "properties": {
          "settlementBatchDate": {
            "type": "string",
            "format": "date-time",
            "description": "Settlement batch date and time.",
            "example": "2026-04-26T12:45:30"
          },
          "settlementBatchId": {
            "type": "string",
            "description": "Settlement batch identifier from TSYS.",
            "example": "BATCH-20260426-001"
          }
        }
      },
      "WalletDataDTO": {
        "type": "object",
        "description": "Wallet-specific transaction data captured during processing.",
        "properties": {
          "mappingId": {
            "type": "integer",
            "format": "int64",
            "description": "Wallet mapping identifier.",
            "example": 501
          },
          "transactionId": {
            "type": "integer",
            "format": "int64",
            "description": "Associated transaction identifier.",
            "example": 123456789
          },
          "walletType": {
            "type": "string",
            "description": "Wallet type.",
            "example": "APPLE_PAY"
          },
          "pan": {
            "type": "string",
            "description": "Primary account number or tokenized PAN value.",
            "example": "411111******1111"
          },
          "panType": {
            "type": "string",
            "description": "PAN type.",
            "example": "NETWORK_TOKEN"
          },
          "authMethod": {
            "type": "string",
            "description": "Authorization method returned by wallet payload.",
            "example": "3DS"
          },
          "eci": {
            "type": "string",
            "description": "Electronic Commerce Indicator (ECI).",
            "example": "05"
          },
          "cryptogram": {
            "type": "string",
            "description": "Wallet cryptogram value.",
            "example": "AgAAAAAABk4DWZ4C28yUQAAAAAA="
          },
          "cardSummary": {
            "type": "string",
            "description": "Card summary details.",
            "example": "Visa 1111"
          },
          "service": {
            "type": "string",
            "description": "Source service name.",
            "example": "PAYMENT_SERVICE"
          },
          "createdDatetime": {
            "type": "string",
            "format": "date-time",
            "description": "Record creation timestamp.",
            "example": "2026-04-26T18:45:00"
          }
        }
      },
      "RecurringScheduleSearchFilterDTO": {
        "type": "object",
        "description": "Filter criteria for querying managed recurring subscriptions.",
        "properties": {
          "fromDateTime": {
            "type": "string",
            "format": "date-time",
            "description": "Start date-time (inclusive) for filtering subscriptions.",
            "example": "2026-01-01 00:00:00"
          },
          "toDateTime": {
            "type": "string",
            "format": "date-time",
            "description": "End date-time (inclusive) for filtering subscriptions.",
            "example": "2026-12-31 23:59:59"
          },
          "status": {
            "type": "string",
            "description": "Recurring subscription status filter.",
            "enum": [
              "ACTIVE",
              "PAUSED",
              "INACTIVE",
              "PAYMENT_PENDING",
              "PAYMENT_FAILED"
            ],
            "example": "ACTIVE"
          },
          "subscriptionId": {
            "type": "integer",
            "format": "int64",
            "description": "Managed recurring subscription identifier.",
            "example": 5001
          },
          "transactionId": {
            "type": "integer",
            "format": "int64",
            "description": "Transaction identifier linked to the subscription.",
            "example": 100001
          },
          "clientId": {
            "type": "integer",
            "format": "int64",
            "description": "Client identifier owning the subscription.",
            "example": 2001
          }
        }
      },
      "ManagedRecurringSubscriptionDTO": {
        "type": "object",
        "description": "Managed recurring subscription details with schedule, status, and related response metadata.",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64",
            "description": "Managed recurring subscription identifier.",
            "example": 5001
          },
          "transactionId": {
            "type": "integer",
            "format": "int64",
            "description": "Original transaction identifier linked to the subscription.",
            "example": 100001
          },
          "clientId": {
            "type": "integer",
            "format": "int64",
            "description": "Client identifier owning this subscription.",
            "example": 2001
          },
          "status": {
            "type": "string",
            "description": "Current recurring schedule status.",
            "enum": [
              "ACTIVE",
              "PAUSED",
              "INACTIVE",
              "PAYMENT_PENDING",
              "PAYMENT_FAILED"
            ],
            "example": "ACTIVE"
          },
          "createdDatetime": {
            "type": "string",
            "format": "date-time",
            "description": "Subscription creation timestamp."
          },
          "updatedDatetime": {
            "type": "string",
            "format": "date-time",
            "description": "Subscription last updated timestamp."
          },
          "nextAttemptDate": {
            "type": "string",
            "format": "date-time",
            "description": "Next recurring payment attempt date-time."
          },
          "recurringType": {
            "type": "string",
            "description": "Recurring unit type.",
            "enum": [
              "DAYS",
              "HOURS",
              "WEEK",
              "MONTH",
              "QUARTER",
              "SEMESTER",
              "YEAR"
            ],
            "example": "DAYS"
          },
          "recurringPeriod": {
            "type": "integer",
            "format": "int32",
            "description": "Recurring interval count based on recurringType.",
            "example": 30
          },
          "recurringAmount": {
            "type": "number",
            "description": "Amount charged on each recurring attempt.",
            "example": 99.99
          },
          "failureAttempts": {
            "type": "integer",
            "format": "int32",
            "description": "Total failed recurring attempts.",
            "example": 0
          },
          "subscriptionName": {
            "type": "string",
            "description": "Subscription name.",
            "example": "Gym Membership"
          },
          "description": {
            "type": "string",
            "description": "Subscription description or latest reason."
          },
          "recurringTransactionStatus": {
            "type": "string",
            "description": "Current recurring transaction status.",
            "enum": [
              "NEW",
              "PROCESSING",
              "COMPLETED",
              "FAILED"
            ],
            "example": "NEW"
          },
          "endDate": {
            "type": "string",
            "format": "date-time",
            "description": "Subscription end date-time, if configured."
          },
          "startDate": {
            "type": "string",
            "format": "date-time",
            "description": "Subscription start date-time."
          },
          "traceID": {
            "type": "string",
            "description": "Correlation identifier for request tracing.",
            "example": "d3cb9f3c-16c3-4d9e-a22f-f8935c1d8f8f"
          },
          "responseTimestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Response timestamp in server timezone."
          },
          "responseCode": {
            "type": "string",
            "description": "Gateway response code.",
            "example": "GTW_1000"
          },
          "responseMessage": {
            "type": "string",
            "description": "Gateway response message.",
            "example": "Managed recurring subscription fetched successfully."
          },
          "transactions": {
            "type": "array",
            "description": "Related transactions linked to this subscription.",
            "items": {
              "$ref": "#/components/schemas/TransactionShortOutputDTO"
            }
          }
        }
      },
      "PageManagedRecurringSubscriptionDTO": {
        "type": "object",
        "properties": {
          "totalPages": {
            "type": "integer",
            "format": "int32"
          },
          "totalElements": {
            "type": "integer",
            "format": "int64"
          },
          "size": {
            "type": "integer",
            "format": "int32"
          },
          "content": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ManagedRecurringSubscriptionDTO"
            }
          },
          "number": {
            "type": "integer",
            "format": "int32"
          },
          "pageable": {
            "$ref": "#/components/schemas/PageableObject"
          },
          "sort": {
            "$ref": "#/components/schemas/SortObject"
          },
          "numberOfElements": {
            "type": "integer",
            "format": "int32"
          },
          "first": {
            "type": "boolean"
          },
          "last": {
            "type": "boolean"
          },
          "empty": {
            "type": "boolean"
          }
        }
      },
      "PageableObject": {
        "type": "object",
        "properties": {
          "offset": {
            "type": "integer",
            "format": "int64"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "paged": {
            "type": "boolean"
          },
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "sort": {
            "$ref": "#/components/schemas/SortObject"
          },
          "unpaged": {
            "type": "boolean"
          }
        }
      },
      "SortObject": {
        "type": "object",
        "properties": {
          "empty": {
            "type": "boolean"
          },
          "unsorted": {
            "type": "boolean"
          },
          "sorted": {
            "type": "boolean"
          }
        }
      },
      "BatchSummaryDataDTO": {
        "type": "object",
        "description": "Batch-level summary metrics for sales/refunds and net totals.",
        "properties": {
          "batchId": {
            "type": "integer",
            "format": "int64",
            "description": "Internal batch identifier.",
            "example": 1001
          },
          "batchNumber": {
            "type": "string",
            "description": "Processor batch number/reference.",
            "example": "BATCH-20260426-001"
          },
          "processor": {
            "type": "string",
            "description": "Processor/bank name.",
            "example": "TSYS"
          },
          "createdDatetime": {
            "type": "string",
            "format": "date-time",
            "description": "Batch creation date and time.",
            "example": "2026-04-26T09:30:00"
          },
          "updatedDatetime": {
            "type": "string",
            "format": "date-time",
            "description": "Batch last update date and time.",
            "example": "2026-04-26T12:45:00"
          },
          "numberOfSales": {
            "type": "integer",
            "format": "int32",
            "description": "Number of sale transactions in the batch.",
            "example": 120
          },
          "saleAmount": {
            "type": "number",
            "description": "Total amount of sale transactions in the batch.",
            "example": 15000.75
          },
          "numberOfRefunds": {
            "type": "integer",
            "format": "int32",
            "description": "Number of refund transactions in the batch.",
            "example": 8
          },
          "refundAmount": {
            "type": "number",
            "description": "Total amount of refund transactions in the batch.",
            "example": 850.25
          },
          "numberOfNetTransactions": {
            "type": "integer",
            "format": "int32",
            "description": "Net transaction count (sales - refunds).",
            "example": 112
          },
          "netAmount": {
            "type": "number",
            "description": "Net amount (saleAmount - refundAmount).",
            "example": 14150.5
          }
        }
      },
      "BatchSummaryDetailsDTO": {
        "type": "object",
        "description": "Detailed batch summary including aggregate values and transaction list.",
        "properties": {
          "batchId": {
            "type": "integer",
            "format": "int64",
            "description": "Internal batch identifier.",
            "example": 1001
          },
          "batchNumber": {
            "type": "string",
            "description": "Processor batch number/reference.",
            "example": "BATCH-20260426-001"
          },
          "processor": {
            "type": "string",
            "description": "Processor/bank name.",
            "example": "TSYS"
          },
          "createdDateTime": {
            "type": "string",
            "format": "date-time",
            "description": "Batch creation date and time.",
            "example": "2026-04-26T09:30:00"
          },
          "updatedDateTime": {
            "type": "string",
            "format": "date-time",
            "description": "Batch last update date and time.",
            "example": "2026-04-26T12:45:00"
          },
          "numberOfSales": {
            "type": "integer",
            "format": "int32",
            "description": "Number of sale transactions in the batch.",
            "example": 120
          },
          "saleAmount": {
            "type": "number",
            "description": "Total sale amount in the batch.",
            "example": 15000.75
          },
          "numberOfRefunds": {
            "type": "integer",
            "format": "int32",
            "description": "Number of refund transactions in the batch.",
            "example": 8
          },
          "refundAmount": {
            "type": "number",
            "description": "Total refund amount in the batch.",
            "example": 850.25
          },
          "numberOfNetTransactions": {
            "type": "integer",
            "format": "int32",
            "description": "Net transaction count (sales - refunds).",
            "example": 112
          },
          "netAmount": {
            "type": "number",
            "description": "Net amount (saleAmount - refundAmount).",
            "example": 14150.5
          },
          "batchTransactions": {
            "type": "array",
            "description": "Transaction entries included in this batch.",
            "items": {
              "$ref": "#/components/schemas/BatchTransactionDTO"
            }
          }
        }
      },
      "BatchTransactionDTO": {
        "type": "object",
        "description": "Batch transaction summary record.",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64",
            "description": "Internal transaction identifier.",
            "example": 987654321
          },
          "amount": {
            "type": "number",
            "description": "Transaction amount.",
            "example": 49.99
          },
          "currency": {
            "type": "string",
            "description": "Transaction currency (ISO 4217).",
            "example": "USD"
          },
          "orderId": {
            "type": "integer",
            "format": "int64",
            "description": "Order identifier.",
            "example": 12345
          },
          "clientOrderId": {
            "type": "string",
            "description": "Client-provided order identifier.",
            "example": "ORD-12345-ABC"
          },
          "transactionType": {
            "type": "string",
            "description": "Transaction type.",
            "example": "SALE"
          },
          "transactionReference": {
            "type": "integer",
            "format": "int64",
            "description": "Reference transaction id for follow-up operations.",
            "example": 987650000
          },
          "datetime": {
            "type": "string",
            "format": "date-time",
            "description": "Transaction creation timestamp.",
            "example": "2026-04-28T10:45:00"
          },
          "accountName": {
            "type": "string",
            "description": "Merchant account name.",
            "example": "Acme Merchant"
          },
          "status": {
            "type": "string",
            "description": "Transaction status.",
            "example": "SUCCESS"
          },
          "customerEmail": {
            "type": "string",
            "description": "Customer email.",
            "example": "john.doe@example.com"
          },
          "responseCode": {
            "type": "string",
            "description": "Gateway response code.",
            "example": "GTW_0000"
          },
          "responseMessage": {
            "type": "string",
            "description": "Gateway response message.",
            "example": "Transaction processed successfully"
          },
          "responseCodeType": {
            "type": "string",
            "description": "Response code category/type.",
            "example": "SUCCESS"
          },
          "bankResponseCode": {
            "type": "string",
            "description": "Processor/bank response code.",
            "example": "00"
          },
          "bankResponseMessage": {
            "type": "string",
            "description": "Processor/bank response message.",
            "example": "Approved"
          },
          "bankName": {
            "type": "string",
            "description": "Bank/provider name.",
            "example": "TSYS"
          },
          "bankTransactionId": {
            "type": "string",
            "description": "Bank-side transaction identifier.",
            "example": "BNK-TXN-443322"
          },
          "authCode": {
            "type": "string",
            "description": "Authorization code.",
            "example": "A1B2C3"
          }
        }
      },
      "OrderSearchFilterDTO": {
        "type": "object",
        "description": "Query filters for order export. All fields are optional unless noted. Dates must be sent as query parameters in yyyy-MM-dd HH:mm:ss format.",
        "properties": {
          "fromDateTime": {
            "type": "string",
            "description": "Start of order created datetime range. Used only when both fromDateTime and toDateTime are supplied.",
            "example": "2026-06-01 00:00:00",
            "pattern": "yyyy-MM-dd HH:mm:ss"
          },
          "toDateTime": {
            "type": "string",
            "description": "End of order created datetime range. Used only when both fromDateTime and toDateTime are supplied.",
            "example": "2026-06-26 23:59:59",
            "pattern": "yyyy-MM-dd HH:mm:ss"
          },
          "emailAddress": {
            "type": "string",
            "description": "Customer email address filter. If sent without a complete date range, email search is prioritized.",
            "example": "customer@example.com"
          },
          "firstName": {
            "type": "string",
            "description": "Customer first name.",
            "example": "John"
          },
          "lastName": {
            "type": "string",
            "description": "Customer last name.",
            "example": "Doe"
          },
          "orderId": {
            "type": "integer",
            "format": "int64",
            "description": "Exact internal order identifier. When supplied, order ID search takes precedence over other filters.",
            "example": 12345
          },
          "clientOrderId": {
            "type": "string",
            "description": "Client-provided order identifier. When supplied, client order ID search takes precedence over general filters.",
            "example": "ORD-12345-ABC"
          },
          "orderStatus": {
            "type": "string",
            "description": "Order status value stored on the order.",
            "example": "Completed"
          },
          "descriptor": {
            "type": "string",
            "description": "MID descriptor.",
            "example": "MYSHOP"
          },
          "countryCode": {
            "type": "string",
            "description": "Customer country code.",
            "example": "US"
          },
          "currency": {
            "type": "string",
            "description": "Transaction currency in ISO 4217 format.",
            "example": "USD",
            "maxLength": 3,
            "minLength": 3
          },
          "transactionId": {
            "type": "integer",
            "format": "int64",
            "description": "Exact internal transaction identifier linked to the order.",
            "example": 987654321
          },
          "cardType": {
            "type": "string",
            "description": "Card brand/type.",
            "example": "VISA"
          },
          "bin": {
            "type": "string",
            "description": "Card BIN, usually first 6 digits.",
            "example": "411111"
          },
          "ccFirstSix": {
            "type": "string",
            "description": "First six digits of the card number.",
            "example": "411111"
          },
          "ccLastFour": {
            "type": "string",
            "description": "Last four digits of the card number.",
            "example": "1111"
          },
          "midId": {
            "type": "integer",
            "format": "int64",
            "description": "Merchant identifier.",
            "example": 1001
          },
          "bankId": {
            "type": "integer",
            "format": "int64",
            "description": "Bank or processor identifier.",
            "example": 12
          },
          "minAmount": {
            "type": "number",
            "description": "Minimum order transaction amount, inclusive.",
            "example": 10
          },
          "maxAmount": {
            "type": "number",
            "description": "Maximum order transaction amount, inclusive.",
            "example": 100
          },
          "correlationId": {
            "type": "string",
            "description": "Request correlation identifier.",
            "example": "trace-7f3d9e12"
          },
          "paymentStatus": {
            "type": "string",
            "description": "Payment result filter. SUCCESS includes successful attempted payments; FAILED includes failed attempted payments.",
            "enum": [
              "SUCCESS",
              "FAILED"
            ],
            "example": "SUCCESS",
            "pattern": "SUCCESS|FAILED"
          },
          "includeAllStatuses": {
            "type": "boolean",
            "default": false,
            "description": "Include all statuses. Defaults to false when omitted.",
            "example": false
          },
          "paymentType": {
            "type": "string",
            "description": "Payment type. Value is case-insensitive.",
            "enum": [
              "CARD",
              "WALLET",
              "TOKEN",
              "APM"
            ],
            "example": "CARD"
          },
          "apmType": {
            "type": "string",
            "description": "Alternative payment method type. Value is case-insensitive.",
            "enum": [
              "PIX",
              "PAYPAL",
              "BITPACE",
              "PSE",
              "VENMO",
              "SPEI",
              "VOLT",
              "SEZZLE"
            ],
            "example": "PAYPAL"
          },
          "walletType": {
            "type": "string",
            "description": "Wallet type. Value is case-insensitive.",
            "enum": [
              "APPLE_PAY",
              "GOOGLE_PAY",
              "SAMSUNG_PAY"
            ],
            "example": "APPLE_PAY"
          },
          "serviceName": {
            "type": "string",
            "description": "Service name filter.",
            "example": "Payment API"
          },
          "withThreeDs": {
            "type": "boolean",
            "default": false,
            "description": "Filter orders by linked 3DS transaction data. Defaults to false when omitted.",
            "example": false
          },
          "threeDsProviderId": {
            "type": "integer",
            "format": "int64",
            "description": "3DS provider identifier.",
            "example": 3
          },
          "clientId": {
            "type": "integer",
            "format": "int64",
            "description": "Client identifier. For merchant API calls this is normally resolved from authentication.",
            "example": 2001
          },
          "resellerId": {
            "type": "integer",
            "format": "int64",
            "description": "Reseller identifier.",
            "example": 3001
          },
          "payLinkId": {
            "type": "string",
            "description": "Merchant paylink UUIDv7 identifier used to create the order.",
            "example": "0199a464-c2f8-7ea0-8ae5-24b43722ac06",
            "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
          }
        }
      },
      "PageResultOrderDTO": {
        "type": "object",
        "properties": {
          "totalPages": {
            "type": "integer",
            "format": "int32"
          },
          "totalElements": {
            "type": "integer",
            "format": "int64"
          },
          "size": {
            "type": "integer",
            "format": "int32"
          },
          "content": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResultOrderDTO"
            }
          },
          "number": {
            "type": "integer",
            "format": "int32"
          },
          "pageable": {
            "$ref": "#/components/schemas/PageableObject"
          },
          "sort": {
            "$ref": "#/components/schemas/SortObject"
          },
          "numberOfElements": {
            "type": "integer",
            "format": "int32"
          },
          "first": {
            "type": "boolean"
          },
          "last": {
            "type": "boolean"
          },
          "empty": {
            "type": "boolean"
          }
        }
      },
      "ResultOrderDTO": {
        "type": "object",
        "description": "Order-level result data used in order listing/search responses.",
        "properties": {
          "sourceOfTransaction": {
            "type": "string",
            "description": "Channel/source of transaction initiation.",
            "enum": [
              "HPP",
              "API",
              "API_3DS",
              "HPP_3DS",
              "RETRY_WITH_HPP",
              "SMART_ROUTING",
              "RETRY_WITH_SMART_ROUTING",
              "SERVER_TO_SERVER",
              "RETRY_WITH_SERVER_TO_SERVER",
              "APPLE_PAY",
              "GOOGLE_PAY",
              "SAMSUNG_PAY",
              "HPP_3DS_CARDS",
              "HPP_3DS_APPLE_PAY",
              "HPP_3DS_GOOGLE_PAY",
              "HPP_3DS_SAMSUNG_PAY",
              "HPP_APPLE_PAY_CONFIG_NETVALVE_INTEGRATOR",
              "HPP_APPLE_PAY_CONFIG_NETVALVE_LEVEL",
              "HPP_APPLE_PAY_CONFIG_CLIENT_LEVEL",
              "HPP_APPLE_PAY_CONFIG_MID_LEVEL",
              "HPP_GOOGLE_PAY_CONFIG_NETVALVE_LEVEL",
              "HPP_GOOGLE_PAY_CONFIG_CLIENT_LEVEL",
              "HPP_GOOGLE_PAY_CONFIG_MID_LEVEL",
              "GATEWAY_TOKEN_SAVING",
              "GATEWAY_TOKEN_PROCESSING",
              "NETWORK_TOKEN_SAVING",
              "NETWORK_TOKEN_PROCESSING",
              "HOSTED_PAYMENT_FIELDS",
              "ACCOUNT_UPDATER",
              "DISABLE_BLACKLIST",
              "ENABLE_DYNAMIC_DESCRIPTOR",
              "ENABLE_BIN_INFO_RESPONSE",
              "ENABLE_DATA_ENRICHMENT",
              "ENABLE_PIX_SUBSCRIPTION",
              "ENABLE_MANAGED_RECURRING",
              "ENABLE_MANAGED_RECURRING_RETRIES",
              "PAYLINKS",
              "MOTO_DIRECT_MARKETING_TRANSACTIONS",
              "ENABLE_FSA_HSA_HEALTHCARE_DATA"
            ],
            "example": "API"
          },
          "id": {
            "type": "integer",
            "format": "int64",
            "description": "Order identifier.",
            "example": 123456789
          },
          "amount": {
            "type": "string",
            "description": "Order amount.",
            "example": "100.50"
          },
          "createdDate": {
            "type": "string",
            "format": "date-time",
            "description": "Order creation date and time.",
            "example": "2026-04-26T21:00:00"
          },
          "status": {
            "type": "string",
            "description": "Order status.",
            "example": "CREATED"
          },
          "accountName": {
            "type": "string",
            "description": "Merchant account name.",
            "example": "Acme Store"
          },
          "customerEmail": {
            "type": "string",
            "description": "Customer email address.",
            "example": "john@example.com"
          },
          "currency": {
            "type": "string",
            "description": "Order currency code.",
            "example": "USD"
          },
          "bankName": {
            "type": "string",
            "description": "Bank/acquirer name.",
            "example": "TSYS"
          },
          "hppOrderStatus": {
            "type": "string",
            "description": "HPP order status derived from payment status.",
            "example": "CREATED"
          },
          "clientOrderId": {
            "type": "string",
            "description": "Client-provided order identifier.",
            "example": "CLIENT-ORD-20001"
          },
          "traceId": {
            "type": "string",
            "description": "Trace identifier used for correlation.",
            "example": "4f0d3f6e-c84a-4ab3-9a60-58fd3e4b1ce5"
          },
          "paymentType": {
            "type": "string",
            "description": "Payment type.",
            "enum": [
              "CARD",
              "WALLET",
              "TOKEN",
              "APM",
              "MERCHANT_NETWORK_TOKEN"
            ],
            "example": "CARD"
          },
          "walletType": {
            "type": "string",
            "description": "Wallet type when paymentType is WALLET.",
            "enum": [
              "APPLE_PAY",
              "GOOGLE_PAY",
              "SAMSUNG_PAY"
            ],
            "example": "APPLE_PAY"
          },
          "walletData": {
            "type": "string",
            "description": "Wallet data payload/details."
          },
          "transactionId": {
            "type": "integer",
            "format": "int64",
            "description": "Transaction identifier.",
            "example": 1234
          }
        }
      },
      "OrderOutputDTO": {
        "type": "object",
        "description": "Response model for order details, extending transaction output with order-specific fields.",
        "properties": {
          "createdDate": {
            "type": "string",
            "format": "date-time",
            "description": "Transaction creation timestamp."
          },
          "status": {
            "type": "string",
            "description": "Current order status.",
            "example": "APPROVED"
          },
          "settlementStatus": {
            "type": "string",
            "description": "Settlement status for transaction.",
            "example": "SETTLED"
          },
          "issuer": {
            "type": "string",
            "description": "Card issuer/bank name.",
            "example": "JPMORGAN CHASE"
          },
          "cardType": {
            "type": "string",
            "description": "Card type/category.",
            "example": "CREDIT"
          },
          "issuerCountry": {
            "type": "string",
            "description": "Card issuer country code.",
            "example": "US"
          },
          "cardholderName": {
            "type": "string",
            "description": "Cardholder full name.",
            "example": "JOHN DOE"
          },
          "netvalveID": {
            "type": "string",
            "description": "Internal gateway identifier."
          },
          "clientOrderId": {
            "type": "string",
            "description": "Merchant-side order identifier.",
            "example": "ORD-10001"
          },
          "customerEmail": {
            "type": "string",
            "description": "Customer email address.",
            "example": "john@example.com"
          },
          "cardNumber": {
            "type": "string",
            "description": "Masked card number.",
            "example": "411111******1111"
          },
          "brand": {
            "type": "string",
            "description": "Card brand/network.",
            "example": "VISA"
          },
          "userID": {
            "type": "integer",
            "format": "int64",
            "description": "Internal user identifier.",
            "example": 1001
          },
          "paymentMethod": {
            "type": "string",
            "description": "Payment method used for transaction.",
            "example": "CARD"
          },
          "paymentType": {
            "type": "string",
            "description": "Payment type classification.",
            "example": "OPERATION"
          },
          "ipAddress": {
            "type": "string",
            "description": "Client IP address captured for transaction.",
            "example": "203.0.113.10"
          },
          "responseCode": {
            "type": "string",
            "description": "Gateway response code.",
            "example": "GTW_1000"
          },
          "accountName": {
            "type": "string",
            "description": "Processing account name.",
            "example": "primary-us-account"
          },
          "descriptor": {
            "type": "string",
            "description": "Statement descriptor used for charge.",
            "example": "HITPIXEL*STORE"
          },
          "authCode": {
            "type": "string",
            "description": "Authorization code from processor/acquirer.",
            "example": "123456"
          },
          "bankTransactionId": {
            "type": "string",
            "description": "Acquirer/bank transaction identifier.",
            "example": "BNK123456789"
          },
          "schemeTransactionLinkIdentifier": {
            "type": "string",
            "description": "Scheme transaction link identifier returned by the card network/acquirer.",
            "example": "MCTLI1234567890123456"
          },
          "responseMessage": {
            "type": "string",
            "description": "Gateway response message.",
            "example": "Transaction Approved/ Request Successful."
          },
          "transactions": {
            "type": "array",
            "description": "Referenced transactions linked to this transaction.",
            "items": {
              "$ref": "#/components/schemas/TransactionShortOutputDTO"
            }
          },
          "currency": {
            "type": "string",
            "description": "Transaction currency (ISO 4217).",
            "example": "USD"
          },
          "avsData": {
            "$ref": "#/components/schemas/AVSData",
            "description": "Address Verification Service result payload."
          },
          "cvvVerificationData": {
            "$ref": "#/components/schemas/CVVVerificationData",
            "description": "CVV verification result payload."
          },
          "name": {
            "type": "string",
            "description": "Customer full name.",
            "example": "John Doe"
          },
          "firstName": {
            "type": "string",
            "description": "Customer first name.",
            "example": "John"
          },
          "lastName": {
            "type": "string",
            "description": "Customer last name.",
            "example": "Doe"
          },
          "ip": {
            "type": "string",
            "description": "Customer IP address.",
            "example": "203.0.113.10"
          },
          "email": {
            "type": "string",
            "description": "Customer email.",
            "example": "john@example.com"
          },
          "address": {
            "type": "string",
            "description": "Customer address line.",
            "example": "123 Main Street"
          },
          "phone": {
            "type": "string",
            "description": "Customer phone number.",
            "example": "+15551234567"
          },
          "city": {
            "type": "string",
            "description": "Customer city.",
            "example": "New York"
          },
          "state": {
            "type": "string",
            "description": "Customer state/region.",
            "example": "NY"
          },
          "countryCode": {
            "type": "string",
            "description": "Customer country code.",
            "example": "US"
          },
          "zipCode": {
            "type": "string",
            "description": "Customer ZIP/postal code.",
            "example": "10001"
          },
          "successUrl": {
            "type": "string",
            "description": "Merchant success redirect URL.",
            "example": "https://merchant.example/success"
          },
          "cancelUrl": {
            "type": "string",
            "description": "Merchant cancel redirect URL.",
            "example": "https://merchant.example/cancel"
          },
          "failedUrl": {
            "type": "string",
            "description": "Merchant failure redirect URL.",
            "example": "https://merchant.example/failed"
          },
          "pendingUrl": {
            "type": "string",
            "description": "Merchant pending redirect URL.",
            "example": "https://merchant.example/pending"
          },
          "threeDomainsSecureData": {
            "$ref": "#/components/schemas/ThreeDomainsSecureDTO",
            "description": "3DS data captured/returned for the transaction."
          },
          "sourceOfTransaction": {
            "type": "string",
            "description": "Transaction source/channel.",
            "example": "API"
          },
          "billingDetails": {
            "$ref": "#/components/schemas/BillingAddressDTO",
            "description": "Billing address details."
          },
          "shippingDetails": {
            "$ref": "#/components/schemas/ShippingAddressDTO",
            "description": "Shipping address details."
          },
          "transactionReferencedList": {
            "type": "array",
            "description": "List of referenced transactions.",
            "items": {
              "$ref": "#/components/schemas/TransactionShortOutputDTO"
            }
          },
          "transactionType": {
            "type": "string",
            "description": "Transaction type enum.",
            "enum": [
              "AUTHORIZATION",
              "CAPTURE",
              "SALE",
              "REFUND",
              "CANCEL",
              "REBILL",
              "INQUIRY"
            ],
            "example": "SALE"
          },
          "responseCodeType": {
            "type": "string",
            "description": "Response code category/type.",
            "example": "SUCCESS"
          },
          "bankResponseCode": {
            "type": "string",
            "description": "Bank/acquirer response code.",
            "example": "00"
          },
          "bankResponseMessage": {
            "type": "string",
            "description": "Bank/acquirer response message.",
            "example": "Approved"
          },
          "allowedActions": {
            "type": "array",
            "description": "Actions currently allowed on this transaction.",
            "example": [
              "REFUND",
              "CAPTURE"
            ],
            "items": {
              "type": "string"
            }
          },
          "transactionReference": {
            "type": "integer",
            "format": "int64",
            "description": "Primary referenced transaction ID.",
            "example": 1000001
          },
          "orderId": {
            "type": "integer",
            "format": "int64",
            "description": "Internal order identifier.",
            "example": 200001
          },
          "paymentTypeEnum": {
            "type": "string",
            "description": "Payment type enum.",
            "enum": [
              "CARD",
              "WALLET",
              "TOKEN",
              "APM",
              "MERCHANT_NETWORK_TOKEN"
            ],
            "example": "OPERATION"
          },
          "walletDataDTO": {
            "$ref": "#/components/schemas/WalletDataDTO",
            "description": "Wallet-specific transaction data."
          },
          "bankName": {
            "type": "string",
            "description": "Processor/acquirer bank name.",
            "example": "CHASE"
          },
          "refundBalancedAmount": {
            "type": "number",
            "description": "Remaining refundable amount.",
            "example": 35.5
          },
          "isFraudTransaction": {
            "type": "boolean",
            "description": "Indicates whether transaction is marked as fraud.",
            "example": false
          },
          "clientFraudRulesTransaction": {
            "$ref": "#/components/schemas/ClientFraudRulesTransactionDTO",
            "description": "Fraud rules evaluation data."
          },
          "chargebackData": {
            "type": "array",
            "description": "Chargeback records associated with the transaction.",
            "items": {
              "$ref": "#/components/schemas/ResultChargebackDataDTO"
            }
          },
          "cardExpiryMonth": {
            "type": "string",
            "description": "Card expiry month (MM).",
            "example": "12"
          },
          "cardExpiryYear": {
            "type": "string",
            "description": "Card expiry year (YYYY).",
            "example": "2030"
          },
          "tokenDTO": {
            "$ref": "#/components/schemas/TokenDTO",
            "description": "Tokenization response data for saved card/token."
          },
          "level2Data": {
            "$ref": "#/components/schemas/TransactionInputLevel2DTO",
            "description": "Level 2 transaction data."
          },
          "level3Data": {
            "$ref": "#/components/schemas/TransactionInputLevel3DTO",
            "description": "Level 3 transaction data."
          },
          "additionalParameters": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Additional order parameters returned as key-value pairs."
          },
          "backofficeUserName": {
            "type": "string"
          },
          "apiSecurityType": {
            "$ref": "#/components/schemas/ApiSecurityTypeDTO",
            "description": "API security type configuration used for the request."
          },
          "apmType": {
            "type": "string",
            "description": "Alternative payment method subtype.",
            "enum": [
              "PIX",
              "PAYPAL",
              "BITPACE",
              "PSE",
              "VENMO",
              "SPEI",
              "VOLT",
              "SEZZLE",
              "IDEAL",
              "WERO",
              "SWISH",
              "EPS",
              "TWINT",
              "BANCONTACT",
              "BLIK",
              "GCASH"
            ],
            "example": "PSE"
          },
          "cryptoProvider": {
            "type": "string",
            "description": "Crypto payment provider name.",
            "example": "BITPACE"
          },
          "callbackData": {
            "description": "Raw callback payload/object captured from provider."
          },
          "networkTokenPrefix": {
            "type": "string",
            "description": "Network token prefix digits.",
            "example": "520000"
          },
          "networkTokenSuffix": {
            "type": "string",
            "description": "Network token suffix digits.",
            "example": "1234"
          },
          "networkTokenExpiryMonth": {
            "type": "string",
            "description": "Network token expiry month (MM).",
            "example": "08"
          },
          "networkTokenExpiryYear": {
            "type": "string",
            "description": "Network token expiry year (YYYY).",
            "example": "2031"
          },
          "networkTokenPrefixAndSuffix": {
            "type": "string",
            "description": "Combined network token masked representation.",
            "example": "520000******1234"
          },
          "tsysBatchSettlementDTO": {
            "$ref": "#/components/schemas/TsysBatchSettlementDTO",
            "description": "TSYS batch settlement details."
          },
          "apmPaymentInfo": {
            "$ref": "#/components/schemas/APMPaymentInfoDTO"
          },
          "healthCareData": {
            "$ref": "#/components/schemas/HealthCareDataDTO"
          },
          "amountAndCurrency": {
            "type": "string",
            "description": "Formatted order amount with currency.",
            "example": "100.00 USD"
          },
          "orderAmount": {
            "type": "number",
            "description": "Order amount value.",
            "example": 100
          },
          "lastUpdatedDate": {
            "type": "string",
            "format": "date-time",
            "description": "Order last updated timestamp."
          },
          "hppOrderStatus": {
            "type": "string",
            "description": "Order status, when applicable.",
            "example": "PENDING"
          },
          "orderDesc": {
            "type": "string",
            "description": "Order description provided by merchant.",
            "example": "Order #12345"
          },
          "smartRoutingTransaction": {
            "type": "boolean"
          },
          "partialCaptureAllowed": {
            "type": "boolean"
          },
          "smartRouting": {
            "$ref": "#/components/schemas/SmartRoutingDTO"
          },
          "threeDsTransaction": {
            "type": "boolean"
          },
          "partialRefundAllowed": {
            "type": "boolean"
          },
          "isPartialRefund": {
            "type": "boolean",
            "description": "Indicates whether this refund is partial.",
            "example": false
          },
          "isPartialRefundAllowed": {
            "type": "boolean",
            "description": "Indicates whether partial refund is allowed.",
            "example": true
          },
          "isPartialCaptureAllowed": {
            "type": "boolean",
            "description": "Indicates whether partial capture is allowed.",
            "example": true
          }
        }
      },
      "InquiryTransactionResponseDTO": {
        "type": "object",
        "description": "Response payload for inquiry transaction status endpoint.",
        "properties": {
          "traceID": {
            "type": "string",
            "description": "Correlation identifier for tracing request flow.",
            "example": "d3cb9f3c-16c3-4d9e-a22f-f8935c1d8f8f"
          },
          "responseTimestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Response timestamp generated by the service.",
            "example": "2026-04-27T11:05:30Z"
          },
          "bankResponseCode": {
            "type": "string",
            "description": "Bank/acquirer response code.",
            "example": "00"
          },
          "bankResponseMessage": {
            "type": "string",
            "description": "Bank/acquirer response message.",
            "example": "Approved"
          },
          "responseCode": {
            "type": "string",
            "description": "Gateway response code.",
            "example": "GTW_1000"
          },
          "responseMessage": {
            "type": "string",
            "description": "Gateway response message.",
            "example": "Transaction Approved/ Request Successful."
          },
          "webhookFailureMessage": {
            "type": "string",
            "description": "Returned when webhookData.webhookUrl was invalid. The transaction is still processed, but no per-order webhook is sent. Omitted when the URL is valid or webhookData was not supplied.",
            "example": "Merchant provided webhook URL not valid"
          },
          "originalTransactionId": {
            "type": "integer",
            "format": "int64",
            "description": "Internal parent transaction identifier.",
            "example": 987654321
          },
          "originalTransactionType": {
            "type": "string",
            "description": "Internal parent transaction type.",
            "enum": [
              "AUTHORIZATION",
              "CAPTURE",
              "SALE",
              "REFUND",
              "CANCEL",
              "REBILL",
              "INQUIRY"
            ],
            "example": "SALE"
          },
          "transactionID": {
            "type": "integer",
            "format": "int64",
            "description": "Gateway transaction identifier.",
            "example": 100001
          },
          "responseCodeType": {
            "type": "string",
            "description": "Response code category/type.",
            "example": "SUCCESS"
          },
          "paymentMethod": {
            "type": "string",
            "description": "Payment method used for transaction.",
            "example": "CARD"
          },
          "cardType": {
            "type": "string",
            "description": "Card brand/type when card data is available.",
            "example": "VISA"
          },
          "bankTransactionId": {
            "type": "string",
            "description": "Transaction identifier returned by bank/acquirer.",
            "example": "BNK123456789"
          },
          "authCode": {
            "type": "string",
            "description": "Authorization code returned by bank/acquirer.",
            "example": "123456"
          },
          "schemeTransactionLinkIdentifier": {
            "type": "string",
            "description": "Mastercard Transaction Link Identifier (TLID). Send it in additionalData when your integration already has the Mastercard TLID; returned when available from the request or processor response.",
            "example": "mastercard-tlid"
          },
          "midId": {
            "type": "integer",
            "format": "int64",
            "description": "Merchant identifier used for processing.",
            "example": 1001
          },
          "netvalveMidId": {
            "type": "string",
            "description": "External/Netvalve merchant identifier.",
            "example": "f7e0f1b8-2c6d-4a91-9a5b-3de2c4f8b7a1"
          },
          "midIdentifier": {
            "type": "string",
            "description": "Processor-side merchant identifier configured on the MID, for linking to merchant-side reports.",
            "example": "0000000029612"
          },
          "processor": {
            "type": "string",
            "description": "Payment processor name.",
            "example": "TSYS"
          },
          "cardNumber": {
            "type": "string",
            "description": "Masked card number.",
            "example": "411111******1111"
          },
          "transactionType": {
            "type": "string",
            "description": "Transaction operation type.",
            "enum": [
              "AUTHORIZATION",
              "CAPTURE",
              "SALE",
              "REFUND",
              "CANCEL",
              "REBILL",
              "INQUIRY"
            ],
            "example": "SALE"
          },
          "currency": {
            "type": "string",
            "description": "Processed transaction currency (ISO 4217).",
            "example": "USD"
          },
          "cardExpiryMonth": {
            "type": "string",
            "description": "Card expiry month in MM format.",
            "example": "12"
          },
          "cardExpiryYear": {
            "type": "string",
            "description": "Card expiry year in YYYY format.",
            "example": "2030"
          },
          "paymentAttempted": {
            "type": "boolean",
            "description": "Indicates whether payment was attempted for the transaction.",
            "example": true
          },
          "paymentChannelType": {
            "type": "string",
            "description": "Payment channel used by the transaction.",
            "example": "HPP"
          },
          "apmType": {
            "type": "string",
            "description": "Alternative payment method subtype.",
            "example": "PSE"
          },
          "apmPaymentUrl": {
            "type": "string",
            "description": "APM payment URL returned for redirect-based methods.",
            "example": "https://provider.example/pay/abc123"
          },
          "apmPaymentUrlExpiry": {
            "type": "string",
            "format": "date-time",
            "description": "APM payment URL expiry date-time."
          },
          "apmPaymentInfo": {
            "$ref": "#/components/schemas/APMPaymentInfoDTO",
            "description": "Additional APM payment information payload."
          },
          "paymentToken": {
            "type": "string",
            "description": "Payment token/customer vault id associated with the transaction.",
            "example": "cust_vault_12345"
          },
          "paymentTokenType": {
            "type": "string",
            "description": "Payment token type.",
            "example": "GATEWAY_TOKEN"
          },
          "siteId": {
            "type": "string",
            "description": "Site identifier associated with the transaction.",
            "example": "site_001"
          },
          "clientId": {
            "type": "integer",
            "format": "int64",
            "description": "Client identifier associated with the transaction.",
            "example": 2001
          },
          "binInfo": {
            "$ref": "#/components/schemas/BinInfo",
            "description": "BIN information derived for the card used in transaction."
          },
          "amount": {
            "type": "number",
            "description": "Transaction amount.",
            "example": 100
          }
        }
      },
      "HostedPaymentFieldsResponseDTO": {
        "type": "object",
        "description": "Response payload for hosted payment fields initialization.",
        "properties": {
          "traceID": {
            "type": "string",
            "description": "Request trace identifier used for correlation.",
            "example": "4f0d3f6e-c84a-4ab3-9a60-58fd3e4b1ce5"
          },
          "responseTimestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp at which the response was generated.",
            "example": "2026-04-26T09:30:00Z"
          },
          "responseCode": {
            "type": "string",
            "description": "Gateway response code.",
            "example": "GTW_1000"
          },
          "responseMessage": {
            "type": "string",
            "description": "Gateway response message.",
            "example": "Transaction successfully completed"
          },
          "netvalveScriptSrc": {
            "type": "string",
            "description": "Hosted payment fields JavaScript source URL.",
            "example": "https://cdn.netvalve.com/hpf/netvalve.min.js"
          },
          "version": {
            "type": "string",
            "description": "Hosted payment fields script version.",
            "example": "1.0.0"
          },
          "integrity": {
            "type": "string",
            "description": "Subresource Integrity (SRI) hash for the hosted payment script.",
            "example": "sha384-abc123xyz"
          },
          "paymentToken": {
            "type": "string",
            "description": "Hosted payment tokenization key.",
            "example": "tok_3f16ef23bc034aaab632fbebda462fe5"
          },
          "jwtToken": {
            "type": "string",
            "description": "JWT token used by hosted payment fields.",
            "example": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
          },
          "midDescriptor": {
            "type": "string",
            "description": "MID descriptor for the merchant account used by the hosted payment fields session.",
            "example": "MYSHOP"
          }
        }
      },
      "TransactionSearchFilterDTO": {
        "type": "object",
        "description": "Query filters for transaction export. All fields are optional unless noted. Dates must be sent as query parameters in yyyy-MM-dd HH:mm:ss format.",
        "properties": {
          "fromDateTime": {
            "type": "string",
            "description": "Start of transaction datetime range. If omitted with toDateTime, the service applies its configured default lookback window.",
            "example": "2026-06-01 00:00:00",
            "pattern": "yyyy-MM-dd HH:mm:ss"
          },
          "toDateTime": {
            "type": "string",
            "description": "End of transaction datetime range. Must be used with fromDateTime for an explicit date search. The configured maximum export date range is enforced by the service.",
            "example": "2026-06-26 23:59:59",
            "pattern": "yyyy-MM-dd HH:mm:ss"
          },
          "emailAddress": {
            "type": "string",
            "description": "Customer email address filter. Can be used without date filters.",
            "example": "customer@example.com"
          },
          "transactionId": {
            "type": "integer",
            "format": "int64",
            "description": "Exact internal transaction identifier. When supplied, transaction ID search takes precedence over date range search.",
            "example": 987654321
          },
          "transactionStatus": {
            "type": "string",
            "description": "Transaction status filter.",
            "enum": [
              "AUTHORIZED",
              "CAPTURED",
              "SOLD",
              "CANCELED",
              "REFUNDED",
              "REBILLED",
              "PENDING",
              "DECLINED",
              "RECURRED"
            ],
            "example": "SOLD"
          },
          "transactionType": {
            "type": "string",
            "description": "Transaction operation type. Value is case-insensitive.",
            "enum": [
              "AUTHORIZATION",
              "CAPTURE",
              "SALE",
              "REFUND",
              "CANCEL",
              "REBILL",
              "INQUIRY"
            ],
            "example": "SALE"
          },
          "midId": {
            "type": "integer",
            "format": "int64",
            "description": "Merchant identifier.",
            "example": 1001
          },
          "orderId": {
            "type": "integer",
            "format": "int64",
            "description": "Internal order identifier.",
            "example": 12345
          },
          "clientOrderId": {
            "type": "string",
            "description": "Client-provided order identifier.",
            "example": "ORD-12345-ABC"
          },
          "descriptor": {
            "type": "string",
            "description": "MID descriptor.",
            "example": "MYSHOP"
          },
          "countryCode": {
            "type": "string",
            "description": "Customer country code.",
            "example": "US"
          },
          "currency": {
            "type": "string",
            "description": "Transaction currency in ISO 4217 format.",
            "example": "USD",
            "maxLength": 3,
            "minLength": 3
          },
          "cardType": {
            "type": "string",
            "description": "Card brand/type.",
            "example": "VISA"
          },
          "bin": {
            "type": "string",
            "description": "Card BIN, usually first 6 digits.",
            "example": "411111"
          },
          "transactionReferenceId": {
            "type": "integer",
            "format": "int64",
            "description": "Transaction reference identifier for linked transactions.",
            "example": 987654320
          },
          "ccFirstSix": {
            "type": "string",
            "description": "First six digits of the card number.",
            "example": "411111"
          },
          "ccLastFour": {
            "type": "string",
            "description": "Last four digits of the card number.",
            "example": "1111"
          },
          "firstName": {
            "type": "string",
            "description": "Customer first name.",
            "example": "John"
          },
          "lastName": {
            "type": "string",
            "description": "Customer last name.",
            "example": "Doe"
          },
          "minAmount": {
            "type": "number",
            "description": "Minimum transaction amount, inclusive.",
            "example": 10
          },
          "maxAmount": {
            "type": "number",
            "description": "Maximum transaction amount, inclusive.",
            "example": 100
          },
          "bankId": {
            "type": "integer",
            "format": "int64",
            "description": "Bank or processor identifier.",
            "example": 12
          },
          "correlationId": {
            "type": "string",
            "description": "Request correlation identifier.",
            "example": "trace-7f3d9e12"
          },
          "paymentStatus": {
            "type": "string",
            "description": "Payment status filter.",
            "enum": [
              "SUCCESS",
              "FAILED"
            ],
            "example": "SUCCESS",
            "pattern": "SUCCESS|FAILED"
          },
          "includeAllStatuses": {
            "type": "boolean",
            "default": false,
            "description": "Include all statuses. Defaults to false when omitted.",
            "example": false
          },
          "tokenType": {
            "type": "string",
            "description": "Tokenization type. Value is case-insensitive.",
            "enum": [
              "GATEWAY_TOKEN",
              "NETWORK_TOKEN",
              "BANK_TOKEN",
              "HPF"
            ],
            "example": "GATEWAY_TOKEN"
          },
          "paymentType": {
            "type": "string",
            "description": "Payment type. Value is case-insensitive.",
            "enum": [
              "CARD",
              "WALLET",
              "TOKEN",
              "APM"
            ],
            "example": "CARD"
          },
          "apmType": {
            "type": "string",
            "description": "Alternative payment method type. Value is case-insensitive.",
            "enum": [
              "PIX",
              "PAYPAL",
              "BITPACE",
              "PSE",
              "VENMO",
              "SPEI",
              "VOLT",
              "SEZZLE"
            ],
            "example": "PAYPAL"
          },
          "walletType": {
            "type": "string",
            "description": "Wallet type. Value is case-insensitive.",
            "enum": [
              "APPLE_PAY",
              "GOOGLE_PAY",
              "SAMSUNG_PAY"
            ],
            "example": "APPLE_PAY"
          },
          "serviceName": {
            "type": "string",
            "description": "Service name filter.",
            "example": "Payment API"
          },
          "withThreeDs": {
            "type": "boolean",
            "default": false,
            "description": "Filter transactions by 3DS usage. Defaults to false when omitted.",
            "example": false
          },
          "threeDsProviderId": {
            "type": "integer",
            "format": "int64",
            "description": "3DS provider identifier.",
            "example": 3
          },
          "siteName": {
            "type": "string",
            "description": "Site name filter.",
            "example": "main-site"
          },
          "bankAuthCode": {
            "type": "string",
            "description": "Bank authorization code.",
            "example": "A1B2C3"
          },
          "bankTransactionId": {
            "type": "string",
            "description": "Bank-side transaction identifier.",
            "example": "BNK-TXN-443322"
          },
          "isFraudOnly": {
            "type": "boolean",
            "default": false,
            "description": "Return fraud-only transactions. Defaults to false when omitted.",
            "example": false
          },
          "isChargebackOnly": {
            "type": "boolean",
            "default": false,
            "description": "Return chargeback-only transactions. Defaults to false when omitted.",
            "example": false
          },
          "cbTransactionType": {
            "type": "string",
            "description": "Chargeback alert transaction type. Use the display value shown in allowable values.",
            "enum": [
              "Ethoca",
              "RDR",
              "Verify",
              "TC40",
              "InformAlert",
              "Fraud",
              "Chargeback",
              "OiDeflectionStatus",
              "RdrNotice"
            ],
            "example": "Ethoca"
          },
          "subscriptionId": {
            "type": "integer",
            "format": "int64",
            "description": "Subscription identifier.",
            "example": 12345
          },
          "levelOption": {
            "type": "string",
            "description": "Level data shortcut. BOTH maps to LEVEL2 and LEVEL3.",
            "enum": [
              "LEVEL2",
              "LEVEL3",
              "BOTH"
            ],
            "example": "BOTH"
          },
          "levelFilter": {
            "type": "array",
            "description": "Explicit transaction level filter. Can be sent as repeated query params, for example levelFilter=LEVEL2&levelFilter=LEVEL3.",
            "enum": [
              "LEVEL1",
              "LEVEL2",
              "LEVEL3"
            ],
            "example": [
              "LEVEL2",
              "LEVEL3"
            ],
            "items": {
              "type": "string"
            }
          },
          "networkTokenPrefix": {
            "type": "string",
            "description": "Network token prefix.",
            "example": "411111"
          },
          "networkTokenSuffix": {
            "type": "string",
            "description": "Network token suffix.",
            "example": "1111"
          },
          "settlementFromDate": {
            "type": "string",
            "description": "Start of settlement datetime range.",
            "example": "2026-06-01 00:00:00",
            "pattern": "yyyy-MM-dd HH:mm:ss"
          },
          "settlementToDate": {
            "type": "string",
            "description": "End of settlement datetime range.",
            "example": "2026-06-26 23:59:59",
            "pattern": "yyyy-MM-dd HH:mm:ss"
          },
          "settlementBatchId": {
            "type": "string",
            "description": "Settlement batch identifier.",
            "example": "BATCH-20260626-001"
          },
          "tsysTransId": {
            "type": "string",
            "description": "TSYS transaction identifier.",
            "example": "TSYS-123456"
          },
          "clientId": {
            "type": "integer",
            "format": "int64",
            "description": "Client identifier. For merchant API calls this is normally resolved from authentication.",
            "example": 2001
          },
          "resellerId": {
            "type": "integer",
            "format": "int64",
            "description": "Reseller identifier.",
            "example": 3001
          },
          "maxLimit": {
            "type": "integer",
            "format": "int32",
            "description": "Maximum page size override. If omitted, the service configured maximum is used; requested pageSize is capped to this value.",
            "example": 5000
          },
          "siteId": {
            "type": "string",
            "description": "Site identifier.",
            "example": "6001"
          },
          "levelFilterEnum": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "LEVEL1",
                "LEVEL2",
                "LEVEL3"
              ]
            }
          }
        }
      },
      "PageResultTransactionDTO": {
        "type": "object",
        "properties": {
          "totalPages": {
            "type": "integer",
            "format": "int32"
          },
          "totalElements": {
            "type": "integer",
            "format": "int64"
          },
          "size": {
            "type": "integer",
            "format": "int32"
          },
          "content": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResultTransactionDTO"
            }
          },
          "number": {
            "type": "integer",
            "format": "int32"
          },
          "pageable": {
            "$ref": "#/components/schemas/PageableObject"
          },
          "sort": {
            "$ref": "#/components/schemas/SortObject"
          },
          "numberOfElements": {
            "type": "integer",
            "format": "int32"
          },
          "first": {
            "type": "boolean"
          },
          "last": {
            "type": "boolean"
          },
          "empty": {
            "type": "boolean"
          }
        }
      },
      "ResultTransactionDTO": {
        "type": "object",
        "description": "Detailed transaction result data used in search/list responses.",
        "properties": {
          "apmType": {
            "type": "string",
            "description": "Alternative payment method subtype.",
            "enum": [
              "PIX",
              "PAYPAL",
              "BITPACE",
              "PSE",
              "VENMO",
              "SPEI",
              "VOLT",
              "SEZZLE",
              "IDEAL",
              "WERO",
              "SWISH",
              "EPS",
              "TWINT",
              "BANCONTACT",
              "BLIK",
              "GCASH"
            ]
          },
          "sourceOfTransaction": {
            "type": "string",
            "description": "Source/channel of transaction.",
            "enum": [
              "HPP",
              "API",
              "API_3DS",
              "HPP_3DS",
              "RETRY_WITH_HPP",
              "SMART_ROUTING",
              "RETRY_WITH_SMART_ROUTING",
              "SERVER_TO_SERVER",
              "RETRY_WITH_SERVER_TO_SERVER",
              "APPLE_PAY",
              "GOOGLE_PAY",
              "SAMSUNG_PAY",
              "HPP_3DS_CARDS",
              "HPP_3DS_APPLE_PAY",
              "HPP_3DS_GOOGLE_PAY",
              "HPP_3DS_SAMSUNG_PAY",
              "HPP_APPLE_PAY_CONFIG_NETVALVE_INTEGRATOR",
              "HPP_APPLE_PAY_CONFIG_NETVALVE_LEVEL",
              "HPP_APPLE_PAY_CONFIG_CLIENT_LEVEL",
              "HPP_APPLE_PAY_CONFIG_MID_LEVEL",
              "HPP_GOOGLE_PAY_CONFIG_NETVALVE_LEVEL",
              "HPP_GOOGLE_PAY_CONFIG_CLIENT_LEVEL",
              "HPP_GOOGLE_PAY_CONFIG_MID_LEVEL",
              "GATEWAY_TOKEN_SAVING",
              "GATEWAY_TOKEN_PROCESSING",
              "NETWORK_TOKEN_SAVING",
              "NETWORK_TOKEN_PROCESSING",
              "HOSTED_PAYMENT_FIELDS",
              "ACCOUNT_UPDATER",
              "DISABLE_BLACKLIST",
              "ENABLE_DYNAMIC_DESCRIPTOR",
              "ENABLE_BIN_INFO_RESPONSE",
              "ENABLE_DATA_ENRICHMENT",
              "ENABLE_PIX_SUBSCRIPTION",
              "ENABLE_MANAGED_RECURRING",
              "ENABLE_MANAGED_RECURRING_RETRIES",
              "PAYLINKS",
              "MOTO_DIRECT_MARKETING_TRANSACTIONS",
              "ENABLE_FSA_HSA_HEALTHCARE_DATA"
            ]
          },
          "id": {
            "type": "integer",
            "format": "int64",
            "description": "Transaction identifier.",
            "example": 123456789
          },
          "amount": {
            "type": "number",
            "description": "Transaction amount.",
            "example": 100.5
          },
          "currency": {
            "type": "string",
            "description": "Transaction currency code.",
            "example": "USD"
          },
          "orderId": {
            "type": "string",
            "description": "Internal order identifier.",
            "example": "ORD-10001"
          },
          "clientOrderId": {
            "type": "string",
            "description": "Client-provided order identifier.",
            "example": "CLIENT-ORD-20001"
          },
          "transactionType": {
            "type": "string",
            "description": "Transaction type.",
            "enum": [
              "AUTHORIZATION",
              "CAPTURE",
              "SALE",
              "REFUND",
              "CANCEL",
              "REBILL",
              "INQUIRY"
            ]
          },
          "transactionReference": {
            "type": "integer",
            "format": "int64",
            "description": "Referenced transaction identifier.",
            "example": 1000001
          },
          "datetime": {
            "type": "string",
            "format": "date-time",
            "description": "Transaction date and time.",
            "example": "2026-04-26T20:15:00"
          },
          "accountName": {
            "type": "string",
            "description": "Merchant account name.",
            "example": "Acme Store"
          },
          "midIdentifier": {
            "type": "string",
            "description": "Processor-side merchant identifier configured on the MID, for linking to merchant-side reports.",
            "example": "0000000029612"
          },
          "status": {
            "type": "string",
            "description": "Transaction status.",
            "example": "APPROVED"
          },
          "customerEmail": {
            "type": "string",
            "description": "Customer email address.",
            "example": "john@example.com"
          },
          "responseCode": {
            "type": "string",
            "description": "Gateway response code.",
            "example": "GTW_1000"
          },
          "responseMessage": {
            "type": "string",
            "description": "Gateway response message.",
            "example": "Transaction Approved/ Request Successful."
          },
          "responseCodeType": {
            "type": "string",
            "description": "Response code type/category.",
            "example": "SUCCESS"
          },
          "bankResponseCode": {
            "type": "string",
            "description": "Bank/acquirer response code.",
            "example": "00"
          },
          "bankResponseMessage": {
            "type": "string",
            "description": "Bank/acquirer response message.",
            "example": "Approved"
          },
          "bankName": {
            "type": "string",
            "description": "Bank/acquirer name.",
            "example": "TSYS"
          },
          "bankTransactionId": {
            "type": "string",
            "description": "Bank/acquirer transaction identifier.",
            "example": "BNK123456789"
          },
          "authCode": {
            "type": "string",
            "description": "Authorization code from acquirer.",
            "example": "123456"
          },
          "schemeTransactionLinkIdentifier": {
            "type": "string",
            "description": "Mastercard Transaction Link Identifier (TLID). Send it in additionalData when your integration already has the Mastercard TLID; returned when available from the request or processor response.",
            "example": "mastercard-tlid"
          },
          "smartRouting": {
            "$ref": "#/components/schemas/SmartRoutingDTO",
            "description": "Smart routing details for this transaction."
          },
          "traceId": {
            "type": "string",
            "description": "Trace identifier used for correlation.",
            "example": "4f0d3f6e-c84a-4ab3-9a60-58fd3e4b1ce5"
          },
          "billingDetails": {
            "$ref": "#/components/schemas/BillingAddressDTO",
            "description": "Billing address details."
          },
          "shippingDetails": {
            "$ref": "#/components/schemas/ShippingAddressDTO",
            "description": "Shipping address details."
          },
          "cardNumber": {
            "type": "string",
            "description": "Masked card number.",
            "example": "411111******1111"
          },
          "cardType": {
            "type": "string",
            "description": "Card type/brand.",
            "example": "VISA"
          },
          "paymentType": {
            "type": "string",
            "description": "Payment type.",
            "enum": [
              "CARD",
              "WALLET",
              "TOKEN",
              "APM",
              "MERCHANT_NETWORK_TOKEN"
            ]
          },
          "walletType": {
            "type": "string",
            "description": "Wallet type.",
            "enum": [
              "APPLE_PAY",
              "GOOGLE_PAY",
              "SAMSUNG_PAY"
            ]
          },
          "walletData": {
            "type": "string",
            "description": "Wallet data payload/details."
          },
          "settlementStatus": {
            "type": "string",
            "description": "Settlement status.",
            "example": "SETTLED"
          },
          "tokenDTO": {
            "$ref": "#/components/schemas/TokenDTO",
            "description": "Token details for tokenized card."
          },
          "chargebackData": {
            "type": "array",
            "description": "Chargeback records associated with this transaction.",
            "items": {
              "$ref": "#/components/schemas/ResultChargebackDataDTO"
            }
          },
          "customerIp": {
            "type": "string",
            "description": "Customer IP address.",
            "example": "203.0.113.10"
          },
          "additionalParameters": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Additional transaction parameters as key-value pairs."
          },
          "networkTokenPrefixAndSuffix": {
            "type": "string",
            "description": "Network token prefix and suffix representation.",
            "example": "520000******1234"
          },
          "networkTokenExpiryMonth": {
            "type": "string",
            "description": "Network token expiry month (MM).",
            "example": "08"
          },
          "networkTokenExpiryYear": {
            "type": "string",
            "description": "Network token expiry year (YYYY).",
            "example": "2031"
          },
          "tsysBatchSettlementDTO": {
            "$ref": "#/components/schemas/TsysBatchSettlementDTO",
            "description": "TSYS batch settlement details."
          },
          "threeDsTransaction": {
            "type": "boolean"
          },
          "threeDsProvider": {
            "type": "string"
          },
          "threeDsStatus": {
            "type": "string"
          },
          "threeDsFailureReason": {
            "type": "string"
          },
          "healthCareData": {
            "$ref": "#/components/schemas/HealthCareDataDTO"
          },
          "chargeBackReceived": {
            "type": "boolean"
          }
        }
      },
      "TransactionRecurringScheduleCreateDTO": {
        "type": "object",
        "required": [
          "transactionId"
        ],
        "properties": {
          "transactionId": {
            "type": "integer",
            "format": "int64"
          },
          "reason": {
            "type": "string"
          },
          "recurringSchedule": {
            "$ref": "#/components/schemas/RecurringScheduleDTO"
          }
        }
      },
      "TransactionRecurringScheduleUpdateDTO": {
        "type": "object",
        "required": [
          "subscriptionId"
        ],
        "properties": {
          "subscriptionId": {
            "type": "integer",
            "format": "int64"
          },
          "reason": {
            "type": "string"
          },
          "recurringSchedule": {
            "$ref": "#/components/schemas/RecurringScheduleDTO"
          }
        }
      },
      "TransactionRecurringScheduleCancelDTO": {
        "type": "object",
        "required": [
          "subscriptionId"
        ],
        "properties": {
          "subscriptionId": {
            "type": "integer",
            "format": "int64"
          },
          "reason": {
            "type": "string"
          }
        }
      }
    },
    "securitySchemes": {
      "netvalve-client-id": {
        "type": "apiKey",
        "name": "netvalve-client-id",
        "in": "header",
        "description": "Your NetValve Client ID"
      },
      "netvalve-api-key": {
        "type": "apiKey",
        "name": "netvalve-api-key",
        "in": "header",
        "description": "Your NetValve API Key"
      }
    }
  },
  "security": [
    {
      "netvalve-client-id": [],
      "netvalve-api-key": []
    }
  ],
  "tags": [
    {
      "name": "Payment Service"
    },
    {
      "name": "Hosted Payment Page"
    },
    {
      "name": "Three DS"
    },
    {
      "name": "Recurring Payment Service"
    },
    {
      "name": "Wallet"
    },
    {
      "name": "Hosted Payment Fields"
    },
    {
      "name": "Reconciliation"
    }
  ]
}