Update an existing Webhook
POST
https://api.mpay.com.au/subscriptions/v1/update
Body Parameters
- bodysubscriptionUpdateRequest_V1required
- idstringrequiredExampleDescriptionDefault10241Pattern^[0-9]{1,10}$
- targetUrlstring<uri>ExampleDescriptionDefaulthttps://api.yourcompany.com/monoova/callbacksFormaturiPattern^https?://[^\s]+$
- subscriptionStatusstring<On | Off>ExampleDescriptionDefaultOnAllowedOnOffPattern^(On|Off)$
- securityTokenstringExampleDescriptionDefaultBasic Rjc1234567890jdGMS67890U78Pattern^[A-Za-z]+\s\S+$
Responses
200
- subscriptionUpdateResponse_V1
- idintegerExampleDescriptionDefault10241Pattern^[0-9]{1,10}$
- dateTimestringExampleDescriptionDefault2026-09-18T15:43:18.123Pattern^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?$
- eventNamestringExampleDescriptionDefaultNPPReceivePaymentPattern^(DirectDebitClearance|DirectEntryDishonour|InboundDirectCredit|InboundDirectCreditRejections|InboundDirectDebit|InboundRtgsImtStatus|InternationalNPPReceivePayment|InternationalNppPaymentReturn|InternationalNppPaymentStatus|MTPTransactionNotification|NPPCreditRejections|NPPReceivePayment|NppPaymentStatus|NppReturn|PayToReceivePayment|PendingInboundRtgsImt)$
- targetUrlstring<uri>ExampleDescriptionDefaulthttps://api.yourcompany.com/monoova/callbacksFormaturiPattern^https?://[^\s]+$
- durationMsintegerExampleDescriptionDefault96Pattern^[0-9]{1,7}$
- statusstringExampleDescriptionDefaultOkPattern^[A-Za-z]{2,30}$
- statusDescriptionstringExampleDescriptionDefaultOperation completed successfullyPattern^.{1,500}$
400
- errorResponseExample
{ "durationMs": 12, "status": "Error", "statusDescription": "Validation failed: targetUrl is required and must be a valid URL." }Description- durationMsintegerExampleDescriptionDefault12Pattern^[0-9]{1,7}$
- statusstringExampleDescriptionDefaultErrorPattern^[A-Za-z]{2,30}$
- statusDescriptionstringExampleDescriptionDefaultValidation failed: targetUrl is required and must be a valid URL.Pattern^.{1,500}$
401
- errorResponseExample
{ "durationMs": 4, "status": "Unauthorized", "statusDescription": "Authentication failed. Check the API key supplied as the username." }Description- durationMsintegerExampleDescriptionDefault12Pattern^[0-9]{1,7}$
- statusstringExampleDescriptionDefaultErrorPattern^[A-Za-z]{2,30}$
- statusDescriptionstringExampleDescriptionDefaultValidation failed: targetUrl is required and must be a valid URL.Pattern^.{1,500}$
500
- errorResponseExample
{ "durationMs": 5312, "status": "Exception", "statusDescription": "An unexpected error occurred while processing the request. Please contact Monoova support." }Description- durationMsintegerExampleDescriptionDefault12Pattern^[0-9]{1,7}$
- statusstringExampleDescriptionDefaultErrorPattern^[A-Za-z]{2,30}$
- statusDescriptionstringExampleDescriptionDefaultValidation failed: targetUrl is required and must be a valid URL.Pattern^.{1,500}$
curl
curl --request POST \
--url https://api.mpay.com.au/subscriptions/v1/update \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"id": "10241",
"targetUrl": "https://api.yourcompany.com/monoova/callbacks",
"subscriptionStatus": "On",
"securityToken": "Basic Rjc1234567890jdGMS67890U78"
}'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
var raw = JSON.stringify({
"id": "10241",
"targetUrl": "https://api.yourcompany.com/monoova/callbacks",
"subscriptionStatus": "On",
"securityToken": "Basic Rjc1234567890jdGMS67890U78"
});
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("https://api.mpay.com.au/subscriptions/v1/update", 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://api.mpay.com.au/subscriptions/v1/update")
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({
"id": "10241",
"targetUrl": "https://api.yourcompany.com/monoova/callbacks",
"subscriptionStatus": "On",
"securityToken": "Basic Rjc1234567890jdGMS67890U78"
})
response = https.request(request)
puts response.read_body
python
import requests
import json
url = "https://api.mpay.com.au/subscriptions/v1/update"
payload = json.dumps({
"id": "10241",
"targetUrl": "https://api.yourcompany.com/monoova/callbacks",
"subscriptionStatus": "On",
"securityToken": "Basic Rjc1234567890jdGMS67890U78"
})
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
200
// Success. The subscription was updated and its current details are returned.
{
"id": 10241,
"dateTime": "2026-09-18T15:43:18.123",
"eventName": "NPPReceivePayment",
"targetUrl": "https://api.yourcompany.com/monoova/callbacks",
"durationMs": 96,
"status": "Ok",
"statusDescription": "Operation completed successfully"
}400
// Bad request. The request could not be processed because one or more fields are missing, malformed, or failed validation. Check the statusDescription for the field at fault, correct it and retry.
{
"durationMs": 12,
"status": "Error",
"statusDescription": "Validation failed: targetUrl is required and must be a valid URL."
}401
// Unauthorized. The request did not include valid basic authentication credentials, or the API key supplied is inactive or not permitted to use this endpoint. Confirm the API key is passed as the basic authentication username and retry.
{
"durationMs": 12,
"status": "Error",
"statusDescription": "Validation failed: targetUrl is required and must be a valid URL."
}500
// Internal server error. An unexpected error occurred while processing the request. The request may not have been completed — do not assume the subscription changed. Retry the request and, if the error persists, contact Monoova support quoting the statusDescription.
{
"durationMs": 12,
"status": "Error",
"statusDescription": "Validation failed: targetUrl is required and must be a valid URL."
}