The id of the payment request
- Update the distribution details of payment requests
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.
How the payment is expected to be collected for this invoice.
An optional message that will be sent to the customer when the invoice is activated.
- Mock serverhttps://developer.adfin.com/_mock/products/direct-integration/direct-integration-api-reference/payment_requests/{id}:activate
- Production API Server URLhttps://api.adfin.com/api/payment_requests/{id}:activate
- Staging API Server URLhttps://api.staging.adfin.com/api/payment_requests/{id}:activate
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://developer.adfin.com/_mock/products/direct-integration/direct-integration-api-reference/payment_requests/{id}:activate' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"collectionMethod": "ONE_TIME_PAYMENT",
"customMessage": "string",
"templateId": "string"
}'The IDs of the payment requests for which to update the distribution details
- Mock serverhttps://developer.adfin.com/_mock/products/direct-integration/direct-integration-api-reference/payment_requests/distribution
- Production API Server URLhttps://api.adfin.com/api/payment_requests/distribution
- Staging API Server URLhttps://api.staging.adfin.com/api/payment_requests/distribution
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
https://developer.adfin.com/_mock/products/direct-integration/direct-integration-api-reference/payment_requests/distribution \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"paymentRequestIds": [
"string"
],
"distributionDetails": {
"collectionMethod": "AUTO_COLLECT",
"customMessage": "Thank you for your business!",
"approvedForSending": true
}
}'The status of the payment request.
- DRAFT: The payment request does not contain contact details for the payer or it is not yet distributed.
- UNPAID: The payment request is not yet paid.
- SCHEDULED: The payment request is scheduled to collect the payment via Direct Debit.
- SUBMITTED: The remaining due amount on the payment request is covered by submitted (but not yet confirmed) Direct debit payments.
- PAID: The payment request payment payment is captured.
- CANCELLED: The payment request is cancelled.
- SETTLED: THe payment request is paid out
Payment request association type.
- SINGLE - a one off payment request.
- ONE_TO_ONE - a payment request associated with a single invoice.
- PARTIAL - a payment request that is associated with an invoice that has multiple payment requests (many to one)
- BATCH - a payment request that is associated with multiple invoices (one to many)
defaults to all types if not specified.
The start date after which the payment requests pay by date should be, including the start date.
The end date before which the payment requests pay by date should be, including the end date.
The start date after which the payment requests created date should be, including the start date.
The end date before which the payment requests created date should be, including the end date.
The start time after which the payment request was paid, including the paid start time.
The end time after which the payment request was paid, including the paid end time.
The start time after which the payment requests last updated time should be, including the start time.
The end time before which the payment requests last updated time should be, including the end time.
Whether the response should include details on total count and counts per statuses
The credit control status of the payment request.
- AT_RISK: The payment request is at risk of not being paid.
- EXPECTED: The payment request is expected to be paid.
- CONFIRMED: The payment request is paid.
The cashflow status of the payment request.
- UNPAID – not yet paid.
- PROCESSING – expected to be paid.
- PAID_OUT – already paid out.
The direct debit mandate status.
- NO_MANDATE: payment requests linked to customers without a mandate
- AWAITING_SIGNATURE: payment requests linked to customers awaiting signature
- SIGNED: payment requests linked to customers with a signed mandate, but not yet active
- ACTIVE: payment requests linked to customers with an active mandate.
The workflow type.
- AUTO_COLLECT: automatic collection workflow, such as direct debit
- ON_DEMAND: on demain workflow, such as via open banking and card payments
List of field value IDs to filter payment requests by their associated field mappings.
- Mock serverhttps://developer.adfin.com/_mock/products/direct-integration/direct-integration-api-reference/payment_requests
- Production API Server URLhttps://api.adfin.com/api/payment_requests
- Staging API Server URLhttps://api.staging.adfin.com/api/payment_requests
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developer.adfin.com/_mock/products/direct-integration/direct-integration-api-reference/payment_requests?customerId=string&externalCustomerId=string&statuses=DRAFT&associationTypes=SINGLE&payByStartDate=2019-08-24T14%3A15%3A22Z&payByEndDate=2019-08-24T14%3A15%3A22Z&createdStartDate=2019-08-24T14%3A15%3A22Z&createdEndDate=2019-08-24T14%3A15%3A22Z&paidStartTime=2019-08-24T14%3A15%3A22Z&paidEndTime=2019-08-24T14%3A15%3A22Z&lastUpdatedStartTime=2019-08-24T14%3A15%3A22Z&lastUpdatedEndTime=2019-08-24T14%3A15%3A22Z&paymentLinkLastSeenTime=2019-08-24T14%3A15%3A22Z&paymentInitiationDate=2019-08-24T14%3A15%3A22Z&searchText=string&includeCount=true&creditControlStatuses=AT_RISK&cashflowStatuses=UNPAID&cashflowPeriodStartDate=2019-08-24T14%3A15%3A22Z&cashflowPeriodEndDate=2019-08-24T14%3A15%3A22Z&directDebitMandateStatuses=NO_MANDATE&workflowTypes=AUTO_COLLECT&minAmount=0&maxAmount=0&scheduleId=string&fieldValueIds=string&reviewSessionId=string&page=0&size=50&sort=creationTime%2CDESC' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "paymentRequests": [ { … } ], "count": { "total": 0, "statusCounts": [ … ] }, "pagination": { "page": 0, "size": 0, "totalPages": 0, "totalElements": 0, "numberOfElements": 0, "sort": "string" } }