Subscribe Webhook

Receive HTTP webhooks when subscribed objects are updated

This creates a new webhook subscription. Once created, Wyre will notify the target URL using HTTP(s) with a JSON payload that indicates the object has been updated. Payloads are lightweight with only two identifiers, see below.

You may subscribe to Accounts, Transfers, and Payment Methods by using the appropriate SRN. In some cases, a subscription may be created automatically. If you pass a callback URI to the Create Transfer API, for example, the callback will be implicitly created when the transfer is initiated.

All updates will eventually result in callbacks. However, the number of callbacks may be less than the number of individual updates, as we debounce the outbound requests for protection.

JSON Payload

When the callback is triggered, the payload will contain a JSON object with 2 fields:

subscriptionIdThe same ID returned when the subscription was created
triggerThe SRN of the object which triggered the callback (the same SRN assigned via subscribeTo)
{
	"subscriptionId": "JF4DQ2NE1",
  "trigger": "account:AC-AAABBCC22"
}

It is your responsibility to reach back out to the Wyre API with your credentials to retrieve the updated object.

For example, once you receive a callback to your specified endpoint that you've added when creating a new webhook, to get any updates to your account in this particular example (or whatever resource you subscribed to), you'll then need to hit the GET /v3/accounts/AC_XXXXXX endpoint to receive the newly updated object. If you are subscribing to transfers or payment methods, you'll need to hit those specific endpoints to retrieve the updated objects.

At any time if you would like to halt the webhooks, you may delete the subscription.

Language
Authorization
Header
Click Try It! to start a request and see the response here!