Create payment instruction
POST
https://sand-api.monoova.com/au/payto/pas-v1/PaymentInstruction
Body Parameters
- bodyInitiateMandatePaymentDtorequiredDescription
- paymentAgreementUIDstringrequiredExampleDescriptionDefaultBCORP123456Pattern^[a-zA-Z0-9_-]{1,35}$
- paymentInitiationUIDstringrequiredExampleDescriptionDefaultBCORP00000001Pattern^[a-zA-Z0-9_-]{1,35}$
- payeeDetailsPayeeDetailsDtoDescription
- payeeTypestringExampleDescriptionDefaultORGNPattern^(ORGN|PERS)$
- payeeLinkedBsbstringExampleDescriptionDefault062-000Pattern^[0-9]{3}-?[0-9]{3}$
- payeeLinkedAccountstringExampleDescriptionDefault12345678Max Length28Pattern^[0-9A-Za-z -]{1,28}$
- payeeLinkedPayIdstringExampleDescriptionDefaultPattern^.{1,256}$
- payeeLinkedPayIdTypestringExampleDescriptionDefaultEmailPattern^(PhoneNumber|Email|ABN|ACN|OrganisationId)$
- payeeAccountNamestringExampleDescriptionDefaultABC Corp Pty LtdMin Length1Max Length140Pattern^[ -~]{1,140}$
- ultimatePayeestringExampleDescriptionDefaultABC CorpMin Length1Max Length140Pattern^[ -~]{1,140}$
- paymentDetailsPaymentInitiationDetailsDtorequiredDescription
- amountstringrequiredExampleDescriptionDefault10.00Pattern^[0-9]{1,16}(\.[0-9]{1,2})?$
- isLastPaymentstringExampleDescriptionDefaultfalsePattern^(true|false)$
- lodgementReferencestringExampleDescriptionDefaultBCorp PIR 001Min Length1Max Length280Pattern^.{1,280}$
- uniqueSuperAnnuationCodestringExampleDescriptionDefaultUSIPattern^[ -~]{1,35}$
- uniqueSuperAnnuationIdentificationstringExampleDescriptionDefaultABC0001AUPattern^[ -~]{1,35}$
Responses
200
- InitiateMandatePaymentResponseDtoDescription
- traceIdstringExampleDescriptionDefaultf3ae20c5-e400-4eab-8fb0-16e03c8481bePattern^[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}$
- paymentAgreementUIDstringExampleDescriptionDefaultBCORP123456Pattern^[a-zA-Z0-9_-]{1,35}$
- paymentInitiationUIDstringExampleDescriptionDefaultBCORP00000001Pattern^[a-zA-Z0-9_-]{1,35}$
- nppInstructionIdstringExampleDescriptionDefaultMOPYAUS1XXXI20241119004756058205270Pattern^[A-Za-z0-9]{1,35}$
- paymentInitiationStatusstringExampleDescriptionDefaultACSCPattern^(INPR|SENT|SAFD|ACCP|ACSP|ACSC|RJCT|RECV|UNDV)$
- paymentInitiationStatusDescriptionstringExampleDescriptionDefaultAccepted & SettledPattern^.+$
- statusReasonCodestringExampleDescriptionDefaultR002Pattern^R[0-9]{3}$
- statusReasonDescriptionstringExampleDescriptionDefaultAccount to be debited does not existPattern^.+$
- mmsIdstringExampleDescriptionDefaulted8569b5fd8616259d15b5b9a2d52bc0Pattern^[A-Za-z0-9]{1,35}$
400
- ErrorResponseDescription
- traceIdstringExampleDescriptionDefault4ea61012-2d9b-413d-a5b4-90ad69a68741Pattern^[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}$
- errorsErrorDto[]Description
- errorCodestringExampleDescriptionDefaultPAS_PMT_UID_REQUIREDPattern^[A-Z0-9_]{1,64}$
- errorMessagestringExampleDescriptionDefaultpaymentInitiationUID requiredPattern^.+$
401
403
- ErrorResponseDescription
- traceIdstringExampleDescriptionDefault4ea61012-2d9b-413d-a5b4-90ad69a68741Pattern^[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}$
- errorsErrorDto[]Description
- errorCodestringExampleDescriptionDefaultPAS_PMT_UID_REQUIREDPattern^[A-Z0-9_]{1,64}$
- errorMessagestringExampleDescriptionDefaultpaymentInitiationUID requiredPattern^.+$
404
- ErrorResponseDescription
- traceIdstringExampleDescriptionDefault4ea61012-2d9b-413d-a5b4-90ad69a68741Pattern^[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}$
- errorsErrorDto[]Description
- errorCodestringExampleDescriptionDefaultPAS_PMT_UID_REQUIREDPattern^[A-Z0-9_]{1,64}$
- errorMessagestringExampleDescriptionDefaultpaymentInitiationUID requiredPattern^.+$
500
- ErrorResponseDescription
- traceIdstringExampleDescriptionDefault4ea61012-2d9b-413d-a5b4-90ad69a68741Pattern^[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}$
- errorsErrorDto[]Description
- errorCodestringExampleDescriptionDefaultPAS_PMT_UID_REQUIREDPattern^[A-Z0-9_]{1,64}$
- errorMessagestringExampleDescriptionDefaultpaymentInitiationUID requiredPattern^.+$
502
- ErrorResponseDescription
- traceIdstringExampleDescriptionDefault4ea61012-2d9b-413d-a5b4-90ad69a68741Pattern^[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}$
- errorsErrorDto[]Description
- errorCodestringExampleDescriptionDefaultPAS_PMT_UID_REQUIREDPattern^[A-Z0-9_]{1,64}$
- errorMessagestringExampleDescriptionDefaultpaymentInitiationUID requiredPattern^.+$
curl
curl --request POST \
--url https://sand-api.monoova.com/au/payto/pas-v1/PaymentInstruction \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data-raw '{
"paymentAgreementUID": "BCORP123456",
"paymentInitiationUID": "BCORP00000001",
"payeeDetails": {
"payeeType": "ORGN",
"payeeLinkedBsb": "062-000",
"payeeLinkedAccount": "12345678",
"payeeLinkedPayId": "[email protected]",
"payeeLinkedPayIdType": "Email",
"payeeAccountName": "ABC Corp Pty Ltd",
"ultimatePayee": "ABC Corp"
},
"paymentDetails": {
"amount": "10.00",
"isLastPayment": "false",
"lodgementReference": "BCorp PIR 001",
"uniqueSuperAnnuationCode": "USI",
"uniqueSuperAnnuationIdentification": "ABC0001AU"
}
}'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
var raw = JSON.stringify({
"paymentAgreementUID": "BCORP123456",
"paymentInitiationUID": "BCORP00000001",
"payeeDetails": {
"payeeType": "ORGN",
"payeeLinkedBsb": "062-000",
"payeeLinkedAccount": "12345678",
"payeeLinkedPayId": "[email protected]",
"payeeLinkedPayIdType": "Email",
"payeeAccountName": "ABC Corp Pty Ltd",
"ultimatePayee": "ABC Corp"
},
"paymentDetails": {
"amount": "10.00",
"isLastPayment": "false",
"lodgementReference": "BCorp PIR 001",
"uniqueSuperAnnuationCode": "USI",
"uniqueSuperAnnuationIdentification": "ABC0001AU"
}
});
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("https://sand-api.monoova.com/au/payto/pas-v1/PaymentInstruction", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "json"
require "net/http"
url = URI("https://sand-api.monoova.com/au/payto/pas-v1/PaymentInstruction")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Post.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
request.body = JSON.dump({
"paymentAgreementUID": "BCORP123456",
"paymentInitiationUID": "BCORP00000001",
"payeeDetails": {
"payeeType": "ORGN",
"payeeLinkedBsb": "062-000",
"payeeLinkedAccount": "12345678",
"payeeLinkedPayId": "[email protected]",
"payeeLinkedPayIdType": "Email",
"payeeAccountName": "ABC Corp Pty Ltd",
"ultimatePayee": "ABC Corp"
},
"paymentDetails": {
"amount": "10.00",
"isLastPayment": "false",
"lodgementReference": "BCorp PIR 001",
"uniqueSuperAnnuationCode": "USI",
"uniqueSuperAnnuationIdentification": "ABC0001AU"
}
})
response = https.request(request)
puts response.read_body
python
import requests
import json
url = "https://sand-api.monoova.com/au/payto/pas-v1/PaymentInstruction"
payload = json.dumps({
"paymentAgreementUID": "BCORP123456",
"paymentInitiationUID": "BCORP00000001",
"payeeDetails": {
"payeeType": "ORGN",
"payeeLinkedBsb": "062-000",
"payeeLinkedAccount": "12345678",
"payeeLinkedPayId": "[email protected]",
"payeeLinkedPayIdType": "Email",
"payeeAccountName": "ABC Corp Pty Ltd",
"ultimatePayee": "ABC Corp"
},
"paymentDetails": {
"amount": "10.00",
"isLastPayment": "false",
"lodgementReference": "BCorp PIR 001",
"uniqueSuperAnnuationCode": "USI",
"uniqueSuperAnnuationIdentification": "ABC0001AU"
}
})
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
200
// OK. Returns the payment instruction and its current status.
{
"traceId": "f3ae20c5-e400-4eab-8fb0-16e03c8481be",
"paymentAgreementUID": "BCORP123456",
"paymentInitiationUID": "BCORP00000001",
"nppInstructionId": "MOPYAUS1XXXI20241119004756058205270",
"paymentInitiationStatus": "ACSC",
"paymentInitiationStatusDescription": "Accepted & Settled",
"statusReasonCode": "R002",
"statusReasonDescription": "Account to be debited does not exist",
"mmsId": "ed8569b5fd8616259d15b5b9a2d52bc0"
}400
// Bad Request. The request is invalid. Check errors for details.
{
"traceId": "4ea61012-2d9b-413d-a5b4-90ad69a68741",
"errors": [
{
"errorCode": "PAS_PMT_UID_REQUIRED",
"errorMessage": "paymentInitiationUID required"
}
]
}401
// Unauthorized. The bearer token is missing, invalid or expired.
403
// Forbidden. Your account is not permitted to perform this operation. Contact Monoova to configure access.
{
"traceId": "4ea61012-2d9b-413d-a5b4-90ad69a68741",
"errors": [
{
"errorCode": "PAS_PMT_UID_REQUIRED",
"errorMessage": "paymentInitiationUID required"
}
]
}404
// Not Found. No payment agreement was found with this paymentAgreementUID.
{
"traceId": "4ea61012-2d9b-413d-a5b4-90ad69a68741",
"errors": [
{
"errorCode": "PAS_PMT_UID_REQUIRED",
"errorMessage": "paymentInitiationUID required"
}
]
}500
// Internal Server Error. An unexpected error occurred. Try again later and contact Monoova support if the problem persists.
{
"traceId": "4ea61012-2d9b-413d-a5b4-90ad69a68741",
"errors": [
{
"errorCode": "PAS_PMT_UID_REQUIRED",
"errorMessage": "paymentInitiationUID required"
}
]
}502
// Bad Gateway. An upstream service, such as the NPP gateway, returned an error or no response.
{
"traceId": "4ea61012-2d9b-413d-a5b4-90ad69a68741",
"errors": [
{
"errorCode": "PAS_PMT_UID_REQUIRED",
"errorMessage": "paymentInitiationUID required"
}
]
}