---
title: Create Payment Instruction Async
slug: api/create-payment-instruction-async
createdAt: 2026-10-16T03:50:19.398Z
---

{
  "id": "QGGp57dsqRWEB9eBFxY_X",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "https://sand-api.monoova.com/au/payto/pas-v1/PaymentInstructionAsync",
    "servers": [
      {
        "url": "https://sand-api.monoova.com/au/payto/pas-v1/PaymentInstructionAsync",
        "description": "Sandbox URL"
      },
      {
        "url": "https://api.monoova.com/au/payto/pas-v1/PaymentInstructionAsync",
        "description": "Production URL"
      }
    ],
    "name": "Create Payment Instruction Async",
    "description": "<p>The purpose of this endpoint is to asynchronously create a payment instruction. The API returns as soon as the creation request has been captured and validated for background processing.</p>\n<p>The request payload and validation rules are the same as for Create payment instruction. To monitor the request, call Get Async Payment Instruction Request Status with the returned <code>uniqueRequestId</code>, or subscribe to the AsyncJobResultNotification webhook.</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": "Details of the payment instruction to create.",
          "customType": "InitiateMandatePaymentDto",
          "schema": [
            {
              "name": "paymentAgreementUID",
              "kind": "required",
              "type": "string",
              "description": "Unique ID of the payment agreement to make the payment under. The payer must have approved the payment agreement.",
              "example": "BCORP123456",
              "default": "BCORP123456",
              "pattern": "^[a-zA-Z0-9_-]{1,35}$"
            },
            {
              "name": "paymentInitiationUID",
              "kind": "required",
              "type": "string",
              "description": "<p>Unique ID that you assign to this payment instruction. A duplicate <code>paymentInitiationUID</code> is rejected.</p>",
              "example": "BCORP00000001",
              "default": "BCORP00000001",
              "pattern": "^[a-zA-Z0-9_-]{1,35}$"
            },
            {
              "name": "payeeDetails",
              "kind": "optional",
              "type": "object",
              "description": "<p><strong>Conditional.</strong> Details of the payee account to credit. Required if the payment agreement does not include payee details. Do not provide if the payment agreement already includes them. Identify the account with either <code>payeeLinkedBsb</code> and <code>payeeLinkedAccount</code>, or <code>payeeLinkedPayId</code> and <code>payeeLinkedPayIdType</code>.</p>",
              "modelRef": "#/components/schemas/PayeeDetailsDto",
              "customType": "PayeeDetailsDto",
              "schema": [
                {
                  "name": "payeeType",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "<p><strong>Optional.</strong> Type of payee. Possible values: <code>ORGN</code> (organisation) or <code>PERS</code> (person).</p>",
                  "example": "ORGN",
                  "default": "ORGN",
                  "pattern": "^(ORGN|PERS)$"
                },
                {
                  "name": "payeeLinkedBsb",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "<p><strong>Conditional.</strong> BSB of the payee account. Required if <code>payeeLinkedPayId</code> and <code>payeeLinkedPayIdType</code> are not provided. Accepted formats: <code>999-999</code> or <code>999999</code>.</p>",
                  "example": "062-000",
                  "default": "062-000",
                  "pattern": "^[0-9]{3}-?[0-9]{3}$"
                },
                {
                  "name": "payeeLinkedAccount",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "<p><strong>Conditional.</strong> Account number of the payee account, up to 28 characters. Required if <code>payeeLinkedPayId</code> and <code>payeeLinkedPayIdType</code> are not provided. Cannot be all zeros or spaces.</p>",
                  "example": "12345678",
                  "default": "12345678",
                  "maxLength": 28,
                  "pattern": "^[0-9A-Za-z -]{1,28}$"
                },
                {
                  "name": "payeeLinkedPayId",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "<p><strong>Conditional.</strong> PayID of the payee: an email address, phone number, ABN, ACN or organisation ID. Required if <code>payeeLinkedBsb</code> and <code>payeeLinkedAccount</code> are not provided. The required format depends on <code>payeeLinkedPayIdType</code>.</p>",
                  "example": "payments@example.com",
                  "default": "payments@example.com",
                  "pattern": "^.{1,256}$"
                },
                {
                  "name": "payeeLinkedPayIdType",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "<p><strong>Conditional.</strong> Type of PayID provided in <code>payeeLinkedPayId</code>. Required if <code>payeeLinkedBsb</code> and <code>payeeLinkedAccount</code> are not provided. Possible values: <code>PhoneNumber</code>, <code>Email</code>, <code>ABN</code>, <code>ACN</code> or <code>OrganisationId</code>.</p>",
                  "example": "Email",
                  "default": "Email",
                  "pattern": "^(PhoneNumber|Email|ABN|ACN|OrganisationId)$"
                },
                {
                  "name": "payeeAccountName",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "<p><strong>Conditional.</strong> Name of the payee bank account, 1 to 140 characters. Required if crediting a PayID. Can only be provided if crediting an external BSB, not a Monoova account.</p>",
                  "example": "ABC Corp Pty Ltd",
                  "default": "ABC Corp Pty Ltd",
                  "minLength": 1,
                  "maxLength": 140,
                  "pattern": "^[ -~]{1,140}$"
                },
                {
                  "name": "ultimatePayee",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "<p><strong>Conditional.</strong> Name by which the payee is known and which is usually used to identify the payee, 1 to 140 characters. Can only be provided if crediting an external BSB, not a Monoova account.</p>",
                  "example": "ABC Corp",
                  "default": "ABC Corp",
                  "minLength": 1,
                  "maxLength": 140,
                  "pattern": "^[ -~]{1,140}$"
                }
              ]
            },
            {
              "name": "paymentDetails",
              "kind": "required",
              "type": "object",
              "description": "Details of the payment to initiate.",
              "modelRef": "#/components/schemas/PaymentInitiationDetailsDto",
              "customType": "PaymentInitiationDetailsDto",
              "schema": [
                {
                  "name": "amount",
                  "kind": "required",
                  "type": "string",
                  "description": "<p>Amount to be transferred, in AUD, with up to 2 decimal places. Must be at least 0.01.</p>",
                  "example": "10.00",
                  "default": "10.00",
                  "pattern": "^[0-9]{1,16}(\\.[0-9]{1,2})?$"
                },
                {
                  "name": "isLastPayment",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "<p><strong>Optional.</strong> Set to <code>true</code> to indicate that this is the last payment initiation request for the payment agreement. Possible values: <code>true</code> or <code>false</code>.</p>",
                  "example": "false",
                  "default": "false",
                  "pattern": "^(true|false)$"
                },
                {
                  "name": "lodgementReference",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "<p><strong>Optional.</strong> Unique reference, as assigned by the creditor, to unambiguously refer to the payment transaction. 1 to 280 characters.</p>",
                  "example": "BCorp PIR 001",
                  "default": "BCorp PIR 001",
                  "minLength": 1,
                  "maxLength": 280,
                  "pattern": "^.{1,280}$"
                },
                {
                  "name": "uniqueSuperAnnuationCode",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "<p><strong>Conditional.</strong> Name of the identification scheme, in free text, 1 to 35 characters. Required if <code>uniqueSuperAnnuationIdentification</code> is provided.</p>",
                  "example": "USI",
                  "default": "USI",
                  "pattern": "^[ -~]{1,35}$"
                },
                {
                  "name": "uniqueSuperAnnuationIdentification",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "<p><strong>Conditional.</strong> Identification assigned by an institution, 1 to 35 characters. Required if <code>uniqueSuperAnnuationCode</code> is provided.</p>",
                  "example": "ABC0001AU",
                  "default": "ABC0001AU",
                  "pattern": "^[ -~]{1,35}$"
                }
              ]
            }
          ],
          "modelRef": "#/components/schemas/InitiateMandatePaymentDto",
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "BearerAuth",
          "name": "BearerAuth",
          "kind": "optional",
          "type": "http",
          "description": "<p>To authenticate using bearer authentication, generate a bearer token and pass it in the Authorization header. Tokens are valid for 24 hours, so you need to generate a new token every 24 hours.</p>",
          "scheme": "bearer"
        }
      ],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "<p>OK. The request was accepted for background processing. Use the returned <code>uniqueRequestId</code> to check its status.</p>",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "Confirmation that the asynchronous request was accepted for processing.",
            "customType": "AsyncResponse",
            "schema": [
              {
                "name": "traceId",
                "kind": "optional",
                "type": "string",
                "nullable": true,
                "description": "Unique ID for logging.",
                "example": "ac819ad0-c3ee-44f9-964a-34a0a5ff5a24",
                "default": "ac819ad0-c3ee-44f9-964a-34a0a5ff5a24",
                "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
              },
              {
                "name": "uniqueRequestId",
                "kind": "optional",
                "type": "string",
                "nullable": true,
                "description": "<p>Server-generated unique ID of the request. Use it with Get Async Payment Instruction Request Status to check the progress of the request.</p>",
                "example": "595a3202-e9aa-406e-a2a3-5efb6ca8b72a",
                "default": "595a3202-e9aa-406e-a2a3-5efb6ca8b72a",
                "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
              }
            ],
            "modelRef": "#/components/schemas/AsyncResponse",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "400",
        "description": "<p>Bad Request. The request is invalid. Check <code>errors</code> for details.</p>",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "Details of the errors returned when a request fails.",
            "customType": "ErrorResponse",
            "schema": [
              {
                "name": "traceId",
                "kind": "optional",
                "type": "string",
                "nullable": true,
                "description": "Unique ID for logging.",
                "example": "4ea61012-2d9b-413d-a5b4-90ad69a68741",
                "default": "4ea61012-2d9b-413d-a5b4-90ad69a68741",
                "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
              },
              {
                "name": "errors",
                "kind": "optional",
                "type": "array",
                "nullable": true,
                "description": "List of errors that occurred while processing the request.",
                "modelRef": "#/components/schemas/ErrorDto",
                "customType": "ErrorDto[]",
                "schema": [
                  {
                    "name": "errorCode",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "<p>Monoova error code. For the full list of codes and their meanings, see <a href=\"https://developer.monoova.com/payto-status-and-error-codes\" target=\"_blank\">PayTo Status and Error Codes</a>.</p>",
                    "example": "PAS_PMT_UID_REQUIRED",
                    "default": "PAS_PMT_UID_REQUIRED",
                    "pattern": "^[A-Z0-9_]{1,64}$"
                  },
                  {
                    "name": "errorMessage",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "<p>Detailed description of the error, which may include information from the request.</p>",
                    "example": "paymentInitiationUID required",
                    "default": "paymentInitiationUID required",
                    "pattern": "^.+$"
                  }
                ]
              }
            ],
            "modelRef": "#/components/schemas/ErrorResponse",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "401",
        "description": "<p>Unauthorized. The bearer token is missing, invalid or expired.</p>",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "403",
        "description": "Forbidden. Your account is not permitted to perform this operation. Contact Monoova to configure access.",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "Details of the errors returned when a request fails.",
            "customType": "ErrorResponse",
            "schema": [
              {
                "name": "traceId",
                "kind": "optional",
                "type": "string",
                "nullable": true,
                "description": "Unique ID for logging.",
                "example": "4ea61012-2d9b-413d-a5b4-90ad69a68741",
                "default": "4ea61012-2d9b-413d-a5b4-90ad69a68741",
                "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
              },
              {
                "name": "errors",
                "kind": "optional",
                "type": "array",
                "nullable": true,
                "description": "List of errors that occurred while processing the request.",
                "modelRef": "#/components/schemas/ErrorDto",
                "customType": "ErrorDto[]",
                "schema": [
                  {
                    "name": "errorCode",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "<p>Monoova error code. For the full list of codes and their meanings, see <a href=\"https://developer.monoova.com/payto-status-and-error-codes\" target=\"_blank\">PayTo Status and Error Codes</a>.</p>",
                    "example": "PAS_PMT_UID_REQUIRED",
                    "default": "PAS_PMT_UID_REQUIRED",
                    "pattern": "^[A-Z0-9_]{1,64}$"
                  },
                  {
                    "name": "errorMessage",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "<p>Detailed description of the error, which may include information from the request.</p>",
                    "example": "paymentInitiationUID required",
                    "default": "paymentInitiationUID required",
                    "pattern": "^.+$"
                  }
                ]
              }
            ],
            "modelRef": "#/components/schemas/ErrorResponse",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "404",
        "description": "Not Found. The requested resource was not found.",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "Details of the errors returned when a request fails.",
            "customType": "ErrorResponse",
            "schema": [
              {
                "name": "traceId",
                "kind": "optional",
                "type": "string",
                "nullable": true,
                "description": "Unique ID for logging.",
                "example": "4ea61012-2d9b-413d-a5b4-90ad69a68741",
                "default": "4ea61012-2d9b-413d-a5b4-90ad69a68741",
                "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
              },
              {
                "name": "errors",
                "kind": "optional",
                "type": "array",
                "nullable": true,
                "description": "List of errors that occurred while processing the request.",
                "modelRef": "#/components/schemas/ErrorDto",
                "customType": "ErrorDto[]",
                "schema": [
                  {
                    "name": "errorCode",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "<p>Monoova error code. For the full list of codes and their meanings, see <a href=\"https://developer.monoova.com/payto-status-and-error-codes\" target=\"_blank\">PayTo Status and Error Codes</a>.</p>",
                    "example": "PAS_PMT_UID_REQUIRED",
                    "default": "PAS_PMT_UID_REQUIRED",
                    "pattern": "^[A-Z0-9_]{1,64}$"
                  },
                  {
                    "name": "errorMessage",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "<p>Detailed description of the error, which may include information from the request.</p>",
                    "example": "paymentInitiationUID required",
                    "default": "paymentInitiationUID required",
                    "pattern": "^.+$"
                  }
                ]
              }
            ],
            "modelRef": "#/components/schemas/ErrorResponse",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "500",
        "description": "Internal Server Error. An unexpected error occurred. Try again later and contact Monoova support if the problem persists.",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "Details of the errors returned when a request fails.",
            "customType": "ErrorResponse",
            "schema": [
              {
                "name": "traceId",
                "kind": "optional",
                "type": "string",
                "nullable": true,
                "description": "Unique ID for logging.",
                "example": "4ea61012-2d9b-413d-a5b4-90ad69a68741",
                "default": "4ea61012-2d9b-413d-a5b4-90ad69a68741",
                "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
              },
              {
                "name": "errors",
                "kind": "optional",
                "type": "array",
                "nullable": true,
                "description": "List of errors that occurred while processing the request.",
                "modelRef": "#/components/schemas/ErrorDto",
                "customType": "ErrorDto[]",
                "schema": [
                  {
                    "name": "errorCode",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "<p>Monoova error code. For the full list of codes and their meanings, see <a href=\"https://developer.monoova.com/payto-status-and-error-codes\" target=\"_blank\">PayTo Status and Error Codes</a>.</p>",
                    "example": "PAS_PMT_UID_REQUIRED",
                    "default": "PAS_PMT_UID_REQUIRED",
                    "pattern": "^[A-Z0-9_]{1,64}$"
                  },
                  {
                    "name": "errorMessage",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "<p>Detailed description of the error, which may include information from the request.</p>",
                    "example": "paymentInitiationUID required",
                    "default": "paymentInitiationUID required",
                    "pattern": "^.+$"
                  }
                ]
              }
            ],
            "modelRef": "#/components/schemas/ErrorResponse",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "502",
        "description": "<p>Bad Gateway. An upstream service, such as the NPP gateway, returned an error or no response.</p>",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "Details of the errors returned when a request fails.",
            "customType": "ErrorResponse",
            "schema": [
              {
                "name": "traceId",
                "kind": "optional",
                "type": "string",
                "nullable": true,
                "description": "Unique ID for logging.",
                "example": "4ea61012-2d9b-413d-a5b4-90ad69a68741",
                "default": "4ea61012-2d9b-413d-a5b4-90ad69a68741",
                "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
              },
              {
                "name": "errors",
                "kind": "optional",
                "type": "array",
                "nullable": true,
                "description": "List of errors that occurred while processing the request.",
                "modelRef": "#/components/schemas/ErrorDto",
                "customType": "ErrorDto[]",
                "schema": [
                  {
                    "name": "errorCode",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "<p>Monoova error code. For the full list of codes and their meanings, see <a href=\"https://developer.monoova.com/payto-status-and-error-codes\" target=\"_blank\">PayTo Status and Error Codes</a>.</p>",
                    "example": "PAS_PMT_UID_REQUIRED",
                    "default": "PAS_PMT_UID_REQUIRED",
                    "pattern": "^[A-Z0-9_]{1,64}$"
                  },
                  {
                    "name": "errorMessage",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "<p>Detailed description of the error, which may include information from the request.</p>",
                    "example": "paymentInitiationUID required",
                    "default": "paymentInitiationUID required",
                    "pattern": "^.+$"
                  }
                ]
              }
            ],
            "modelRef": "#/components/schemas/ErrorResponse",
            "isExpanded": true
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "example-0-curl",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url https://sand-api.monoova.com/au/payto/pas-v1/PaymentInstructionAsync \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --data-raw '{\n     \"paymentAgreementUID\": \"BCORP123456\",\n     \"paymentInitiationUID\": \"BCORP00000001\",\n     \"payeeDetails\": {\n     \"payeeType\": \"ORGN\",\n     \"payeeLinkedBsb\": \"062-000\",\n     \"payeeLinkedAccount\": \"12345678\",\n     \"payeeLinkedPayId\": \"payments@example.com\",\n     \"payeeLinkedPayIdType\": \"Email\",\n     \"payeeAccountName\": \"ABC Corp Pty Ltd\",\n     \"ultimatePayee\": \"ABC Corp\"\n     },\n     \"paymentDetails\": {\n     \"amount\": \"10.00\",\n     \"isLastPayment\": \"false\",\n     \"lodgementReference\": \"BCorp PIR 001\",\n     \"uniqueSuperAnnuationCode\": \"USI\",\n     \"uniqueSuperAnnuationIdentification\": \"ABC0001AU\"\n     }\n     }'"
        },
        {
          "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 raw = JSON.stringify({\n   \"paymentAgreementUID\": \"BCORP123456\",\n   \"paymentInitiationUID\": \"BCORP00000001\",\n   \"payeeDetails\": {\n      \"payeeType\": \"ORGN\",\n      \"payeeLinkedBsb\": \"062-000\",\n      \"payeeLinkedAccount\": \"12345678\",\n      \"payeeLinkedPayId\": \"payments@example.com\",\n      \"payeeLinkedPayIdType\": \"Email\",\n      \"payeeAccountName\": \"ABC Corp Pty Ltd\",\n      \"ultimatePayee\": \"ABC Corp\"\n   },\n   \"paymentDetails\": {\n      \"amount\": \"10.00\",\n      \"isLastPayment\": \"false\",\n      \"lodgementReference\": \"BCorp PIR 001\",\n      \"uniqueSuperAnnuationCode\": \"USI\",\n      \"uniqueSuperAnnuationIdentification\": \"ABC0001AU\"\n   }\n});\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"https://sand-api.monoova.com/au/payto/pas-v1/PaymentInstructionAsync\", 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://sand-api.monoova.com/au/payto/pas-v1/PaymentInstructionAsync\")\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   \"paymentAgreementUID\": \"BCORP123456\",\n   \"paymentInitiationUID\": \"BCORP00000001\",\n   \"payeeDetails\": {\n      \"payeeType\": \"ORGN\",\n      \"payeeLinkedBsb\": \"062-000\",\n      \"payeeLinkedAccount\": \"12345678\",\n      \"payeeLinkedPayId\": \"payments@example.com\",\n      \"payeeLinkedPayIdType\": \"Email\",\n      \"payeeAccountName\": \"ABC Corp Pty Ltd\",\n      \"ultimatePayee\": \"ABC Corp\"\n   },\n   \"paymentDetails\": {\n      \"amount\": \"10.00\",\n      \"isLastPayment\": \"false\",\n      \"lodgementReference\": \"BCorp PIR 001\",\n      \"uniqueSuperAnnuationCode\": \"USI\",\n      \"uniqueSuperAnnuationIdentification\": \"ABC0001AU\"\n   }\n})\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://sand-api.monoova.com/au/payto/pas-v1/PaymentInstructionAsync\"\n\npayload = json.dumps({\n   \"paymentAgreementUID\": \"BCORP123456\",\n   \"paymentInitiationUID\": \"BCORP00000001\",\n   \"payeeDetails\": {\n      \"payeeType\": \"ORGN\",\n      \"payeeLinkedBsb\": \"062-000\",\n      \"payeeLinkedAccount\": \"12345678\",\n      \"payeeLinkedPayId\": \"payments@example.com\",\n      \"payeeLinkedPayIdType\": \"Email\",\n      \"payeeAccountName\": \"ABC Corp Pty Ltd\",\n      \"ultimatePayee\": \"ABC Corp\"\n   },\n   \"paymentDetails\": {\n      \"amount\": \"10.00\",\n      \"isLastPayment\": \"false\",\n      \"lodgementReference\": \"BCorp PIR 001\",\n      \"uniqueSuperAnnuationCode\": \"USI\",\n      \"uniqueSuperAnnuationIdentification\": \"ABC0001AU\"\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": "example-0-curl"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-200",
          "language": "200",
          "code": "// OK. The request was accepted for background processing. Use the returned uniqueRequestId to check its status.\n{\n  \"traceId\": \"ac819ad0-c3ee-44f9-964a-34a0a5ff5a24\",\n  \"uniqueRequestId\": \"595a3202-e9aa-406e-a2a3-5efb6ca8b72a\"\n}"
        },
        {
          "id": "response-1-400",
          "language": "400",
          "code": "// Bad Request. The request is invalid. Check errors for details.\n{\n  \"traceId\": \"4ea61012-2d9b-413d-a5b4-90ad69a68741\",\n  \"errors\": [\n    {\n      \"errorCode\": \"PAS_PMT_UID_REQUIRED\",\n      \"errorMessage\": \"paymentInitiationUID required\"\n    }\n  ]\n}"
        },
        {
          "id": "response-2-401",
          "language": "401",
          "code": "// Unauthorized. The bearer token is missing, invalid or expired.\n"
        },
        {
          "id": "response-3-403",
          "language": "403",
          "code": "// Forbidden. Your account is not permitted to perform this operation. Contact Monoova to configure access.\n{\n  \"traceId\": \"4ea61012-2d9b-413d-a5b4-90ad69a68741\",\n  \"errors\": [\n    {\n      \"errorCode\": \"PAS_PMT_UID_REQUIRED\",\n      \"errorMessage\": \"paymentInitiationUID required\"\n    }\n  ]\n}"
        },
        {
          "id": "response-4-404",
          "language": "404",
          "code": "// Not Found. The requested resource was not found.\n{\n  \"traceId\": \"4ea61012-2d9b-413d-a5b4-90ad69a68741\",\n  \"errors\": [\n    {\n      \"errorCode\": \"PAS_PMT_UID_REQUIRED\",\n      \"errorMessage\": \"paymentInitiationUID required\"\n    }\n  ]\n}"
        },
        {
          "id": "response-5-500",
          "language": "500",
          "code": "// Internal Server Error. An unexpected error occurred. Try again later and contact Monoova support if the problem persists.\n{\n  \"traceId\": \"4ea61012-2d9b-413d-a5b4-90ad69a68741\",\n  \"errors\": [\n    {\n      \"errorCode\": \"PAS_PMT_UID_REQUIRED\",\n      \"errorMessage\": \"paymentInitiationUID required\"\n    }\n  ]\n}"
        },
        {
          "id": "response-6-502",
          "language": "502",
          "code": "// Bad Gateway. An upstream service, such as the NPP gateway, returned an error or no response.\n{\n  \"traceId\": \"4ea61012-2d9b-413d-a5b4-90ad69a68741\",\n  \"errors\": [\n    {\n      \"errorCode\": \"PAS_PMT_UID_REQUIRED\",\n      \"errorMessage\": \"paymentInitiationUID required\"\n    }\n  ]\n}"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}