Webhooks
Delete the webhook endpoint
Removes your webhook endpoint. Melio stops sending deliveries.
DELETE
/
webhook
Delete the webhook endpoint
const options = {method: 'DELETE', headers: {'api-key': '<api-key>'}};
fetch('https://api.melio.com/v2/webhook', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.melio.com/v2/webhook"
headers = {"api-key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)curl --request DELETE \
--url https://api.melio.com/v2/webhook \
--header 'api-key: <api-key>'HttpResponse<String> response = Unirest.delete("https://api.melio.com/v2/webhook")
.header("api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.melio.com/v2/webhook")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["api-key"] = '<api-key>'
response = http.request(request)
puts response.read_bodypackage main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.melio.com/v2/webhook"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"error": {
"message": "<string>",
"details": {}
}
}Authorizations
Response
Deleted.
⌘I
Delete the webhook endpoint
const options = {method: 'DELETE', headers: {'api-key': '<api-key>'}};
fetch('https://api.melio.com/v2/webhook', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.melio.com/v2/webhook"
headers = {"api-key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)curl --request DELETE \
--url https://api.melio.com/v2/webhook \
--header 'api-key: <api-key>'HttpResponse<String> response = Unirest.delete("https://api.melio.com/v2/webhook")
.header("api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.melio.com/v2/webhook")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["api-key"] = '<api-key>'
response = http.request(request)
puts response.read_bodypackage main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.melio.com/v2/webhook"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"error": {
"message": "<string>",
"details": {}
}
}