List webhook endpoints
curl --request GET \
--url https://api.fintoc.com/v1/webhook_endpoints \
--header 'Authorization: <api-key>'import requests
url = "https://api.fintoc.com/v1/webhook_endpoints"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.fintoc.com/v1/webhook_endpoints', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.fintoc.com/v1/webhook_endpoints",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.fintoc.com/v1/webhook_endpoints"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.fintoc.com/v1/webhook_endpoints")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fintoc.com/v1/webhook_endpoints")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"id": "we_M6yrvOepCe3Rqp8B",
"object": "webhook_endpoint",
"created_at": "2021-05-17T17:04:10.284Z",
"description": "Webhook endpoint for payment events.",
"enabled_events": [
"link.credentials_changed"
],
"mode": "live",
"name": "My webhook endpoint",
"secret": null,
"status": "enabled",
"url": "https://my.webhook.endpoint"
}
]{
"error": {
"type": "authentication_error",
"code": "invalid_api_key",
"message": "Invalid API Key: invalid-*oken"
}
}Webhook endpoints
List webhook endpoints
Lists the webhook endpoints of your organization for the live or test mode of the API key used. Deleted endpoints are not returned, and secret is always null outside creation.
GET
/
v1
/
webhook_endpoints
List webhook endpoints
curl --request GET \
--url https://api.fintoc.com/v1/webhook_endpoints \
--header 'Authorization: <api-key>'import requests
url = "https://api.fintoc.com/v1/webhook_endpoints"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.fintoc.com/v1/webhook_endpoints', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.fintoc.com/v1/webhook_endpoints",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.fintoc.com/v1/webhook_endpoints"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.fintoc.com/v1/webhook_endpoints")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fintoc.com/v1/webhook_endpoints")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"id": "we_M6yrvOepCe3Rqp8B",
"object": "webhook_endpoint",
"created_at": "2021-05-17T17:04:10.284Z",
"description": "Webhook endpoint for payment events.",
"enabled_events": [
"link.credentials_changed"
],
"mode": "live",
"name": "My webhook endpoint",
"secret": null,
"status": "enabled",
"url": "https://my.webhook.endpoint"
}
]{
"error": {
"type": "authentication_error",
"code": "invalid_api_key",
"message": "Invalid API Key: invalid-*oken"
}
}Respuesta
List of webhook endpoints for the current mode. Deleted endpoints are excluded and secret is always null.
Event types that trigger a notification to this endpoint.
Opciones disponibles:
link.credentials_changed, link.refresh_intent.succeeded, link.refresh_intent.failed, account.refresh_intent.succeeded, account.refresh_intent.failed, account.refresh_intent.rejected, payment_intent.succeeded, payment_intent.rejected, payment_intent.failed, payment_intent.pending, payment_intent.expired, subscription.payment_method_updated, subscription.payment_method_update_failed, subscription_intent.succeeded, subscription_intent.rejected, subscription_intent.failed, charge.succeeded, charge.failed, account.refresh_intent.movements_removed, account.refresh_intent.movements_modified, refund.succeeded, refund.failed, refund.returned, refund.in_progress, payout.created, payout.canceled, payout.succeeded, payout.returned, checkout_session.finished, checkout_session.expired, transfer.inbound.succeeded, transfer.outbound.succeeded, transfer.outbound.partially_succeeded, transfer.outbound.failed, transfer.outbound.returned, transfer.outbound.reversed, transfer.inbound.returned, transfer.inbound.return_failed, account_number.deleted, account_verification.succeeded, account_verification.failed, transfer.inbound.rejected, transfer.inbound.reversed, payment_method.activated, payment_method.canceled, invoice.created, invoice.finalized, invoice.finalization_failed, invoice.paid, invoice.payment_created, invoice.payment_failed, invoice.payment_succeeded, invoice.split_redirected, invoice.upcoming, invoice.voided, invoice.marked_uncollectible, dispute.waiting_documentation, dispute.in_review, dispute.won, dispute.lost, dispute.expired, entity.onboarding.approved, entity.onboarding.rejected, transfer_batch.in_progress, transfer_batch.rejected, transfer_batch.expired, transfer_batch.succeeded, transfer_batch.partially_succeeded, transfer_batch.failed ¿Esta página le ayudó?