The internal identifier of the schedule. Required only for updates.
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.
The internal id of the template to be used for defining the schedule. Can be used in place of defining individual events for a schedule; in this case, the events will be automatically copied from the template. This streamlines the process and ensures consistency across schedules.
Contains the unique identifier for the customer.
The name of the schedule to be created for the customer. It must contain only alphanumeric characters, and be limited to a maximum of 50 characters.
The type of the schedule to be created for the customer. Possible values (non-exclusive): ONE_TIME_PAYMENT, DD_MANDATE_AUTHORISATION, DD_PAYMENT, CUSTOMER_STATEMENT
A list of events that will occur as part of the schedule, applicable exclusively to a single customer
- Mock serverhttps://developer.adfin.com/_mock/products/direct-integration/direct-integration-api-reference/workflows
- Production API Server URLhttps://api.adfin.com/api/workflows
- Staging API Server URLhttps://api.staging.adfin.com/api/workflows
- 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/workflows \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"id": "string",
"templateId": "string",
"customerDetails": {
"id": "80349480-490b-4234-92e7-fad697e3d446"
},
"invoiceDetails": {
"id": "string",
"invoiceNo": "string",
"description": "string",
"totalAmount": "string",
"taxAmount": "string",
"dueAmount": "string",
"creditNotesAmount": "string",
"dueDate": "2019-08-24T14:15:22Z",
"issueDate": "2019-08-24T14:15:22Z",
"creationTime": "2019-08-24T14:15:22Z",
"lastUpdatedTime": "2019-08-24T14:15:22Z",
"paidTime": "2019-08-24T14:15:22Z",
"status": "string",
"statusReasonCode": "string",
"statusReason": "string",
"itemsTaxType": "string",
"items": [
{
"id": "string",
"description": "string",
"quantity": 0,
"unitAmount": 0,
"taxRate": 0,
"taxAmount": 0,
"totalAmount": 0,
"taxDetails": {
"id": "string",
"rate": 0
},
"accountDetails": {
"id": "string",
"code": "string"
},
"productDetails": {
"id": "string",
"code": "string"
},
"trackingGroupIds": [
{
"groupId": "string",
"itemId": "string"
}
],
"externalData": [
{
"id": "string",
"connectorType": "string",
"templateId": "string",
"accountCode": "string"
}
]
}
],
"creditNotes": [
{
"id": "string",
"number": "string",
"amount": 0,
"valueDate": "2019-08-24T14:15:22Z",
"externalData": [
{
"connectorType": "string",
"id": "string"
}
]
}
],
"fileSource": "string",
"invoiceSource": "string",
"externalData": [
{
"connectorType": "string",
"id": "string"
}
]
},
"name": "string",
"type": "string",
"customMessage": "string",
"events": [
{
"frequency": {
"timeUnit": "string",
"frequency": 0,
"dayOfMonth": 0
},
"duration": {
"startDate": "2019-08-24T14:15:22Z",
"endDate": "2019-08-24T14:15:22Z",
"maxNoOfExecutions": 0
},
"trigger": {
"days": 0,
"operator": "string",
"referenceDate": "string"
},
"relativeDateTrigger": {
"days": 0,
"operator": "string",
"referenceDate": "string"
},
"ordinalWeekdayTrigger": {
"ordinal": 0,
"dayOfWeek": "string"
},
"type": "string",
"details": {}
}
],
"settings": {
"customerStatementSettings": {
"isEnabled": true
}
}
}'The request was successful, resulting in the creation of one workflow.
The internal id of the template used to define the workflow. This template id has been utilized to automatically copy events into the instance, streamlining the process and ensuring consistency throughout
Contains the unique identifier for the customer.
Attribute that specifies the type of workflow. Possible values (non-exclusive): ONE_TIME_PAYMENT, DD_MANDATE_AUTHORISATION, DD_PAYMENT, CUSTOMER_STATEMENT
The current state of the workflow. Possible values (non-exclusive): PENDING, ACTIVE, PAUSED, COMPLETED, TERMINATED
The list of events that will occur as part of the workflow, applicable exclusively to a single customer
{ "id": "string", "templateId": "string", "customerDetails": { "id": "80349480-490b-4234-92e7-fad697e3d446" }, "invoiceDetails": { "id": "string", "invoiceNo": "string", "description": "string", "totalAmount": "string", "taxAmount": "string", "dueAmount": "string", "creditNotesAmount": "string", "dueDate": "2019-08-24T14:15:22Z", "issueDate": "2019-08-24T14:15:22Z", "creationTime": "2019-08-24T14:15:22Z", "lastUpdatedTime": "2019-08-24T14:15:22Z", "paidTime": "2019-08-24T14:15:22Z", "status": "string", "statusReasonCode": "string", "statusReason": "string", "itemsTaxType": "string", "items": [ … ], "creditNotes": [ … ], "fileSource": "string", "invoiceSource": "string", "externalData": [ … ] }, "name": "string", "type": "string", "state": "string", "paymentInitiationDate": "2019-08-24T14:15:22Z", "creationTime": "2019-08-24T14:15:22Z", "lastUpdatedTime": "2019-08-24T14:15:22Z", "events": [ { … } ], "settings": [ { … } ], "workflowSettings": { "reminderSettings": [ … ], "customerStatementSettings": { … } } }