The direct debit mandate attached to the customer with the given id.
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/products/partner-integration/partner-integration-api-reference/customers/{id}/directdebitmandates
- Production API Server URLhttps://api.adfin.com/api/customers/{id}/directdebitmandates
- Staging API Server URLhttps://api.staging.adfin.com/api/customers/{id}/directdebitmandates
- 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/customers/{id}/directdebitmandates' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "mandates": [ { … } ] }
- Mock serverhttps://developer.adfin.com/_mock/products/partner-integration/partner-integration-api-reference/customers/{id}/directdebitmandates
- Production API Server URLhttps://api.adfin.com/api/customers/{id}/directdebitmandates
- Staging API Server URLhttps://api.staging.adfin.com/api/customers/{id}/directdebitmandates
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://developer.adfin.com/_mock/products/partner-integration/partner-integration-api-reference/customers/{id}/directdebitmandates' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json'The direct debit mandate was created
The mandate status. Possible values (non-exclusive): CREATED, PENDING, ACTIVE, CANCELLED, MIGRATING
The reason why the direct debit mandate is in a certain status.
- PENDING_DD_CAPABILITY - The direct debit mandate was signed, but not yet submitted to the payment provider as the biller onboarding is still in progress.
- PENDING_ACTIVATION - The direct debit mandate was signed, but not yet activated by the payment provider.
- MIGRATED - The direct debit mandate was migrated to a new payment provider.
- BANK_ACCOUNT_CHANGED - The direct debit mandate was created due to a bank account change (bank switching).
- INCORRECT_BANK_DETAILS - The direct debit mandate has incorrect bank account details.
- OTHER - Unknown reason. Possible values (non-exclusive): PENDING_DD_CAPABILITY, PENDING_ACTIVATION, MIGRATED, BANK_ACCOUNT_CHANGED, INCORRECT_BANK_DETAILS, OTHER
Reason explaining the current status of the direct debit mandate, especially useful for failure cases.
{ "id": "string", "creationTime": "2019-08-24T14:15:22Z", "lastUpdateTime": "2019-08-24T14:15:22Z", "distributionTime": "2019-08-24T14:15:22Z", "authorisationTime": "2019-08-24T14:15:22Z", "submissionTime": "2019-08-24T14:15:22Z", "status": "string", "failureReason": "string", "statusReasonCode": "string", "statusReason": "string", "customer": { "id": "string", "externalId": "string", "name": "string", "creationTime": "2019-08-24T14:15:22Z", "lastUpdatedTime": "2019-08-24T14:15:22Z", "people": [ … ], "addresses": [ … ], "directDebitMandate": { … }, "timezone": "string", "discount": { … }, "externalData": [ … ], "tags": [ … ] }, "url": "string", "redirectUrl": "string", "sender": { "name": "string" }, "bankAccountNumber": "string", "sortCode": "string", "bankAccountHolderName": "string" }
- Mock serverhttps://developer.adfin.com/_mock/products/partner-integration/partner-integration-api-reference/customers/directdebitmandates/{id}:cancel
- Production API Server URLhttps://api.adfin.com/api/customers/directdebitmandates/{id}:cancel
- Staging API Server URLhttps://api.staging.adfin.com/api/customers/directdebitmandates/{id}:cancel
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://developer.adfin.com/_mock/products/partner-integration/partner-integration-api-reference/customers/directdebitmandates/{id}:cancel' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"reason": "string"
}'- Mock serverhttps://developer.adfin.com/_mock/products/partner-integration/partner-integration-api-reference/customers/directdebitmandates/{id}
- Production API Server URLhttps://api.adfin.com/api/customers/directdebitmandates/{id}
- Staging API Server URLhttps://api.staging.adfin.com/api/customers/directdebitmandates/{id}
- 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/customers/directdebitmandates/{id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'The direct debit mandate corresponding to the provided id.
The mandate status. Possible values (non-exclusive): CREATED, PENDING, ACTIVE, CANCELLED, MIGRATING
The reason why the direct debit mandate is in a certain status.
- PENDING_DD_CAPABILITY - The direct debit mandate was signed, but not yet submitted to the payment provider as the biller onboarding is still in progress.
- PENDING_ACTIVATION - The direct debit mandate was signed, but not yet activated by the payment provider.
- MIGRATED - The direct debit mandate was migrated to a new payment provider.
- BANK_ACCOUNT_CHANGED - The direct debit mandate was created due to a bank account change (bank switching).
- INCORRECT_BANK_DETAILS - The direct debit mandate has incorrect bank account details.
- OTHER - Unknown reason. Possible values (non-exclusive): PENDING_DD_CAPABILITY, PENDING_ACTIVATION, MIGRATED, BANK_ACCOUNT_CHANGED, INCORRECT_BANK_DETAILS, OTHER
Reason explaining the current status of the direct debit mandate, especially useful for failure cases.
{ "id": "string", "creationTime": "2019-08-24T14:15:22Z", "lastUpdateTime": "2019-08-24T14:15:22Z", "distributionTime": "2019-08-24T14:15:22Z", "authorisationTime": "2019-08-24T14:15:22Z", "submissionTime": "2019-08-24T14:15:22Z", "status": "string", "failureReason": "string", "statusReasonCode": "string", "statusReason": "string", "customer": { "id": "string", "externalId": "string", "name": "string", "creationTime": "2019-08-24T14:15:22Z", "lastUpdatedTime": "2019-08-24T14:15:22Z", "people": [ … ], "addresses": [ … ], "directDebitMandate": { … }, "timezone": "string", "discount": { … }, "externalData": [ … ], "tags": [ … ] }, "url": "string", "redirectUrl": "string", "sender": { "name": "string" }, "bankAccountNumber": "string", "sortCode": "string", "bankAccountHolderName": "string" }