A direct debit order can be created via the REST API with a simple call using the PUT or POST method:
| For the specified bank account, creates a direct debit order from all outstanding unpaid documents. |
| For the specified bank account, creates a direct debit order with the specified due date from all unpaid documents within the given period. |
Inputs
Request processing is governed by the following parameters:
parameter | type | description | default value |
| date | due date of the order | next business day |
| date | issue date of the oldest document to be paid | unlimited |
| date | issue date of the most recent document to be paid | current date |
The following conditions must be met for a document to be included in the direct debit order being created:
the document is of type issued invoice or receivable with a positive (non-zero) value,
the document is of type received invoice or payable with a negative (non-zero) value,
the document is not a pro-forma tax document,
the payment method on the document is "bank transfer",
the document has bank account details filled in (account number),
the currency of the document matches the currency of the account,
the document has not yet been fully paid (partial payment is allowed),
the document does not already appear on a direct debit order,
the document does not have a payment block set (received invoice),
the document is approved for payment, if a signature is required before issuing a payment order,
the issue date of the document meets the specified criteria (see parameters
datVystOdanddatVystDo).
Outputs
Successful request processing may return the following statuses:
200 | No suitable documents were found to create an order. |
201 | The direct debit order has been created; the URL is provided in the Location header. |
