---
title: Create Ledger Account
slug: api/create-ledger-account
docTags: 
createdAt: 2026-08-20T02:00:14.436Z
---

{
  "id": "OMu-qciF5IlyWYFOX16dy",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "https://api.mpay.com.au/ledger/v1/create",
    "servers": [
      {
        "url": "https://api.mpay.com.au/ledger/v1/create",
        "description": "Production URL"
      },
      {
        "url": "https://api.m-pay.com.au/ledger/v1/create",
        "description": "Sandbox URL"
      }
    ],
    "name": "Create Ledger Account",
    "description": "<p>Create a new, active ledger with a linked automatcher. This endpoint also allows you to link an existing automatcher to the ledger by passing an existing bankAccountNumber. Optionally, you can also specify a BSB. If no existing automatcher is linked, a new one will be created.</p>\n<p>If you wish to link a PayID to the automatcher you will need to use the PayID endpoints.</p>\n<p>The API response will vary based on whether a new automatcher is being created, or an existing automatcher is being linked to the ledger account. Automatcher activation is an asynchronous process that can take a few minutes to complete. If a new or inactive automatcher is linked, the API will respond with isActive: false, and the statusDescription: 'Account is being setup for Npp. Please allow a few minutes for the account to become active'.</p>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "application/json"
          ],
          "default": "application/json"
        }
      ],
      "queryParameters": [],
      "bodyDataParameters": [
        {
          "kind": "required",
          "name": "body",
          "type": "object",
          "description": "",
          "customType": "ledgerCreateBody_V1",
          "schema": [
            {
              "name": "ledgerUniqueReference",
              "kind": "optional",
              "type": "string",
              "description": "<p><strong>Optional</strong>. Your unique identifier for the ledger account.</p>",
              "example": "CUST-000123",
              "default": "CUST-000123",
              "pattern": "^.{1,50}$"
            },
            {
              "name": "name",
              "kind": "optional",
              "type": "string",
              "description": "<p><strong>Optional</strong>. Your alias for the ledger account.</p>",
              "example": "Acme Pty Ltd",
              "default": "Acme Pty Ltd",
              "pattern": "^.{1,140}$"
            },
            {
              "name": "ABN",
              "kind": "optional",
              "type": "string",
              "description": "<p><strong>Optional</strong>. The ABN of the payee.</p>",
              "example": "51824753556",
              "default": "51824753556",
              "pattern": "^[0-9]{11}$"
            },
            {
              "name": "description",
              "kind": "optional",
              "type": "string",
              "description": "<p><strong>Optional</strong>. A free text field describing the ledger account.</p>",
              "example": "Primary settlement ledger for Acme Pty Ltd",
              "default": "Primary settlement ledger for Acme Pty Ltd",
              "pattern": "^.{0,255}$"
            },
            {
              "name": "automatcherDetails",
              "kind": "optional",
              "type": "object",
              "description": "<p><strong>Optional</strong>. Details of the automatcher to create or link to the ledger account.</p>",
              "modelRef": "#/components/schemas/ledgerCreateAutomatcherDetails_V1",
              "customType": "ledgerCreateAutomatcherDetails_V1",
              "schema": [
                {
                  "name": "bsb",
                  "kind": "optional",
                  "type": "string",
                  "description": "<p><strong>Optional</strong> BSB parameter. If not specified, default BSB logic applies.</p>",
                  "example": "012-345",
                  "default": "012-345",
                  "pattern": "^[0-9]{3}-?[0-9]{3}$"
                },
                {
                  "name": "bankAccountNumber",
                  "kind": "optional",
                  "type": "string",
                  "description": "<p><strong>Conditional</strong>. The account number of the linked Automatcher. Provide an existing account number to link an existing automatcher; omit to create a new one.</p>",
                  "example": "123456789",
                  "default": "123456789",
                  "pattern": "^[0-9]{6,9}$"
                },
                {
                  "name": "bankAccountName",
                  "kind": "optional",
                  "type": "string",
                  "description": "<p><strong>Optional</strong>. The name of the account to be paid into. This will be defaulted to your registered Trading Name.</p>",
                  "example": "Acme Pty Ltd",
                  "default": "Acme Pty Ltd",
                  "pattern": "^.{1,140}$"
                },
                {
                  "name": "clientUniqueId",
                  "kind": "optional",
                  "type": "string",
                  "description": "<p><strong>Optional</strong>. An identifier assigned to the account. Must be unique. If not provided Monoova will generate and return a value automatically.</p>",
                  "example": "93bf57eb1e2c42cf8101509b4356741e",
                  "default": "93bf57eb1e2c42cf8101509b4356741e",
                  "pattern": "^[0-9a-fA-F]{32}$"
                },
                {
                  "name": "subMerchantId",
                  "kind": "optional",
                  "type": "string",
                  "description": "<p><strong>Conditional</strong>. The submerchant ID provided by Monoova, required when creating a new automatcher. The following submerchant IDs can be used in sandbox for testing purposes: 93bf57eb1e2c42cf8101509b4356741e, 78f225280b154fa8982d96e61cc9159d, 49da5e40420849ee97a74e7450b1b04b, 13c96168aed440efa2ceb8241452a3a2.</p>",
                  "example": "93bf57eb1e2c42cf8101509b4356741e",
                  "default": "93bf57eb1e2c42cf8101509b4356741e",
                  "pattern": "^[0-9a-fA-F]{32}$"
                },
                {
                  "name": "akaNames",
                  "kind": "optional",
                  "type": "array",
                  "description": "<p><strong>Optional</strong>. Up to three AKA names can be supplied per account.</p>",
                  "example": "[\"Acme Trading\",\"Acme Group\"]",
                  "default": [
                    "Acme Trading",
                    "Acme Group"
                  ],
                  "itemType": "string",
                  "customType": "string[]",
                  "itemExample": "Acme Trading",
                  "itemDefault": "Acme Trading"
                }
              ]
            }
          ],
          "modelRef": "#/components/schemas/ledgerCreateBody_V1",
          "isExpanded": true
        }
      ],
      "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": "Successful response.",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "ledgerCreateResponse_V1",
            "schema": [
              {
                "name": "ledgerAccountNumber",
                "kind": "optional",
                "type": "string",
                "description": "Number of the newly created ledger account.",
                "example": "200000001",
                "default": "200000001",
                "pattern": "^[0-9]{6,12}$"
              },
              {
                "name": "ledgerDetails",
                "kind": "optional",
                "type": "object",
                "description": "The details of the ledger account.",
                "modelRef": "#/components/schemas/ledgerDetails",
                "customType": "ledgerDetails",
                "schema": [
                  {
                    "name": "createdDateTime",
                    "kind": "optional",
                    "type": "string",
                    "description": "The datetime when the ledger was created.",
                    "example": "2026-07-23T13:55:59",
                    "default": "2026-07-23T13:55:59",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?$"
                  },
                  {
                    "name": "closedDateTime",
                    "kind": "optional",
                    "type": "string",
                    "description": "<p><strong>Conditional</strong>. The datetime when the ledger was closed. Present only if the ledger has been closed.</p>",
                    "example": "2026-07-23T13:55:59",
                    "default": "2026-07-23T13:55:59",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?$"
                  },
                  {
                    "name": "ledgerAccountNumber",
                    "kind": "optional",
                    "type": "string",
                    "description": "The unique identifier for the ledger account.",
                    "example": "200000001",
                    "default": "200000001",
                    "pattern": "^[0-9]{6,12}$"
                  },
                  {
                    "name": "ledgerUniqueReference",
                    "kind": "optional",
                    "type": "string",
                    "description": "<p><strong>Optional</strong>. Your unique identifier for the ledger account.</p>",
                    "example": "CUST-000123",
                    "default": "CUST-000123",
                    "pattern": "^.{1,50}$"
                  },
                  {
                    "name": "description",
                    "kind": "optional",
                    "type": "string",
                    "description": "<p><strong>Optional</strong>. A free text field describing the ledger account.</p>",
                    "example": "Primary settlement ledger for Acme Pty Ltd",
                    "default": "Primary settlement ledger for Acme Pty Ltd",
                    "pattern": "^.{0,255}$"
                  },
                  {
                    "name": "name",
                    "kind": "optional",
                    "type": "string",
                    "description": "<p><strong>Optional</strong>. Your alias for the ledger account. Can be used to identify a ledger or underlying customer.</p>",
                    "example": "Acme Pty Ltd",
                    "default": "Acme Pty Ltd",
                    "pattern": "^.{1,140}$"
                  },
                  {
                    "name": "lastTransactionDate",
                    "kind": "optional",
                    "type": "string",
                    "description": "<p><strong>Conditional</strong>. The datetime when the last transaction was received or made from the ledger. Present only if at least one transaction has occurred.</p>",
                    "example": "2026-07-23T13:55:59",
                    "default": "2026-07-23T13:55:59",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?$"
                  },
                  {
                    "name": "isClosed",
                    "kind": "optional",
                    "type": "string",
                    "description": "Indicates whether the ledger is currently closed.",
                    "example": "false",
                    "default": "false",
                    "pattern": "^(true|false)$"
                  },
                  {
                    "name": "financials",
                    "kind": "optional",
                    "type": "object",
                    "description": "The financial position of the ledger account.",
                    "modelRef": "#/components/schemas/mWalletFinancials",
                    "customType": "mWalletFinancials",
                    "schema": [
                      {
                        "name": "actualBalance",
                        "kind": "optional",
                        "type": "string",
                        "description": "The current balance of the ledger account.",
                        "example": "100.00",
                        "default": "100.00",
                        "pattern": "^-?[0-9]+(\\.[0-9]{1,2})?$"
                      },
                      {
                        "name": "availableSpend",
                        "kind": "optional",
                        "type": "string",
                        "description": "The amount available to debit from the ledger.",
                        "example": "100.00",
                        "default": "100.00",
                        "pattern": "^-?[0-9]+(\\.[0-9]{1,2})?$"
                      },
                      {
                        "name": "availableLoad",
                        "kind": "optional",
                        "type": "string",
                        "description": "The amount available to credit from the ledger.",
                        "example": "900.00",
                        "default": "900.00",
                        "pattern": "^-?[0-9]+(\\.[0-9]{1,2})?$"
                      },
                      {
                        "name": "maximumBalance",
                        "kind": "optional",
                        "type": "string",
                        "description": "The maximum balance that can be held by the ledger.",
                        "example": "1000.00",
                        "default": "1000.00",
                        "pattern": "^-?[0-9]+(\\.[0-9]{1,2})?$"
                      }
                    ]
                  },
                  {
                    "name": "ABN",
                    "kind": "optional",
                    "type": "string",
                    "description": "<p><strong>Optional</strong>. The ABN of the payee.</p>",
                    "example": "51824753556",
                    "default": "51824753556",
                    "pattern": "^[0-9]{11}$"
                  }
                ]
              },
              {
                "name": "automatcherDetails",
                "kind": "optional",
                "type": "object",
                "description": "The details of the automatcher linked to the ledger account.",
                "modelRef": "#/components/schemas/ledgerAutomatcherDetails_V1",
                "customType": "ledgerAutomatcherDetails_V1",
                "schema": [
                  {
                    "name": "bsb",
                    "kind": "optional",
                    "type": "string",
                    "description": "The BSB of the linked Automatcher.",
                    "example": "012-345",
                    "default": "012-345",
                    "pattern": "^[0-9]{3}-?[0-9]{3}$"
                  },
                  {
                    "name": "bankAccountNumber",
                    "kind": "optional",
                    "type": "string",
                    "description": "The bank account number of the linked Automatcher.",
                    "example": "123456789",
                    "default": "123456789",
                    "pattern": "^[0-9]{6,9}$"
                  },
                  {
                    "name": "bankAccountName",
                    "kind": "optional",
                    "type": "string",
                    "description": "The account name of the linked Automatcher.",
                    "example": "Acme Pty Ltd",
                    "default": "Acme Pty Ltd",
                    "pattern": "^.{1,140}$"
                  },
                  {
                    "name": "clientUniqueId",
                    "kind": "optional",
                    "type": "string",
                    "description": "A unique identifier assigned to the account.",
                    "example": "93bf57eb1e2c42cf8101509b4356741e",
                    "default": "93bf57eb1e2c42cf8101509b4356741e",
                    "pattern": "^[0-9a-fA-F]{32}$"
                  },
                  {
                    "name": "isActive",
                    "kind": "optional",
                    "type": "string",
                    "description": "Whether the automatcher is active.",
                    "example": "true",
                    "default": "true",
                    "pattern": "^(true|false)$"
                  }
                ]
              },
              {
                "name": "durationMs",
                "kind": "optional",
                "type": "string",
                "description": "The total time in milliseconds that the Platform took to process the request.",
                "example": "42",
                "default": "42",
                "pattern": "^[0-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": "^.{1,50}$"
              },
              {
                "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,255}$"
              }
            ],
            "modelRef": "#/components/schemas/ledgerCreateResponse_V1",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "400",
        "description": "<p>Bad Request - the request was malformed or contained invalid parameters.</p>",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "errorResponse_V1",
            "schema": [
              {
                "name": "status",
                "kind": "optional",
                "type": "string",
                "description": "The status of the request. A value other than 'Ok' indicates that the request failed.",
                "example": "Error",
                "default": "Error",
                "pattern": "^.{1,50}$"
              },
              {
                "name": "statusDescription",
                "kind": "optional",
                "type": "string",
                "description": "<p>A human-readable description of the error that occurred.</p>",
                "example": "Invalid ledger account number.",
                "default": "Invalid ledger account number.",
                "pattern": "^.{1,255}$"
              },
              {
                "name": "errorCode",
                "kind": "optional",
                "type": "string",
                "description": "<p><strong>Conditional</strong>. The error code returned by the platform. Present only when the request fails.</p>",
                "example": "400",
                "default": "400",
                "pattern": "^[0-9]{3,5}$"
              },
              {
                "name": "errorMessage",
                "kind": "optional",
                "type": "string",
                "description": "<p><strong>Conditional</strong>. Detailed error message describing the cause of the failure. Present only when the request fails.</p>",
                "example": "The supplied ledger account number could not be found.",
                "default": "The supplied ledger account number could not be found.",
                "pattern": "^.{1,255}$"
              },
              {
                "name": "durationMs",
                "kind": "optional",
                "type": "string",
                "description": "The total time in milliseconds that the Platform took to process the request.",
                "example": "42",
                "default": "42",
                "pattern": "^[0-9]+$"
              }
            ],
            "modelRef": "#/components/schemas/errorResponse_V1",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "401",
        "description": "<p>Unauthorized - authentication failed, or the API key was missing or invalid.</p>",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "errorResponse_V1",
            "schema": [
              {
                "name": "status",
                "kind": "optional",
                "type": "string",
                "description": "The status of the request. A value other than 'Ok' indicates that the request failed.",
                "example": "Error",
                "default": "Error",
                "pattern": "^.{1,50}$"
              },
              {
                "name": "statusDescription",
                "kind": "optional",
                "type": "string",
                "description": "<p>A human-readable description of the error that occurred.</p>",
                "example": "Invalid ledger account number.",
                "default": "Invalid ledger account number.",
                "pattern": "^.{1,255}$"
              },
              {
                "name": "errorCode",
                "kind": "optional",
                "type": "string",
                "description": "<p><strong>Conditional</strong>. The error code returned by the platform. Present only when the request fails.</p>",
                "example": "400",
                "default": "400",
                "pattern": "^[0-9]{3,5}$"
              },
              {
                "name": "errorMessage",
                "kind": "optional",
                "type": "string",
                "description": "<p><strong>Conditional</strong>. Detailed error message describing the cause of the failure. Present only when the request fails.</p>",
                "example": "The supplied ledger account number could not be found.",
                "default": "The supplied ledger account number could not be found.",
                "pattern": "^.{1,255}$"
              },
              {
                "name": "durationMs",
                "kind": "optional",
                "type": "string",
                "description": "The total time in milliseconds that the Platform took to process the request.",
                "example": "42",
                "default": "42",
                "pattern": "^[0-9]+$"
              }
            ],
            "modelRef": "#/components/schemas/errorResponse_V1",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "500",
        "description": "<p>Internal Server Error - an unexpected error occurred while processing the request.</p>",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "errorResponse_V1",
            "schema": [
              {
                "name": "status",
                "kind": "optional",
                "type": "string",
                "description": "The status of the request. A value other than 'Ok' indicates that the request failed.",
                "example": "Error",
                "default": "Error",
                "pattern": "^.{1,50}$"
              },
              {
                "name": "statusDescription",
                "kind": "optional",
                "type": "string",
                "description": "<p>A human-readable description of the error that occurred.</p>",
                "example": "Invalid ledger account number.",
                "default": "Invalid ledger account number.",
                "pattern": "^.{1,255}$"
              },
              {
                "name": "errorCode",
                "kind": "optional",
                "type": "string",
                "description": "<p><strong>Conditional</strong>. The error code returned by the platform. Present only when the request fails.</p>",
                "example": "400",
                "default": "400",
                "pattern": "^[0-9]{3,5}$"
              },
              {
                "name": "errorMessage",
                "kind": "optional",
                "type": "string",
                "description": "<p><strong>Conditional</strong>. Detailed error message describing the cause of the failure. Present only when the request fails.</p>",
                "example": "The supplied ledger account number could not be found.",
                "default": "The supplied ledger account number could not be found.",
                "pattern": "^.{1,255}$"
              },
              {
                "name": "durationMs",
                "kind": "optional",
                "type": "string",
                "description": "The total time in milliseconds that the Platform took to process the request.",
                "example": "42",
                "default": "42",
                "pattern": "^[0-9]+$"
              }
            ],
            "modelRef": "#/components/schemas/errorResponse_V1",
            "isExpanded": true
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "nZ060RicJ_VOogYmNyBeu",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url https://api.mpay.com.au/ledger/v1/create \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --data '{\n     \"ledgerUniqueReference\": \"CUST-000123\",\n     \"name\": \"Acme Pty Ltd\",\n     \"ABN\": \"51824753556\",\n     \"description\": \"Primary settlement ledger for Acme Pty Ltd\",\n     \"automatcherDetails\": {\n     \"bsb\": \"012-345\",\n     \"bankAccountNumber\": \"123456789\",\n     \"bankAccountName\": \"Acme Pty Ltd\",\n     \"clientUniqueId\": \"93bf57eb1e2c42cf8101509b4356741e\",\n     \"subMerchantId\": \"93bf57eb1e2c42cf8101509b4356741e\",\n     \"akaNames\": [\n     \"Acme Trading\",\n     \"Acme Group\"\n     ]\n     }\n     }'"
        },
        {
          "id": "xOFjIR41oISkaP35jUdpR",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar raw = JSON.stringify({\n   \"ledgerUniqueReference\": \"CUST-000123\",\n   \"name\": \"Acme Pty Ltd\",\n   \"ABN\": \"51824753556\",\n   \"description\": \"Primary settlement ledger for Acme Pty Ltd\",\n   \"automatcherDetails\": {\n      \"bsb\": \"012-345\",\n      \"bankAccountNumber\": \"123456789\",\n      \"bankAccountName\": \"Acme Pty Ltd\",\n      \"clientUniqueId\": \"93bf57eb1e2c42cf8101509b4356741e\",\n      \"subMerchantId\": \"93bf57eb1e2c42cf8101509b4356741e\",\n      \"akaNames\": [\n         \"Acme Trading\",\n         \"Acme Group\"\n      ]\n   }\n});\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.mpay.com.au/ledger/v1/create\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "ORhSr_QQCOoYadCpWDxl3",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.mpay.com.au/ledger/v1/create\")\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\"\nrequest.body = JSON.dump({\n   \"ledgerUniqueReference\": \"CUST-000123\",\n   \"name\": \"Acme Pty Ltd\",\n   \"ABN\": \"51824753556\",\n   \"description\": \"Primary settlement ledger for Acme Pty Ltd\",\n   \"automatcherDetails\": {\n      \"bsb\": \"012-345\",\n      \"bankAccountNumber\": \"123456789\",\n      \"bankAccountName\": \"Acme Pty Ltd\",\n      \"clientUniqueId\": \"93bf57eb1e2c42cf8101509b4356741e\",\n      \"subMerchantId\": \"93bf57eb1e2c42cf8101509b4356741e\",\n      \"akaNames\": [\n         \"Acme Trading\",\n         \"Acme Group\"\n      ]\n   }\n})\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "hfpQG4-zUjZcAblsPEY2P",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.mpay.com.au/ledger/v1/create\"\n\npayload = json.dumps({\n   \"ledgerUniqueReference\": \"CUST-000123\",\n   \"name\": \"Acme Pty Ltd\",\n   \"ABN\": \"51824753556\",\n   \"description\": \"Primary settlement ledger for Acme Pty Ltd\",\n   \"automatcherDetails\": {\n      \"bsb\": \"012-345\",\n      \"bankAccountNumber\": \"123456789\",\n      \"bankAccountName\": \"Acme Pty Ltd\",\n      \"clientUniqueId\": \"93bf57eb1e2c42cf8101509b4356741e\",\n      \"subMerchantId\": \"93bf57eb1e2c42cf8101509b4356741e\",\n      \"akaNames\": [\n         \"Acme Trading\",\n         \"Acme Group\"\n      ]\n   }\n})\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": "nZ060RicJ_VOogYmNyBeu"
    },
    "results": {
      "languages": [
        {
          "id": "htx--AO98wyii-BlayWcc",
          "language": "200",
          "code": "// Successful response.\n{\n  \"ledgerAccountNumber\": \"200000001\",\n  \"ledgerDetails\": {\n    \"createdDateTime\": \"2026-07-23T13:55:59\",\n    \"closedDateTime\": \"2026-07-23T13:55:59\",\n    \"ledgerAccountNumber\": \"200000001\",\n    \"ledgerUniqueReference\": \"CUST-000123\",\n    \"description\": \"Primary settlement ledger for Acme Pty Ltd\",\n    \"name\": \"Acme Pty Ltd\",\n    \"lastTransactionDate\": \"2026-07-23T13:55:59\",\n    \"isClosed\": \"false\",\n    \"financials\": {\n      \"actualBalance\": \"100.00\",\n      \"availableSpend\": \"100.00\",\n      \"availableLoad\": \"900.00\",\n      \"maximumBalance\": \"1000.00\"\n    },\n    \"ABN\": \"51824753556\"\n  },\n  \"automatcherDetails\": {\n    \"bsb\": \"012-345\",\n    \"bankAccountNumber\": \"123456789\",\n    \"bankAccountName\": \"Acme Pty Ltd\",\n    \"clientUniqueId\": \"93bf57eb1e2c42cf8101509b4356741e\",\n    \"isActive\": \"true\"\n  },\n  \"durationMs\": \"42\",\n  \"status\": \"Ok\",\n  \"statusDescription\": \"Operation completed successfully\"\n}"
        },
        {
          "id": "ok7yYJL3nCEs1grWmtjdz",
          "language": "400",
          "code": "// Bad Request - the request was malformed or contained invalid parameters.\n{\n  \"status\": \"Error\",\n  \"statusDescription\": \"Invalid ledger account number.\",\n  \"errorCode\": \"400\",\n  \"errorMessage\": \"The supplied ledger account number could not be found.\",\n  \"durationMs\": \"42\"\n}"
        },
        {
          "id": "M-1TDV1bSJAHl0XG_VKvC",
          "language": "401",
          "code": "// Unauthorized - authentication failed, or the API key was missing or invalid.\n{\n  \"status\": \"Error\",\n  \"statusDescription\": \"Invalid ledger account number.\",\n  \"errorCode\": \"400\",\n  \"errorMessage\": \"The supplied ledger account number could not be found.\",\n  \"durationMs\": \"42\"\n}"
        },
        {
          "id": "OthkZv9J0NXdfp4aqtKdl",
          "language": "500",
          "code": "// Internal Server Error - an unexpected error occurred while processing the request.\n{\n  \"status\": \"Error\",\n  \"statusDescription\": \"Invalid ledger account number.\",\n  \"errorCode\": \"400\",\n  \"errorMessage\": \"The supplied ledger account number could not be found.\",\n  \"durationMs\": \"42\"\n}"
        }
      ],
      "selectedLanguageId": "htx--AO98wyii-BlayWcc"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}