Batch Scheduling

Prev Next

Now Linda has to plan the batch for the invoice collection.

Linda

In this article, we explain how to schedule a direct debit that debits invoices on the desired dates (in this article, for example, on the 5th of the month). The batch will only debit invoices with a debit date on or before today's date.

Planning a sample batch

To schedule the sampling batch, Linda goes to Setup > Apex Classes > Schedule Apex, selects the name of the task (e.g. Sampling Batch).

Then click on the magnifying glass next to Apex classes to select: PspInvoiceScheduled
Together Linda and Mary have set the start date of the sampling batch (once, e.g. on the 5th of the month), the start and end date and the time.

Triggering conditions

Well done! Once scheduled, the batch sends the cash flow records associated with an invoice to Frisbii Pay according to the following conditions:

  • A Frisbii Pay Recurring payment method

  • A PSP payment method in the state Active

  • A collection date on or before today's date

  • Issued invoice or draft, depending on the configuration of your corporate name

  • A payment with the "pending" box checked (considered an unpaid invoice).

Example: For an invoice with the debit date 05/01/2024, the PSP is set to Active on 10/01/2024. The batch for the direct debit scheduled on 02/05/2024 will debit the invoices of the 01/05 and of the 02/05.

Manually initiate the direct debit from a payment

Outside of the batch, you can, in exceptional cases, manually re-initiate a payment as a direct debit for various reasons: the payment was rejected the first time and you want to try again; the payment is to be collected by direct debit instead of a bank transfer, etc.

Once the payment has been recorded, a “Collect this payment” button allows you to send the payment to Frisbii Pay:

As a Frisbii administrator, you can add filter conditions to the button to comply with the trigger conditions described above.

Bank reconciliation

  1. The sample batch is executed correctly and without errors. After the direct debit was executed, an invoice was created in Frisbii Pay including the account and the contact person. Frisbii Pay took over the processing of the transaction as PSP.

    • The payment was automatically deactivated "Pending" (deemed paid).

    • The payment status changed to "Redeemed".

    • A transaction ID was entered which corresponds to a Frisbii Pay ID.

    • The billing date was entered together with the date of the sample batch.

    • The invoice has been paid.

  2. An error has occurred in the sample batch. Linda looks at the next item > Frisbii Pay Recurring: API Error Logs


Frisbii tip:
After the customer invoice has been paid via Frisbii Pay, the invoice record changes to "Status: Redeemed" by default and the payment is no longer "Pending".
By activating the "UpdateRelatedPayment" flow, the status is changed to "Redeemed" and the "Pending" is retained.
When the customer pays an invoice via Frisbii Pay, the amount is actually transferred to the company's bank account within a few days. The "Collected" status can be used to record a payment that has been made but is not visible in the bank.