Secure Payments API – Update Callbacks

General

How To

To update a callback, send a PUT request to the endpoint for that specific callback. Here's a sample endpoint:

https://pciwallet.simnang.com/api/callback/{CallbackID}

Just 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://pciwallet.simnang.com/api/callback/3'

It will update the specified callback.


How did we do?


Powered by HelpDocs (opens in a new tab)