---
title: Batch Create
slug: oidc-setup/batch-create
docTags: 
createdAt: 2026-01-14T12:29:06.702Z
---

{
  "id": "xx_oVvINGautOnFDb8ZSJ",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "https://api.mpay.com.au/receivables/v1/batchCreate",
    "servers": [
      {
        "url": "https://api.mpay.com.au/receivables/v1/batchCreate",
        "description": "Production URL"
      },
      {
        "url": "https://api.m-pay.com.au/receivables/v1/batchCreate",
        "description": "Sandbox URL"
      }
    ],
    "name": "Batch Create",
    "description": "<p>The batch create API has the same functionality as the /receivables/v1/create endpoint however it allows you to create up to 50,000 accounts in a single call by submitting a file. We recommend this for circumstances where more than 100 accounts need to be created within a short time period.\n\nCreation of accounts with isActive=true is restricted to 1000. Multiple batches cannot be requested at the same time, you have to wait for the completion of a batch before requesting a new one.\n\nThe Batch Create API also supports a lightweight option whereby many accounts can be created by submitting a single line. This option automatically sets isActive = true, hence you can only request the creation of 1000 accounts in one request. For this method, all accounts will be created with the same specified name, and clientuniqueidâ€™s cannot be specified will be automatically generated.</p>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [],
      "queryParameters": [],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "successful validation",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "string<binary>",
            "description": "",
            "isExpanded": true
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "r2xXZhxYT4ohMm_tMOb2D",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url https://api.mpay.com.au/receivables/v1/batchCreate \\\n     --header 'accept: application/json'"
        },
        {
          "id": "pLPQL2I7Uh-xnBCKns1Wr",
          "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/receivables/v1/batchCreate\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "CYLIuhMdPRzZhtP9Coi8i",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.mpay.com.au/receivables/v1/batchCreate\")\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": "1HhgM6tLeHJ-qNaroOzD4",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.mpay.com.au/receivables/v1/batchCreate\"\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": "r2xXZhxYT4ohMm_tMOb2D"
    },
    "results": {
      "languages": [
        {
          "id": "Jg0BmjjDHWuGgmK4MWmRi",
          "language": "200",
          "code": "// successful validation\n\"\""
        }
      ],
      "selectedLanguageId": "Jg0BmjjDHWuGgmK4MWmRi"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}