Subscribe to new Webhook
POST
https://api.mpay.com.au/subscriptions/v1/create
acceptstringGenerated from available response content types
bodyobject
200Success. The subscription was created and the details of the new subscription are returned.
400<p>Bad request. The request could not be processed because one or more fields are missing, malformed, or failed validation. Check the <code>statusDescription</code> for the field at fault, correct it and retry.</p>
401<p>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.</p>
500<p>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 <code>statusDescription</code>.</p>
curl --request POST \
--url https://api.mpay.com.au/subscriptions/v1/create \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"eventName": "NPPReceivePayment",
"targetUrl": "https://api.yourcompany.com/monoova/callbacks",
"subscriptionStatus": "On",
"securityToken": "Basic Rjc1234567890jdGMS67890U78"
}'