Create Subscription
post
https://api.synapsefi.com
/v3.1/subscriptions
Create Subscription
Subscription Limits
Only one subscription URL can be enabled per scope. Previous subscriptions for the same scope will be overwritten. We recommend disabling subscriptions that you do not wish to use any longer to avoid confusion.
Originating IP Address
We send webhooks from the originating IP address:
50.112.48.126
, 44.238.232.80
or 35.85.83.81
.Go to Subscription Object Details to see all the required and optional body parameters allowed when creating a subscription.
HTTP
Python
JavaScript
Ruby
PHP
Go
POST /v3.1/subscriptions HTTP/1.1
Host: uat-api.synapsefi.com
X-SP-GATEWAY: client_id_2bb1e412edd311e6bd04e285d6015267|client_secret_2bb1e714edd311e6bd04e285d6015267
Content-Type: application/json
{
"scope": [
"USERS|POST",
"USER|PATCH",
"NODES|POST",
"NODE|PATCH",
"TRANS|POST",
"TRAN|PATCH",
"SUBNETS|POST",
"SUBNET|PATCH"
],
"url": "https://requestb.in/zp216zzp"
}
webhook_url = "https://requestb.in/zp216zzp"
scope = [
"USERS|POST",
"USER|PATCH",
"NODES|POST",
"NODE|PATCH",
"TRANS|POST",
"TRAN|PATCH"
]
subs = client.create_subscription(webhook_url, scope)
const subscriptionUrl = 'https://requestb.in/zp216zzp';
client.createSubscription(subscriptionUrl);
body = {
"scope": [
"USERS|POST",
"USER|PATCH",
"NODES|POST",
"NODE|PATCH",
"TRANS|POST",
"TRAN|PATCH"
],
"url": "https://requestb.in/zp216zzp"
}
client.create_subscriptions(scope: body)
$body = (object) [
scope" => [
"USERS|POST",
"USER|PATCH",
"NODES|POST",
"NODE|PATCH",
"TRANS|POST",
"TRAN|PATCH"
],
'url' => 'https://requestb.in/zp216zzp'
];
$client->create_subscription( $body );
body := `{
"scope": [
"USERS|POST",
"USER|PATCH",
"NODES|POST",
"NODE|PATCH",
"TRANS|POST",
"TRAN|PATCH"
],
"url": "https://requestb.in/zp216zzp"
}`
data, err := client.CreateSubscription(body)
Last modified 1yr ago