Unsubscribe from an Existing Webhook
DELETE
https://api.mpay.com.au/subscriptions/v1/delete/{id}
Path Parameters
- idstringrequiredExampleDescriptionDefault10241Pattern^[0-9]{1,10}$
Responses
200
- subscriptionDeleteResponse_V1
- idintegerExampleDescriptionDefault10241Pattern^[0-9]{1,10}$
- dateTimestringExampleDescriptionDefault2026-09-18T16:02:05.000Pattern^\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]+$
- durationMsintegerExampleDescriptionDefault88Pattern^[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 DELETE \
--url https://api.mpay.com.au/subscriptions/v1/delete/{id} \
--header 'accept: application/json'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
var requestOptions = {
method: 'DELETE',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://api.mpay.com.au/subscriptions/v1/delete/{id}", 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/delete/{id}")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
response = https.request(request)
puts response.read_body
python
import requests
import json
url = "https://api.mpay.com.au/subscriptions/v1/delete/{id}"
payload = {}
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("DELETE", url, headers=headers, data=payload)
print(response.text)
200
// Success. The subscription was deleted and its final details are returned.
{
"id": 10241,
"dateTime": "2026-09-18T16:02:05.000",
"eventName": "NPPReceivePayment",
"targetUrl": "https://api.yourcompany.com/monoova/callbacks",
"durationMs": 88,
"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."
}