Secure Payments API – GET Callbacks
General
This article explains how to send a GET request and receive a list of all your callbacks. See also our articles on creating and updating callbacks:
How To
To get callbacks, send a request to this endpoint:
GET https://securepayments.loanpro.io/api/callback/all
There will be no JSON payload for the body. Here's a sample cURL request:
curl -X GET --header 'Accept: application/json' --header 'authorization: YOUR AUTH' --header 'secret: YOUR SECRET' 'https://securepayments.loanpro.io/api/callback/all'
The response will return all callbacks for your user. The "id" field is used to update callbacks. Here's a sample response:
[
{
"id": 2,
"user_id": 36,
"event": "credit-card-update",
"url": "https://sample.url",
"enabled": true,
"created": "2017-3-30 21:50:48"
},
{
"id": 3,
"user_id": 36,
"event": "bank-account-create",
"url": "https://sample.url",
"enabled": true,
"created": "2017-3-30 21:51:30"
}
]