Prerequisites
- A valid
x-client-idAPI key - A stored contact with at least one EFT bank account
Overview
The flow requires four API calls in sequence:Step 1: Get the Contact
Retrieve the contact to obtain their EFT bank account ID.id from the contact’s EFT account. You’ll use it as the accountId in the transaction request.
Step 2: Create the Transaction
Create a DEBIT transaction using the contact’scontactId and accountId from Step 1, and a transactionCode from the transaction codes reference.
schedules array. Note the id (schedule ID) from the first item.
The
padId field in the create transaction response is null at this point. The PAD agreement is generated asynchronously. You need to poll the schedule to obtain it.Step 3: Get the Schedule (poll for padId)
Retrieve the schedule to check if the PAD has been generated.padId field in the response:
- If
padIdis not null: proceed to Step 4 - If
padIdis null: the PAD is still being generated; wait and retry
Step 4: Get the PAD Link
Once you have thepadId, retrieve the PAD agreement details including the signing link.
padLink field: this is the URL you present to your end user.
Presenting the PAD to the End User
Redirect or display thepadLink to your end user so they can review and sign the PAD agreement. Once signed, the payment schedule becomes active.