Callbacks

Callbacks within the Transfers API are sent when an initial transaction is created and triggered when the notifyUrl is being used within the create transfer endpoint.

We advise that you configure your platform to respond to a callback request with a 200 response. For security reasons, we attempt to send the request once.

👍

Automatic retries are being debated right now, and we can manually resend callbacks on request.

Payload

The callback payload will be a JSON representation of the transfer id that has caused the callback to trigger. An example of such a notification can be found below.

{
  "subscriptionId": "DA_CJN7LL2P7ZY",
  "trigger": "transfer:TF_P6MCNQ3GWFD"
}

Resolve the Transfer ID

You can resolve the transfer id received from the callback to get more details about the transfer such as the current status. This is done using the Get Transfer endpoint like below.

GET https://api.testwyre.com/v3/transfers/TF_P6MCNQ3GWFD