---
title: Validate A Transaction
slug: test2/validate-a-transaction
createdAt: 2025-12-30T11:34:59.526Z
---

{
  "id": "_waVOScWJxnVuKdrxsdHq",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "https://api.mpay.com.au/financial/v2/transaction/validate",
    "servers": [
      {
        "url": "https://api.mpay.com.au/financial/v2/transaction/validate",
        "description": "Production URL"
      },
      {
        "url": "https://api.m-pay.com.au/financial/v2/transaction/validate",
        "description": "Sandbox URL"
      }
    ],
    "name": "Validate A Transaction",
    "description": "<p>You can use this API to determine if the parameters are correct. The body is the same as /financial/v2/transaction/execute endpoint. The callerUniqueReference will be reusable after the validate call is complete.\nNote: You don't need to call this endpoint before an execute as all transactions will be validated before they execute. This is useful if you are using a new rail and want to check your parameters.</p>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [],
      "queryParameters": [],
      "bodyDataParameters": [
        {
          "kind": "required",
          "name": "body",
          "type": "object",
          "description": "",
          "customType": "financialPaymentBody",
          "schema": [
            {
              "name": "description",
              "kind": "optional",
              "type": "string",
              "description": "This description will be displayed on the mAccount statements. If any disbursement object is present, this description will be overwritten. This description will only display on statements for payments directly into the sign in mAccount. (ie no disbursement object)",
              "example": ""
            },
            {
              "name": "paymentSource",
              "kind": "optional",
              "type": "string",
              "description": "This is the type of transaction. The correct type MUST be used as it instructs the Engine to move funds according to established rules. Valid values are mAccount, mWallet, directDebit, token.",
              "example": ""
            },
            {
              "name": "totalAmount",
              "kind": "optional",
              "type": "number<decimal>",
              "description": "This is the total amount of the transaction. It must match the sum of all disbursement amounts specified in the disbursements array if both are present.",
              "example": ""
            },
            {
              "name": "uniqueReference",
              "kind": "optional",
              "type": "string",
              "description": "This is a unique reference generated by the calling service. This is a nonce. Its use is to determine if a request has already been received by the Engine. We strongly recommend sending a uniqueReference in your execution call to avoid duplicate transactions.",
              "example": ""
            },
            {
              "name": "remitterName",
              "kind": "optional",
              "type": "string",
              "description": "Original Remitting Entity.",
              "example": ""
            },
            {
              "name": "mWallet",
              "kind": "optional",
              "type": "object",
              "description": "Disbursement to mWallet.",
              "modelRef": "#/components/schemas/bpayPayerDetails",
              "customType": "bpayPayerDetails",
              "schema": [
                {
                  "name": "pin",
                  "kind": "optional",
                  "type": "string",
                  "description": "",
                  "example": ""
                },
                {
                  "name": "token",
                  "kind": "optional",
                  "type": "string",
                  "description": "",
                  "example": ""
                }
              ]
            },
            {
              "name": "lodgementReference",
              "kind": "optional",
              "type": "string",
              "description": "Reference will appear on payers statement.",
              "example": ""
            },
            {
              "name": "directDebit",
              "kind": "optional",
              "type": "object",
              "description": "",
              "modelRef": "#/components/schemas/paymentSourceDirectDebitDetailsClass",
              "customType": "paymentSourceDirectDebitDetailsClass",
              "schema": [
                {
                  "name": "accountName",
                  "kind": "optional",
                  "type": "string",
                  "description": "This is the name of the account.",
                  "example": ""
                },
                {
                  "name": "accountNumber",
                  "kind": "optional",
                  "type": "string",
                  "description": "Bank account number of associated bank account.",
                  "example": ""
                },
                {
                  "name": "bsbNumber",
                  "kind": "optional",
                  "type": "string",
                  "description": "BSB (Bank-State-Branch) number. The format is a string in the following format: '999-999'.",
                  "example": ""
                }
              ]
            },
            {
              "name": "token",
              "kind": "optional",
              "type": "string",
              "description": "The text (GUID) that identifies the token.",
              "example": ""
            },
            {
              "name": "disbursements",
              "kind": "optional",
              "type": "array",
              "description": "Details where the transaction amount will be disbursed. Multiple disbursements across various methods can be specified in a single transaction.",
              "modelRef": "#/components/schemas/paymentDisbursementItem",
              "customType": "paymentDisbursementItem[]",
              "schema": [
                {
                  "name": "toMWallet",
                  "kind": "optional",
                  "type": "string",
                  "description": "16-Digit account number that uniquely identifies the mWallet.",
                  "example": ""
                },
                {
                  "name": "toMAccount",
                  "kind": "optional",
                  "type": "string",
                  "description": "16-Digit account number that uniquely identifies the mAccount.",
                  "example": ""
                },
                {
                  "name": "description",
                  "kind": "optional",
                  "type": "string",
                  "description": "Description for the transaction.",
                  "example": ""
                },
                {
                  "name": "toToken",
                  "kind": "optional",
                  "type": "string",
                  "description": "The text (GUID) that identifies the token.",
                  "example": ""
                },
                {
                  "name": "sourceAccountNumber",
                  "kind": "optional",
                  "type": "string",
                  "description": "Payer Bank Account Number.",
                  "example": ""
                },
                {
                  "name": "toDirectCreditDetails",
                  "kind": "optional",
                  "type": "object",
                  "description": "",
                  "modelRef": "#/components/schemas/toDirectCreditDetails",
                  "customType": "toDirectCreditDetails",
                  "schema": [
                    {
                      "name": "accountName",
                      "kind": "optional",
                      "type": "string",
                      "description": "This is the name of the account.",
                      "example": ""
                    },
                    {
                      "name": "accountNumber",
                      "kind": "optional",
                      "type": "string",
                      "description": "Bank account number of associated bank account.",
                      "example": ""
                    },
                    {
                      "name": "token",
                      "kind": "optional",
                      "type": "string",
                      "description": "",
                      "example": ""
                    },
                    {
                      "name": "bsbNumber",
                      "kind": "optional",
                      "type": "string",
                      "description": "BSB (Bank-State-Branch) number. The format is a string in the following format: '999-999'.",
                      "example": ""
                    },
                    {
                      "name": "remitterName",
                      "kind": "optional",
                      "type": "string",
                      "description": "Original Remitting Entity.",
                      "example": ""
                    }
                  ]
                },
                {
                  "name": "lodgementReference",
                  "kind": "optional",
                  "type": "string",
                  "description": "Reference will appear on payers statement.",
                  "example": ""
                },
                {
                  "name": "ToNppCreditPayIdDetails",
                  "kind": "optional",
                  "type": "object",
                  "description": "",
                  "modelRef": "#/components/schemas/toNppCreditPayIdDetails",
                  "customType": "toNppCreditPayIdDetails",
                  "schema": [
                    {
                      "name": "accountName",
                      "kind": "optional",
                      "type": "string",
                      "description": "This is the name of the account.",
                      "example": ""
                    },
                    {
                      "name": "ultimateDebtorName",
                      "kind": "optional",
                      "type": "string",
                      "description": "The name of the individual or entity initiating the payment.",
                      "example": ""
                    },
                    {
                      "name": "endToEndId",
                      "kind": "optional",
                      "type": "string",
                      "description": "End to End identifier submitted by Payer.",
                      "example": ""
                    },
                    {
                      "name": "payId",
                      "kind": "optional",
                      "type": "string",
                      "description": "PayId Identifier of the Payee.",
                      "example": ""
                    },
                    {
                      "name": "token",
                      "kind": "optional",
                      "type": "string",
                      "description": "",
                      "example": ""
                    },
                    {
                      "name": "ultimateCreditorName",
                      "kind": "optional",
                      "type": "string",
                      "description": "The name of the individual or entity receiving the payment.",
                      "example": ""
                    },
                    {
                      "name": "payIdType",
                      "kind": "optional",
                      "type": "string",
                      "description": "PayId Type.",
                      "example": ""
                    },
                    {
                      "name": "remitterName",
                      "kind": "optional",
                      "type": "string",
                      "description": "Remitting Entity. Note: Remitter name must not be able to be mistaken for another entity (e.g. ATO) and will be validated by Monoova.",
                      "example": ""
                    }
                  ]
                },
                {
                  "name": "token",
                  "kind": "optional",
                  "type": "string",
                  "description": "The text (GUID) that identifies the token.",
                  "example": ""
                },
                {
                  "name": "sourceAccountBsb",
                  "kind": "optional",
                  "type": "string",
                  "description": "Payer BSB.",
                  "example": ""
                },
                {
                  "name": "amount",
                  "kind": "optional",
                  "type": "number<decimal>",
                  "description": "This is the amount of funds to be paid.",
                  "example": ""
                },
                {
                  "name": "disbursementMethod",
                  "kind": "optional",
                  "type": "string",
                  "description": "This is the disbursementMethod that was used to make the settlement payment.",
                  "example": ""
                },
                {
                  "name": "ToNppCreditBankAccountDetails",
                  "kind": "optional",
                  "type": "object",
                  "description": "",
                  "modelRef": "#/components/schemas/toNppCreditBankAccountDetails",
                  "customType": "toNppCreditBankAccountDetails",
                  "schema": [
                    {
                      "name": "accountName",
                      "kind": "optional",
                      "type": "string",
                      "description": "This is the name of the account.",
                      "example": ""
                    },
                    {
                      "name": "ultimateDebtorName",
                      "kind": "optional",
                      "type": "string",
                      "description": "The name of the individual or entity initiating the payment.",
                      "example": ""
                    },
                    {
                      "name": "accountNumber",
                      "kind": "optional",
                      "type": "string",
                      "description": "Bank account number of associated bank account.",
                      "example": ""
                    },
                    {
                      "name": "endToEndId",
                      "kind": "optional",
                      "type": "string",
                      "description": "End to End identifier submitted by Payer.",
                      "example": ""
                    },
                    {
                      "name": "token",
                      "kind": "optional",
                      "type": "string",
                      "description": "",
                      "example": ""
                    },
                    {
                      "name": "ultimateCreditorName",
                      "kind": "optional",
                      "type": "string",
                      "description": "The name of the individual or entity receiving the payment.",
                      "example": ""
                    },
                    {
                      "name": "bsbNumber",
                      "kind": "optional",
                      "type": "string",
                      "description": "BSB (Bank-State-Branch) number. The format is a string in the following format: '999-999'.",
                      "example": ""
                    },
                    {
                      "name": "remitterName",
                      "kind": "optional",
                      "type": "string",
                      "description": "Original Remitting Entity.",
                      "example": ""
                    }
                  ]
                },
                {
                  "name": "toBpayDetails",
                  "kind": "optional",
                  "type": "object",
                  "description": "",
                  "modelRef": "#/components/schemas/toBpayDetails",
                  "customType": "toBpayDetails",
                  "schema": [
                    {
                      "name": "billerCode",
                      "kind": "optional",
                      "type": "integer<int32>",
                      "description": "BPAY Biller code.",
                      "example": 0
                    },
                    {
                      "name": "referenceNumber",
                      "kind": "optional",
                      "type": "string",
                      "description": "Tax reference information issued by the taxing authority.",
                      "example": ""
                    },
                    {
                      "name": "token",
                      "kind": "optional",
                      "type": "string",
                      "description": "",
                      "example": ""
                    }
                  ]
                }
              ]
            },
            {
              "name": "mAccount",
              "kind": "optional",
              "type": "object",
              "description": "",
              "modelRef": "#/components/schemas/paymentSourceMAccountDetailsClass",
              "customType": "paymentSourceMAccountDetailsClass",
              "schema": [
                {
                  "name": "token",
                  "kind": "optional",
                  "type": "string",
                  "description": "A 16 digit mAccount number.",
                  "example": ""
                }
              ]
            },
            {
              "name": "printUniqueReferenceOnStatement",
              "kind": "optional",
              "type": "boolean",
              "description": "If true, the uniqueReference will be printed on the statement. Default is false.",
              "example": ""
            },
            {
              "name": "directDebits",
              "kind": "optional",
              "type": "array",
              "description": "Direct debits details.",
              "modelRef": "#/components/schemas/fromBulkDirectDebitDetails",
              "customType": "fromBulkDirectDebitDetails[]",
              "schema": [
                {
                  "name": "amount",
                  "kind": "optional",
                  "type": "number<decimal>",
                  "description": "This is the amount of funds to be paid.",
                  "example": ""
                },
                {
                  "name": "fromDirectDebitDetail",
                  "kind": "optional",
                  "type": "object",
                  "description": "Direct debits details.",
                  "modelRef": "#/components/schemas/bulkDirectDebitItem",
                  "customType": "bulkDirectDebitItem",
                  "schema": [
                    {
                      "name": "accountName",
                      "kind": "optional",
                      "type": "string",
                      "description": "This is the name of the account.",
                      "example": ""
                    },
                    {
                      "name": "accountNumber",
                      "kind": "optional",
                      "type": "string",
                      "description": "Bank account number of associated bank account.",
                      "example": ""
                    },
                    {
                      "name": "lodgementReference",
                      "kind": "optional",
                      "type": "string",
                      "description": "Reference will appear on payers statement.",
                      "example": ""
                    },
                    {
                      "name": "bsbNumber",
                      "kind": "optional",
                      "type": "string",
                      "description": "BSB (Bank-State-Branch) number. The format is a string in the following format: '999-999'.",
                      "example": ""
                    },
                    {
                      "name": "remitterName",
                      "kind": "optional",
                      "type": "string",
                      "description": "Original Remitting Entity.",
                      "example": ""
                    }
                  ]
                },
                {
                  "name": "description",
                  "kind": "optional",
                  "type": "string",
                  "description": "Description for the transaction.",
                  "example": ""
                },
                {
                  "name": "lodgementReference",
                  "kind": "optional",
                  "type": "string",
                  "description": "Reference will appear on payers statement.",
                  "example": ""
                }
              ]
            }
          ],
          "modelRef": "#/components/schemas/financialPaymentBody",
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "basicAuth",
          "name": "basicAuth",
          "kind": "optional",
          "type": "http",
          "scheme": "basic"
        }
      ]
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "successful validation",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "financialTransactionValidateResponse_V2",
            "schema": [
              {
                "name": "expectedDateForClearedFunds",
                "kind": "optional",
                "type": "string",
                "description": "Expected clearance date for funds if applicable.",
                "example": ""
              },
              {
                "name": "durationMs",
                "kind": "optional",
                "type": "integer<int64>",
                "description": "This value represents the total time in milliseconds that the Platform took to process the request.",
                "example": 0
              },
              {
                "name": "feeAmountIncludingGst",
                "kind": "optional",
                "type": "number<decimal>",
                "description": "This is the total fee amount Including GST that has been debited from your mAccount.",
                "example": ""
              },
              {
                "name": "feeAmountExcludingGst",
                "kind": "optional",
                "type": "number<decimal>",
                "description": "This is the fee amount excluding GST.",
                "example": ""
              },
              {
                "name": "transactionId",
                "kind": "optional",
                "type": "integer<int32>",
                "description": "This is the transactionId that was returned from a financial transaction.",
                "example": 0
              },
              {
                "name": "feeBreakdown",
                "kind": "optional",
                "type": "object",
                "description": "",
                "modelRef": "#/components/schemas/feeBreakdown",
                "customType": "feeBreakdown",
                "schema": [
                  {
                    "name": "bulkDirectDebitFees",
                    "kind": "optional",
                    "type": "array",
                    "description": "An array for bulkDirectDebitFees, which is the fee details for each disbursement.",
                    "modelRef": "#/components/schemas/bulkDirectDebitFee",
                    "customType": "bulkDirectDebitFee[]",
                    "schema": [
                      {
                        "name": "directDebitFee",
                        "kind": "optional",
                        "type": "object",
                        "description": "",
                        "modelRef": "#/components/schemas/feeDetail",
                        "customType": "feeDetail",
                        "schema": [
                          {
                            "name": "feeAmountIncludingGst",
                            "kind": "optional",
                            "type": "number<decimal>",
                            "description": "This is the total fee amount Including GST that has been debited from your mAccount.",
                            "example": ""
                          },
                          {
                            "name": "feeAmountExcludingGst",
                            "kind": "optional",
                            "type": "number<decimal>",
                            "description": "This is the fee amount excluding GST.",
                            "example": ""
                          },
                          {
                            "name": "feeAmountGstComponent",
                            "kind": "optional",
                            "type": "number<decimal>",
                            "description": "This is the GST Component of the fee amount that has been debited from your mAccount.",
                            "example": ""
                          }
                        ]
                      },
                      {
                        "name": "directDebitArrayIndex",
                        "kind": "optional",
                        "type": "integer<int32>",
                        "description": "This is the index into the Disbursement array that was passed to either financials/v2/transaction/validate or financials/v2/transaction/execute",
                        "example": 0
                      }
                    ]
                  },
                  {
                    "name": "debitFee",
                    "kind": "optional",
                    "type": "object",
                    "description": "An array of debitFee, which is the fee details for each disbursement.",
                    "modelRef": "#/components/schemas/feeDetail",
                    "customType": "feeDetail",
                    "schema": [
                      {
                        "name": "feeAmountIncludingGst",
                        "kind": "optional",
                        "type": "number<decimal>",
                        "description": "This is the total fee amount Including GST that has been debited from your mAccount.",
                        "example": ""
                      },
                      {
                        "name": "feeAmountExcludingGst",
                        "kind": "optional",
                        "type": "number<decimal>",
                        "description": "This is the fee amount excluding GST.",
                        "example": ""
                      },
                      {
                        "name": "feeAmountGstComponent",
                        "kind": "optional",
                        "type": "number<decimal>",
                        "description": "This is the GST Component of the fee amount that has been debited from your mAccount.",
                        "example": ""
                      }
                    ]
                  }
                ]
              },
              {
                "name": "callerUniqueReference",
                "kind": "optional",
                "type": "string",
                "description": "This is a unique reference generated by the calling service. This is a nonce. Its use is to determine if a request has already been received by the Engine.",
                "example": ""
              },
              {
                "name": "statusDescription",
                "kind": "optional",
                "type": "string",
                "description": "This is a description of the status. If an 'Ok' status is returned, then this will be 'Operation completed successfully'.",
                "example": ""
              },
              {
                "name": "feeAmountGstComponent",
                "kind": "optional",
                "type": "number<decimal>",
                "description": "This is the GST Component of the fee amount that has been debited from your mAccount.",
                "example": ""
              },
              {
                "name": "status",
                "kind": "optional",
                "type": "string",
                "description": "This is the status of the request. A code of 'Ok' indicates no errors.",
                "example": ""
              }
            ],
            "modelRef": "#/components/schemas/financialTransactionValidateResponse_V2",
            "isExpanded": true
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "example-0-curl",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url https://api.mpay.com.au/financial/v2/transaction/validate \\\n     --header 'accept: application/json'"
        },
        {
          "id": "example-1-javascript",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.mpay.com.au/financial/v2/transaction/validate\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "example-2-ruby",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.mpay.com.au/financial/v2/transaction/validate\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "example-3-python",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.mpay.com.au/financial/v2/transaction/validate\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "example-0-curl"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-200",
          "language": "200",
          "code": "// successful validation\n{\n  \"expectedDateForClearedFunds\": \"\",\n  \"durationMs\": \"\",\n  \"feeAmountIncludingGst\": \"\",\n  \"feeAmountExcludingGst\": \"\",\n  \"transactionId\": \"\",\n  \"feeBreakdown\": {\n    \"bulkDirectDebitFees\": [\n      {\n        \"directDebitFee\": {\n          \"feeAmountIncludingGst\": \"\",\n          \"feeAmountExcludingGst\": \"\",\n          \"feeAmountGstComponent\": \"\"\n        },\n        \"directDebitArrayIndex\": \"\"\n      }\n    ],\n    \"debitFee\": {\n      \"feeAmountIncludingGst\": \"\",\n      \"feeAmountExcludingGst\": \"\",\n      \"feeAmountGstComponent\": \"\"\n    }\n  },\n  \"callerUniqueReference\": \"\",\n  \"statusDescription\": \"\",\n  \"feeAmountGstComponent\": \"\",\n  \"status\": \"\"\n}"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}