Bilateral Amendment
PATCH
https://beta-api.monoova.com/au/payto/pam-v1/PaymentAgreement/{paymentAgreementUID}/bilateral
Path Parameters
- paymentAgreementUIDstringrequiredExampleDescriptionDefaultMONPAG12345Pattern^[a-zA-Z0-9_-]{1,35}$
Body Parameters
- bodyMandateManager.Application.Common.Dtos.AmendBilateralDetailsDtorequiredDescription
- automaticRenewalbooleanDescriptionDefaultfalsePattern^(true|false)$
- endDatestringExampleDescriptionDefault2028-06-30Pattern^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$
- respondByTimestringExampleDescriptionDefault2026-12-28T17:00:00+11:00Pattern^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])T([01]\d|2[0-3]):[0-5]\d:[0-5]\d(\.\d{1,7})?(Z|[+-]([01]\d|2[0-3])(:?[0-5]\d)?)$
- paymentTermsMandateManager.Application.Common.Dtos.PaymentTermsDtoDescription
- numberOfTransactionsPermittedstringExampleDescriptionDefault1Pattern^([1-9][0-9]*|-)$
- frequencystringExampleDescriptionDefaultMNTHPattern^(ADHO|DAIL|FRTN|INDA|MIAN|MNTH|QURT|WEEK|YEAR)$
- pointInTimestringExampleDescriptionDefault15Max Length2Pattern^(0[1-9]|[12][0-9]|3[01]|-)$
- amountstringExampleDescriptionDefault50.00Pattern^(-|(?=.{1,19}$)(?=.*[0-9])[0-9]{0,18}(\.[0-9]{0,2})?)$
- maximumAmountstringExampleDescriptionDefault100.00Pattern^(-|(?=.{1,19}$)(?=.*[0-9])[0-9]{0,18}(\.[0-9]{0,2})?)$
- agreementTypestringExampleDescriptionDefaultVARIPattern^(BALN|FIXE|USGB|VARI)$
Responses
200
- MandateManager.Application.Common.Dtos.AmendBilateralDetailsResponseDescription
- traceIdstringExampleDescriptionDefault1dabfaa9-abe8-4d2d-a69a-b723079d84edPattern^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
- paymentAgreementUIDstringExampleDescriptionDefaultMONPAG12345Pattern^[a-zA-Z0-9_-]{1,35}$
- mmsIdstringExampleDescriptionDefaulta9ba56f64baa1dee9ac2d7f87c2621faPattern^[a-f0-9]{32}$
- actionIdentificationstringExampleDescriptionDefaulteea687ee114eae368ca066aa62bae488Pattern^[a-f0-9]{32}$
400
- MandateManager.Application.Common.Dtos.ErrorResponseExample
{ "traceId": "4ea61012-2d9b-413d-a5b4-90ad69a68741", "errors": [ { "errorCode": "PAM_AMEND_PENDING", "errorMessage": "Can not amend payment agreement with pending bilateral amend" } ] }Description- traceIdstringExampleDescriptionDefault4ea61012-2d9b-413d-a5b4-90ad69a68741Pattern^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
- errorsMandateManager.Application.Common.Dtos.ErrorDto[]Description
- errorCodestringExampleDescriptionDefaultPAM_STARTDATE_EARLYPattern^[A-Z]{3}_[A-Z0-9_]+$
- errorMessagestringExampleDescriptionDefaultpaymentDetails.startDate must be future datePattern^.+$
401
403
- MandateManager.Application.Common.Dtos.ErrorResponseExample
{ "traceId": "4ea61012-2d9b-413d-a5b4-90ad69a68741", "errors": [ { "errorCode": "PAM_FORBIDDEN_ERROR", "errorMessage": "Not allowed to amend payment agreement for account 6279059778044302" } ] }Description- traceIdstringExampleDescriptionDefault4ea61012-2d9b-413d-a5b4-90ad69a68741Pattern^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
- errorsMandateManager.Application.Common.Dtos.ErrorDto[]Description
- errorCodestringExampleDescriptionDefaultPAM_STARTDATE_EARLYPattern^[A-Z]{3}_[A-Z0-9_]+$
- errorMessagestringExampleDescriptionDefaultpaymentDetails.startDate must be future datePattern^.+$
404
- MandateManager.Application.Common.Dtos.ErrorResponseExample
{ "traceId": "4ea61012-2d9b-413d-a5b4-90ad69a68741", "errors": [ { "errorCode": "PAM_PAG_NOT_FOUND_ERROR", "errorMessage": "PaymentAgreement not found for PaymentAgreementUID MONPAG12345" } ] }Description- traceIdstringExampleDescriptionDefault4ea61012-2d9b-413d-a5b4-90ad69a68741Pattern^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
- errorsMandateManager.Application.Common.Dtos.ErrorDto[]Description
- errorCodestringExampleDescriptionDefaultPAM_STARTDATE_EARLYPattern^[A-Z]{3}_[A-Z0-9_]+$
- errorMessagestringExampleDescriptionDefaultpaymentDetails.startDate must be future datePattern^.+$
500
- MandateManager.Application.Common.Dtos.ErrorResponseExample
{ "traceId": "4ea61012-2d9b-413d-a5b4-90ad69a68741", "errors": [ { "errorCode": "PAM_UNEXPECTED_ERROR", "errorMessage": "Internal server error. Please contact Monoova support." } ] }Description- traceIdstringExampleDescriptionDefault4ea61012-2d9b-413d-a5b4-90ad69a68741Pattern^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
- errorsMandateManager.Application.Common.Dtos.ErrorDto[]Description
- errorCodestringExampleDescriptionDefaultPAM_STARTDATE_EARLYPattern^[A-Z]{3}_[A-Z0-9_]+$
- errorMessagestringExampleDescriptionDefaultpaymentDetails.startDate must be future datePattern^.+$
502
- MandateManager.Application.Common.Dtos.ErrorResponseExample
{ "traceId": "4ea61012-2d9b-413d-a5b4-90ad69a68741", "errors": [ { "errorCode": "PAM_NPP_GATEWAY_ERROR", "errorMessage": "Error returned from NPP gateway - service unavailable" } ] }Description- traceIdstringExampleDescriptionDefault4ea61012-2d9b-413d-a5b4-90ad69a68741Pattern^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
- errorsMandateManager.Application.Common.Dtos.ErrorDto[]Description
- errorCodestringExampleDescriptionDefaultPAM_STARTDATE_EARLYPattern^[A-Z]{3}_[A-Z0-9_]+$
- errorMessagestringExampleDescriptionDefaultpaymentDetails.startDate must be future datePattern^.+$
504
- MandateManager.Application.Common.Dtos.ErrorResponseExample
{ "traceId": "4ea61012-2d9b-413d-a5b4-90ad69a68741", "errors": [ { "errorCode": "PAM_NPP_GATEWAY_TIMEOUT", "errorMessage": "Timeout from NPP gateway" } ] }Description- traceIdstringExampleDescriptionDefault4ea61012-2d9b-413d-a5b4-90ad69a68741Pattern^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
- errorsMandateManager.Application.Common.Dtos.ErrorDto[]Description
- errorCodestringExampleDescriptionDefaultPAM_STARTDATE_EARLYPattern^[A-Z]{3}_[A-Z0-9_]+$
- errorMessagestringExampleDescriptionDefaultpaymentDetails.startDate must be future datePattern^.+$
curl
curl --request PATCH \
--url https://beta-api.monoova.com/au/payto/pam-v1/PaymentAgreement/{paymentAgreementUID}/bilateral \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"endDate": "2028-06-30",
"respondByTime": "2026-12-28T17:00:00+11:00",
"paymentTerms": {
"numberOfTransactionsPermitted": "1",
"frequency": "MNTH",
"pointInTime": "15",
"amount": "50.00",
"maximumAmount": "100.00",
"agreementType": "VARI"
}
}'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
var raw = JSON.stringify({
"endDate": "2028-06-30",
"respondByTime": "2026-12-28T17:00:00+11:00",
"paymentTerms": {
"numberOfTransactionsPermitted": "1",
"frequency": "MNTH",
"pointInTime": "15",
"amount": "50.00",
"maximumAmount": "100.00",
"agreementType": "VARI"
}
});
var requestOptions = {
method: 'PATCH',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("https://beta-api.monoova.com/au/payto/pam-v1/PaymentAgreement/{paymentAgreementUID}/bilateral", 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://beta-api.monoova.com/au/payto/pam-v1/PaymentAgreement/{paymentAgreementUID}/bilateral")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
request.body = JSON.dump({
"endDate": "2028-06-30",
"respondByTime": "2026-12-28T17:00:00+11:00",
"paymentTerms": {
"numberOfTransactionsPermitted": "1",
"frequency": "MNTH",
"pointInTime": "15",
"amount": "50.00",
"maximumAmount": "100.00",
"agreementType": "VARI"
}
})
response = https.request(request)
puts response.read_body
python
import requests
import json
url = "https://beta-api.monoova.com/au/payto/pam-v1/PaymentAgreement/{paymentAgreementUID}/bilateral"
payload = json.dumps({
"endDate": "2028-06-30",
"respondByTime": "2026-12-28T17:00:00+11:00",
"paymentTerms": {
"numberOfTransactionsPermitted": "1",
"frequency": "MNTH",
"pointInTime": "15",
"amount": "50.00",
"maximumAmount": "100.00",
"agreementType": "VARI"
}
})
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("PATCH", url, headers=headers, data=payload)
print(response.text)
200
// OK. The amendment was submitted and is pending the payer's approval.
{
"traceId": "1dabfaa9-abe8-4d2d-a69a-b723079d84ed",
"paymentAgreementUID": "MONPAG12345",
"mmsId": "a9ba56f64baa1dee9ac2d7f87c2621fa",
"actionIdentification": "eea687ee114eae368ca066aa62bae488"
}400
// Bad Request. The request failed validation. See errors for details.
{
"traceId": "4ea61012-2d9b-413d-a5b4-90ad69a68741",
"errors": [
{
"errorCode": "PAM_STARTDATE_EARLY",
"errorMessage": "paymentDetails.startDate must be future date"
}
]
}401
// Unauthorized. The bearer token is missing, invalid or expired. Bearer tokens are valid for 24 hours; generate a new token and retry.
403
// Forbidden. Your account is not permitted to perform this operation.
{
"traceId": "4ea61012-2d9b-413d-a5b4-90ad69a68741",
"errors": [
{
"errorCode": "PAM_STARTDATE_EARLY",
"errorMessage": "paymentDetails.startDate must be future date"
}
]
}404
// Not Found. The payment agreement could not be found.
{
"traceId": "4ea61012-2d9b-413d-a5b4-90ad69a68741",
"errors": [
{
"errorCode": "PAM_STARTDATE_EARLY",
"errorMessage": "paymentDetails.startDate must be future date"
}
]
}500
// Internal Server Error. An unexpected error occurred. Contact Monoova support if the problem persists.
{
"traceId": "4ea61012-2d9b-413d-a5b4-90ad69a68741",
"errors": [
{
"errorCode": "PAM_STARTDATE_EARLY",
"errorMessage": "paymentDetails.startDate must be future date"
}
]
}502
// Bad Gateway. An upstream service, such as the NPP gateway, returned an error. Retry the request later.
{
"traceId": "4ea61012-2d9b-413d-a5b4-90ad69a68741",
"errors": [
{
"errorCode": "PAM_STARTDATE_EARLY",
"errorMessage": "paymentDetails.startDate must be future date"
}
]
}504
// Gateway Timeout. An upstream service, such as the NPP gateway, did not respond in time. Retry the request later.
{
"traceId": "4ea61012-2d9b-413d-a5b4-90ad69a68741",
"errors": [
{
"errorCode": "PAM_STARTDATE_EARLY",
"errorMessage": "paymentDetails.startDate must be future date"
}
]
}