The application identifier
/
Retrieve webhooks for a c...
Adfin API (1.0.0)
Adfin uses OAuth 2.0 access tokens to authenticate all API requests.
There are two contexts in which tokens are issued:
Biller Access Tokens — Generated via the Authorization Code flow when a biller connects their Adfin account. These tokens grant access to that biller's data (invoices, payment requests, customers, etc.).
Platform Access Tokens — Generated via the Client Credentials flow for Adfin's own integrations and system events. These tokens authenticate Adfin as the platform itself (not as a specific biller) and are required for endpoints like
/api/webhook.
- Mock serverhttps://developer.adfin.com/_mock/api-docs/prod/apps/{clientId}/webhooks/{webhookId}
- Production API Server URLhttps://api.adfin.com/api/apps/{clientId}/webhooks/{webhookId}
- Staging API Server URLhttps://api.staging.adfin.com/api/apps/{clientId}/webhooks/{webhookId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developer.adfin.com/_mock/api-docs/prod/apps/{clientId}/webhooks/{webhookId}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
{ "id": "string", "clientId": "string", "url": "string", "name": "string", "description": "string", "events": [ "string" ], "enabled": true, "creationTime": "2019-08-24T14:15:22Z", "lastUpdatedTime": "2019-08-24T14:15:22Z" }
- Mock serverhttps://developer.adfin.com/_mock/api-docs/prod/apps/{clientId}/webhooks/{webhookId}
- Production API Server URLhttps://api.adfin.com/api/apps/{clientId}/webhooks/{webhookId}
- Staging API Server URLhttps://api.staging.adfin.com/api/apps/{clientId}/webhooks/{webhookId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://developer.adfin.com/_mock/api-docs/prod/apps/{clientId}/webhooks/{webhookId}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"url": "https://hooks.example.com/adfin/webhooks",
"events": [
"invoice",
"dd-mandate"
],
"name": "Adfin Events",
"description": "Triggers for invoice lifecycle events.",
"enabled": true
}'Response
application/json
{ "id": "string", "clientId": "string", "url": "string", "name": "string", "description": "string", "events": [ "string" ], "enabled": true, "creationTime": "2019-08-24T14:15:22Z", "lastUpdatedTime": "2019-08-24T14:15:22Z" }
- Mock serverhttps://developer.adfin.com/_mock/api-docs/prod/apps/{clientId}/webhooks/{webhookId}
- Production API Server URLhttps://api.adfin.com/api/apps/{clientId}/webhooks/{webhookId}
- Staging API Server URLhttps://api.staging.adfin.com/api/apps/{clientId}/webhooks/{webhookId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://developer.adfin.com/_mock/api-docs/prod/apps/{clientId}/webhooks/{webhookId}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'- Mock serverhttps://developer.adfin.com/_mock/api-docs/prod/apps/{clientId}/webhooks/digest
- Production API Server URLhttps://api.adfin.com/api/apps/{clientId}/webhooks/digest
- Staging API Server URLhttps://api.staging.adfin.com/api/apps/{clientId}/webhooks/digest
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://developer.adfin.com/_mock/api-docs/prod/apps/{clientId}/webhooks/digest' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
{ "secretKey": "string" }
- Mock serverhttps://developer.adfin.com/_mock/api-docs/prod/apps/{clientId}/webhooks/auth
- Production API Server URLhttps://api.adfin.com/api/apps/{clientId}/webhooks/auth
- Staging API Server URLhttps://api.staging.adfin.com/api/apps/{clientId}/webhooks/auth
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://developer.adfin.com/_mock/api-docs/prod/apps/{clientId}/webhooks/auth' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"basicAuthentication": {
"username": "string",
"password": "string"
},
"apiKeyAuthentication": {
"headerKey": "string",
"headerValue": "string"
}
}'- Mock serverhttps://developer.adfin.com/_mock/api-docs/prod/apps/{clientId}/webhooks
- Production API Server URLhttps://api.adfin.com/api/apps/{clientId}/webhooks
- Staging API Server URLhttps://api.staging.adfin.com/api/apps/{clientId}/webhooks
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developer.adfin.com/_mock/api-docs/prod/apps/{clientId}/webhooks' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
{ "webhooksResponse": [ { … } ] }
- Mock serverhttps://developer.adfin.com/_mock/api-docs/prod/apps/{clientId}/webhooks
- Production API Server URLhttps://api.adfin.com/api/apps/{clientId}/webhooks
- Staging API Server URLhttps://api.staging.adfin.com/api/apps/{clientId}/webhooks
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://developer.adfin.com/_mock/api-docs/prod/apps/{clientId}/webhooks' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"url": "https://hooks.example.com/adfin/webhooks",
"events": [
"invoice",
"dd-mandate"
],
"name": "Adfin Events",
"description": "Triggers for invoice lifecycle events."
}'Response
application/json
{ "id": "string", "clientId": "string", "url": "string", "name": "string", "description": "string", "events": [ "string" ], "enabled": true, "creationTime": "2019-08-24T14:15:22Z", "lastUpdatedTime": "2019-08-24T14:15:22Z" }