---
title: Set Account Status
slug: oidc-setup/set-account-status
docTags: 
createdAt: 2026-01-14T12:29:06.702Z
---

{
  "id": "WfgTD0QFh6fXwou6F5Q6l",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "https://api.mpay.com.au/receivables/v1/status",
    "servers": [
      {
        "url": "https://api.mpay.com.au/receivables/v1/status",
        "description": "Production URL"
      },
      {
        "url": "https://api.m-pay.com.au/receivables/v1/status",
        "description": "Sandbox URL"
      }
    ],
    "name": "Set Account Status",
    "description": "<p>Update the status of a virtual account. Accounts can be active or inactive. If an account is inactive, all inbound payments will be rejected and returned to the payer.</p>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [],
      "queryParameters": [],
      "bodyDataParameters": [
        {
          "kind": "required",
          "name": "body",
          "type": "object",
          "description": "",
          "customType": "automatcherStatusBody_V1",
          "schema": [],
          "modelRef": "#/components/schemas/automatcherStatusBody_V1",
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "successful validation",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "automatcherStatusResponse_V1",
            "schema": [],
            "modelRef": "#/components/schemas/automatcherStatusResponse_V1",
            "isExpanded": true
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "ezmnTzbsZuXsJtTothiS7",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url https://api.mpay.com.au/receivables/v1/status \\\n     --header 'accept: application/json'"
        },
        {
          "id": "HmMriwEHaJ2dtlA9E_JnP",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.mpay.com.au/receivables/v1/status\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "3xbtZoPBz0jaTBevNAfKl",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.mpay.com.au/receivables/v1/status\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = \"application/json\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "y-nNJJEL8dF7VGIJNJCfY",
          "language": "python",
          "label": "Python",
          "code": "import requests\n\nurl = \"https://api.mpay.com.au/receivables/v1/status\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "ezmnTzbsZuXsJtTothiS7"
    },
    "results": {
      "languages": [
        {
          "id": "NFYtHfaEcrcHtXvoidGb5",
          "language": "200",
          "code": "// successful validation\n{}"
        }
      ],
      "selectedLanguageId": "NFYtHfaEcrcHtXvoidGb5"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}