Secure Payments API – Update Callbacks
General
This article explains how to update callbacks via the Secure Payments API. For information on creating and receiving callbacks, take a look at some our other articles:
How To
To update a callback, send a PUT request to the endpoint for that specific callback. Here's a sample endpoint:
https://securepayments.loanpro.io/api/callback/{CallbackID}
Remember to replace {CallbackID} with the ID for your specific callback (see the Get Callback article if you don't know that ID).
Here's a sample payload:
{
"callback": {
"event": "bank-account-create",
"url": "https://a.com",
"enabled": false
}
}
And a cURL payload:
curl -X PUT --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'authorization: YOUR AUTH' --header 'secret: YOUR SECRET' -d '{ \
"callback": { \
"event": "password-update", \
"url": "YOUR CALLBACK URL", \
"enabled": true \
} \
}' 'https://securepayments.loanpro.io/api/callback/3'