---
title: Last Settlement
slug: api/last-settlement
docTags: 
createdAt: 2026-09-28T06:18:59.720Z
---

{
  "id": "J8wPUJnOaUcrAjjViHUWN",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "https://api.mpay.com.au/receivables/v1/reportLastSettlement",
    "servers": [
      {
        "url": "https://api.mpay.com.au/receivables/v1/reportLastSettlement",
        "description": "Production URL"
      },
      {
        "url": "https://api.m-pay.com.au/receivables/v1/reportLastSettlement",
        "description": "Sandbox URL"
      }
    ],
    "name": "Last Settlement",
    "description": "Returns the latest settlement for received funds. We suggest using this as a lightweight polling endpoint to establish when new transactions have been received. Transactions arrive in batches.",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [],
      "queryParameters": [],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "basicAuth",
          "name": "basicAuth",
          "kind": "optional",
          "type": "http",
          "description": "<p>To authenticate using basic authentication, generate an API key and pass it as the username. No password is required.</p>",
          "scheme": "basic"
        }
      ],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "200 OK. Successful validation. The latest settlement details were returned.",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "Last Settlement response.",
            "customType": "cuscalReportLastSettlementResponse_V1",
            "schema": [
              {
                "name": "dateTime",
                "kind": "optional",
                "type": "string",
                "description": "<p>Date and time of the latest settlement for received funds, AEDT, Sydney.</p>",
                "example": "2026-08-24T13:45:00",
                "default": "2026-08-24T13:45:00",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,7})?$"
              },
              {
                "name": "durationMs",
                "kind": "optional",
                "type": "integer",
                "description": "This value represents the total time in milliseconds that the Platform took to process the request.",
                "example": 125,
                "default": 125,
                "pattern": "^\\d{1,9}$"
              },
              {
                "name": "status",
                "kind": "optional",
                "type": "string",
                "description": "This is the status of the request. A code of 'Ok' indicates no errors.",
                "example": "Ok",
                "default": "Ok",
                "pattern": "^[A-Za-z]{2,40}$"
              },
              {
                "name": "statusDescription",
                "kind": "optional",
                "type": "string",
                "description": "<p>This is a description of the status. If an 'Ok' status is returned, then this will be 'Operation completed successfully'.</p>",
                "example": "Operation completed successfully",
                "default": "Operation completed successfully",
                "pattern": "^.{1,500}$"
              }
            ],
            "modelRef": "#/components/schemas/cuscalReportLastSettlementResponse_V1",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "400",
        "description": "<p>400 Bad Request. The request could not be processed because one or more supplied values are missing or incorrectly formatted, for example a date that does not match the required format.</p>",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "<p>Standard error payload returned for 400, 401 and 500 responses.</p>",
            "customType": "errorResponse",
            "schema": [
              {
                "name": "durationMs",
                "kind": "optional",
                "type": "integer",
                "description": "This value represents the total time in milliseconds that the Platform took to process the request before the error was returned.",
                "example": 12,
                "default": 12,
                "pattern": "^\\d{1,9}$"
              },
              {
                "name": "status",
                "kind": "optional",
                "type": "string",
                "description": "<p>Status code of the failed request, for example 'BadRequest', 'Unauthorized' or 'InternalServerError'.</p>",
                "example": "BadRequest",
                "default": "BadRequest",
                "pattern": "^[A-Za-z]{2,40}$"
              },
              {
                "name": "statusDescription",
                "kind": "optional",
                "type": "string",
                "description": "Human readable description of why the request failed. Quote this value when contacting Monoova support.",
                "example": "The date supplied is not in the required format.",
                "default": "The date supplied is not in the required format.",
                "pattern": "^.{1,500}$"
              },
              {
                "name": "errors",
                "kind": "optional",
                "type": "array",
                "description": "<p><strong>Optional</strong>. One or more field level error messages. Present when the Platform can attribute the failure to specific request values; omitted otherwise.</p>",
                "example": "[\"date: value must match the format 'yyyy-MM-dd'.\"]",
                "default": [
                  "date: value must match the format 'yyyy-MM-dd'."
                ],
                "itemType": "string",
                "customType": "string[]",
                "itemExample": "date: value must match the format 'yyyy-MM-dd'.",
                "itemDefault": "date: value must match the format 'yyyy-MM-dd'."
              }
            ],
            "modelRef": "#/components/schemas/errorResponse",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "401",
        "description": "<p>401 Unauthorized. Authentication failed. The API key passed as the basic authentication username is missing, invalid, or not permitted to access reporting.</p>",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "<p>Standard error payload returned for 400, 401 and 500 responses.</p>",
            "customType": "errorResponse",
            "schema": [
              {
                "name": "durationMs",
                "kind": "optional",
                "type": "integer",
                "description": "This value represents the total time in milliseconds that the Platform took to process the request before the error was returned.",
                "example": 12,
                "default": 12,
                "pattern": "^\\d{1,9}$"
              },
              {
                "name": "status",
                "kind": "optional",
                "type": "string",
                "description": "<p>Status code of the failed request, for example 'BadRequest', 'Unauthorized' or 'InternalServerError'.</p>",
                "example": "BadRequest",
                "default": "BadRequest",
                "pattern": "^[A-Za-z]{2,40}$"
              },
              {
                "name": "statusDescription",
                "kind": "optional",
                "type": "string",
                "description": "Human readable description of why the request failed. Quote this value when contacting Monoova support.",
                "example": "The date supplied is not in the required format.",
                "default": "The date supplied is not in the required format.",
                "pattern": "^.{1,500}$"
              },
              {
                "name": "errors",
                "kind": "optional",
                "type": "array",
                "description": "<p><strong>Optional</strong>. One or more field level error messages. Present when the Platform can attribute the failure to specific request values; omitted otherwise.</p>",
                "example": "[\"date: value must match the format 'yyyy-MM-dd'.\"]",
                "default": [
                  "date: value must match the format 'yyyy-MM-dd'."
                ],
                "itemType": "string",
                "customType": "string[]",
                "itemExample": "date: value must match the format 'yyyy-MM-dd'.",
                "itemDefault": "date: value must match the format 'yyyy-MM-dd'."
              }
            ],
            "modelRef": "#/components/schemas/errorResponse",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "500",
        "description": "<p>500 Internal Server Error. An unexpected error occurred while generating the report. Retry the request; if the error persists contact Monoova support quoting the status description.</p>",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "<p>Standard error payload returned for 400, 401 and 500 responses.</p>",
            "customType": "errorResponse",
            "schema": [
              {
                "name": "durationMs",
                "kind": "optional",
                "type": "integer",
                "description": "This value represents the total time in milliseconds that the Platform took to process the request before the error was returned.",
                "example": 12,
                "default": 12,
                "pattern": "^\\d{1,9}$"
              },
              {
                "name": "status",
                "kind": "optional",
                "type": "string",
                "description": "<p>Status code of the failed request, for example 'BadRequest', 'Unauthorized' or 'InternalServerError'.</p>",
                "example": "BadRequest",
                "default": "BadRequest",
                "pattern": "^[A-Za-z]{2,40}$"
              },
              {
                "name": "statusDescription",
                "kind": "optional",
                "type": "string",
                "description": "Human readable description of why the request failed. Quote this value when contacting Monoova support.",
                "example": "The date supplied is not in the required format.",
                "default": "The date supplied is not in the required format.",
                "pattern": "^.{1,500}$"
              },
              {
                "name": "errors",
                "kind": "optional",
                "type": "array",
                "description": "<p><strong>Optional</strong>. One or more field level error messages. Present when the Platform can attribute the failure to specific request values; omitted otherwise.</p>",
                "example": "[\"date: value must match the format 'yyyy-MM-dd'.\"]",
                "default": [
                  "date: value must match the format 'yyyy-MM-dd'."
                ],
                "itemType": "string",
                "customType": "string[]",
                "itemExample": "date: value must match the format 'yyyy-MM-dd'.",
                "itemDefault": "date: value must match the format 'yyyy-MM-dd'."
              }
            ],
            "modelRef": "#/components/schemas/errorResponse",
            "isExpanded": true
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "BLCwg3rc6iXfGW9UQ_WRD",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url https://api.mpay.com.au/receivables/v1/reportLastSettlement \\\n     --header 'accept: application/json'"
        },
        {
          "id": "cz6oQFeUKUyL69hvGqZEx",
          "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: 'GET',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.mpay.com.au/receivables/v1/reportLastSettlement\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "KxjcnvL5IxZIx3spPyiNf",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.mpay.com.au/receivables/v1/reportLastSettlement\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "b8QIXeqfPvqibdGIrYn83",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.mpay.com.au/receivables/v1/reportLastSettlement\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "BLCwg3rc6iXfGW9UQ_WRD"
    },
    "results": {
      "languages": [
        {
          "id": "LZTmu3J_vkQgRTRqDSz2E",
          "language": "200",
          "code": "// 200 OK. Successful validation. The latest settlement details were returned.\n{\n  \"dateTime\": \"2026-08-24T13:45:00\",\n  \"durationMs\": 125,\n  \"status\": \"Ok\",\n  \"statusDescription\": \"Operation completed successfully\"\n}"
        },
        {
          "id": "Hkd0lZLn_Cl2cVEQuYCrU",
          "language": "400",
          "code": "// 400 Bad Request. The request could not be processed because one or more supplied values are missing or incorrectly formatted, for example a date that does not match the required format.\n{\n  \"durationMs\": 12,\n  \"status\": \"BadRequest\",\n  \"statusDescription\": \"The date supplied is not in the required format.\",\n  \"errors\": [\n    \"date: value must match the format 'yyyy-MM-dd'.\"\n  ]\n}"
        },
        {
          "id": "GV6JIrN4tHkjZMb07nrOF",
          "language": "401",
          "code": "// 401 Unauthorized. Authentication failed. The API key passed as the basic authentication username is missing, invalid, or not permitted to access reporting.\n{\n  \"durationMs\": 12,\n  \"status\": \"BadRequest\",\n  \"statusDescription\": \"The date supplied is not in the required format.\",\n  \"errors\": [\n    \"date: value must match the format 'yyyy-MM-dd'.\"\n  ]\n}"
        },
        {
          "id": "YHj_Oo61PaNbz8srmHJos",
          "language": "500",
          "code": "// 500 Internal Server Error. An unexpected error occurred while generating the report. Retry the request; if the error persists contact Monoova support quoting the status description.\n{\n  \"durationMs\": 12,\n  \"status\": \"BadRequest\",\n  \"statusDescription\": \"The date supplied is not in the required format.\",\n  \"errors\": [\n    \"date: value must match the format 'yyyy-MM-dd'.\"\n  ]\n}"
        }
      ],
      "selectedLanguageId": "LZTmu3J_vkQgRTRqDSz2E"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}