The identifier of the payment request.
- Change the collection preferences for a payment request
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 when a platform authenticates as itself rather than as one of its billers. A platform uses one to manage its own webhook subscriptions under
/api/apps/{clientId}/webhooks.
- Mock serverhttps://developer.adfin.com/_mock/products/partner-integration/partner-integration-api-reference/payment_requests/{paymentRequestId}/collection_preferences
- Production API Server URLhttps://api.adfin.com/api/payment_requests/{paymentRequestId}/collection_preferences
- Staging API Server URLhttps://api.staging.adfin.com/api/payment_requests/{paymentRequestId}/collection_preferences
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://developer.adfin.com/_mock/products/partner-integration/partner-integration-api-reference/payment_requests/{paymentRequestId}/collection_preferences' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'The overrides held against the payment request are cleared. A payment request that holds none is left as it is.
No contentRequest
A field left out of the body is unchanged. partialPayments takes at most one of minimumAmount or minimumPercentage. statements, mandateReminders, cardReminders and directDebitEncouragement can only be set on the customer.
- Mock serverhttps://developer.adfin.com/_mock/products/partner-integration/partner-integration-api-reference/payment_requests/{paymentRequestId}/collection_preferences
- Production API Server URLhttps://api.adfin.com/api/payment_requests/{paymentRequestId}/collection_preferences
- Staging API Server URLhttps://api.staging.adfin.com/api/payment_requests/{paymentRequestId}/collection_preferences
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
'https://developer.adfin.com/_mock/products/partner-integration/partner-integration-api-reference/payment_requests/{paymentRequestId}/collection_preferences' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"collectionMethod": "AUTO_COLLECT",
"preferences": {
"paymentReminders": {
"enabled": true
},
"mandateReminders": {
"enabled": true
},
"cardReminders": {
"enabled": true
},
"directDebitEncouragement": {
"enabled": true
},
"statements": {
"enabled": true
},
"lateFees": {
"enabled": true,
"gracePeriodDays": 0
},
"partialPayments": {
"enabled": true,
"minimumAmount": 0,
"minimumPercentage": 0
},
"surcharging": {
"enabled": true
}
}
}'- Mock serverhttps://developer.adfin.com/_mock/products/partner-integration/partner-integration-api-reference/payment_requests/bulk_import/{jobId}
- Production API Server URLhttps://api.adfin.com/api/payment_requests/bulk_import/{jobId}
- Staging API Server URLhttps://api.staging.adfin.com/api/payment_requests/bulk_import/{jobId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developer.adfin.com/_mock/products/partner-integration/partner-integration-api-reference/payment_requests/bulk_import/{jobId}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "jobId": "550e8400-e29b-41d4-a716-446655440000", "type": "BULK_PAYMENT_REQUEST_IMPORT", "status": "COMPLETED", "creationTime": "2024-01-15T10:30:00Z", "countsByItemStatus": [ { … }, { … } ] }